query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
97668ba5eda7815d9df6d78e9534661c
Gets the list of the cells of the glass window.
[ { "docid": "52bbf02d30f04dcd952be740e5ac4964", "score": "0.6874186", "text": "public List<Cell> getCellList() {\n return new ArrayList<>(cellList);\n }", "title": "" } ]
[ { "docid": "5f5a1846b6ab6a2532c0dc9c2f275ec6", "score": "0.7475508", "text": "public List<Cell> getCells()\n {\n return new CellList();\n }", "title": "" }, { "docid": "75b4af1d3abef30724feac4e8dfa19ae", "score": "0.7352572", "text": "public List<String> getCells() {\n\t\treturn cells;\n\t}", "title": "" }, { "docid": "74de2972267625cb7bad34f992e6090f", "score": "0.69837046", "text": "public Collection<Cell> getCells() {\n\t\tif (this.cells == null){ this.cells=new ArrayList<>();}\n\t\treturn cells;\n\t}", "title": "" }, { "docid": "ed7e74526550c1387b03a1e2565d1c7a", "score": "0.6965872", "text": "public ArrayList<Cell> getCells()\n {\n return this._cells;\n }", "title": "" }, { "docid": "b2dc1487406f3ecce1ca821e60f576d7", "score": "0.6887067", "text": "public ArrayList<DataCell> getCells()\n {\n return cells;\n }", "title": "" }, { "docid": "f2e8aa17665916c399b331973580c27f", "score": "0.658433", "text": "public Integer getCells() {\r\n return cells;\r\n }", "title": "" }, { "docid": "8c5c4bc6a9754330079eccbb1165a290", "score": "0.6542376", "text": "public Map<String, ICell> getCells() {\n return cells;\n }", "title": "" }, { "docid": "dd35cfdbfd5f7a8faa92db8e12181e84", "score": "0.65207356", "text": "@Override\n public boolean[][] getOpenCells()\n {\n return gameParser.getUncoveredCellGrid();\n }", "title": "" }, { "docid": "75ff4a3aa6c82c6e0aa868d738f2b565", "score": "0.64627856", "text": "java.util.List<java.lang.Long> getCellsList();", "title": "" }, { "docid": "82744737059ed7ffef29877331579735", "score": "0.64437664", "text": "public ArrayList<Cell> getSetOfCells()\r\n\t{\r\n\t\treturn setOfCells;\r\n\t}", "title": "" }, { "docid": "cf9854d2adbaa8276fa3daa5a33fd3f0", "score": "0.6354908", "text": "public List<CellInfo> getExitCells();", "title": "" }, { "docid": "442c2338e29398cf8f6b692291db692c", "score": "0.6353124", "text": "public double getCells() {\n\t\treturn cells;\n\t}", "title": "" }, { "docid": "ef83e31669c354e845f2a9811efb9a38", "score": "0.62368745", "text": "@Override\r\n\tpublic List<TextCell> getTextCellList() {\n\t\treturn cellList;\r\n\t}", "title": "" }, { "docid": "d2ed1a477d28a7215292c0233ca9dc78", "score": "0.62143606", "text": "public List<Window> getWindows() {\n return windows;\n }", "title": "" }, { "docid": "203245552675585ea0fa57e511e69a0e", "score": "0.6144248", "text": "public static Iterator getWindows() { return windowList.iterator(); }", "title": "" }, { "docid": "6861ba24d9cf64a3906c0c33bd0a77f6", "score": "0.60756415", "text": "@Override\n public String toString(){\n StringBuilder ret = new StringBuilder(\"This glassWindow contains\\n\");\n for(int i = 0; i<ROWS;i++) {\n for (int j = 0; j < COLUMNS; j++) {\n if (this.getCell(i, j).isOccupied())\n ret.append(this.getCell(i, j).getDie().toString()).append(\" \");\n else\n ret.append(\"[ ] \");\n }\n ret.append(\"\\n\");\n }\n return ret.toString();\n }", "title": "" }, { "docid": "9ddebe4175353db1d3efa8ae36787544", "score": "0.6055857", "text": "public long getExploredGrids()\r\n {\r\n return this.exploredGrids;\r\n }", "title": "" }, { "docid": "e3aba6f91d7c4fff845773f265d79fc6", "score": "0.60101974", "text": "public services.designer.pm.msg.de.TableRowListType getKeyCells() {\n return keyCells;\n }", "title": "" }, { "docid": "ad2d3935f73d9b1d23e730a22ab0f2a3", "score": "0.5996358", "text": "public List<Cell> getNeighbours()\n {\n List<Cell> neighbours = this.getEdgeNeighbours();\n neighbours.addAll(this.getCornerNeighbours());\n return neighbours;\n }", "title": "" }, { "docid": "ceca0ff493a747fce64c39d4023511e8", "score": "0.5975978", "text": "public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }", "title": "" }, { "docid": "df12ca77f544ebaab91ebea5289c67c4", "score": "0.59596354", "text": "public int getNumCells() { return NUM_CELLS; }", "title": "" }, { "docid": "bf44c4b19c0444df06fea27b4e637552", "score": "0.5927472", "text": "public CellListener[] getCellListeners();", "title": "" }, { "docid": "c57a579820d07e88301777147d0cc296", "score": "0.5912647", "text": "List<IndexedCellContent> getDiceList();", "title": "" }, { "docid": "690964c8675a745969301227b224895f", "score": "0.5900385", "text": "private Collection<Cell> borderCells(){\n return (new ArrayList<>(cellList)).stream()\n .filter(c -> ((this.getColumn(c) == 0) || (this.getColumn(c) == COLUMNS-1)\n || (this.getRow(c) == 0) || (this.getRow(c) == 3)))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "f8d8a8b0784c5c353c994f7b47e8a21c", "score": "0.5881599", "text": "public int size()\n {\n return cells.size();\n }", "title": "" }, { "docid": "61dc13189e728234e8d44a1d6682eb50", "score": "0.5838692", "text": "public Iterable<Window> getWindows() {\n return windows.keySet();\n }", "title": "" }, { "docid": "764e6b8c484058239a673058fd9760da", "score": "0.5834938", "text": "public JTextField[][] getNumberGrid() {\n return grid.getGrid();\n }", "title": "" }, { "docid": "b0e0a833039eb6d2f2f2080e8bae64ba", "score": "0.583399", "text": "public int[] getCell() {\n\t\treturn cell;\n\t}", "title": "" }, { "docid": "6e538fffba459f16b625b441528f7ace", "score": "0.5833625", "text": "public int[] getRowsGrid()\r\n {\r\n return rowsGrid;\r\n }", "title": "" }, { "docid": "52854cd3b44bf5d335d350da21531a5c", "score": "0.5830725", "text": "int getCellsCount();", "title": "" }, { "docid": "669a18737dc1b74567c9155b92a4afcd", "score": "0.5826171", "text": "public ArrayList<Cell> getChangedCells()\r\n\t{\r\n\t\tArrayList<Cell> changed = new ArrayList<Cell>();\r\n\t\tfor (int i = 0; i < height; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < width; j++)\r\n\t\t\t{\r\n\t\t\t\tif (cells[i][j].isChanged())\r\n\t\t\t\t{\r\n\t\t\t\t\tchanged.add(cells[i][j]);\r\n\t\t\t\t\tcells[i][j].setChanged(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn changed;\r\n\t}", "title": "" }, { "docid": "dbdd9697e120b658a623ba2ee65c76d2", "score": "0.5816184", "text": "int getNumberCells() {\n return numberCells;\n }", "title": "" }, { "docid": "6642377be949745c435347d94ad5eef4", "score": "0.5803158", "text": "public ArrayList<Cell> getCurrentNeighbors() {\n return this.currentNeighbors;\n }", "title": "" }, { "docid": "174cb6dda8fe616921004ba0621a26be", "score": "0.5798654", "text": "public List<Cell> neighbours() {\n\t\tList<IMatrixElement<Cell>> aux;\n\t\tList<Cell> output = new ArrayList<>();\n\t\tCell cell;\n\t\ttry {\n\t\t\taux = this.master.getNeighboursAt(this.getI(), this.getJ());\n\t\t} catch (IllegalPositionException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tfor(IMatrixElement<Cell> e : aux){\n\t\t\tif(e.getElement() != null)\n\t\t\t\toutput.add(e.getElement());\n\t\t\telse\n\t\t\t{\n\t\t\t\tcell = new Cell(e.getI(),e.getJ(),new LinkedList<>(), this.master);\n\t\t\t\te.setElement(cell);\n\t\t\t\toutput.add(cell);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "title": "" }, { "docid": "8e22bab1b524aa9c773dcee19de3901b", "score": "0.5790687", "text": "public FlowTableWindow[] getWindows() {\r\n return Arrays.copyOf(window, window.length);\r\n }", "title": "" }, { "docid": "8ebcd23a7962782a75cb477118c42097", "score": "0.5789916", "text": "public Label[][] getGrid(){return grids;}", "title": "" }, { "docid": "06e2dd2e58ae9805a696d4baea1d9905", "score": "0.5754569", "text": "public List<Cell> pack() {\n List<Cell> cellsAsList = new ArrayList<>(size*size);\n\n // Revivir barcos\n for (Battleship b : battleships)\n b.revive();\n\n // Transformar matriz de celdas a List\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++)\n cellsAsList.add(cellViews[i][j].getModel());\n }\n\n return cellsAsList;\n }", "title": "" }, { "docid": "5885c84477fd68981fb2355de7c9d314", "score": "0.573417", "text": "public CellDisplay[][] gridToDisplay(Grid grid) {\n \tCellDisplay[][] cells = display.getCells();\n \tfor(int i=0; i<display.getRows(); i++) {\n \t\tfor(int j=0; j<display.getColumns(); j++) {\n \t\t\tColor color;\n \t\t\tif(grid.getGridCell(i, j).getOnFire()) {\n \t\t\t\tcolor = new Color(1f, 0f, 0f);\n\t\t\t\t} else {\n \t\t\t\tfloat g = (float)(grid.getGridCell(i, j).getVegetationDensity())/100;\n \t\t\t\tcolor = new Color(0f, g, 0f);\n\t\t\t\t}\n \t\t\tcells[i][j].setColor(color);\n\t\t\t}\n\t\t}\n \treturn cells;\n\t}", "title": "" }, { "docid": "c50162797371de6318d5b648c379a686", "score": "0.5705708", "text": "public ArrayAsList freeCells() { \n\t\tArrayAsList list = new ArrayAsList();\n\t\tfor(int i = 0; i < _boardSize; i++)\n\t\t\tfor(int j = 0; j < _boardSize; j++)\n\t\t\t\tif(_board[i][j].getValue() == 0){\n\t\t\t\t\tPosition pos = new Position();\n\t\t\t\t\tpos.setPosition(i, j);\n\t\t\t\t\tlist.add(pos);\n\t\t\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "0e832b280b90f5fe38e5805ee649757f", "score": "0.5703105", "text": "public List<Cell> getNeighbours() {\n List<Cell> neighbours = new ArrayList<>();\n for (int i=-1; i<=1; i++) {\n for (int j=-1; j<=1; j++) {\n if (i==0 && j==0) {continue;}\n try {\n neighbours.add(world.cells[location[0]+i][location[1]+j]);\n \n // no neighbour there? array out of bounds? don't add.\n } catch (Exception e) {}\n }\n }\n return neighbours;\n }", "title": "" }, { "docid": "934c12a3ceb7ecc418fe290d424049ab", "score": "0.56972706", "text": "protected GridPane getGrid() {\n\treturn grid;\n }", "title": "" }, { "docid": "0b0643f84794049e53d72bc31dd9ffcc", "score": "0.56944424", "text": "public int getNumCells() {\n return numCells;\n }", "title": "" }, { "docid": "42d972337e5659bedad8c39470ee109c", "score": "0.5681785", "text": "public ArrayList<Observation>[][] getObservationGrid() {\n\t\treturn model.getObservationGrid();\n\t}", "title": "" }, { "docid": "991db2d9809c70f14bb9117801fc7099", "score": "0.5674717", "text": "public int[][] getGrid()\n {\n return grid;\n }", "title": "" }, { "docid": "ef4755f3e754d978279816bcbd4a0c25", "score": "0.56666154", "text": "public Object[][] getGrid() {\r\n\t\tObject[][] bg = new Object[rows][columns];\r\n\t\tfor(int i = 0; i < bg.length; i++) {\r\n\t\t\tfor(int j = 0; j < bg[i].length; j++) \r\n\t\t\t\tbg[i][j] = grid[i][j];\r\n\t\t\t}\r\n\t\treturn bg;\r\n\t}", "title": "" }, { "docid": "75c58901a39239bb43d3c01aa982a4ea", "score": "0.565631", "text": "public final ArrayList<Ghost> getGhostsList()\n {\n return this.ghosts;\n }", "title": "" }, { "docid": "641b809f9e9c186cbbe9ee8471faf92a", "score": "0.56536907", "text": "private void initCells() {\n populateCellList(new Rect(pa.width / 2, pa.height / 2, pa.width - 125, pa.height - 125, pa.CENTER), 150);\n }", "title": "" }, { "docid": "5af6fe5976a7cd59fca0b72eb979e101", "score": "0.56453675", "text": "@Override\n\tpublic Piece[][] getGrid() {\n\t\treturn builderGameTable.getTable().getGrid();\n\t}", "title": "" }, { "docid": "6c4ad78c372df954452bb97859faa024", "score": "0.56238586", "text": "int getGridsCount();", "title": "" }, { "docid": "6b8e1a2ab1eccd737010c8a6fe9fc899", "score": "0.56217855", "text": "public int getRows()\n {\n return Grid.length;\n }", "title": "" }, { "docid": "07e45a3ecd6de6887db3a598a5815e96", "score": "0.56004983", "text": "private List<Cell> passageCellsOf(Cell cell) {\n\n return cellsAround(cell, false);\n }", "title": "" }, { "docid": "9243e11aba56409dc37515d0404a4b8a", "score": "0.5596834", "text": "public int numCells()\r\n\t{\r\n\t\treturn setOfCells.size();\r\n\t}", "title": "" }, { "docid": "3b9520d17a1a89b81b6e5d3c50291e0b", "score": "0.55924404", "text": "public ArrayList<Cell> getEdges() { return edges; }", "title": "" }, { "docid": "80f67660a46c857cbb3388423a10834b", "score": "0.5588901", "text": "public Map<String, int[][]> getAllCells() {\n\t\t\n\t\tMap<String, int[][]> cellMap = new HashMap<>();\t\t\n\t\t\t\n\t\tNodeList types = doc.getElementsByTagName(myResources.getString(\"TYPE\"));\n\t\tfor (int i = 0; i < types.getLength(); i++) {\n\t\t\tNode node = types.item(i);\n\t\t\tElement eElement = (Element) node;\n\t\t\tString temp = eElement.getAttribute(myResources.getString(\"ID\"));\n\t\t\tNodeList childNodes = eElement.getElementsByTagName(myResources.getString(\"CELL\"));\n\t\t\tint[][] tempArray = new int[childNodes.getLength()][];\n\t\t\tfor (int x = 0; x < childNodes.getLength(); x++) {\n\t\t\t\tNode cellNode = childNodes.item(x);\n\t\t\t\ttempArray[x] = getCellInfo(cellNode);\n\t\t\t}\n\t\t\tcellMap.put(temp, tempArray);\n\t\t}\n\t\treturn cellMap;\n\t}", "title": "" }, { "docid": "ebe4b5ca7bef23bc8b8b2a97fbeda317", "score": "0.5585134", "text": "public List<ValueBox> getHotspots() {\n return hotspots;\n }", "title": "" }, { "docid": "5c138859d8681472be11b95fad590e3b", "score": "0.557861", "text": "@Override\n\tpublic List<Cellpones> findAll() {\n\t\treturn CellponesMapper.findAll();\n\t}", "title": "" }, { "docid": "d73dc953949553ff76360b3e345c26bd", "score": "0.55712026", "text": "@Override\n public int[][] getGrid()\n {\n return gameParser.getGrid();\n }", "title": "" }, { "docid": "677839de53a4794f9825d1a10aa1c0cb", "score": "0.5554715", "text": "public int getXGrid() {\n\t\treturn xGrid;\r\n\t}", "title": "" }, { "docid": "462408a9df181f76a35fa333b0403ede", "score": "0.5548897", "text": "public List<MazeCell> getCells(final MazeMinion mazeMinion){\n return this.getCells(Arrays.asList(mazeMinion));\n }", "title": "" }, { "docid": "6546f79cee33f26e411b19dae906ca19", "score": "0.5543664", "text": "public ArrayList<GameObject>[][] getGameboard() {\n return this.gameboard;\n }", "title": "" }, { "docid": "9300b437d5081af907448b08ff60648e", "score": "0.5541139", "text": "public List<Intersec> getNeighbours() {\n\t\treturn neighbours;\n\t}", "title": "" }, { "docid": "23e80f8a332a6d69f4cef9d536a50dc3", "score": "0.55326766", "text": "public Cell[][] getChessBoard() {\n return board;\n }", "title": "" }, { "docid": "476dd132e3528fe82975a343f4f20670", "score": "0.55251145", "text": "public int getGridsCount() {\n return grids_.size();\n }", "title": "" }, { "docid": "205ca6f01817d44dbd91138875deac93", "score": "0.5516123", "text": "public final SmileSurfaceDataBundle getGridData() {\n return _gridData;\n }", "title": "" }, { "docid": "3b57185b8eaa521d77b247cbcecfd3cb", "score": "0.5515933", "text": "public MapElements[][] getGrid() {\n return grid;\n }", "title": "" }, { "docid": "0e94793e11586d191b6e957950827547", "score": "0.5514355", "text": "public abstract Collection<AbstractCellAdv> getCells(DBContext context, CellRegion cellRegion);", "title": "" }, { "docid": "d80f9d0aa27ba5977aa123457b58da4a", "score": "0.54989976", "text": "public Color[][] getGrid()\r\n {\r\n final Color[][] copy = new Color[height()][width()];\r\n for (int i = 0; i < height(); i++)\r\n {\r\n for (int j = 0; j < width(); j++)\r\n {\r\n copy[i][j] = my_grid[i][j];\r\n }\r\n }\r\n return copy;\r\n }", "title": "" }, { "docid": "175af7d48c000d3008543c0476a88739", "score": "0.5490689", "text": "public Grid getGrid()\r\n \t{\r\n \t\treturn grid;\r\n \t}", "title": "" }, { "docid": "770b643096d4c6a6315580d604943bfd", "score": "0.5484483", "text": "public FieldObject[][] getGrid() {\n\t\treturn grid;\n\t}", "title": "" }, { "docid": "44b5cfe84082f0bc314b7dea82db5ddd", "score": "0.5483803", "text": "public List<Vertex> getNeighbors() {\n return myNeighbors;\n }", "title": "" }, { "docid": "4efdf49726376b38340fff278d16aa34", "score": "0.5482111", "text": "public Cell[][] getBoard() {\n\t\treturn positions;\n\t}", "title": "" }, { "docid": "67aca55308434892193eb4b5d0174405", "score": "0.54649264", "text": "public List<Cell> getCornerNeighbours()\n {\n List<Cell> neighbours = new ArrayList<Cell>(4);\n if (this.i > 0 && this.j > 0) {\n neighbours.add(new Cell(this.i - 1, this.j - 1));\n }\n if (this.i < CurvilinearGrid.this.ni - 1 && this.j > 0) {\n neighbours.add(new Cell(this.i + 1, this.j - 1));\n }\n if (this.i < CurvilinearGrid.this.ni - 1 && this.j < CurvilinearGrid.this.nj - 1) {\n neighbours.add(new Cell(this.i + 1, this.j + 1));\n }\n if (this.i > 0 && this.j < CurvilinearGrid.this.nj - 1) {\n neighbours.add(new Cell(this.i - 1, this.j + 1));\n }\n return neighbours;\n }", "title": "" }, { "docid": "298a087b546fbac9bb935da0d9cadb1d", "score": "0.5459726", "text": "@Override\n\tpublic int getNumCells() {\n return this.numCells;\n }", "title": "" }, { "docid": "54f41af76531540b0796fb5c3b8378fa", "score": "0.5459404", "text": "Grid getGrid() { return grid; }", "title": "" }, { "docid": "70f460da3f55e60ad920df0780651368", "score": "0.545413", "text": "private JList getEasyScreensList() {\r\n\t\tif (easyScreensList == null) {\r\n\t\t\teasyScreensList = new JList();\r\n\t\t}\r\n\t\treturn easyScreensList;\r\n\t}", "title": "" }, { "docid": "99e7fd5e93b662a6ad1435a3a50923eb", "score": "0.54522055", "text": "long getCells(int index);", "title": "" }, { "docid": "da4d43eb14f00d7eab2307f9036cc6dc", "score": "0.5452158", "text": "public List getNeighbors() {\r\n\t\treturn connectedNodes;\r\n\t}", "title": "" }, { "docid": "3b7fa69220575df1fefb7194efbb1fa9", "score": "0.5449747", "text": "@Override\r\n public List<String> getNeighbors() {\r\n return neighbors;\r\n }", "title": "" }, { "docid": "3a6667c953765b4fa65d86ecd9effcb7", "score": "0.5444248", "text": "public abstract String getCellContents();", "title": "" }, { "docid": "7807922c0a0f2321244563b88f89e21f", "score": "0.54423785", "text": "public List getSelectedInstances() {\n Set rtn = new HashSet();\n if (!propTable.isColumnSelected(1))\n return new ArrayList(); // No GKInstance is selected\n int rowCount = propTable.getRowCount();\n for (int i = 0; i < rowCount; i++) {\n if (propTable.isCellSelected(i, 1))\n rtn.add(propTable.getValueAt(i, 1));\n }\n return new ArrayList(rtn);\n }", "title": "" }, { "docid": "2c72c9c9a89ab0b2cffa1bbdaa6f1ba8", "score": "0.5435374", "text": "public List<Cell> getEdgeNeighbours()\n {\n List<Cell> neighbours = new ArrayList<Cell>(4);\n if (this.i > 0) {\n neighbours.add(new Cell(this.i - 1, this.j));\n }\n if (this.j > 0) {\n neighbours.add(new Cell(this.i, this.j - 1));\n }\n if (this.i < CurvilinearGrid.this.ni - 1) {\n neighbours.add(new Cell(this.i + 1, this.j));\n }\n if (this.j < CurvilinearGrid.this.nj - 1) {\n neighbours.add(new Cell(this.i, this.j + 1));\n }\n return neighbours;\n }", "title": "" }, { "docid": "23ae5c5e9631beafcf7af82ddc349fcb", "score": "0.54157555", "text": "public List<Vertex> neighbours() {\n return this.neighbours;\n }", "title": "" }, { "docid": "fbd3564b3dd56132c8eaf5d128165eec", "score": "0.5413224", "text": "boolean[][] getGrid() {\n\t\treturn grid; // TODO YOUR CODE HERE\n\t}", "title": "" }, { "docid": "c45a005d742974b5c767665e70d64799", "score": "0.540917", "text": "public int getNbCells() {\n return getNbChildren();\n }", "title": "" }, { "docid": "f3e17b46bf2656fbe9b460b25526c8fb", "score": "0.5403095", "text": "public java.util.List<ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage> getGridsList() {\n return grids_;\n }", "title": "" }, { "docid": "3d72e38331cab751d2db41262ed271c8", "score": "0.54027", "text": "public Grid getGrid() {\n return grid;\n }", "title": "" }, { "docid": "3ecf139eec20ba8594fdc9822a2a3500", "score": "0.540228", "text": "ArrayList<ShortcutAndWidgetContainer> getAllShortcutAndWidgetContainers() {\n ArrayList<ShortcutAndWidgetContainer> childrenLayouts =\n new ArrayList<ShortcutAndWidgetContainer>();\n int screenCount = getChildCount();\n for (int screen = 0; screen < screenCount; screen++) {\n childrenLayouts.add(((CellLayout) getChildAt(screen)).getShortcutsAndWidgets());\n }\n return childrenLayouts;\n }", "title": "" }, { "docid": "fab739d58c5f25de22d5a56c2f63f542", "score": "0.5400735", "text": "public Grid getGrid() { return this.grid; }", "title": "" }, { "docid": "e46bad3ba5c2a82e0e5e92ddd7f7e8e8", "score": "0.5397295", "text": "public java.util.List<ucar.nc2.ft2.coverage.remote.CdmrFeatureProto.Coverage> getGridsList() {\n if (gridsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(grids_);\n } else {\n return gridsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "1a07f27916e258105a042551550d8690", "score": "0.5394374", "text": "public RowIterator getGunGunsView() {\n return (RowIterator)getAttributeInternal(GUNGUNSVIEW);\n }", "title": "" }, { "docid": "40071f29c67083ebd5944d132ced5442", "score": "0.5392592", "text": "public ArrayList<Piece> getPieces()\n {\n ArrayList<Piece> pieces = new ArrayList<Piece>();\n for(Piece[] p : Grid)\n {\n for(Piece piece : p)\n {\n if(piece!=null) pieces.add(piece);\n }\n }\n return pieces;\n }", "title": "" }, { "docid": "8dd431fc86108b77e12c1016c7abd1f8", "score": "0.53922385", "text": "@Override\n\tpublic int[][] getWholeGrid() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2b672ab98a6fecd75e51690bf6f4e0c4", "score": "0.53867054", "text": "public Bag getNeighbors() {\n Bag neighborsCopy = new Bag();\n for (int i=0; i<neighbors.numObjs; i++){\n neighborsCopy.add(neighbors.get(i));\n }\n return neighborsCopy;\n }", "title": "" }, { "docid": "088cb5f74571090b7b8fe293c14d9316", "score": "0.5383564", "text": "public List<GridDatasetInv.Grid> getGridInventory() {\r\n return (gridInv == null) ? new ArrayList<GridDatasetInv.Grid>() : gridInv;\r\n }", "title": "" }, { "docid": "429d62c1299bae32aada304a38ee14fa", "score": "0.5382105", "text": "public ArrayList<Space> neighbors()\n {\n ArrayList<Space> list = new ArrayList<Space>();\n for(Boundary b: boundaries)\n {\n for(Space s:b.borderOf())\n {\n if(!list.contains(s))\n {\n list.add(s);\n }\n }\n }\n return list;\n }", "title": "" }, { "docid": "1aeefe1c60fa2ec6d196a7326be47e1d", "score": "0.53797793", "text": "@Override\n public List<Cell> getNeighbors(int row, int col) {\n int[] indexR = {1, -1, 0, 0};\n int[] indexC = {0, 0, 1, -1};\n return mySimulationGrid.getSpecifiedNeighbors(row, col, indexR, indexC, mySimulationGrid);\n }", "title": "" }, { "docid": "d5d6e3462c43e7a309ea512076a0ae98", "score": "0.53740215", "text": "public static int getNumWindows() { return windowList.size(); }", "title": "" }, { "docid": "c52ad1f82baeb5c673397b8a397ef364", "score": "0.536845", "text": "@VTID(30)\r\n excel.Range getPageRangeCells();", "title": "" }, { "docid": "33329b875c63c080b14c88a5ad45aa6d", "score": "0.5361267", "text": "public static List<ICell> getConnections(IGraphModel model, ICell cell) {\n return getEdges(model, cell, true, true, false);\n }", "title": "" }, { "docid": "0af99d6fb60044c376f47106209b5ac7", "score": "0.53597707", "text": "public List<MazeCell> getCells(final List<MazeMinion> mazeMinions){\n\t\treturn this.getMazeCells().stream().filter(res -> mazeMinions.contains(res)).collect(Collectors.toList());\n\t}", "title": "" } ]
59abb56d0fea1ada25c3ff378bd38153
DTS 207, MIME Entity Body, Required
[ { "docid": "327b7264cc9e8d767c8473f3522a4d93", "score": "0.55511385", "text": "public DetailModel validateMIMEEntityBody(int nbBody) {\r\n\t\tString rfc = \"-\";\r\n\t\tif (nbBody != 2){\r\n\t\t\treturn new DetailModel(\"207\", \"MIME Entity Body\", \"Number of part: \" + nbBody, \"Must have 2 parts\", rfc, Status.ERROR);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"207\", \"MIME Entity Body\", \"Number of part: \" + nbBody, \"Must have 2 parts\", rfc, Status.SUCCESS);\r\n\t\t}\r\n\r\n\t}", "title": "" } ]
[ { "docid": "938b10441e05b4a0e59f4a5ef9189897", "score": "0.5842012", "text": "@Override\n @NotNull\n public String getContentType() {\n return \"application/octet-stream\";\n }", "title": "" }, { "docid": "0caf62e9a0d4e4f30ed69780fc45e297", "score": "0.5754038", "text": "@Override\n\tpublic String getBodyContentType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "43c4988bcbc6739daf99160382532580", "score": "0.55870175", "text": "@Override\n public boolean isAttachmentSupported() {\n return false;\n }", "title": "" }, { "docid": "daf6e4743f17587bae188a4708db7980", "score": "0.5501165", "text": "public java.lang.String getBody();", "title": "" }, { "docid": "e264f65e5081ac7b158dfb0d962ad2e4", "score": "0.5484926", "text": "public abstract byte[] getBody();", "title": "" }, { "docid": "d815054747b42ba589bc5dc260babbab", "score": "0.53797865", "text": "public abstract InputStream getBody();", "title": "" }, { "docid": "a22356432722a126f47e437fb6f0e77e", "score": "0.5305224", "text": "@Override\n\t\t\t\t\t\t\t\t\t\tpublic String contentTransferEncoding() {\n\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "18022c49efb4804dcf082d335551169d", "score": "0.52982265", "text": "public String getBody();", "title": "" }, { "docid": "932f3c80b3d77f6c2d7942bf793e6914", "score": "0.5276189", "text": "public String getBody()\n\t{\n\t\treturn udtB.strBody;\n\t}", "title": "" }, { "docid": "ee44bb06990148add651124f6b8bdf5c", "score": "0.5205931", "text": "public void addMimeEntity(MIMEEntity contentMime);", "title": "" }, { "docid": "427e287cca20c8ed88ac1e42c3b59b94", "score": "0.51707697", "text": "public interface Attachment extends DiscordEntity {\n\n /**\n * Gets the file name of the attachment.\n *\n * @return The file name of the attachment.\n */\n String getFileName();\n\n /**\n * Gets the description of the attachment.\n *\n * @return The description of the attachment.\n */\n Optional<String> getDescription();\n\n /**\n * Gets the size of the attachment in bytes.\n *\n * @return The size of the attachment in bytes.\n */\n int getSize();\n\n /**\n * Gets the url of the attachment.\n *\n * @return The url of the attachment.\n */\n URL getUrl();\n\n /**\n * Gets the proxy url of the attachment.\n *\n * @return The proxy url of the attachment.\n */\n URL getProxyUrl();\n\n /**\n * Checks if the attachment is an image.\n *\n * @return Whether the attachment is an image or not.\n */\n default boolean isImage() {\n return getHeight().isPresent();\n }\n\n /**\n * Gets the height of the attachment, if it's an image.\n *\n * @return The height of the attachment.\n */\n Optional<Integer> getHeight();\n\n /**\n * Gets the width of the attachment, if it's an image.\n *\n * @return The width of the attachment.\n */\n Optional<Integer> getWidth();\n\n /**\n * Gets whether this attachment is ephemeral.\n * Ephemeral attachments will automatically be removed after a set period of time and\n * attachments on messages are guaranteed to be available as long as the message itself exists.\n *\n * @return True if the attachment is ephemeral.\n */\n Optional<Boolean> isEphemeral();\n\n /**\n * Gets the duration of the audio file in seconds\n * Only present if the message is of type {@link MessageFlag#IS_VOICE_MESSAGE}.\n *\n * @return The duration of the audio file in seconds.\n */\n Optional<Double> getDurationSeconds();\n\n /**\n * Gets the waveform data of this attachment.\n * Only present if the message is of type {@link MessageFlag#IS_VOICE_MESSAGE}.\n *\n * @return A byte array of the waveform of the audio file.\n */\n Optional<byte[]> getWaveForm();\n\n /**\n * Gets the base64 encoded string of the waveform of the audio file\n * Only present if the message is of type {@link MessageFlag#IS_VOICE_MESSAGE}.\n * \n * @return The base64 encoded string of the waveform of the audio file.\n */\n Optional<String> getWaveFormBase64();\n\n /**\n * Downloads the attachment as an input stream.\n *\n * @return The attachment as an input stream.\n * @throws IOException If an IO error occurs.\n */\n InputStream asInputStream() throws IOException;\n\n /**\n * Downloads the attachment as a byte array.\n *\n * @return The attachment as a byte array.\n */\n CompletableFuture<byte[]> asByteArray();\n\n /**\n * Downloads the attachment as an image.\n *\n * @return The attachment as an image. Only present, if the attachment is an image.\n * @throws IllegalStateException If the attachment is not an image.\n */\n CompletableFuture<BufferedImage> asImage();\n\n /**\n * Checks whether the attachment is marked as a spoiler.\n *\n * <p>Discord encodes the information on whether a file is considered a spoiler in the file name. Any file whose\n * filename starts with {@code SPOILER_} is considered a spoiler.\n *\n * @return The spoiler status.\n */\n default boolean isSpoiler() {\n return getFileName().startsWith(\"SPOILER_\");\n }\n\n}", "title": "" }, { "docid": "e631df6df94a1e159db50296cbe2b3a5", "score": "0.5162797", "text": "public DetailModel validateMIMEEntity(PartModel part, String MIMEEntity) {\r\n\t\tString rfc = \"-\";\r\n\t\tif(!part.isStatus()) {\r\n\t\t\treturn new DetailModel(\"200\", \"MIME Entity\", \"Some MIME Entity Headers are not valid\", \"All MIME Entity Headers must be valid\", rfc, Status.ERROR);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"200\", \"MIME Entity\", \"All MIME Entity Headers are valid\", \"All MIME Entity Headers must be valid\", rfc, Status.SUCCESS);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "f3a33780cf158743b1344bf6fb2020ba", "score": "0.5157292", "text": "byte[] getBody();", "title": "" }, { "docid": "b8ca5d836c7a1e882aec4fd3ed2b4072", "score": "0.512098", "text": "String getBody();", "title": "" }, { "docid": "b8ca5d836c7a1e882aec4fd3ed2b4072", "score": "0.512098", "text": "String getBody();", "title": "" }, { "docid": "b8ca5d836c7a1e882aec4fd3ed2b4072", "score": "0.512098", "text": "String getBody();", "title": "" }, { "docid": "b8ca5d836c7a1e882aec4fd3ed2b4072", "score": "0.512098", "text": "String getBody();", "title": "" }, { "docid": "b8ca5d836c7a1e882aec4fd3ed2b4072", "score": "0.512098", "text": "String getBody();", "title": "" }, { "docid": "2c102a6fbe0b65ae6f1aefa0862a8efe", "score": "0.5085348", "text": "public static void writeMM7Message(StringWriter writer,\n OutputStream outputStream, Attachments attachments,\n\t\t\tOMOutputFormat format, String innerPartCID, String innerBoundary) {\n String SOAPContentType;\n try {\n if (format.isSOAP11()) {\n SOAPContentType = SOAP11Constants.SOAP_11_CONTENT_TYPE;\n } else {\n SOAPContentType = SOAP12Constants.SOAP_12_CONTENT_TYPE;\n }\n startWritingMime(outputStream, format.getMimeBoundary());\n\n javax.activation.DataHandler dh = new javax.activation.DataHandler(\n writer.toString(), \"text/xml; charset=\"\n + format.getCharSetEncoding());\n MimeBodyPart rootMimeBodyPart = new MimeBodyPart();\n rootMimeBodyPart.setDataHandler(dh);\n\n\t\t\trootMimeBodyPart.addHeader(\"Content-Type\", SOAPContentType\n\t\t\t\t\t+ \"; charset=\" + format.getCharSetEncoding());\n rootMimeBodyPart.addHeader(\"Content-ID\", \"<\"\n + format.getRootContentId() + \">\");\n\n writeBodyPart(outputStream, rootMimeBodyPart, format\n .getMimeBoundary());\n\n if (attachments.getContentIDSet().size() != 0) {\n outputStream.write(CRLF);\n StringBuffer sb = new StringBuffer();\n sb.append(\"Content-Type: multipart/related\");\n sb.append(\"; \");\n sb.append(\"boundary=\");\n sb.append(\"\\\"\" + innerBoundary + \"\\\"\");\n // REVIEW Should this be getBytes(\"UTF-8\") or getBytes(charset)\n outputStream.write(sb.toString().getBytes());\n outputStream.write(CRLF);\n StringBuffer sb1 = new StringBuffer();\n sb1.append(\"Content-ID: \");\n sb1.append(\"<\");\n sb1.append(innerPartCID);\n sb1.append(\">\");\n // REVIEW Should this be getBytes(\"UTF-8\") or getBytes(charset)\n outputStream.write(sb1.toString().getBytes());\n outputStream.write(CRLF);\n outputStream.write(CRLF);\n startWritingMime(outputStream, innerBoundary);\n\t\t\t\tIterator attachmentIDIterator = attachments.getContentIDSet()\n\t\t\t\t\t\t.iterator();\n\t\t\t\twhile (attachmentIDIterator.hasNext()) {\n\t\t\t\t\tString contentID = (String) attachmentIDIterator.next();\n\t\t\t\t\tDataHandler dataHandler = attachments\n\t\t\t\t\t\t\t.getDataHandler(contentID);\n writeBodyPart(outputStream, createMimeBodyPart(contentID,\n dataHandler), innerBoundary);\n }\n finishWritingMime(outputStream);\n outputStream.write(CRLF);\n writeMimeBoundary(outputStream, format.getMimeBoundary());\n }\n finishWritingMime(outputStream);\n outputStream.flush();\n } catch (IOException e) {\n throw new OMException(\"Error while writing to the OutputStream.\", e);\n } catch (MessagingException e) {\n throw new OMException(\"Problem writing Mime Parts.\", e);\n }\n }", "title": "" }, { "docid": "a3426db01cde855f1498170400a30094", "score": "0.50811243", "text": "boolean hasMixedContent() {\n return false;\n }", "title": "" }, { "docid": "a3426db01cde855f1498170400a30094", "score": "0.50811243", "text": "boolean hasMixedContent() {\n return false;\n }", "title": "" }, { "docid": "fed7ccbee7576d7f4c11e2b219482084", "score": "0.5047866", "text": "int getOutgoingContentTypeValue();", "title": "" }, { "docid": "e2c1c2203d5324e014655c71cc7916ea", "score": "0.5021265", "text": "public DetailModel validateMIMEEntity2(boolean mimeEntity) {\r\n\t\tString rfc = \"-\";\r\n\t\tif(mimeEntity) {\r\n\t\t\treturn new DetailModel(\"204\", \"MIME Entity\", \"All MIME Entity are valid\", \"All MIME Entity must be valid\", rfc, Status.SUCCESS);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"204\", \"MIME Entity\", \"Some MIME Entity are not valid\", \"All MIME Entity must be valid\", rfc, Status.ERROR);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e1f2146cc2f4c29d956d17ecfe01739c", "score": "0.501035", "text": "@Override\n\tprotected String buildMessageBody(Object content, int serialID) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "99c03d38f007f424d60d15c7c24ee685", "score": "0.496381", "text": "@Override\n\tpublic String getMimeType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5a6fa049aa15d5843e3ec2eb6a3b2fe4", "score": "0.49446133", "text": "public String getContentType() {\n/* 97 */ return this.contentType;\n/* */ }", "title": "" }, { "docid": "6c66297bab2bcc58dfe48c5e4c7e4e18", "score": "0.49402833", "text": "public String getMimeType() {\r\n return \"text/plain\";\r\n }", "title": "" }, { "docid": "e7bd022d9aaecf735137051819573e41", "score": "0.49310917", "text": "String body() throws IOException;", "title": "" }, { "docid": "91852440f5fd716e05e5673115953c12", "score": "0.49140126", "text": "protected OMNode createDTD() throws OMException { throw new OMException(\"SOAP message MUST NOT contain a Document Type Declaration(DTD)\"); }", "title": "" }, { "docid": "6cca9c9e878092c79832d9011ba5105d", "score": "0.4897128", "text": "public DetailModel validateFirstMIMEPartBody(boolean firstMIMEPartBody) {\r\n\t\tString rfc = \"RFC 2046: Section 4.1.1;http://tools.ietf.org/html/rfc2046#section-4.1.1\";\r\n\t\tif(firstMIMEPartBody) {\r\n\t\t\treturn new DetailModel(\"151\", \"First MIME Part Body\", \"Valid First Part Body\", \"\", rfc, Status.SUCCESS);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"151\", \"First MIME Part Body\", \"Invalid First Part Body\", \"\", rfc, Status.ERROR);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "13b757c6d444fe59dc188b2e37edc8b5", "score": "0.4895854", "text": "@Test\n public void testMustNotAddMultipartByteRangeContentTypeTo416Response() throws Exception {\n originResponse = new BasicClassicHttpResponse(416, \"Requested Range Not Satisfiable\");\n\n Mockito.when(mockExecChain.proceed(Mockito.any(), Mockito.any())).thenReturn(originResponse);\n\n final ClassicHttpResponse result = execute(request);\n\n Assertions.assertEquals(416, result.getCode());\n final Iterator<HeaderElement> it = MessageSupport.iterate(result, HttpHeaders.CONTENT_TYPE);\n while (it.hasNext()) {\n final HeaderElement elt = it.next();\n Assertions.assertFalse(\"multipart/byteranges\".equalsIgnoreCase(elt.getName()));\n }\n }", "title": "" }, { "docid": "ceaffd757a5ff14e55a19e691dfc2e76", "score": "0.4895489", "text": "@Override\n public String getContentType() {\n return null;\n }", "title": "" }, { "docid": "ceaffd757a5ff14e55a19e691dfc2e76", "score": "0.4895489", "text": "@Override\n public String getContentType() {\n return null;\n }", "title": "" }, { "docid": "4a516f72e8e0f7f6b2e48ba2fb727bc4", "score": "0.48895943", "text": "@Test\n\tpublic void testContentType() throws IOException, JDOMException {\n\t\tPostMethod tPost = new PostMethod(_depositUri);\n\t\ttPost.addRequestHeader(\"Content-Type\", \"application/zip\");\n\t\ttPost.addRequestHeader(\"X-Packaging\", \"http://purl.org/net/sword-types/METSDSpaceSIP\");\n\t\ttPost.addRequestHeader(\"X-No-Op\", \"true\");\n\t\t\n\t\tint tStatus = this.getClient().executeMethod(tPost);\t\n\n\t\tassertEquals(\"Post returned a non 201 result\", 201, tStatus);\n\n\t\tSAXBuilder tBuilder = new SAXBuilder();\n\t\tDocument tEntityDoc = tBuilder.build(tPost.getResponseBodyAsStream());\n\n\t\tassertNotNull(\"Missing Content type in header\", tPost.getResponseHeader(\"Content-Type\"));\n\t\tString tContentType = tPost.getResponseHeader(\"Content-Type\").getValue();\n\t\tassertNotNull(\"Missing Content type in header\", tContentType);\n\t\tElement tContent = tEntityDoc.getRootElement().getChild(\"content\", ATOM);\n\t\tassertNotNull(\"Missing content element\", tContent);\n\n\t\t//assertEquals(\"Content header and content element type aren't equal\", tContentType, tContent.getAttributeValue(\"type\"));\n\t\tassertEquals(\"Content header not equal to what was submitted\", tContent.getAttributeValue(\"type\"), \"application/zip\");\n\t}", "title": "" }, { "docid": "a45816af4439dd7621f7931af585e556", "score": "0.48607773", "text": "public static Attachment parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Attachment object =\n new Attachment();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"attachment\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Attachment)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://jsapi2.prompt.components.workflow.lexmark.com/\",\"fileName\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"fileName\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setFileName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://jsapi2.prompt.components.workflow.lexmark.com/\",\"binaryData\").equals(reader.getName())){\n \n object.setBinaryData(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://jsapi2.prompt.components.workflow.lexmark.com/\",\"size\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"size\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSize(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "0aadbb552bed2232157af07c64e2f38b", "score": "0.48444667", "text": "public String getResponseContentType();", "title": "" }, { "docid": "2daf70dd5909bfbc9d186b02259b608e", "score": "0.4837845", "text": "public CapexRequestAttachmentContent() {\r\n }", "title": "" }, { "docid": "aa74bdf1f70d10dfcc47f85a573fa2b2", "score": "0.4829132", "text": "@Override\r\n protected Map<String, DataPart> getByteData() {\r\n Map<String, DataPart> params = new HashMap<>();\r\n DataPart d=new DataPart(pdfname ,inputData);\r\n params.put(\"filename\", new DataPart(pdfname ,inputData));\r\n return params;\r\n }", "title": "" }, { "docid": "905ddb576780bd918b83df6181811451", "score": "0.48068044", "text": "@Override\n\tpublic byte[] reqByteFormat() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1d04fcc192441f92fcfbdfcd180c581f", "score": "0.4798156", "text": "ContentType getOutgoingContentType();", "title": "" }, { "docid": "c09358bb1cb48ab1dbb7014bd531a0ff", "score": "0.47861707", "text": "int getIncomingContentTypeValue();", "title": "" }, { "docid": "b7e9cd35d9e81cb962429778dd1f22b8", "score": "0.47823757", "text": "@Test\n public void marshallTest() throws Exception {\n\n DefaultMetaData metadata = new DefaultMetaData();\n\n /*\n * static part\n */\n metadata.setFileIdentifier(\"42292_5p_19900609195600\");\n metadata.setLanguage(Locale.ENGLISH);\n metadata.setCharacterSet(CharacterSet.UTF_8);\n Set set = new HashSet();\n set.add(ScopeCode.DATASET);\n metadata.setHierarchyLevels(set);\n set = new HashSet();\n set.add(\"Common Data Index record\");\n metadata.setHierarchyLevelNames(set);\n /*\n * contact parts\n */\n DefaultResponsibleParty author = new DefaultResponsibleParty(Role.AUTHOR);\n author.setOrganisationName(new SimpleInternationalString(\"IFREMER / IDM/SISMER\"));\n DefaultContact contact = new DefaultContact();\n DefaultTelephone t = new DefaultTelephone();\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.49.16\");\n t.setVoices(set);\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.46.44\");\n t.setFacsimiles(set);\n contact.setPhone(t);\n DefaultAddress add = new DefaultAddress();\n set = new HashSet();\n set.add(\"Centre IFREMER de Brest BP 70\");\n add.setDeliveryPoints(set);\n add.setCity(new SimpleInternationalString(\"PLOUZANE\"));\n add.setPostalCode(\"29280\");\n add.setCountry(new SimpleInternationalString(\"France\"));\n set = new HashSet();\n set.add(\"sismer@ifremer.fr\");\n add.setElectronicMailAddresses(set);\n contact.setAddress(add);\n DefaultOnLineResource o = new DefaultOnLineResource(new URI(\"http://www.ifremer.fr/sismer/\"));\n contact.setOnLineResource(o);\n author.setContactInfo(contact);\n set = new HashSet();\n set.add(author);\n metadata.setContacts(set);\n\n /*\n * creation date\n */\n metadata.setDateStamp(df.parse(\"2009-01-01T00:00:00\"));\n\n /*\n * Spatial representation info\n */\n DefaultVectorSpatialRepresentation spatialRep = new DefaultVectorSpatialRepresentation();\n DefaultGeometricObjects geoObj = new DefaultGeometricObjects(GeometricObjectType.valueOf(\"point\"));\n set = new HashSet();\n set.add(geoObj);\n spatialRep.setGeometricObjects(set);\n\n set = new HashSet();\n set.add(spatialRep);\n metadata.setSpatialRepresentationInfo(set);\n\n /*\n * Reference system info\n */\n String code = \"World Geodetic System 84\";\n\n DefaultCitation RScitation = new DefaultCitation();\n\n RScitation.setTitle(new SimpleInternationalString(\"SeaDataNet geographic co-ordinate reference frames\"));\n set = new HashSet();\n set.add(new SimpleInternationalString(\"L101\"));\n RScitation.setAlternateTitles(set);\n set = new HashSet();\n set.add(new ReferenceIdentifierMetadata(null, null, \"http://www.seadatanet.org/urnurl/\"));\n RScitation.setIdentifiers(set);\n RScitation.setEdition(new SimpleInternationalString(\"2\"));\n\n ReferenceIdentifierMetadata Nidentifier = new ReferenceIdentifierMetadata(RScitation, \"L101\", code);\n ReferenceSystemMetadata rs = new ReferenceSystemMetadata(Nidentifier);\n set = new HashSet();\n set.add(rs);\n metadata.setReferenceSystemInfo(set);\n\n /*\n * extension information\n */\n DefaultMetadataExtensionInformation extensionInfo = new DefaultMetadataExtensionInformation();\n Set<ExtendedElementInformation> elements = new HashSet<ExtendedElementInformation>();\n\n //we only keep one element for test purpose (unordered list)\n //EDMO\n ExtendedElementInformation edmo = createExtensionInfo(\"SDN:EDMO::\");\n elements.add(edmo);\n\n /*L021\n ExtendedElementInformation L021 = createExtensionInfo(\"SDN:L021:1:\");\n elements.add(L021);\n\n //L031\n ExtendedElementInformation L031 = createExtensionInfo(\"SDN:L031:2:\");\n elements.add(L031);\n\n //L071\n ExtendedElementInformation L071 = createExtensionInfo(\"SDN:L071:1:\");\n elements.add(L071);\n\n //L081\n ExtendedElementInformation L081 = createExtensionInfo(\"SDN:L081:1:\");\n elements.add(L081);\n\n //L231\n ExtendedElementInformation L231 = createExtensionInfo(\"SDN:L231:3:\");\n elements.add(L231);\n\n //L241\n ExtendedElementInformation L241 = createExtensionInfo(\"SDN:L241:1:\");\n elements.add(L241);*/\n\n extensionInfo.setExtendedElementInformation(elements);\n\n set = new HashSet();\n set.add(extensionInfo);\n metadata.setMetadataExtensionInfo(set);\n\n /*\n * Data indentification\n */\n DefaultDataIdentification dataIdentification = new DefaultDataIdentification();\n\n DefaultCitation citation = new DefaultCitation();\n citation.setTitle(new SimpleInternationalString(\"90008411.ctd\"));\n set = new HashSet();\n set.add(new SimpleInternationalString(\"42292_5p_19900609195600\"));\n citation.setAlternateTitles(set);\n\n DefaultCitationDate revisionDate = new DefaultCitationDate();\n revisionDate.setDateType(DateType.REVISION);\n Date d = df.parse(\"1990-06-05T00:00:00\");\n revisionDate.setDate(d);\n set = new HashSet();\n set.add(revisionDate);\n citation.setDates(set);\n\n\n Set<ResponsibleParty> originators = new HashSet<ResponsibleParty>();\n DefaultResponsibleParty originator = new DefaultResponsibleParty(Role.ORIGINATOR);\n originator.setOrganisationName(new SimpleInternationalString(\"UNIVERSITE DE LA MEDITERRANNEE (U2) / COM - LAB. OCEANOG. BIOGEOCHIMIE - LUMINY\"));\n contact = new DefaultContact();\n t = new DefaultTelephone();\n set = new HashSet();\n set.add(\"+33(0)4 91 82 91 15\");\n t.setVoices(set);\n set = new HashSet();\n set.add(\"+33(0)4 91.82.65.48\");\n t.setFacsimiles(set);\n contact.setPhone(t);\n add = new DefaultAddress();\n set = new HashSet();\n set.add(\"UFR Centre Oceanologique de Marseille Campus de Luminy Case 901\");\n add.setDeliveryPoints(set);\n add.setCity(new SimpleInternationalString(\"Marseille cedex 9\"));\n add.setPostalCode(\"13288\");\n add.setCountry(new SimpleInternationalString(\"France\"));\n set = new HashSet();\n add.setElectronicMailAddresses(set);\n contact.setAddress(add);\n o = new DefaultOnLineResource(new URI(\"http://www.com.univ-mrs.fr/LOB/\"));\n contact.setOnLineResource(o);\n originator.setContactInfo(contact);\n originators.add(originator);\n citation.setCitedResponsibleParties(originators);\n\n dataIdentification.setCitation(citation);\n\n\n dataIdentification.setAbstract(new SimpleInternationalString(\"Donnees CTD NEDIPROD VI 120\"));\n\n DefaultResponsibleParty custodian = new DefaultResponsibleParty(Role.CUSTODIAN);\n custodian.setOrganisationName(new SimpleInternationalString(\"IFREMER / IDM/SISMER\"));\n contact = new DefaultContact();\n t = new DefaultTelephone();\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.49.16\");\n t.setVoices(set);\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.46.44\");\n t.setFacsimiles(set);\n contact.setPhone(t);\n add = new DefaultAddress();\n set = new HashSet();\n set.add(\"Centre IFREMER de Brest BP 70\");\n add.setDeliveryPoints(set);\n add.setCity(new SimpleInternationalString(\"PLOUZANE\"));\n add.setPostalCode(\"29280\");\n add.setCountry(new SimpleInternationalString(\"France\"));\n set = new HashSet();\n set.add(\"sismer@ifremer.fr\");\n add.setElectronicMailAddresses(set);\n contact.setAddress(add);\n o = new DefaultOnLineResource(new URI(\"http://www.ifremer.fr/sismer/\"));\n contact.setOnLineResource(o);\n custodian.setContactInfo(contact);\n set = new HashSet();\n set.add(custodian);\n dataIdentification.setPointOfContacts(set);\n\n /*\n * keywords\n */\n Set<Keywords> keywords = new HashSet<Keywords>();\n\n //parameter\n Set<String> keys = new HashSet<String>();\n keys.add(\"Transmittance and attenuance of the water column\");\n /*keys.add(\"Electrical conductivity of the water column\");\n keys.add(\"Dissolved oxygen parameters in the water column\");\n keys.add(\"Light extinction and diffusion coefficients\");\n keys.add(\"Dissolved noble gas concentration parameters in the water column\");\n keys.add(\"Optical backscatter\");\n keys.add(\"Salinity of the water column\");\n keys.add(\"Dissolved concentration parameters for 'other' gases in the water column\");\n keys.add(\"Temperature of the water column\");\n keys.add(\"Visible waveband radiance and irradiance measurements in the atmosphere\");\n keys.add(\"Visible waveband radiance and irradiance measurements in the water column\");*/\n Keywords keyword = createKeyword(keys, \"parameter\", \"BODC Parameter Discovery Vocabulary\", \"P021\", \"2008-11-26T02:00:04\", \"35\");\n keywords.add(keyword);\n\n /*\n set = new HashSet();\n set.add(\"CTD profilers\");\n keyword = createKeyword(set, \"instrument\", \"SeaDataNet device categories\", \"L05\", \"2008-01-11T02:00:04\", \"4\");\n keywords.add(keyword);\n\n //platform\n set = new HashSet();\n set.add(\"research vessel\");\n keyword = createKeyword(set, \"platform_class\", \"SeaDataNet Platform Classes\", \"L061\", \"2008-02-21T10:55:40\", \"6\");\n keywords.add(keyword);*/\n\n //projects\n\n\n dataIdentification.setDescriptiveKeywords(keywords);\n\n /*\n * resource constraint\n */\n Set<String> resConsts = new HashSet<String>();\n resConsts.add(\"licence\");\n DefaultLegalConstraints constraint = new DefaultLegalConstraints();\n Set<Restriction> restrictions = new HashSet<Restriction>();\n for (String resConst : resConsts) {\n restrictions.add(Restriction.valueOf(resConst));\n }\n constraint.setAccessConstraints(restrictions);\n set = new HashSet();\n set.add(constraint);\n dataIdentification.setResourceConstraints(set);\n\n /*\n * Aggregate info\n */\n Set<DefaultAggregateInformation> aggregateInfos = new HashSet<DefaultAggregateInformation>();\n\n //cruise\n DefaultAggregateInformation aggregateInfo = new DefaultAggregateInformation();\n citation = new DefaultCitation();\n citation.setTitle(new SimpleInternationalString(\"MEDIPROD VI\"));\n set = new HashSet();\n set.add(new SimpleInternationalString(\"90008411\"));\n citation.setAlternateTitles(set);\n revisionDate = new DefaultCitationDate();\n revisionDate.setDateType(DateType.REVISION);\n d = df.parse(\"1990-06-05T00:00:00\");\n revisionDate.setDate(d);\n set = new HashSet();\n set.add(revisionDate);\n citation.setDates(set);\n aggregateInfo.setAggregateDataSetName(citation);\n aggregateInfo.setInitiativeType(InitiativeType.CAMPAIGN);\n aggregateInfo.setAssociationType(AssociationType.LARGER_WORD_CITATION);\n aggregateInfos.add(aggregateInfo);\n\n /* station\n aggregateInfo = new AggregateInformationImpl();\n citation = new DefaultCitation();\n citation.setTitle(new SimpleInternationalString(\"5p\"));\n set = new HashSet();\n set.add(new SimpleInternationalString(\"5p\"));\n citation.setAlternateTitles(set);\n revisionDate = new DefaultCitationDate();\n revisionDate.setDateType(DateType.REVISION);\n d = df.parse(\"1990-06-09T00:00:00\");\n revisionDate.setDate(d);\n set = new HashSet();\n set.add(revisionDate);\n citation.setDates(set);\n aggregateInfo.setAggregateDataSetName(citation);\n aggregateInfo.setInitiativeType(InitiativeType.CAMPAIGN);\n aggregateInfo.setAssociationType(AssociationType.LARGER_WORD_CITATION);\n aggregateInfos.add(aggregateInfo);*/\n\n dataIdentification.setAggregationInfo(aggregateInfos);\n\n /*\n * data scale TODO UOM\n\n String scale = getVariable(\"var21\");\n String uom = getVariable(\"var22\");\n if (scale != null) {\n try {\n ResolutionImpl resolution = new ResolutionImpl();\n resolution.setDistance(Double.parseDouble(scale));\n resolution.setUnitOfMeasure(uom);\n dataIdentification.setSpatialResolutions(Arrays.asList(resolution));\n } catch (NumberFormatException ex) {\n logger.severe(\"parse exception while parsing scale => scale:\" + scale + \" for record: \" + identifier);\n }\n }*/\n\n //static part\n set = new HashSet();\n set.add(Locale.ENGLISH);\n dataIdentification.setLanguages(set);\n set = new HashSet();\n set.add(TopicCategory.OCEANS);\n dataIdentification.setTopicCategories(set);\n\n /*\n * Extent\n */\n DefaultExtent extent = new DefaultExtent();\n\n // geographic extent\n extent.setGeographicElements(createGeographicExtent(\"1.1667\", \"1.1667\", \"36.6\", \"36.6\"));\n\n //temporal extent\n DefaultTemporalExtent tempExtent = new DefaultTemporalExtent();\n\n Date start = df.parse(\"1990-06-05T00:00:00\");\n Date stop = df.parse(\"1990-07-02T00:00:00\");\n\n DefaultInstant begin = new DefaultInstant(new DefaultPosition(start));\n DefaultInstant end = new DefaultInstant(new DefaultPosition(stop));\n DefaultPeriod period = new DefaultPeriod(begin, end);\n tempExtent.setExtent(period);\n\n set = new HashSet();\n set.add(tempExtent);\n extent.setTemporalElements(set);\n\n\n\n //vertical extent\n DefaultVerticalExtent vertExtent = new DefaultVerticalExtent();\n String miv = null;\n String mav = null;\n\n if (miv != null) {\n vertExtent.setMinimumValue(Double.parseDouble(miv));\n }\n if (mav != null) {\n vertExtent.setMaximumValue(Double.parseDouble(mav));\n }\n\n // vertical datum\n String datumID = \"D28\";\n DefaultVerticalCRS vcrs = null;\n\n Map<String, String> prop = new HashMap<String, String>();\n prop.put(DefaultVerticalDatum.NAME_KEY, datumID);\n prop.put(DefaultVerticalDatum.SCOPE_KEY, null);\n DefaultVerticalDatum datum = new DefaultVerticalDatum(prop, VerticalDatumType.ELLIPSOIDAL);\n\n\n // vertical coordinate system TODO var 32 uom?\n DefaultCoordinateSystemAxis axis = new DefaultCoordinateSystemAxis(\"meters\", AxisDirection.DOWN, Unit.valueOf(\"m\"));\n DefaultVerticalCS cs = new DefaultVerticalCS(axis);\n\n prop = new HashMap<String, String>();\n prop.put(DefaultVerticalCRS.NAME_KEY, \"idvertCRS\");\n prop.put(DefaultVerticalCRS.SCOPE_KEY, null);\n vcrs = new DefaultVerticalCRS(prop, datum, cs);\n\n\n // TODO vertical limit? var 35\n vertExtent.setVerticalCRS(vcrs);\n\n set = new HashSet();\n set.add(vertExtent);\n extent.setVerticalElements(set);\n\n set = new HashSet();\n set.add(extent);\n dataIdentification.setExtents(set);\n\n set = new HashSet();\n set.add(dataIdentification);\n metadata.setIdentificationInfo(set);\n\n /*\n * Distribution info\n */\n DefaultDistribution distributionInfo = new DefaultDistribution();\n\n //distributor\n DefaultDistributor distributor = new DefaultDistributor();\n\n DefaultResponsibleParty distributorContact = new DefaultResponsibleParty(Role.DISTRIBUTOR);\n distributorContact.setOrganisationName(new SimpleInternationalString(\"IFREMER / IDM/SISMER\"));\n contact = new DefaultContact();\n t = new DefaultTelephone();\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.49.16\");\n t.setVoices(set);\n set = new HashSet();\n set.add(\"+33 (0)2 98.22.46.44\");\n t.setFacsimiles(set);\n contact.setPhone(t);\n add = new DefaultAddress();\n set = new HashSet();\n set.add(\"Centre IFREMER de Brest BP 70\");\n add.setDeliveryPoints(set);\n add.setCity(new SimpleInternationalString(\"PLOUZANE\"));\n add.setPostalCode(\"29280\");\n add.setCountry(new SimpleInternationalString(\"France\"));\n set = new HashSet();\n set.add(\"sismer@ifremer.fr\");\n add.setElectronicMailAddresses(set);\n contact.setAddress(add);\n o = new DefaultOnLineResource(new URI(\"http://www.ifremer.fr/sismer/\"));\n contact.setOnLineResource(o);\n distributorContact.setContactInfo(contact);\n\n distributor.setDistributorContact(distributorContact);\n set = new HashSet();\n set.add(distributor);\n distributionInfo.setDistributors(set);\n\n //format\n Set<Format> formats = new HashSet<Format>();\n\n DefaultFormat format = new DefaultFormat();\n String name = \"MEDATLAS ASCII\";\n format.setName(new SimpleInternationalString(name));\n format.setVersion(new SimpleInternationalString(\"1.0\"));\n formats.add(format);\n\n distributionInfo.setDistributionFormats(formats);\n\n //transfert options\n DefaultDigitalTransferOptions digiTrans = new DefaultDigitalTransferOptions();\n\n digiTrans.setTransferSize(2.431640625);\n\n DefaultOnLineResource onlines = new DefaultOnLineResource();\n\n String uri = \"http://www.ifremer.fr/sismerData/jsp/visualisationMetadata3.jsp?langue=EN&pageOrigine=CS&cle1=42292_1&cle2=CTDF02\";\n if (uri != null) {\n onlines.setLinkage(new URI(uri));\n }\n\n onlines.setDescription(new SimpleInternationalString(\"CTDF02\"));\n onlines.setFunction(OnLineFunction.DOWNLOAD);\n set = new HashSet();\n set.add(onlines);\n digiTrans.setOnLines(set);\n\n set = new HashSet();\n set.add(digiTrans);\n distributionInfo.setTransferOptions(set);\n\n metadata.setDistributionInfo(distributionInfo);\n\n StringWriter sw = new StringWriter();\n marshaller = testPool.acquireMarshaller();\n marshaller.marshal(metadata, sw);\n String result = sw.toString();\n\n InputStream in = Util.getResourceAsStream(\"org/constellation/metadata/meta1.xml\");\n StringWriter out = new StringWriter();\n byte[] buffer = new byte[1024];\n int size;\n\n while ((size = in.read(buffer, 0, 1024)) > 0) {\n out.write(new String(buffer, 0, size));\n }\n\n String expResult = out.toString();\n\n //we remove the header (variable)\n expResult = expResult.substring(expResult.indexOf(\"<gmd:fileIdentifier>\"));\n result = result.substring(result.indexOf(\"<gmd:fileIdentifier>\"));\n\n //we split the result into several piece to easier debug\n int startPosition = 0;\n String expResult1 = expResult.substring(startPosition, expResult.indexOf(\"<gmd:contact>\"));\n String result1 = result.substring(startPosition, result.indexOf(\"<gmd:contact>\"));\n\n assertEquals(expResult1, result1);\n\n startPosition += expResult1.length();\n String expResult2 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:dateStamp>\"));\n String result2 = result.substring(startPosition, result.indexOf(\"</gmd:dateStamp>\"));\n\n assertEquals(expResult2, result2);\n\n startPosition += expResult2.length();\n String expResult3 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:referenceSystemInfo>\"));\n String result3 = result.substring(startPosition, result.indexOf(\"</gmd:referenceSystemInfo>\"));\n\n assertEquals(expResult3, result3);\n\n startPosition = startPosition + expResult3.length();\n String expResult4 = expResult.substring(startPosition, expResult.indexOf(\"<gmd:identificationInfo>\"));\n String result4 = result.substring(startPosition, result.indexOf(\"<gmd:identificationInfo>\"));\n\n assertEquals(expResult4, result4);\n\n startPosition = startPosition + expResult4.length();\n String expResult5 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:abstract>\"));\n String result5 = result.substring(startPosition, result.indexOf(\"</gmd:abstract>\"));\n\n assertEquals(expResult5, result5);\n\n startPosition = startPosition + expResult5.length();\n String expResult6 = expResult.substring(startPosition, expResult.indexOf(\"<gmd:descriptiveKeywords>\"));\n String result6 = result.substring(startPosition, result.indexOf(\"<gmd:descriptiveKeywords>\"));\n\n assertEquals(expResult6, result6);\n\n startPosition = startPosition + expResult6.length();\n String expResult7 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:descriptiveKeywords>\"));\n String result7 = result.substring(startPosition, result.indexOf(\"</gmd:descriptiveKeywords>\"));\n\n assertEquals(expResult7, result7);\n\n startPosition = startPosition + expResult7.length();\n String expResult8 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:aggregationInfo>\"));\n String result8 = result.substring(startPosition, result.indexOf(\"</gmd:aggregationInfo>\"));\n\n assertEquals(expResult8, result8);\n\n startPosition = startPosition + expResult8.length();\n String expResult9 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:temporalElement>\"));\n String result9 = result.substring(startPosition, result.indexOf(\"</gmd:temporalElement>\"));\n\n assertEquals(expResult9, result9);\n\n startPosition = startPosition + expResult9.length();\n String expResult10 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:identificationInfo>\"));\n String result10 = result.substring(startPosition, result.indexOf(\"</gmd:identificationInfo>\"));\n\n assertEquals(expResult10, result10);\n\n startPosition = startPosition + expResult10.length();\n String expResult11 = expResult.substring(startPosition, expResult.indexOf(\"</gmd:distributor>\"));\n String result11 = result.substring(startPosition, result.indexOf(\"</gmd:distributor>\"));\n\n assertEquals(expResult11, result11);\n\n assertEquals(expResult, result);\n\n }", "title": "" }, { "docid": "e945a7202d15504285b7ecae773edb99", "score": "0.4774989", "text": "public ContentDisposition(String s) throws ParseException {\n/* 87 */ HeaderTokenizer h = new HeaderTokenizer(s, \"()<>@,;:\\\\\\\"\\t []/?=\");\n/* */ \n/* */ \n/* */ \n/* 91 */ HeaderTokenizer.Token tk = h.next();\n/* 92 */ if (tk.getType() != -1) {\n/* 93 */ throw new ParseException(\"Expected disposition, got \" + tk.getValue());\n/* */ }\n/* 95 */ this.disposition = tk.getValue();\n/* */ \n/* */ \n/* 98 */ String rem = h.getRemainder();\n/* 99 */ if (rem != null) {\n/* 100 */ this.list = new ParameterList(rem);\n/* */ }\n/* */ }", "title": "" }, { "docid": "a24512068817a7ad98156da05388d7c9", "score": "0.4770972", "text": "@Override\n\tpublic int getBody() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "4e01e38dbe8f125ba336ec21812f81bc", "score": "0.47687948", "text": "int curl_mime_encoder(PointerByReference part, Pointer encoding);", "title": "" }, { "docid": "1cbd985920a7fa5fafc159f03c12ab35", "score": "0.47680566", "text": "@Override\r\n\tprotected BodyType getBodyType() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "264edf13c1fdec129a3d49e5d2e14ec8", "score": "0.47609094", "text": "@Test\n public void testMessageBodyContentTypeIsParsed() throws Exception {\n int[] fields = { MailInputField.COLUMN_BODY_CONTENT_TYPE };\n MailInputField[] farr = this.getDefaultInputFields( fields );\n this.mockMailInputMeta( farr );\n try {\n mailInput.processRow( meta, data );\n } catch ( KettleException e ) {\n // don't worry about it\n }\n MessageParser underTest = mailInput.new MessageParser();\n Object[] r = RowDataUtil.allocateRowData( data.nrFields );\n underTest.parseToArray( r, message );\n\n Assert.assertEquals( \"Message body content type is correct\", CNTNT_TYPE, String.class.cast( r[0] ) );\n }", "title": "" }, { "docid": "86ef803343cece8c22193e882321942c", "score": "0.47536498", "text": "public String getMimeType() {\n return null;\n }", "title": "" }, { "docid": "c72e6fc165dd04bb6badd91b6e5ebaa3", "score": "0.47464502", "text": "public DetailModel validateFirstMIMEPart(boolean firstMIMEPart) {\r\n\t\tString rfc = \"-\";\r\n\t\tif(firstMIMEPart) {\r\n\t\t\treturn new DetailModel(\"139\", \"First MIME Part\", \"MIME Entity are valid\", \"MIME Entity of Health Container\", rfc, Status.SUCCESS);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"139\", \"First MIME Part\", \"MIME Entity are not valid\", \"MIME Entity of Health Container\", rfc, Status.ERROR);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "a312ebaf2cb07d9fe569f6625376493e", "score": "0.47449237", "text": "@Override\r\n\t\t\tpublic String getContentType() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "a312ebaf2cb07d9fe569f6625376493e", "score": "0.47449237", "text": "@Override\r\n\t\t\tpublic String getContentType() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "90a01073e163731ca98b13c93e57e38e", "score": "0.47391284", "text": "public void testPreserveParameterEntitiesInInternalDTDSubset() \n throws ParsingException, IOException {\n \n String data = \"<!DOCTYPE doc [\\n\" \n + \"<!ENTITY % e 'INCLUDE'>]><doc />\";\n Document doc = builder.build(data, null);\n String subset = doc.getDocType().getInternalDTDSubset();\n assertEquals(\" <!ENTITY % e \\\"INCLUDE\\\">\\n\", subset);\n \n }", "title": "" }, { "docid": "e7665a05b407f8fba83bee48269bea75", "score": "0.473364", "text": "@Test\n\tpublic void createContentWithInvalidMimeType() throws Exception {\n\t\tString createContentReq = \"{\\\"request\\\": {\\\"content\\\": {\\\"name\\\": \\\"Unit Test\\\",\\\"code\\\": \\\"unit.test\\\",\\\"mimeType\\\": \\\"pdf\\\",\\\"contentType\\\":\\\"Resource\\\"}}}\";\n\t\tString path = basePath + \"/create\";\n\t\tactions = mockMvc.perform(MockMvcRequestBuilders.post(path).contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.header(\"X-Channel-Id\", \"channelKA\").content(createContentReq));\n\t\tAssert.assertEquals(400, actions.andReturn().getResponse().getStatus());\n\t\tResponse resp = getResponse(actions);\n\t\tAssert.assertEquals(\"ERR_GRAPH_ADD_NODE_VALIDATION_FAILED\", resp.getParams().getErr());\n\t\tAssert.assertEquals(\"CLIENT_ERROR\", resp.getResponseCode().toString());\n\t}", "title": "" }, { "docid": "21497d2707ad0d2c479b731e399dda2b", "score": "0.4729622", "text": "public MultipartBody mo132883a() {\n if (!this.f113212c.isEmpty()) {\n return new MultipartBody(this.f113210a, this.f113211b, this.f113212c);\n }\n throw new IllegalStateException(\"Multipart body must have at least one part.\");\n }", "title": "" }, { "docid": "112410b53ecf9cbb8b4ae74fcbe8ec79", "score": "0.4723924", "text": "BodySentences getBody();", "title": "" }, { "docid": "9d2e7c61222bfaaee5aa61c9b5e4b176", "score": "0.47219476", "text": "public DetailModel validateContentTypeSMIMETypeOptional(String contentTypeSMIME) {\r\n\t\tString rfc = \"RFC 5751: 3.2;http://tools.ietf.org/html/rfc5751#section-3.2;RFC 5751: 3.3;http://tools.ietf.org/html/rfc5751#section-3.3\";\r\n\t\tif(contentTypeSMIME.contains(\"smime-type\")) {\r\n\t\t\tcontentTypeSMIME = contentTypeSMIME.split(\"smime-type=\")[1];\r\n\t\t\tif(contentTypeSMIME.contains(\";\")) {\r\n\t\t\t\tcontentTypeSMIME = contentTypeSMIME.split(\";\")[0];\r\n\t\t\t}\r\n\t\t\tcontentTypeSMIME = contentTypeSMIME.replace(\"\\\"\", \"\");\r\n\t\t\tif (contentTypeSMIME.equals(\"enveloped-data\")) {\r\n\t\t\t\treturn new DetailModel(\"202\", \"Content-Type S/MIME Type\", contentTypeSMIME, \"Should be enveloped-data\", rfc, Status.SUCCESS);\r\n\t\t\t} else {\r\n\t\t\t\treturn new DetailModel(\"202\", \"Content-Type S/MIME Type\", contentTypeSMIME, \"Should be enveloped-data\", rfc, Status.ERROR);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"202\", \"Content-Type S/MIME Type\", \"Not present: \" + contentTypeSMIME, \"Should be enveloped-data\", rfc, Status.WARNING);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "90825539477ebda00a15308348d1f6ad", "score": "0.47164702", "text": "public String getBody() {\n return body;\n\n }", "title": "" }, { "docid": "3c502d63233d6249cb5ea55f86f0afae", "score": "0.4712432", "text": "public DetailModel validateNonMIMEMessageHeaders(PartModel part, String nonMIMEHeader) {\r\n\t\tString rfc = \"-\";\r\n\t\tif(!part.isStatus()) {\r\n\t\t\treturn new DetailModel(\"199\", \"Non-MIME Message Headers\", \"Some Message Headers are not valid\", \"All Non-MIME Message Headers must be valid\", rfc, Status.ERROR);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"199\", \"Non-MIME Message Headers\", \"All Message Headers are valid\", \"All Non-MIME Message Headers must be valid\", rfc, Status.SUCCESS);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "37e1fb40aac3303f40cc4338cc516875", "score": "0.4702729", "text": "public DetailModel validateContentTransferEncoding(String contentTransfertEncoding) {\r\n\t\tString rfc = \"RFC 5751: Section 3.1.3;http://tools.ietf.org/html/rfc5751#section-3.1.3\";\r\n\t\tif (contentTransfertEncoding.equals(\"quoted-printable\") || contentTransfertEncoding.equals(\"base64\") || contentTransfertEncoding.equals(\"7-bit\")){\r\n\t\t\treturn new DetailModel(\"206\", \"Content-Transfer-Encoding\", contentTransfertEncoding, \"Must be quoted-printable, base64 or 7-bit\", rfc, Status.SUCCESS);\r\n\t\t} else if(contentTransfertEncoding.equals(\"\")) {\r\n\t\t\treturn new DetailModel(\"206\", \"Content-Transfer-Encoding\", \"Not present\", \"Must be quoted-printable, base64 or 7-bit\", rfc, Status.WARNING);\r\n\t\t} else {\r\n\t\t\treturn new DetailModel(\"206\", \"Content-Transfer-Encoding\", contentTransfertEncoding, \"Must be quoted-printable, base64 or 7-bit\", rfc, Status.ERROR);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "1a36c261357b2ae5a128589cdb7d5cdb", "score": "0.4694137", "text": "@Override\r\n\tpublic byte[] sign(InputStream content) throws IOException {\n\t\tbyte[] pdf = null;\r\n\t\tString body=msgbody;\r\n\t\tSystem.out.println(\"samkau::\"+body);\r\n\t\ttry {\r\n\t\t \r\n\t\t\t\tXMLConverter XMLconverter = new XMLConverter();\r\n\t\t\t\tEsignResp responce = new EsignResp();\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tresponce = (EsignResp) XMLconverter.convertFromXMLToObject(responce, body);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t}\t\r\n\r\n\t\t\tgr = new GenericResponce();\r\n\r\n\t\t\r\n\r\n\t\t\tif (responce.getStatus().equalsIgnoreCase(\"1\")) {\r\n\r\n\t\t\t\tResponce = 1;\r\n\r\n\t\t\t\tfor (int i = 0; i < responce.getSignatures().getDocSignature().length; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tpdf = responce.getSignatures().getDocSignature()[i].getValue();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tgr.setStatus(responce.getErrMsg());\r\n\t\t\t\tgr.setStatuscode(responce.getStatus());\r\n\t\t\t\tgr.setReasoncode(responce.getErrCode());\r\n\t\t\t\tgr.setReason(responce.getResCode());\r\n\t\t\t\tgr.setTransactionid(responce.getTxn());\r\n\t\t\t\tgr.setTimestamp(responce.getTs());\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tResponce = 0;\r\n\t\t\t\tpdf = \"\".getBytes();\r\n\t\t\t\tgr.setStatus(responce.getErrMsg());\r\n\t\t\t\tgr.setStatuscode(responce.getStatus());\r\n\t\t\t\tgr.setReasoncode(responce.getErrCode());\r\n\t\t\t\tgr.setReason(responce.getResCode());\r\n\t\t\t\tgr.setTransactionid(responce.getTxn());\r\n\t\t\t\tgr.setTimestamp(responce.getTs());\r\n\r\n\t\t\t\treturn pdf;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t\treturn pdf;\r\n\t}", "title": "" }, { "docid": "6c11816051fda9dfbd3186ac3392ddfa", "score": "0.4694135", "text": "int curl_mime_encoder(PointerByReference part, String encoding);", "title": "" }, { "docid": "982dd98774a93281bfc618c465b599bd", "score": "0.46940082", "text": "@Override\r\n\tpublic String getContentType() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "706539ca354d187ba520967911cb57d6", "score": "0.46911073", "text": "public String getBody() {\n\treturn this.body;\n }", "title": "" }, { "docid": "c3a69c9efc2925b8813af3f2c2bd3541", "score": "0.46910477", "text": "MimeMessage createMimeMessage();", "title": "" }, { "docid": "00a75980c8d342c43431dce87173c94d", "score": "0.46815255", "text": "public String getBody() {\n return body;\n }", "title": "" }, { "docid": "00a75980c8d342c43431dce87173c94d", "score": "0.46815255", "text": "public String getBody() {\n return body;\n }", "title": "" }, { "docid": "00a75980c8d342c43431dce87173c94d", "score": "0.46815255", "text": "public String getBody() {\n return body;\n }", "title": "" }, { "docid": "205c8775694d3ca5da473f8973f299d6", "score": "0.46791556", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The content of the attachment.\")\n @JsonIgnore\n\n public File getContent() {\n return content.orElse(null);\n }", "title": "" }, { "docid": "e7b33658ba8bacbe54250353cefe127d", "score": "0.46765068", "text": "public void sendDispositionHeader(OutputStream outputStream) throws IOException {\r\n super.sendDispositionHeader(outputStream);\r\n String name = this.content.getName();\r\n if (name != null) {\r\n outputStream.write(FILE_NAME_BYTES);\r\n outputStream.write(Part.QUOTE_BYTES);\r\n outputStream.write(MultipartRequestEntity.getAsciiBytes(name));\r\n outputStream.write(Part.QUOTE_BYTES);\r\n }\r\n }", "title": "" }, { "docid": "68c19d1a3a9e88f9222d3374bfd6ea1d", "score": "0.46759555", "text": "public String getBinaryMimeType();", "title": "" }, { "docid": "e5c753dece0177f221389c6d722e2f00", "score": "0.46722513", "text": "java.lang.String getContentType();", "title": "" }, { "docid": "49793a5774334937f9d6d1a9a8afb63b", "score": "0.46628207", "text": "public abstract String getMimeType ( );", "title": "" }, { "docid": "a7842d935037f765c054748740b3bdb4", "score": "0.46619526", "text": "public String getBody() {\n return this.body;\n }", "title": "" }, { "docid": "82366e9481cef8d9feb95cc044d13131", "score": "0.465846", "text": "@Override\n\t\tpublic String getContentType() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "7a7769b55a7f569628d42817214cf2cc", "score": "0.46583927", "text": "public String getContentDisposition() {\n\t\treturn contentDisposition;\n\t}", "title": "" }, { "docid": "ae509005cccddc8387e81342eab26a1e", "score": "0.4655531", "text": "com.google.protobuf.ByteString getContent();", "title": "" }, { "docid": "5c912d86335dc61e9a119ad20a51ad68", "score": "0.46469086", "text": "private void buildMimeMultipart(URI serviceUri) {\n mediaBatchOperations = null;\n CreateBatchOperation createJobBatchOperation = CreateBatchOperation\n .create(serviceUri, this);\n\n try {\n mediaBatchOperations = new MediaBatchOperations(serviceUri);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n } catch (ParserConfigurationException e) {\n throw new RuntimeException(e);\n }\n\n mediaBatchOperations.addOperation(createJobBatchOperation);\n for (Task.CreateBatchOperation taskCreateBatchOperation : taskCreateBatchOperations) {\n mediaBatchOperations.addOperation(taskCreateBatchOperation);\n }\n\n try {\n mimeMultipart = mediaBatchOperations.getMimeMultipart();\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n\n this.contentType = mediaBatchOperations.getContentType();\n this.fresh = false;\n }", "title": "" }, { "docid": "a50b31bde63e4af4130cf2c30822e772", "score": "0.46466753", "text": "PointerByReference curl_mime_addpart(PointerByReference mime);", "title": "" }, { "docid": "a033171589e964593402e326258729b1", "score": "0.46434632", "text": "public boolean hasMimes() {\n return fieldSetFlags()[0];\n }", "title": "" }, { "docid": "689b169c3457f4c88335e01d0cc1440b", "score": "0.46424955", "text": "public ISMTPMessage setBody(String strBody);", "title": "" }, { "docid": "2fb7c1dc85c469d13b5222d47a925a37", "score": "0.4639319", "text": "@Override\r\n\t\t\tpublic void setContentType(String arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a5c19a716d936d7c98c41da87f304a0b", "score": "0.46386048", "text": "public List<MIMEEntity> getMimeEntities();", "title": "" }, { "docid": "3d7453f745686175148864f0cc605cc9", "score": "0.46362045", "text": "ContentType getIncomingContentType();", "title": "" }, { "docid": "ae9747a58c0a1d434f9908a8b5a3d90c", "score": "0.46290436", "text": "protected void streamToResponse(byte[] fileContents, String fileName, String fileContentType, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = null;\n try {\n baos = new ByteArrayOutputStream(fileContents.length);\n baos.write(fileContents);\n WebUtils.saveMimeOutputStreamAsFile(response, fileContentType, baos, fileName);\n } finally {\n try {\n if (baos != null) {\n baos.close();\n baos = null;\n }\n } catch (IOException ioEx) {\n LOG.error(\"Error while downloading attachment\");\n throw new RuntimeException(\"IOException occurred while downloading attachment\", ioEx);\n }\n }\n }", "title": "" }, { "docid": "c8b387317eb52aa906520b2cc2c6612a", "score": "0.4625937", "text": "public byte[] bodyAsBytes();", "title": "" }, { "docid": "9536712f2ec2bab453ab136f7bfe6d16", "score": "0.46235695", "text": "int curl_mime_filedata(PointerByReference part, Pointer filename);", "title": "" }, { "docid": "12f392e4780ff34470c99ebcdb33a41a", "score": "0.4614467", "text": "@Override\n public String getBody()\n {\n return body.toString();\n }", "title": "" }, { "docid": "99b622ee2a064a57fcd0cf175045c80c", "score": "0.4613665", "text": "private String getResponseType(String formatId) {\n\t\tif (formatId.equals(DatasetsDatabase.SDO_FORMAT)) // netcdf\n\t\t\treturn \"application/octet-stream\";\n\t\telse if (formatId.equals(DatasetsDatabase.SMO_FORMAT)) // iso19115\n\t\t\treturn \"text/xml\";\n\t\telse if (formatId.equals(DatasetsDatabase.ORE_FORMAT)) // http ...\n\t\t\treturn \"text/xml\";\n\t\telse\n\t\t\treturn \"text/plain\";\n\t}", "title": "" }, { "docid": "75e083ae5115c468c96589a995270e33", "score": "0.46091616", "text": "public void setBody(String tmp) {\n this.body = tmp;\n }", "title": "" }, { "docid": "d25f909f7c12e09153b235f7e5ccf4c8", "score": "0.46076122", "text": "ByteArrayInputStream generate(HrDocumentRequest document);", "title": "" }, { "docid": "be57dc4539d034ced51deea38998fe75", "score": "0.4604355", "text": "public void m110h(String str) {\n m94b(\"Content-Type\", str);\n }", "title": "" }, { "docid": "14cfcd1082e3becfa18962368599960e", "score": "0.45999992", "text": "@Override\n\tpublic InputStream getBody() throws IOException {\n\t\treturn fis;\n\t}", "title": "" }, { "docid": "fa0819d7e8c2ff2fba9b4f102338a6ad", "score": "0.4598593", "text": "@Test\n public void testDoesNotAddContentEncodingToRequestIfNotPresent() throws Exception {\n testDoesNotAddHeaderToRequestIfNotPresent(\"Content-Encoding\");\n }", "title": "" }, { "docid": "00cffefef1566e51178105d166f4f28a", "score": "0.4594564", "text": "public CapexRequestAttachmentContent(Integer id) {\r\n super(id);\r\n }", "title": "" }, { "docid": "b22233d5a3594088887a0b2d09f9b3ac", "score": "0.45934722", "text": "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.blackboard.bbdn.bbws.generated.CalendarWSStub.SavePersonalCalendarItem param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.blackboard.bbdn.bbws.generated.CalendarWSStub.SavePersonalCalendarItem.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "title": "" }, { "docid": "7c7f4eb99b13c1aaadc7b56312d00b2e", "score": "0.45933577", "text": "public void readContent(java.io.OutputStream r8) throws java.io.IOException {\n /*\n r7 = this;\n r2 = 1;\n r1 = 0;\n r0 = r7.consumed;\n if (r0 == 0) goto L_0x000e;\n L_0x0006:\n r0 = new java.lang.RuntimeException;\n r1 = \"Content already consumed!\";\n r0.<init>(r1);\n throw r0;\n L_0x000e:\n r0 = \"Content-Type\";\n r7.getHeader(r0);\n r0 = \"base64\";\n r3 = \"Content-Transfer-Encoding\";\n r3 = r7.getHeader(r3);\n r0 = r0.equals(r3);\n if (r0 == 0) goto L_0x004d;\n L_0x0021:\n r0 = new java.io.ByteArrayOutputStream;\n r0.<init>();\n L_0x0026:\n r0 = r7.readLine();\n if (r0 != 0) goto L_0x0034;\n L_0x002c:\n r0 = new java.io.IOException;\n r1 = \"Unexpected EOF\";\n r0.<init>(r1);\n throw r0;\n L_0x0034:\n r1 = r7.boundary;\n r1 = r0.startsWith(r1);\n if (r1 == 0) goto L_0x0049;\n L_0x003c:\n r1 = \"--\";\n r0 = r0.endsWith(r1);\n if (r0 == 0) goto L_0x0046;\n L_0x0044:\n r7.eof = r2;\n L_0x0046:\n r7.consumed = r2;\n return;\n L_0x0049:\n org.kobjects.base64.Base64.decode(r0, r8);\n goto L_0x0026;\n L_0x004d:\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r3 = \"\\r\\n\";\n r0 = r0.append(r3);\n r3 = r7.boundary;\n r0 = r0.append(r3);\n r4 = r0.toString();\n r0 = r1;\n L_0x0063:\n r3 = r7.is;\n r5 = r3.read();\n r3 = -1;\n if (r5 != r3) goto L_0x0074;\n L_0x006c:\n r0 = new java.lang.RuntimeException;\n r1 = \"Unexpected EOF\";\n r0.<init>(r1);\n throw r0;\n L_0x0074:\n r3 = (char) r5;\n r6 = r4.charAt(r0);\n if (r3 != r6) goto L_0x0088;\n L_0x007b:\n r0 = r0 + 1;\n r3 = r4.length();\n if (r0 != r3) goto L_0x0063;\n L_0x0083:\n r0 = r7.readLine();\n goto L_0x003c;\n L_0x0088:\n if (r0 <= 0) goto L_0x00a0;\n L_0x008a:\n r3 = r1;\n L_0x008b:\n if (r3 >= r0) goto L_0x0098;\n L_0x008d:\n r6 = r4.charAt(r3);\n r6 = (byte) r6;\n r8.write(r6);\n r3 = r3 + 1;\n goto L_0x008b;\n L_0x0098:\n r0 = (char) r5;\n r3 = r4.charAt(r1);\n if (r0 != r3) goto L_0x00a7;\n L_0x009f:\n r0 = r2;\n L_0x00a0:\n if (r0 != 0) goto L_0x0063;\n L_0x00a2:\n r3 = (byte) r5;\n r8.write(r3);\n goto L_0x0063;\n L_0x00a7:\n r0 = r1;\n goto L_0x00a0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.kobjects.mime.Decoder.readContent(java.io.OutputStream):void\");\n }", "title": "" }, { "docid": "40a62a37f16c5b225e07779cd66a8da7", "score": "0.4590632", "text": "public void testPreserveExternalParameterEntityDeclaration() \n throws ParsingException, IOException {\n \n Document doc = builder.build(new File(inputDir, \"pe.xml\"));\n DocType doctype = doc.getDocType();\n assertEquals(\" <!ENTITY % ccl SYSTEM \\\"pe.txt\\\">\\n\", doctype.getInternalDTDSubset()); \n }", "title": "" }, { "docid": "106f52dd679744764ac40ac973a69dcb", "score": "0.45864007", "text": "@Transient\n public String getBodyText() {\n return (String) getJobConfiguration().getParameters().get(BODY_TEXT_PARAMETER_NAME);\n }", "title": "" }, { "docid": "b4e05251c9c8f6bf4eb8ea21b8021f65", "score": "0.45838988", "text": "String stringBody();", "title": "" }, { "docid": "81fda59efeb277384c19a1160f5c2617", "score": "0.45829982", "text": "default String getBodyAsText() {\n return getBody().toString();\n }", "title": "" } ]
b73b41f883902e6beef0a1b2e7e4abe4
Sets the color of the line
[ { "docid": "8ee490d0c32924551b8453a4697239e2", "score": "0.58879215", "text": "public void setColor(MTColor color) {\r\n this.color = color;\r\n }", "title": "" } ]
[ { "docid": "3fb286bfa1aedabcea3fe77335f82e39", "score": "0.8091618", "text": "public void setLineColor(Color line)\n\t\t{\n\t\t\tthis.line = line;\n\t\t}", "title": "" }, { "docid": "c9e5a2029df4b2c87a64fabd1785aae3", "score": "0.79403734", "text": "public void setLineColor(Color lineColor) {\n this.lineColor = lineColor;\n }", "title": "" }, { "docid": "2c86aca948c811ceb5518b8bc50e9fab", "score": "0.7832139", "text": "public void setLineColor( Color color )\n\t{\n\tlineColor = color;\n\trepaint();\n\t}", "title": "" }, { "docid": "d9f86718c66bb437e7258b9a7425efa4", "score": "0.77753156", "text": "public void setLineColor(Color lineColor) {\n\t\tthis.lineColor = lineColor;\n\t}", "title": "" }, { "docid": "d9f86718c66bb437e7258b9a7425efa4", "score": "0.77753156", "text": "public void setLineColor(Color lineColor) {\n\t\tthis.lineColor = lineColor;\n\t}", "title": "" }, { "docid": "547c00f22b216e764d34b6f448e0484a", "score": "0.7359477", "text": "public void setLineColor(int color) {\n this.radiusPaint.setColor(color);\n this.endcapPaint.setColor(color);\n }", "title": "" }, { "docid": "4f8fd65f9668186128d7e801fa035266", "score": "0.731641", "text": "public void setLineColor(Color c) {\n\t\tlnColor = c;\n\t\trepaint();\n\t}", "title": "" }, { "docid": "db2cefa48b95a010ced6b67e815ddb24", "score": "0.71045595", "text": "public void setStroke(Paint color){\n\t\tthis.line_color = color;\n\n\t\tfor(Line line: this.graph_lines){\n\t\t\tline.setStroke(line_color);\n\t\t}\n\t}", "title": "" }, { "docid": "a15bf7f4a6ccb9978d5189721515e903", "score": "0.70980954", "text": "public Color getLineColor() {\n return lineColor;\n }", "title": "" }, { "docid": "21f7e7fa8eb6ecd9d3f03933921a40ce", "score": "0.70532787", "text": "@JSProperty(\"lineColor\")\n void setLineColor(String value);", "title": "" }, { "docid": "3ab39384bc8682bc9f0c09ad4d1e4663", "score": "0.69677454", "text": "public void setLineColor(@ColorInt int lineColor) {\n graphNodeContainerView.setLineColor(lineColor);\n }", "title": "" }, { "docid": "e63a90bf6ee8fb9246d6d93bc0824505", "score": "0.69540477", "text": "public Color getLineColor() {\n\t\treturn lineColor;\n\t}", "title": "" }, { "docid": "e63a90bf6ee8fb9246d6d93bc0824505", "score": "0.69540477", "text": "public Color getLineColor() {\n\t\treturn lineColor;\n\t}", "title": "" }, { "docid": "4aa30965a6c5f032118e641f0a321355", "score": "0.69356817", "text": "public Color getLineColor()\n\t\t{\n\t\t\treturn line;\n\t\t}", "title": "" }, { "docid": "762b90cf84c344d6ffbfc2b0ec0a797c", "score": "0.6924691", "text": "public void setLineColor(Color c) {\n\t\tcolor = c;\n\t\thighlightColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), 150);\n\t}", "title": "" }, { "docid": "4712dc9b65df91607b9e3ca01179aa29", "score": "0.6819594", "text": "public void setLinesColor(Color linesColor) {\n\t\tthis.linesColor = linesColor;\n\t\trepaint();\n\t}", "title": "" }, { "docid": "487de25e2f5792f0f48c25b67044660d", "score": "0.66987383", "text": "public void setLineStyle(int style) {\n lineStyle = style;\n }", "title": "" }, { "docid": "6d8576feee5f34e22708a18514d88c7d", "score": "0.6595534", "text": "public void setGridLineColor(Color c);", "title": "" }, { "docid": "c4f1fd80fa31eb4ef229176e73ba70b1", "score": "0.6470768", "text": "void setLin(org.openxmlformats.schemas.drawingml.x2006.main.CTLinearShadeProperties lin);", "title": "" }, { "docid": "c49f5e16601a2fbb5f65acee82f25579", "score": "0.6440783", "text": "public void drawLine(int x, int y, int x2, int y2, int color);", "title": "" }, { "docid": "db4147e1857e3516b46b1f439fc190ad", "score": "0.64235485", "text": "public void setLifelineColor(String lifelineColor) {\r\n\t\tthis.lifelineColor = lifelineColor;\r\n\t}", "title": "" }, { "docid": "d7f8e9f244faceffc4fb71c9e612cff4", "score": "0.6422258", "text": "public void setPaintColor(int color) {\r\n currentColor = color;\r\n }", "title": "" }, { "docid": "09ff1d500fb36501232b1118efdb582a", "score": "0.6416677", "text": "@Override\n\tpublic void setColor(int color) {}", "title": "" }, { "docid": "db0538daac04016f8b4cfcbe30d584b5", "score": "0.639907", "text": "public void setStrokeColor(int i) {\n this.f2971a.mo3522b(i);\n }", "title": "" }, { "docid": "7020f474bb78c39b6094840663bde593", "score": "0.6376832", "text": "public void setColor(int color);", "title": "" }, { "docid": "4f8d1c27570d699d9bbccc1211d23ca7", "score": "0.63609946", "text": "private void beforeLine(float x, float y) {\n mLineColor = mColor;\n }", "title": "" }, { "docid": "40961270eb23fbc8379542bf318bdc4b", "score": "0.63582605", "text": "public void setColor(Color c)\r\n {\n }", "title": "" }, { "docid": "c1425aa6a50d49782f623c7475cf9874", "score": "0.63380325", "text": "public void setColor(Color color);", "title": "" }, { "docid": "c1425aa6a50d49782f623c7475cf9874", "score": "0.63380325", "text": "public void setColor(Color color);", "title": "" }, { "docid": "c0e8dbe47fbed9378b416b88a3ab3ec4", "score": "0.63371235", "text": "String getLineColor();", "title": "" }, { "docid": "518c80b86719ea5698d4baff21714a3d", "score": "0.6335557", "text": "public void setStrokeColor(int i) {\n this.f10848f.mo14541a(i);\n }", "title": "" }, { "docid": "bf60d1434d5a930c36c6af14b68b93fe", "score": "0.6332808", "text": "protected void setLineColor(Class<? extends FamixAssociation> associationType) {\n setLineColor(EdgeColorManager.getColor(associationType));\n }", "title": "" }, { "docid": "b5b38271651c108005c3ebfb75a8d776", "score": "0.6321542", "text": "public void setColor(Color c);", "title": "" }, { "docid": "5ef58ddccd811cef6bd33355779e32f9", "score": "0.63068336", "text": "public void setColor(int color) {\n paint.setColor(color);\n }", "title": "" }, { "docid": "6cfa81fbfe16206a006f913b71189c8e", "score": "0.63026756", "text": "public static void drawLine(double startX, double startY, double endX, double endY, EColors color) { drawLine(startX, startY, endX, endY, 2, color.c()); }", "title": "" }, { "docid": "962b0f0f9f76a25e128499d44d2f1af0", "score": "0.62903666", "text": "@Override\n public void setOnFastChooseColorListner(int position, int color) {\n selectColor = color;\n selectedColor = String.format(\"#%06X\", (0xFFFFFF & selectColor));\n lineList = line.getPoints();\n line.color(selectColor);\n Polyline path = mMap.addPolyline(line);\n path.setPoints(lineList);\n Toast.makeText(getBaseContext(), selectedColor, Toast.LENGTH_LONG).show();\n editor.putInt(\"color\", selectColor);\n editor.apply();\n colorPicker.dismissDialog();\n }", "title": "" }, { "docid": "ce92564268607cf1effe4765250300d3", "score": "0.62565976", "text": "public void setColor(int color) {\n\t}", "title": "" }, { "docid": "f9bb43eca8c3b6ea1903dd54785e3151", "score": "0.62435246", "text": "void setColor(Color color);", "title": "" }, { "docid": "b1a834541e564db671f38a80b4beda92", "score": "0.62402445", "text": "public void setColor(Color c) {\r\n this.color = c;\r\n }", "title": "" }, { "docid": "ac9c868306c630fe217f08388078e717", "score": "0.623051", "text": "public void setColor(int c){\n this.color = c;\n }", "title": "" }, { "docid": "571c79d7255dfc503c6bb73ca49ca748", "score": "0.6206549", "text": "void setColor(Color color) {\n color = color;\n }", "title": "" }, { "docid": "120ce55268d02391b22edaded6d80ba5", "score": "0.6201484", "text": "void setColor(Color c);", "title": "" }, { "docid": "120ce55268d02391b22edaded6d80ba5", "score": "0.6201484", "text": "void setColor(Color c);", "title": "" }, { "docid": "120ce55268d02391b22edaded6d80ba5", "score": "0.6201484", "text": "void setColor(Color c);", "title": "" }, { "docid": "5c06a767496432b2735e5d4d0bdcc308", "score": "0.6181186", "text": "public void setColor(Color c){\n\t\tcolor = c;\n\t}", "title": "" }, { "docid": "3fd6c7f2ea590cb250d1ea8bce782eb2", "score": "0.61666954", "text": "@FXML\n\tpublic void setColorRed() {\n\t\thomeGC.setStroke(Color.color(.77, .13, .2));\n\t\tawayGC.setStroke(Color.color(.77, .13, .2));\n\t}", "title": "" }, { "docid": "4fa87057e492cd529687bd37b7567b0d", "score": "0.61644065", "text": "public void setColor(Color c){\r\n\t\t\r\n\t\tthis.color = c;\r\n\t}", "title": "" }, { "docid": "4fa0ffb4a320d0a7fcaf040910fceb06", "score": "0.61452925", "text": "public void setColor(String c) {\n color = c;\n }", "title": "" }, { "docid": "c18b06021f9373c7b0e2ece1b2f38e6b", "score": "0.61377317", "text": "public void setColor(Color arg0) {\n\t\tdebug();\n\t}", "title": "" }, { "docid": "58871e9dcce675adb3093a92b5ddd5d9", "score": "0.61309034", "text": "public void setColor(String color);", "title": "" }, { "docid": "f9dbe0868d494275aad8ea6c32ff50b6", "score": "0.61253595", "text": "public void setColor(Color color) {\r\n this.color = color;\r\n }", "title": "" }, { "docid": "10b2b01fcb5981ee17bea50fa338b42c", "score": "0.61083937", "text": "public abstract void setPenColor(double d);", "title": "" }, { "docid": "e2bbff47fbf0c605923465cec0fd583e", "score": "0.6102456", "text": "private void redrawLineYellow() {\n\n mMap.clear(); //clears all Markers and Polylines\n\n PolylineOptions options = new PolylineOptions().width(8).color(Color.YELLOW).geodesic(true);\n for (int i = 0; i < pointsYellow.size(); i++) {\n LatLng point = pointsYellow.get(i);\n options.add(point);\n }\n line = mMap.addPolyline(options); //add Polyline\n }", "title": "" }, { "docid": "082b2082de76dde7de423a287a71bb07", "score": "0.6095842", "text": "public void setLineStrokeWidth(float lineStrokeWidth) {\n\t\tthis.lineStrokeWidth = lineStrokeWidth;\n\t\tlinePaint.setStrokeWidth(this.scale * lineStrokeWidth);\n\t}", "title": "" }, { "docid": "5b395d38caced0a01a23322ff1b451c8", "score": "0.6093574", "text": "public ColoredLine(final Line2D.Double the_line,\n final Color the_color,\n final Stroke the_stroke) {\n super((Shape) the_line.clone(), the_color, the_stroke);\n }", "title": "" }, { "docid": "0f4249ee0b12e08014ed84da30dc6edb", "score": "0.6079266", "text": "public void setColor(Color color)\r\n\t {\r\n\t\t this.color = color;\r\n\t }", "title": "" }, { "docid": "14f11bfdbee18c5070ea4fe39aeccfa4", "score": "0.60779905", "text": "public void setPen(int color)\n {\n pen = color;\n }", "title": "" }, { "docid": "d4a7ce42869c121b9e99c1dec03cd1f4", "score": "0.6069778", "text": "public void setColor(String in_color) { this.__color = in_color; }", "title": "" }, { "docid": "0ddab047136442acf1386d2b1d15ef92", "score": "0.60658383", "text": "public void setStrokeColor(Color stroke) {\r\n this.strokeColor = stroke;\r\n }", "title": "" }, { "docid": "163390c12558a48e710e64e758d9c9a0", "score": "0.60625756", "text": "void setColor(Color color) {\n this.color = color;\n }", "title": "" }, { "docid": "163390c12558a48e710e64e758d9c9a0", "score": "0.60625756", "text": "void setColor(Color color) {\n this.color = color;\n }", "title": "" }, { "docid": "d57d085ff802ef9ae32c73792c50d3da", "score": "0.60443777", "text": "@Override\n\tpublic void setColor(Color c) {\n\t\tthis.color=c;\n\t}", "title": "" }, { "docid": "6051734a9a2e65435924806973e45357", "score": "0.60408247", "text": "public void setColor() {\n if (over) {\n current_color = color(127, 134, 143);\n if (!drawHand) {\n cursor(HAND);\n drawHand = true;\n }\n } else {\n\n if (trip) {\n current_color = color(0, 255, 0); //trip switch bar color\n } else {\n current_color = color(255, 0, 0); //untrip switch bar color\n }\n\n if (drawHand) {\n cursor(ARROW);\n drawHand = false;\n }\n }\n }", "title": "" }, { "docid": "d0875c09564689bb664be8a2fbff0e9a", "score": "0.6036521", "text": "public void setColor(Color color)\r\n {\r\n myColor = color;\r\n }", "title": "" }, { "docid": "c820919bd9f476ee1917245dd5f98505", "score": "0.60359764", "text": "public void setColor(int color) {\n this.color = color;\n }", "title": "" }, { "docid": "b5bcc2dc4617a6833759c11957c21cb8", "score": "0.6027151", "text": "public void setColor(Color c)\n {\n m_color = c;\n }", "title": "" }, { "docid": "fd24ddc883f002cd8db452975bf8e8a1", "score": "0.60169023", "text": "@Override\n public void changeColor(Color color) {\n this.endS.changeColor(color);\n }", "title": "" }, { "docid": "839482980f1616981347ec3e3d77878c", "score": "0.6015256", "text": "@SuppressWarnings(\"deprecation\")\n public void setLineColorResource(int colorResId) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n setLineColor(getResources().getColor(colorResId, getContext().getTheme()));\n } else {\n setLineColor(getResources().getColor(colorResId));\n }\n }", "title": "" }, { "docid": "b67df7f7de98a37d6d612e00ad449dc6", "score": "0.6007293", "text": "public void setLineSelectorColor(Color lineSelectorColor) {\r\n\t\tthis.lineSelectorColor = lineSelectorColor;\r\n\t\tlineSelector.setBackgroundColor(lineSelectorColor); //update color\r\n\t}", "title": "" }, { "docid": "acf73225947933e0ef360a5a43cddd2a", "score": "0.60027456", "text": "public void setColor(Color c) {\n textColor = c;\n }", "title": "" }, { "docid": "17fcc11f4a9a88b85d6d0ec734761368", "score": "0.5999774", "text": "public void setColor(Color color){\r\n myColor = color;\r\n }", "title": "" }, { "docid": "45f5d83a8d55ee0bc0fd6dba8733c2c6", "score": "0.5999491", "text": "public void setColor(float r, float g, float b, float a);", "title": "" }, { "docid": "930cb677d7b56c39f68a1f7828c8720c", "score": "0.5987985", "text": "public LineEditText(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n mrect = new Rect();\n paint = new Paint();\n\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2);\n paint.setColor(0xFF00574B); // COLOR OF THE LINES\n }", "title": "" }, { "docid": "4f9bb9cc78d0038bb433c3e51d1c817c", "score": "0.5986412", "text": "public void setColor(){\n \n // set color\n // if the pizza's xpoint plus pizzaSlice's width\n // divided by 2 greather than the\n // end point of vline and ypoint plus the\n // height of pizza divided by 2 less than the point\n if(pizzaSlice.getX()+pizzaSlice.getWidth()/half >\n vline.getEnd().getX()\n && pizzaSlice.getY()+pizzaSlice.getHeight()/\n half< hline.getEnd().getY()){\n \n pizzaSlice.setColor(RGB);\n }\n \n // set color\n // if the pizza's xpoint plus pizzaSlice's width\n // divided by 2 less than the\n // end point of vline and ypoint plus the\n // height of pizza divided by 2 less than the point\n else if (pizzaSlice.getX()+pizzaSlice.getWidth()/\n half< vline.getEnd().getX() &&\n pizzaSlice.getY()+pizzaSlice.getHeight()/\n half<hline.getEnd().getY()){\n pizzaSlice.setColor(RGB1);\n }\n \n // set color\n // if the pizza's xpoint plus pizzaSlice's width\n // divided by 2 greather than the\n // end point of vline and ypoint plus the\n // height of pizza divided by 2 less than the point\n else if (pizzaSlice.getX()+pizzaSlice.getWidth()/\n half< vline.getEnd().getX() &&\n pizzaSlice.getY()+pizzaSlice.getHeight()/\n half>hline.getEnd().getY()){\n pizzaSlice.setColor(RGB2);\n }\n \n // set color\n // if the pizza's xpoint plus pizzaSlice's width\n // divided by 2 greather than the\n // end point of vline and ypoint plus the\n // height of pizza divided by 2 less than the point\n else if (pizzaSlice.getX()+pizzaSlice.getWidth()/half>\n vline.getEnd().getX() &&\n pizzaSlice.getY()+pizzaSlice.getHeight()/\n half>hline.getEnd().getY()){\n pizzaSlice.setColor(RGB3);\n }\n }", "title": "" }, { "docid": "665e30b994a26bc4f5e224eaa7fd7c06", "score": "0.5977527", "text": "public void setColor (String valor ){\n color= valor;\r\n \r\n }", "title": "" }, { "docid": "92a09df3af5c204845de9edc52476b3a", "score": "0.5977323", "text": "public void setCurrentLines(double line) {\n this.currentLines = line;\n }", "title": "" }, { "docid": "938870a5678d752e289bbafa17fef799", "score": "0.5975158", "text": "public void setColor(String col) {\n color = col;\n }", "title": "" }, { "docid": "4209221a67bf868c9156b85020197d92", "score": "0.5970305", "text": "@SuppressWarnings(\"UnusedReturnValue\")\n Builder setLine(int y, LcdImageLine line) {\n Objects.requireNonNull(line);\n lines.set(y, line);\n return this;\n }", "title": "" }, { "docid": "923dc3d59f973bf8e66a65fc10c42488", "score": "0.5964193", "text": "private void redrawLineRed() {\n\n mMap.clear(); //clears all Markers and Polylines\n\n PolylineOptions options = new PolylineOptions().width(8).color(Color.RED).geodesic(true);\n for (int i = 0; i < pointsRed.size(); i++) {\n LatLng point = pointsRed.get(i);\n options.add(point);\n }\n line = mMap.addPolyline(options); //add Polyline\n }", "title": "" }, { "docid": "51975e548f078773ac0a8393dba16f54", "score": "0.5950968", "text": "public void setColor(Color c) {\n\t\tthis.currentColor = c;\n\t}", "title": "" }, { "docid": "f34585f7d371cdb07dfb3da045484a9f", "score": "0.5948134", "text": "public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}", "title": "" }, { "docid": "4ab3137ad78bf89aefba1d0e58a882e3", "score": "0.5948007", "text": "private void redrawLineGreen() {\n\n //mMap.clear(); //clears all Markers and Polylines\n\n PolylineOptions options = new PolylineOptions().width(8).color(Color.GREEN).geodesic(true);\n for (int i = 0; i < pointsGreen.size(); i++) {\n LatLng point = pointsGreen.get(i);\n options.add(point);\n }\n line = mMap.addPolyline(options); //add Polyline\n }", "title": "" }, { "docid": "9d72c41fa18bc830dc7e655b99ec992e", "score": "0.5947532", "text": "private void redrawLineBlue() {\n\n //mMap.clear(); //clears all Markers and Polylines\n\n PolylineOptions options = new PolylineOptions().width(8).color(Color.BLUE).geodesic(true);\n for (int i = 0; i < pointsBlue.size(); i++) {\n LatLng point = pointsBlue.get(i);\n options.add(point);\n }\n line = mMap.addPolyline(options); //add Polyline\n }", "title": "" }, { "docid": "fc0f765810bebce91574a4fdecfc318e", "score": "0.5944448", "text": "public void setColor(int r, int g, int b, int a);", "title": "" }, { "docid": "89dc76b1ee5a194e52a9573d1b946a37", "score": "0.59309816", "text": "void setPrstClr(org.openxmlformats.schemas.drawingml.x2006.main.CTPresetColor prstClr);", "title": "" }, { "docid": "1cce707ee928ea7dfff180483682d98a", "score": "0.5922319", "text": "public void setColor(float r, float g, float b);", "title": "" }, { "docid": "71ba281fbf25715ad4436d61e21872b8", "score": "0.59103173", "text": "public void setColor(int r, int g, int b);", "title": "" }, { "docid": "3cf30b319bfc4fe11e1f21c63de61290", "score": "0.590553", "text": "public void setColor(Color newColor)\n {\n color = newColor;\n }", "title": "" }, { "docid": "3cf30b319bfc4fe11e1f21c63de61290", "score": "0.590553", "text": "public void setColor(Color newColor)\n {\n color = newColor;\n }", "title": "" }, { "docid": "2e0f081f261dc26e755a1d2ddbc6df06", "score": "0.58917034", "text": "public void setColor(Color color)\n\t{\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "7755850a8918ca6d2d283b72ec5367cc", "score": "0.58831996", "text": "public void setLineThickness(int thickness) {\n this.lineThickness = thickness;\n radiusPaint.setStrokeWidth(thickness);\n updateCircleRect();\n }", "title": "" }, { "docid": "affe9d87493777b1912f8610c919f3ec", "score": "0.58825374", "text": "@JSProperty(\"lineColor\")\n @Nullable\n String getLineColor();", "title": "" }, { "docid": "5703c16f03781645994982e8f8689220", "score": "0.58808696", "text": "@Override public Text setColor(Color color)\n {\n this.color = color;\n return this;\n }", "title": "" }, { "docid": "045b41aee9fda9cb4163fbff3f7dc859", "score": "0.5879535", "text": "private void drawLine(Graphics2D g2, int L, LineSegment lineSegment){\n GradientPaint redToBlue = new GradientPaint(0,0,Color.YELLOW,50, 0, Color.BLUE, true);\n g2.setPaint(redToBlue);\n float startPointX = (float) (lineSegment.p1().x()*L);\n float startPointY = (float) (lineSegment.p1().y()*L);\n float endPointX = (float) (lineSegment.p2().x()*L);\n float endPointY = (float) (lineSegment.p2().y()*L);\n g2.setStroke(new BasicStroke(3));\n g2.draw(new Line2D.Float(startPointX, startPointY, endPointX, endPointY));\n }", "title": "" }, { "docid": "e6fbf9499a664e4155aac919152c07c7", "score": "0.5875364", "text": "public void setColor(Color newColor) {\n color = newColor;\n }", "title": "" }, { "docid": "b1d539bc845d4dd32c0d89d18ebd2201", "score": "0.5867486", "text": "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "b1d539bc845d4dd32c0d89d18ebd2201", "score": "0.5867486", "text": "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "title": "" }, { "docid": "e4e0d5e08e4ae436dcb4327587c27d1b", "score": "0.5863325", "text": "public void setColor(int color){\n\t\tthis.color=color;\n\t\t\n\t}", "title": "" }, { "docid": "c70dd443d5bdd3fa08f6e8dc33ec680e", "score": "0.5851158", "text": "@Override\n\tpublic void setColor(int r, int g, int b) {\n\t\t\n\t}", "title": "" }, { "docid": "2064aa3af7c2eb7f758c7aadb23616b0", "score": "0.5839691", "text": "public void setColor(ModelColor color) {\n this.color = color;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "506f6b950cc85d453d3b4e95616a0cc8", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tchar c1 = sc.next().charAt(0);\r\n\t\tif(c1>=97 && c1<=123)\r\n\t\tSystem.out.println(Character.toUpperCase(c1));\r\n\t\telse\r\n\t\t\tSystem.out.println(Character.toLowerCase(c1));\r\n\t\tsc.close();\r\n\r\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
64313baa19fe3e04941a0d7263b3334f
This method was generated by MyBatis Generator. This method sets the value of the database column BASE_ROLE_MODULE.MODULE_ID
[ { "docid": "70904833fe96ae9d62d1ebc17e6f0973", "score": "0.5669953", "text": "public void setModuleId(String moduleId) {\n this.moduleId = moduleId == null ? null : moduleId.trim();\n }", "title": "" } ]
[ { "docid": "02301c12fca65930baeb6cdd4e556327", "score": "0.6043787", "text": "public void setModuleId(Integer moduleId) {\n this.moduleId = moduleId;\n }", "title": "" }, { "docid": "675bc26f5a58da08cdb29c69569dbdba", "score": "0.5789228", "text": "public void setMODULE(String MODULE) {\r\n this.MODULE = MODULE == null ? null : MODULE.trim();\r\n }", "title": "" }, { "docid": "675bc26f5a58da08cdb29c69569dbdba", "score": "0.5789228", "text": "public void setMODULE(String MODULE) {\r\n this.MODULE = MODULE == null ? null : MODULE.trim();\r\n }", "title": "" }, { "docid": "b0972e54e7f38f1527ecda5f695343a5", "score": "0.57234085", "text": "public Integer getModuleId() {\n return moduleId;\n }", "title": "" }, { "docid": "c2078dffbb958cec90f3b8635d784ab3", "score": "0.5567447", "text": "@Override\r\n\tpublic Object getModuleRole(long id) {\n\t\treturn systemMapper.selectModuleRole(id);\r\n\t}", "title": "" }, { "docid": "d09a56a21ebcb44639219aed30eb4bc2", "score": "0.5564266", "text": "public void setModule(Module module) { this.module = module; }", "title": "" }, { "docid": "cc3ee31886e9c32847872ecb1b235ef3", "score": "0.54998034", "text": "public String getModuleId();", "title": "" }, { "docid": "a3dbaf91d7ffa9f435960893f051e7b9", "score": "0.54370254", "text": "void setClassroomModuleIdclassroomModule(final ClassroomModule classroomModuleIdclassroomModule);", "title": "" }, { "docid": "80462447b21ef74cf94b60e87937f881", "score": "0.54227555", "text": "public void setModuleID(String moduleID) {\n\t\tthis.moduleID = moduleID;\n\t}", "title": "" }, { "docid": "413c2f5165431191571293df2fadb0d0", "score": "0.5419771", "text": "public String getModuleId() {\n return moduleId;\n }", "title": "" }, { "docid": "aa15387de6e14e5a6afd572d04f228eb", "score": "0.53368473", "text": "public void setbvRoleId(Number value) {\n ensureVariableManager().setVariableValue(\"bvRoleId\", value);\n }", "title": "" }, { "docid": "aa15387de6e14e5a6afd572d04f228eb", "score": "0.53368473", "text": "public void setbvRoleId(Number value) {\n ensureVariableManager().setVariableValue(\"bvRoleId\", value);\n }", "title": "" }, { "docid": "29a939a582f28abe1ed51748649000b4", "score": "0.5261682", "text": "String getModuleId();", "title": "" }, { "docid": "fe229667b54cdfbeb5fbcf98303233bf", "score": "0.5247699", "text": "@Generated\n @StructureField(order = 3, isGetter = false)\n public native void setInit_module(int value);", "title": "" }, { "docid": "84bbcfabafcf8c4c96762250f2bcff95", "score": "0.5159715", "text": "public RoleModuleRecord() {\n super(RoleModule.ROLE_MODULE);\n }", "title": "" }, { "docid": "c5325a3858af780de00bfae4ab4f60e6", "score": "0.5150274", "text": "public void setModule(String Module) {\n this.Module = Module;\n }", "title": "" }, { "docid": "456cde87e4abd401b0eff3541131c705", "score": "0.5145769", "text": "@Override\r\n\tpublic Map<String, Object> saveRoleModuleInfo(String roleId,\r\n\t\t\tString moduleIds) {\n\t\tMap<String, Object> resultMap = new HashMap<String, Object>();\r\n\t\t\r\n\t\tif(roleId==null || roleId.equals(\"\")){\r\n\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,传入参数为空\");\r\n\t\t}else{\r\n\t\t\tif(moduleIds==null || moduleIds.equals(\"\")){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString delCondition = \" ROLEID='\" + roleId + \"' \";\r\n\t\t\t\t\tint resultInt = entityDao.deleteByCondition(delCondition, TbPermission.class);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(resultInt>0){\r\n\t\t\t\t\t\tresultMap.put(\"resultCode\", \"0000\");\r\n\t\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,成功\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,失败\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,异常\");\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString[] moduleArray = moduleIds.split(\",\");\r\n\t\t\t\t\tString tableName = \"tb_permission\";\r\n\t\t\t\t\tString properties = \" PERMISSIONID, MODULEID, ROLEID \";\r\n\t\t\t\t\tString entityValues = \" \";\r\n\t\t\t\t\tfor(int i=0; i<moduleArray.length; i++){\r\n\t\t\t\t\t\tTbPermission permission = new TbPermission();\r\n\t\t\t\t\t\tpermission.setPERMISSIONID(EntityIDFactory.createId());\r\n\t\t\t\t\t\tpermission.setMODULEID(moduleArray[i]);\r\n\t\t\t\t\t\tpermission.setROLEID(roleId);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tentityValues += \" ('\" \r\n\t\t\t\t\t\t\t\t+ permission.getPERMISSIONID() + \"','\"\r\n\t\t\t\t\t\t\t\t+ permission.getMODULEID() + \"','\"\r\n\t\t\t\t\t\t\t\t+ permission.getROLEID() + \"'),\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tentityValues = entityValues.substring(0, entityValues.length()-1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tString delCondition = \" ROLEID='\" + roleId + \"' \";\r\n\t\t\t\t\tentityDao.deleteByCondition(delCondition, TbPermission.class);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint resultInt = entityDao.saveEntities(tableName, properties, entityValues);\r\n\t\t\t\t\tif(resultInt>0){\r\n\t\t\t\t\t\tresultMap.put(\"resultCode\", \"0000\");\r\n\t\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,成功\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,失败\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块保存,异常\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn resultMap;\r\n\t}", "title": "" }, { "docid": "fd73febdfdd3252dcd7076cac85049d5", "score": "0.5036344", "text": "public String getMODULE() {\r\n return MODULE;\r\n }", "title": "" }, { "docid": "fd73febdfdd3252dcd7076cac85049d5", "score": "0.5036344", "text": "public String getMODULE() {\r\n return MODULE;\r\n }", "title": "" }, { "docid": "a893bee3da6c34f4d22ae55f5104b802", "score": "0.5027478", "text": "void changeRole(int idUser, int idRole) throws DAOException;", "title": "" }, { "docid": "9e361165e2bcec7321c28a2560abb7ec", "score": "0.5024406", "text": "public void selectModule(int mod)\n {\n currentModuleId = mod;\n for(int i = 1; i < modules.size(); i++) {\n if(modules.get(i).getId() == mod)\n {\n currentModule = modules.get(i);\n break;\n }\n }\n initCurrentAge();\n }", "title": "" }, { "docid": "cd6a8d1e2f56fa7d51cf196ed0453aa9", "score": "0.50200975", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate UserRole getUserModules(UserRole userRole) throws Exception {\n\t\tSession session = ManageSessionFactory.getSessionFactory().openSession();\n\t\tList<UserRoleModule> userModules = new ArrayList<UserRoleModule>();\n\t\tCriteria criteria = session.createCriteria(UserRoleModule.class) \n\t\t\t\t.createAlias(\"userRole\", \"userRole\")\n\t\t\t\t.createAlias(\"module\", \"module\")\n\t\t\t\t.add(Restrictions.eq(\"userRole.id\", userRole.getId()));\n\t\tProjectionList projectionList = Projections.projectionList();\n\t\tprojectionList.add(Projections.property(\"module.id\"));\n\t\tprojectionList.add(Projections.property(\"module.name\"));\n\t\tcriteria.setProjection(projectionList);\n\t\tList<Object[]> rows = criteria.list();\n\n\t\tfor (Object[] object : rows) {\n\n\t\t\tModule module = new Module();\n\t\t\tmodule.setId((Long) object[0]);\n\t\t\tmodule.setName((String) object[1]);\n\n\t\t\tUserRoleModule userRoleModule = new UserRoleModule();\n\t\t\tuserRoleModule.setModule(module);\n\t\t\tuserModules.add(userRoleModule);\n\t\t}\n\n\t\tif(userRole != null){\n\t\t\tSet<UserRoleModule> userModulesSet = new HashSet<UserRoleModule>(userModules);\n\t\t\tuserRole.setUserRoleModules(userModulesSet);\n\t\t}\n\n\t\tcloseSession(session);\n\t\treturn userRole;\n\t}", "title": "" }, { "docid": "96abc661814ee36b4f45e3cd84a06baf", "score": "0.49969527", "text": "com.google.protobuf.ByteString\n getModuleIdBytes();", "title": "" }, { "docid": "6260488d4638688e5d8abdee73a78d4e", "score": "0.4983235", "text": "public void setModuleCode(String moduleCode) {\n this.moduleCode = moduleCode == null ? null : moduleCode.trim();\n }", "title": "" }, { "docid": "8e5ce1de357c6d2fbc9fd2aa353019ec", "score": "0.49696776", "text": "public ModuleConstant getModule()\n {\n return f_idModule;\n }", "title": "" }, { "docid": "4a489359ad0612346443fbbf58d0bdae", "score": "0.49409983", "text": "public void setRoleId(com.salesforce.soap.partner.ID param) {\r\n\r\n this.localRoleId = param;\r\n\r\n }", "title": "" }, { "docid": "dc7b9df97aae651bc556fd2474f5e105", "score": "0.49086443", "text": "public abstract String getModId();", "title": "" }, { "docid": "108171eb839122a3b06485aac12ed800", "score": "0.4893016", "text": "public void setSysRoleId(Integer sysRoleId) {\r\n\t\tthis.sysRoleId = sysRoleId;\r\n\t}", "title": "" }, { "docid": "62243400a70961ecaaa6cd9ddd9f5c48", "score": "0.48857802", "text": "public DBModule getModule() throws DatabaseException {\n\t\tif (module == null) {\n\t\t\tOID moid = oid;\n\n\t\t\tdo {\n\t\t\t\tmoid = moid.getParent();\n\n\t\t\t\tif (ConfigDebug.ASSERTS) assert moid != null : \"parent object expected\";\n\t\t\t} while (moid.countChildren() < 2 || !new DBModule(moid).isValid());\n\t\t\t// TODO: explain the first part of the expression\n\n\t\t\tmodule = new DBModule(moid);\n\t\t}\n\n\t\tif (module == null && ConfigDebug.ASSERTS) ConfigServer.getLogWriter().getLogger().log(java.util.logging.Level.SEVERE,\n\t\t\t\t\t\"Couldn't find a module\");\n\n\t\treturn module;\n\t}", "title": "" }, { "docid": "51697e1e9b469eb2535863054080d382", "score": "0.48647973", "text": "public void setIdManagerEntity(int value) {\n this.idManagerEntity = value;\n }", "title": "" }, { "docid": "835222a19a5cd1385ff3a3ca756ae4ea", "score": "0.4852234", "text": "public void setModuleType(ModuleType moduleType) {\n this.moduleType = moduleType;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "54babac39579c87622c81c6442f80b0a", "score": "0.48298723", "text": "public Integer getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.48048663", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" }, { "docid": "54942ee57f4dfe4567599b72e28822e1", "score": "0.47936136", "text": "public void setpRoleId(String pRoleId) {\n this.pRoleId = pRoleId;\n }", "title": "" }, { "docid": "218f883a8d320397a759c5898b350134", "score": "0.47743714", "text": "@Override\n\tpublic List<String> findModuleIds(String roleId) {\n\t\treturn roleMapper.findModuleIds(roleId);\n\t}", "title": "" }, { "docid": "ed3de9d9bbc265a9456236d99e54803f", "score": "0.4762615", "text": "public RoleModuleRecord(String roleModuleId, String createdBy, Timestamp createdDate, Boolean canDelete, Boolean canUpdate, String updatedBy, Timestamp updatedDate, Boolean canView, String moduleId, Long roleId) {\n super(RoleModule.ROLE_MODULE);\n\n set(0, roleModuleId);\n set(1, createdBy);\n set(2, createdDate);\n set(3, canDelete);\n set(4, canUpdate);\n set(5, updatedBy);\n set(6, updatedDate);\n set(7, canView);\n set(8, moduleId);\n set(9, roleId);\n }", "title": "" }, { "docid": "1a2c219f541bdc5106c5d7c856e2f3d4", "score": "0.47591883", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000001;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1a2c219f541bdc5106c5d7c856e2f3d4", "score": "0.47591883", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000001;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1a2c219f541bdc5106c5d7c856e2f3d4", "score": "0.47591093", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000001;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "75909e5e2982f3386f84fad02dbcc88f", "score": "0.47549644", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000800;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4737824", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4737688", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e0b20d9bd9ad285412da28a2405238f", "score": "0.4736795", "text": "public Builder setRoleId(long value) {\n bitField0_ |= 0x00000004;\n roleId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "8a691ae81f805bda01a1fd553fe98f6f", "score": "0.47363862", "text": "public String getpRoleId() {\n return pRoleId;\n }", "title": "" }, { "docid": "db2e13f2c63cad280c4aa752b9dbbf8d", "score": "0.47310683", "text": "public String getModuleCode() {\n return moduleCode;\n }", "title": "" }, { "docid": "ea509b33a6c715db7a417bd0fc68891d", "score": "0.47011128", "text": "public void setMod_Billing_Record_ID (int Mod_Billing_Record_ID);", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "805b47cce250044fdad0784a52978859", "score": "0.46959227", "text": "long getRoleId();", "title": "" }, { "docid": "05fe9a7c63b3b2d9f366f0626a6f3b73", "score": "0.4689858", "text": "public int getModuleNumber() {\n return mModuleNumber;\n }", "title": "" }, { "docid": "fa4c2a3adc44ad822d00a542d965989a", "score": "0.468134", "text": "public void setCompanyid(Integer newVal) {\n if ((newVal != null && this.companyid != null && (newVal.compareTo(this.companyid) == 0)) || \n (newVal == null && this.companyid == null && companyid_is_initialized)) {\n return; \n } \n this.companyid = newVal; \n companyid_is_modified = true; \n companyid_is_initialized = true; \n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.46768823", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "b61aac34f8af940bcbc9b907f4951624", "score": "0.46768823", "text": "public Long getRoleId() {\n return roleId;\n }", "title": "" }, { "docid": "584551abf24f8b89085524dc34d8e1ac", "score": "0.4673277", "text": "public void assignleadsBDM_BDE(String modulename)\n\t{\n\t\ttry { \n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t \tconnection = DBConnection.getConnection();\n\t \tstatement = connection.createStatement();\n\t \tresultSet = statement.executeQuery(\"select a.role_name, b.first_name, b.last_name, b.email_id, b.password from crm_role a, crm_user b where\"\n\t \t+ \" a.role_id = b.role_id AND a.role_name = '\" +modulename \n\t \t+ \"' AND b.delete_status = 'no' Limit 1;\"); \n\t \twhile (resultSet.next()) {\n\t \t\tString fnamelname = resultSet.getString(\"first_name\") +\" \" +resultSet.getString(\"last_name\");\n\t\t Reporter.log(\"<p>\" + \"Randomly picking any \" +modulename + \" from DB\");\n\t\t \n\t\t //Selecting any name from DB as per module\n\t\t new Select(driver.findElement(By.name(\"assignto\"))).selectByVisibleText(fnamelname);\n\t\t driver.findElement(By.id(bdm.getProperty(\"selectallbutton_id\"))).click();\n\t\t help.sleep(3);\n\t\t driver.findElement(By.className(bdm.getProperty(\"assignbutton_class\"))).click();\n\t\t help.sleep(2);\n\t\t Reporter.log(\"<p>\" + \"Randomly picking \" +modulename +\" from Database and assigning\");\n\t\t \n\t\t // Checking if leads table is empty\n List<WebElement> leads_info = driver.findElement(By.tagName(bdm.getProperty(\"leads_info_tag\"))).findElements(By.tagName(bdm.getProperty(\"leads_info_tagname\")));\n \t \t\tif(leads_info.get(0).getText().equals(\"No data available in table\"))\n\t\t\t\tReporter.log(\"<p>\" + \"Leads table in Assign Leads is empty\");\n \t \t\telse\n \t \t\t\tReporter.log(\"<p>\" +driver.findElement(By.id(bdm.getProperty(\"resultmsg_id\"))).findElement(By.tagName(bdm.getProperty(\"resultmsg_tag\"))).getText());\n\t \t\t}\n\t \t\n\t \t\tresultSet.close();\n\t \t\tstatement.close();\n\t \t\tconnection.close();\n\t\t}\n\t\tcatch (Exception e){ \n\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "dea7f270391523c93ffcb7bd3686511f", "score": "0.4671075", "text": "public Number getbvRoleId() {\n return (Number)ensureVariableManager().getVariableValue(\"bvRoleId\");\n }", "title": "" }, { "docid": "dea7f270391523c93ffcb7bd3686511f", "score": "0.4671075", "text": "public Number getbvRoleId() {\n return (Number)ensureVariableManager().getVariableValue(\"bvRoleId\");\n }", "title": "" }, { "docid": "78429d4a4b9f2d780c276cbe7f0ae919", "score": "0.46681517", "text": "public String getRoleId() {\r\n return roleId;\r\n }", "title": "" }, { "docid": "805a27094c58aca9b169266db778d922", "score": "0.4662572", "text": "@Override\r\n\tpublic Map<String, Object> getRoleModuleListInfo(String roleId) {\n\t\tMap<String, Object> resultMap = new HashMap<String, Object>();\r\n\t\t\r\n\t\tif(roleId==null || roleId.equals(\"\")){\r\n\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块查询,传入参数为空\");\r\n\t\t}else{\r\n\t\t\tString accountRoleCondition = \" ROLEID='\" + roleId + \"' \";\r\n\t\t\tString accountRoleTable = \"tb_permission permission\";\r\n\t\t\tString[] properties = new String[]{\"MODULEID\"};\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tList<Map<String, Object>> resultList = entityDao.searchForeign(properties, accountRoleTable, null, null, accountRoleCondition);\r\n\t\t\t\t\r\n\t\t\t\tif(resultList==null || resultList.size()<=0){\r\n\t\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色没有关联模块\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresultMap.put(\"resultCode\", \"0000\");\r\n\t\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块查询成功\");\r\n\t\t\t\t\tresultMap.put(\"rows\", resultList);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresultMap.put(\"resultCode\", \"9999\");\r\n\t\t\t\tresultMap.put(\"resultMessage\", \"角色关联模块查询异常\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn resultMap;\r\n\t}", "title": "" }, { "docid": "3486d79b5a77affa5cc4823b3bc7cc88", "score": "0.4658922", "text": "public Integer getRoleId() {\n\t\treturn roleId;\n\t}", "title": "" }, { "docid": "7a2268de777f2305b46d0da858ce87c7", "score": "0.46560743", "text": "public void assignleadsBDM_BDE(String modulename)\r\n\t{\r\n\t\ttry { \r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\r\n\t \tconnection = DBConnection.getConnection();\r\n\t \tstatement = connection.createStatement();\r\n\t \tresultSet = statement.executeQuery(\"select a.role_name, b.first_name, b.last_name, b.email_id, b.password from crm_role a, crm_user b where\"\r\n\t \t+ \" a.role_id = b.role_id AND a.role_name = '\" +modulename \r\n\t \t+ \"' AND b.delete_status = 'no' Limit 1;\"); \r\n\t \twhile (resultSet.next()) {\r\n\t \t\tString fnamelname = resultSet.getString(\"first_name\") +\" \" +resultSet.getString(\"last_name\");\r\n\t\t Reporter.log(\"<p>\" + \"Randomly picking any \" +modulename + \" from DB\");\r\n\t\t \r\n\t\t //Selecting any name from DB as per module\r\n\t\t new Select(driver.findElement(By.name(\"assignto\"))).selectByVisibleText(fnamelname);\r\n\t\t driver.findElement(By.id(bdm.getProperty(\"selectallbutton_id\"))).click();\r\n\t\t help.sleep(3);\r\n\t\t driver.findElement(By.className(bdm.getProperty(\"assignbutton_class\"))).click();\r\n\t\t help.sleep(2);\r\n\t\t Reporter.log(\"<p>\" + \"Randomly picking \" +modulename +\" from Database and assigning\");\r\n\t\t \r\n\t\t // Checking if leads table is empty\r\n List<WebElement> leads_info = driver.findElement(By.tagName(bdm.getProperty(\"leads_info_tag\"))).findElements(By.tagName(bdm.getProperty(\"leads_info_tagname\")));\r\n \t \t\tif(leads_info.get(0).getText().equals(\"No data available in table\"))\r\n\t\t\t\tReporter.log(\"<p>\" + \"Leads table in Assign Leads is empty\");\r\n \t \t\telse\r\n \t \t\t\tReporter.log(\"<p>\" +driver.findElement(By.id(bdm.getProperty(\"resultmsg_id\"))).findElement(By.tagName(bdm.getProperty(\"resultmsg_tag\"))).getText());\r\n\t \t\t}\r\n\t\t}\r\n\t\tcatch (Exception e){ \r\n\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1043f982264be792410e71a52cb7e064", "score": "0.46447006", "text": "public void setRole(java.lang.String param){\r\n localRoleTracker = param != null;\r\n \r\n this.localRole=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "1043f982264be792410e71a52cb7e064", "score": "0.46447006", "text": "public void setRole(java.lang.String param){\r\n localRoleTracker = param != null;\r\n \r\n this.localRole=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "dfcdb4776de830afbdcb6a3f9897029d", "score": "0.46403426", "text": "public void setModule(org.netbeans.modules.j2ee.dd.api.application.Module[] value) {\n\t\tthis.setValue(MODULE, value);\n\t}", "title": "" }, { "docid": "5746f5af5c1ea8b94ac852d0478116af", "score": "0.46391177", "text": "public String getRoleId() {\n\treturn roleId;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" }, { "docid": "bb2a8d3b3757e52201cbace2ab3b61ad", "score": "0.4629971", "text": "public long getRoleId() {\n return roleId_;\n }", "title": "" } ]
7af6eca1070076dc053ef1e68d1adf27
//////////////////////////// adicionar registros Adicionar()
[ { "docid": "6100ddea4fc9b51b59e6d7eb8df34342", "score": "0.0", "text": "public void Adicionar()\n{\n try\n {\n Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n con = DriverManager.getConnection(\"jdbc:odbc:ODBC_SQL\", \"\", \"\");\n stat = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE );\n stat.execute(\"Insert Into Cliente Values('\"+codigook+\"','\"+apok+\"','\"+amok+\"','\"+nomok+\"')\");\n System.out.println(\"LA Adicion FUE UN EXITO\");\n// INSERT INTO Cliente values('C0001','ZAPATA','PAEZ','LUIS','AV. 28 DE JULIO 1415','zapata@yahoo.com',1500,500.45,5000.98,'01','01','01','01','12345678901','4830799 2321527 990222787','01','01011950','01012009','')\n\n }\n catch(Exception e17)\n {\n System.out.println(\"ERROR....NO procede LA Adicion..\"+e17);\n }\n}", "title": "" } ]
[ { "docid": "fb7afdb47274c647d494c5c5c17134a1", "score": "0.6733618", "text": "public void registrar() {\r\n\t\t//invocar al servicio\r\n\t\tproductoService.nuevoProducto(getProducto());\r\n\t\t// limpia los valores del objeto\r\n\t\tsetProducto(new Producto());\r\n\t\t// se actualiza los valores de la tabla\r\n\t\tsetlistaProducto(productoService.obtenerProductosConMarca());\r\n\t\tgetlistaProducto();\r\n\t\tFacesContext.getCurrentInstance().addMessage(\"null\", new\r\n\t\tFacesMessage(\"Registro exitoso!\"));\t\t\r\n\t}", "title": "" }, { "docid": "5a665a0a900768913fb5e5fdc81263ee", "score": "0.66092825", "text": "private Registo() {\n\t\tinitComponents();\n\t}", "title": "" }, { "docid": "83af1ce498352f08f11efcd47c942166", "score": "0.65693074", "text": "protected void regolaViste() {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "ac7d200de03bc1a5f6cc6ad251973e6f", "score": "0.64884555", "text": "public void registrarPersona(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6089edea7a45cc9c431766adc2619a63", "score": "0.6486541", "text": "private void asociacionOyentesFormularioRegistro() {\n\t\t\n\t\tbtnRegistroRutaTerminado.addActionListener(new BtnFinalizarRegistroActionListener());\n\t\tbtnRegistroRutaCancelado.addActionListener(new BtnCancelarRegistroActionListener());\n\t\t\n\t\ttxtNombreRuta.addFocusListener(new TxtFormularioRegistroFocusListener());\n\t\ttxtDescripcionRuta.addFocusListener(new TxtFormularioRegistroFocusListener());\n\t\t\t\n\t}", "title": "" }, { "docid": "6e46018a1a1666dc956d8190d6eff052", "score": "0.6480593", "text": "public void carregarIdioma(){\r\n\t\tjLabelRelatorio.setText(Idioma.getTraducao(\"tetris.report\", jFramePrincipal));;\r\n\t\tjButtonSalvar.setText(Idioma.getTraducao(\"tetris.save\", jFramePrincipal));\r\n\t\tjButtonLimpar.setText(Idioma.getTraducao(\"tetris.clean\", jFramePrincipal));\r\n\t\tjButtonCancelar.setText(Idioma.getTraducao(\"tetris.close\", jFramePrincipal));\r\n\t}", "title": "" }, { "docid": "59990d0d51eab59065b32fc7d76de3dd", "score": "0.6428142", "text": "public void adicionar() throws IOException, InputMismatchException, FileNotFoundException {\n EscreverCliente um = new EscreverCliente(cliente);\n principal = new Controle(um);\n principal.pressButton();\n }", "title": "" }, { "docid": "a5e123f67ee14f71e9f198dedf82f501", "score": "0.64277244", "text": "public static void RegistrarMedico() {\n if (VerificarMedico() == false) {\n modelo.Medico med = new modelo.Medico(vrec.getTxtNombre().getText(), vrec.getTxtInterno().getText());\n modelo.Memoria.AgregarMedicoCarga(med);\n LimpiarCasillas();\n }\n \n }", "title": "" }, { "docid": "b7ef34040787de573bc5c495d59e17e4", "score": "0.6411617", "text": "private void adicionar() {\n\n DadosLojas janela = new DadosLojas(sistema, null, this);\n janela.setVisible(true);\n }", "title": "" }, { "docid": "69e406de50461a922bf1b9595fb2941a", "score": "0.6337147", "text": "public VendaRegistrar() {\n initComponents();\n this.usuario = new Usuario();\n this.transacao = new Transacao();\n }", "title": "" }, { "docid": "e3c5e7f6f9ed28252142e202131ac3ba", "score": "0.63353795", "text": "public RegistrarVendas() {\n initComponents();\n }", "title": "" }, { "docid": "86dd97b5dc828112ffb35cbd2857953d", "score": "0.6321336", "text": "public void definirPadroes(){\n MoradiaFamilia alugado = new MoradiaFamilia();\r\n MoradiaFamilia cedido = new MoradiaFamilia();\r\n MoradiaFamilia financiado = new MoradiaFamilia();\r\n MoradiaFamilia proprio = new MoradiaFamilia();\r\n\r\n alugado.setTipo(\"Alugado\");\r\n alugado.setPontuacao(3F);\r\n \r\n cedido.setTipo(\"Cedido\");\r\n cedido.setPontuacao(2F);\r\n \r\n financiado.setTipo(\"Financiado\");\r\n financiado.setPontuacao(1F);\r\n \r\n proprio.setTipo(\"Próprio\");\r\n proprio.setPontuacao(0.5F); \r\n \r\n this.moradiaFamiliaDAO.salvar(alugado);\r\n this.moradiaFamiliaDAO.salvar(cedido);\r\n this.moradiaFamiliaDAO.salvar(financiado);\r\n this.moradiaFamiliaDAO.salvar(proprio);\r\n }", "title": "" }, { "docid": "1be20d783abc2346aca1e79208990ab3", "score": "0.63065594", "text": "private void configurarFormulario(){\n this.setTitle(\"Java Intermediário - Escola Evolua Sumaré\");\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n // txtPaciente.setEnabled(false); //Caso queira deixar false o botao, \n estadoControle(true); // add após criar estado controle \n preencherTabela(new PacienteDAODeletar().listar()); //para iniciar mostrando os dados da tabela\n configurarTabela(); //para iniciar sem mostrar dados da tabela\n }", "title": "" }, { "docid": "1d76a6e3b76b499a32ff4e08fccdf639", "score": "0.6300609", "text": "void agregar(int libreta,int nota);", "title": "" }, { "docid": "5862dfeb0d3c4b1ffcfaf91775c5cfee", "score": "0.62936264", "text": "public void regist() {\n\t\t\n\t}", "title": "" }, { "docid": "4e2eb2d81a0bc7e8157009b3cd029330", "score": "0.62809575", "text": "public Registar() {\n initComponents();\n }", "title": "" }, { "docid": "15f639d75ff7b4e5a86198b6a57d7129", "score": "0.627227", "text": "public void registrarAsignatura() throws ExceptionServiciosReporte {\n mensaje = report.registrarAsignatura(nuevoasig, selectpos);\n nuevoasig=\" \";selectpos=\" \";\n }", "title": "" }, { "docid": "d349c56a4fa485e5b23d2f30eb0123cc", "score": "0.62712365", "text": "private static void adicionaFatura(){ \n Fatura fat = criaFatura(); \n if(fat!=null){ \n try{ \n jafat.registaFatura(fat); \n } \n catch(FaturaExisteException | SemAutorizacaoException | UtilizadorExistenteException e) { \n System.out.println(e.getMessage());\n }\n } \n }", "title": "" }, { "docid": "1b32a498de3e505998cf70602e2f5620", "score": "0.62408715", "text": "@Override\n\tpublic void registrarPago(Factura factura) {\n\t\t\n\t}", "title": "" }, { "docid": "9bcc90e7e2dfa61de27c4c1cbc220186", "score": "0.62302214", "text": "public void regresaVentHabitante(){\r\n ControlVentanaHabitante CVH = new ControlVentanaHabitante();\r\n CVH.inicia();\r\n }", "title": "" }, { "docid": "9cd514562ea4b3b98a426a079bbb3d1c", "score": "0.6204552", "text": "public Configuracion(){\n prepareElementos();\n prepareOk();\n prepareAcciones();\n }", "title": "" }, { "docid": "608b1e11460e79194503bdeef0deb3c3", "score": "0.62042075", "text": "@Override\n public void registrar(Curso curso) {\n cursos.add(curso);\n \n }", "title": "" }, { "docid": "7e947198b51b3cdda9807c5e08cf048b", "score": "0.617078", "text": "private static void insertar() {\n\t\tTaller taller = unmarshal();\t\t\n\t\t//Añadimos una pieza\n\t\tPieza p = new Pieza();\n\t\tSystem.out.println(\"Codigo\");\n\t\tp.setCodigo(t.nextLine());\n\t\t\n\t\tboolean encontrado = false;\n\t\t//Comprobamos si ya existe\n\t\tfor(Pieza p2: taller.getPiezas()) {\n\t\t\tif(p2.getCodigo().equalsIgnoreCase(p.getCodigo())) {\n\t\t\t\tencontrado = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(!encontrado) {\n\t\t\tSystem.out.println(\"Nombre\");\n\t\t\tp.setNombre(t.nextLine());\n\t\t\tSystem.out.println(\"Precio\");\n\t\t\tp.setPrecio(t.nextFloat());t.nextLine();\n\t\t\tSystem.out.println(\"Stock\");\n\t\t\tp.setStock(t.nextInt());t.nextLine();\n\t\t\tp.setAlta(true);\n\t\t\t//Añadimos la pieza al arrylist\n\t\t\ttaller.getPiezas().add(p);\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Ya existe ese código\");\n\t\t}\n\t\tmarshal(taller);\n\t}", "title": "" }, { "docid": "614f56c465fcc37db58ab11a337d6b89", "score": "0.61663455", "text": "@Override\r\n public void usarAlfabeta() {\r\n super.usarAlfabeta();\r\n this.setAlgoritmo();\r\n }", "title": "" }, { "docid": "9a79062db0d802ebfbe99041d30bbfcf", "score": "0.61520094", "text": "public RegistroCurso() {\n initComponents();\n listarInstitutos();\n listarCategorias();\n }", "title": "" }, { "docid": "7bb8db36715a599558d2cfeac3603d28", "score": "0.6138896", "text": "public void habilitarAgregar()\n {\n this.botones2.habilitarAgregar();\n this.informacionCursos2.habilitarCampos();\n }", "title": "" }, { "docid": "c84a39fdf8d482fea17739965c0437e3", "score": "0.6111605", "text": "public void registrarValoresPactados() {\r\n try {\r\n //Verifica si el panel se muestra para saber si hay informacion de la Entidad\r\n if (this.estadoPanelEntidadPreRad == true) {\r\n\r\n }\r\n\r\n //Verifica si el panel se muestra para saber si hay informacion del Cliente a Facturar\r\n if (this.estadoPanelClientPreRadi == true) {\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".registrarValoresPactados()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "title": "" }, { "docid": "ca83c6d4dd9445b3cd056a6a6a76b317", "score": "0.60989344", "text": "private void cadastrar() {\n\n\n\n if (this.MODO_ATUALIZACAO == 0) {\n Recurso recurso = new Recurso();\n recurso.setNome(txtNome.getText());\n recurso.setStatus(chkAtivo.isSelected());\n recurso.setAtividadeCollection(atividadeSelecionada);\n\n new RecursoHibernateDao().insert(recurso);\n } else {\n\n\n recursoSelecionado.setNome(txtNome.getText());\n recursoSelecionado.setStatus(chkAtivo.isSelected());\n recursoSelecionado.getAtividadeCollection().addAll(atividadeSelecionada);\n new RecursoHibernateDao().update(recursoSelecionado);\n dispose();\n\n }\n\n }", "title": "" }, { "docid": "a35be3bc3362b2550d46098ba304dff3", "score": "0.6097624", "text": "public void agregarEventos()\n {\n this.botones2.agregarEventosCursos(controlador);\n this.informacionCursos2.agregarEventos(controlador);\n }", "title": "" }, { "docid": "00f968236b7ce2be3c7fc32ff2e0d162", "score": "0.60951847", "text": "public void registrarAlojamiento(String identificador) throws Exception\n\t{\n\t\tif(buscarAlojamiento(identificador)!= null)\n\t\t{\n\t\t\tthrow new Exception (\"Ya hay un Alojamiento registrado con tal identificador\");\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\talojamientos.add(new Alojamiento(identificador));\n\t\t}\n\t}", "title": "" }, { "docid": "71047238346d141e1a768e17025045e6", "score": "0.6095026", "text": "@Override\n\tpublic void adicionaContato(Contato contato) {\n\t\t\n\t}", "title": "" }, { "docid": "3891bace61865e63e7a398f4f30ec296", "score": "0.6072816", "text": "@Override\n\tpublic void agregar(FaseCompetencia fc) {\n\n\t}", "title": "" }, { "docid": "b12b090dc0501864fc7c259241acded0", "score": "0.6059745", "text": "public regis() {\n initComponents();\n setDataRegistrasi();\n }", "title": "" }, { "docid": "e47bca99458ed79546860a3e1ea6b429", "score": "0.60561556", "text": "private void configurarFormulario(){\n this.setTitle(\"Cidades\");\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n \n cidades = new ArrayList<>();\n cidades.add(\"Ribeirão Preto\");\n cidades.add(\"São Paulo\");\n cidades.add(\"Cravinhos\");\n cidades.add(\"Sertãozinho\");\n cidades.add(\"Campinas\");\n carregarList();\n carregarCombo();\n }", "title": "" }, { "docid": "4f261fd6a811ae85f43ada863b9ebb0d", "score": "0.6049672", "text": "public static void RegistrarAmbulancia() {\n if (VerificarAmbulancia() == false) {\n modelo.Ambulancia amb = new modelo.Ambulancia(vrec.getTxtAmbulancia().getText());\n modelo.Memoria.AgregarAmbulanciaCarga(amb);\n LimpiarCasillas();\n }\n }", "title": "" }, { "docid": "e27e6dc7ded91e761f793817d6699bf6", "score": "0.6041996", "text": "public Associado_Pesquisa() {\n initComponents();\n preencherTela();\n }", "title": "" }, { "docid": "fc0f3944b0aad28fa6597cc6049e537c", "score": "0.6017541", "text": "@Override\r\n\tpublic void inicializar() throws IOException {\n\t\tHashMap<String, Object> map = (HashMap<String, Object>) Sessions\r\n\t\t\t\t.getCurrent().getAttribute(\"mapaGeneral\");\r\n\t\tif (map != null) {\r\n\t\t\tif (map.get(\"tabsGenerales\") != null) {\r\n\t\t\t\ttabs = (List<Tab>) map.get(\"tabsGenerales\");\r\n\t\t\t\ttitulo = (String) map.get(\"titulo\");\r\n\t\t\t\tmap.clear();\r\n\t\t\t\tmap = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\ttxtUDCF0006.setFocus(true);\r\n\t\tmostrarCatalogo();\r\n\t\tList<F0005> listaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\",\r\n\t\t\t\t\"01\");\r\n\t\tbuscadorCategoria1 = new BuscadorUDC(\"Código Categoría 01\", 10, false,\r\n\t\t\t\t\"00\", \"01\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"01\",\r\n\t\t\t\t\t\tbuscadorCategoria1.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"02\");\r\n\t\tbuscadorCategoria2 = new BuscadorUDC(\"Código Categoría 02\", 10, false,\r\n\t\t\t\t\"00\", \"02\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"02\",\r\n\t\t\t\t\t\tbuscadorCategoria2.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"03\");\r\n\t\tbuscadorCategoria3 = new BuscadorUDC(\"Código Categoría 03\", 10, false,\r\n\t\t\t\t\"00\", \"03\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"03\",\r\n\t\t\t\t\t\tbuscadorCategoria3.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"04\");\r\n\t\tbuscadorCategoria4 = new BuscadorUDC(\"Código Categoría 04\", 10, false,\r\n\t\t\t\t\"00\", \"04\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"04\",\r\n\t\t\t\t\t\tbuscadorCategoria4.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"05\");\r\n\t\tbuscadorCategoria5 = new BuscadorUDC(\"Código Categoría 05\", 10, false,\r\n\t\t\t\t\"00\", \"05\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"05\",\r\n\t\t\t\t\t\tbuscadorCategoria5.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"06\");\r\n\t\tbuscadorCategoria6 = new BuscadorUDC(\"Código Categoría 06\", 10, false,\r\n\t\t\t\t\"00\", \"06\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"06\",\r\n\t\t\t\t\t\tbuscadorCategoria6.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"07\");\r\n\t\tbuscadorCategoria7 = new BuscadorUDC(\"Código Categoría 07\", 10, false,\r\n\t\t\t\t\"00\", \"07\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"07\",\r\n\t\t\t\t\t\tbuscadorCategoria7.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"08\");\r\n\t\tbuscadorCategoria8 = new BuscadorUDC(\"Código Categoría 08\", 10, false,\r\n\t\t\t\t\"00\", \"08\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"08\",\r\n\t\t\t\t\t\tbuscadorCategoria8.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"09\");\r\n\t\tbuscadorCategoria9 = new BuscadorUDC(\"Código Categoría 09\", 10, false,\r\n\t\t\t\t\"00\", \"09\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"09\",\r\n\t\t\t\t\t\tbuscadorCategoria9.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"10\");\r\n\t\tbuscadorCategoria10 = new BuscadorUDC(\"Código Categoría 10\", 10, false,\r\n\t\t\t\t\"00\", \"10\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"10\",\r\n\t\t\t\t\t\tbuscadorCategoria10.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"11\");\r\n\t\tbuscadorCategoria11 = new BuscadorUDC(\"Código Categoría 11\", 10, false,\r\n\t\t\t\t\"00\", \"11\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"11\",\r\n\t\t\t\t\t\tbuscadorCategoria11.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"12\");\r\n\t\tbuscadorCategoria12 = new BuscadorUDC(\"Código Categoría 12\", 10, false,\r\n\t\t\t\t\"00\", \"12\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"12\",\r\n\t\t\t\t\t\tbuscadorCategoria12.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"13\");\r\n\t\tbuscadorCategoria13 = new BuscadorUDC(\"Código Categoría 13\", 10, false,\r\n\t\t\t\t\"00\", \"13\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"13\",\r\n\t\t\t\t\t\tbuscadorCategoria13.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"14\");\r\n\t\tbuscadorCategoria14 = new BuscadorUDC(\"Código Categoría 14\", 10, false,\r\n\t\t\t\t\"00\", \"14\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"14\",\r\n\t\t\t\t\t\tbuscadorCategoria14.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"15\");\r\n\t\tbuscadorCategoria15 = new BuscadorUDC(\"Código Categoría 15\", 10, false,\r\n\t\t\t\t\"00\", \"15\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"15\",\r\n\t\t\t\t\t\tbuscadorCategoria15.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"16\");\r\n\t\tbuscadorCategoria16 = new BuscadorUDC(\"Código Categoría 16\", 10, false,\r\n\t\t\t\t\"00\", \"16\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"16\",\r\n\t\t\t\t\t\tbuscadorCategoria16.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"17\");\r\n\t\tbuscadorCategoria17 = new BuscadorUDC(\"Código Categoría 17\", 10, false,\r\n\t\t\t\t\"00\", \"17\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"17\",\r\n\t\t\t\t\t\tbuscadorCategoria17.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"18\");\r\n\t\tbuscadorCategoria18 = new BuscadorUDC(\"Código Categoría 18\", 10, false,\r\n\t\t\t\t\"00\", \"18\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"18\",\r\n\t\t\t\t\t\tbuscadorCategoria18.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"19\");\r\n\t\tbuscadorCategoria19 = new BuscadorUDC(\"Código Categoría 19\", 10, false,\r\n\t\t\t\t\"00\", \"19\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"19\",\r\n\t\t\t\t\t\tbuscadorCategoria19.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"20\");\r\n\t\tbuscadorCategoria20 = new BuscadorUDC(\"Código Categoría 20\", 10, false,\r\n\t\t\t\t\"00\", \"20\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"20\",\r\n\t\t\t\t\t\tbuscadorCategoria20.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"21\");\r\n\t\tbuscadorCategoria21 = new BuscadorUDC(\"Código Categoría 21\", 10, false,\r\n\t\t\t\t\"00\", \"21\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"21\",\r\n\t\t\t\t\t\tbuscadorCategoria21.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"22\");\r\n\t\tbuscadorCategoria22 = new BuscadorUDC(\"Código Categoría 22\", 10, false,\r\n\t\t\t\t\"00\", \"22\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"22\",\r\n\t\t\t\t\t\tbuscadorCategoria22.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"23\");\r\n\t\tbuscadorCategoria23 = new BuscadorUDC(\"Código Categoría 23\", 10, false,\r\n\t\t\t\t\"00\", \"23\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"23\",\r\n\t\t\t\t\t\tbuscadorCategoria23.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"24\");\r\n\t\tbuscadorCategoria24 = new BuscadorUDC(\"Código Categoría 24\", 10, false,\r\n\t\t\t\t\"00\", \"24\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"24\",\r\n\t\t\t\t\t\tbuscadorCategoria24.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"25\");\r\n\t\tbuscadorCategoria25 = new BuscadorUDC(\"Código Categoría 25\", 10, false,\r\n\t\t\t\t\"00\", \"25\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"25\",\r\n\t\t\t\t\t\tbuscadorCategoria25.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"26\");\r\n\t\tbuscadorCategoria26 = new BuscadorUDC(\"Código Categoría 26\", 10, false,\r\n\t\t\t\t\"00\", \"26\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"26\",\r\n\t\t\t\t\t\tbuscadorCategoria26.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"27\");\r\n\t\tbuscadorCategoria27 = new BuscadorUDC(\"Código Categoría 27\", 10, false,\r\n\t\t\t\t\"00\", \"27\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"27\",\r\n\t\t\t\t\t\tbuscadorCategoria27.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"28\");\r\n\t\tbuscadorCategoria28 = new BuscadorUDC(\"Código Categoría 28\", 10, false,\r\n\t\t\t\t\"00\", \"28\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"28\",\r\n\t\t\t\t\t\tbuscadorCategoria28.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"29\");\r\n\t\tbuscadorCategoria29 = new BuscadorUDC(\"Código Categoría 29\", 10, false,\r\n\t\t\t\t\"00\", \"29\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"29\",\r\n\t\t\t\t\t\tbuscadorCategoria29.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"30\");\r\n\t\tbuscadorCategoria30 = new BuscadorUDC(\"Código Categoría 30\", 10, false,\r\n\t\t\t\t\"00\", \"30\", servicioF0005, \"30%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"30\",\r\n\t\t\t\t\t\tbuscadorCategoria30.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"MC\");\r\n\t\tbuscadorSTYL = new BuscadorUDC(\"Tipo unidad negocio\", 10, false, \"00\",\r\n\t\t\t\t\"MC\", servicioF0005, \"25%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"MC\",\r\n\t\t\t\t\t\tbuscadorSTYL.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"SI\");\r\n\t\tbuscadorSBLI = new BuscadorUDC(\"Código inactivo LM auxiliar\", 10,\r\n\t\t\t\tfalse, \"00\", \"SI\", servicioF0005, \"25%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"SI\",\r\n\t\t\t\t\t\tbuscadorSBLI.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"H09\", \"MD\");\r\n\t\tbuscadorFMOD = new BuscadorUDC(\"Cuenta modelo/consolidada\", 10, false,\r\n\t\t\t\t\"H09\", \"MD\", servicioF0005, \"25%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"H09\", \"MD\",\r\n\t\t\t\t\t\tbuscadorFMOD.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"00\", \"PF\");\r\n\t\tbuscadorPECC = new BuscadorUDC(\"Edición contabilización\", 10, false,\r\n\t\t\t\t\"00\", \"PF\", servicioF0005, \"25%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"00\", \"PF\",\r\n\t\t\t\t\t\tbuscadorPECC.obtenerCaja());\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\tlistaF0005 = servicioF0005.buscarParaUDCOrdenados(\"H00\", \"LD\");\r\n\t\tbuscadorLDM = new BuscadorUDC(\"Nivel Detalle\", 10, false, \"H00\", \"LD\",\r\n\t\t\t\tservicioF0005, \"25%\", \"7%\", \"10%\", \"40%\") {\r\n\t\t\t@Override\r\n\t\t\tprotected F0005 buscar() {\r\n\t\t\t\treturn servicioF0005.buscar(\"H00\", \"LD\",\r\n\t\t\t\t\t\tbuscadorLDM.obtenerCaja());\r\n\t\t\t}\r\n\t\t};\r\n\t\tdivbuscadorCategoria1.appendChild(buscadorCategoria1);\r\n\t\tdivbuscadorCategoria2.appendChild(buscadorCategoria2);\r\n\t\tdivbuscadorCategoria3.appendChild(buscadorCategoria3);\r\n\t\tdivbuscadorCategoria4.appendChild(buscadorCategoria4);\r\n\t\tdivbuscadorCategoria5.appendChild(buscadorCategoria5);\r\n\t\tdivbuscadorCategoria6.appendChild(buscadorCategoria6);\r\n\t\tdivbuscadorCategoria7.appendChild(buscadorCategoria7);\r\n\t\tdivbuscadorCategoria8.appendChild(buscadorCategoria8);\r\n\t\tdivbuscadorCategoria9.appendChild(buscadorCategoria9);\r\n\t\tdivbuscadorCategoria10.appendChild(buscadorCategoria10);\r\n\t\tdivbuscadorCategoria11.appendChild(buscadorCategoria11);\r\n\t\tdivbuscadorCategoria12.appendChild(buscadorCategoria12);\r\n\t\tdivbuscadorCategoria13.appendChild(buscadorCategoria13);\r\n\t\tdivbuscadorCategoria14.appendChild(buscadorCategoria14);\r\n\t\tdivbuscadorCategoria15.appendChild(buscadorCategoria15);\r\n\t\tdivbuscadorCategoria16.appendChild(buscadorCategoria16);\r\n\t\tdivbuscadorCategoria17.appendChild(buscadorCategoria17);\r\n\t\tdivbuscadorCategoria18.appendChild(buscadorCategoria18);\r\n\t\tdivbuscadorCategoria19.appendChild(buscadorCategoria19);\r\n\t\tdivbuscadorCategoria20.appendChild(buscadorCategoria20);\r\n\t\tdivbuscadorCategoria21.appendChild(buscadorCategoria21);\r\n\t\tdivbuscadorCategoria22.appendChild(buscadorCategoria22);\r\n\t\tdivbuscadorCategoria23.appendChild(buscadorCategoria23);\r\n\t\tdivbuscadorCategoria24.appendChild(buscadorCategoria24);\r\n\t\tdivbuscadorCategoria25.appendChild(buscadorCategoria25);\r\n\t\tdivbuscadorCategoria26.appendChild(buscadorCategoria26);\r\n\t\tdivbuscadorCategoria27.appendChild(buscadorCategoria27);\r\n\t\tdivbuscadorCategoria28.appendChild(buscadorCategoria28);\r\n\t\tdivbuscadorCategoria29.appendChild(buscadorCategoria29);\r\n\t\tdivbuscadorCategoria30.appendChild(buscadorCategoria30);\r\n\t\tdivbuscadorSTYL.appendChild(buscadorSTYL);\r\n\t\tdivbuscadorSBLI.appendChild(buscadorSBLI);\r\n\t\tdivbuscadorFMOD.appendChild(buscadorFMOD);\r\n\t\tdivbuscadorPECC.appendChild(buscadorPECC);\r\n\t\tdivbuscadorLDM.appendChild(buscadorLDM);\r\n\t\tbotonera = new Botonera() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void seleccionar() {\r\n\t\t\t\tif (validarSeleccion()) {\r\n\t\t\t\t\tif (catalogo.obtenerSeleccionados().size() == 1) {\r\n\t\t\t\t\t\tmostrarBotones(false);\r\n\t\t\t\t\t\tabrirRegistro();\r\n\t\t\t\t\t\tF0006 f06 = catalogo.objetoSeleccionadoDelCatalogo();\r\n\t\t\t\t\t\tclave = f06.getMcmcu();\r\n\t\t\t\t\t\ttxtUDCF0006.setValue(f06.getMcmcu());\r\n\t\t\t\t\t\ttxtUDCF0006.setDisabled(true);\r\n\t\t\t\t\t\ttxtDL01F0006.setValue(f06.getMcdl01());\r\n\t\t\t\t\t\ttxtDL01F0006.setDisabled(true);\r\n\t\t\t\t\t\ttxtCOF0006.setValue(f06.getMcco());\r\n\t\t\t\t\t\tif (f06.getMcco() != null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (servicioF0010.buscar(\r\n\t\t\t\t\t\t\t\t\tf06.getMcco()).getCcname()!=null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlblDescripcionF0010.setValue(servicioF0010.buscar(\r\n\t\t\t\t\t\t\t\t\tf06.getMcco()).getCcname());\r\n\t\t\t\t\t\ttxtCOF0006.setDisabled(true);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (f06.getMcldm().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorLDM.settearModelo(servicioF0005.buscar(\r\n\t\t\t\t\t\t\t\t\t\"H00\", \"LD\", f06.getMcldm()));\r\n\t\t\t\t\t\t// txtLDMF0006.setValue(f06.getMcldm());\r\n\r\n\t\t\t\t\t\tif (f06.getMcstyl().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorSTYL.settearModelo(servicioF0005.buscar(\r\n\t\t\t\t\t\t\t\t\t\"00\", \"MC\", f06.getMcstyl()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcsbli().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorSBLI.settearModelo(servicioF0005.buscar(\r\n\t\t\t\t\t\t\t\t\t\"00\", \"SI\", f06.getMcsbli()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcfmod().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorFMOD.settearModelo(servicioF0005.buscar(\r\n\t\t\t\t\t\t\t\t\t\"H09\", \"MD\", f06.getMcfmod()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcdl02().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\ttxtDL02F0006.setValue(f06.getMcdl02());\r\n\r\n\t\t\t\t\t\tif (f06.getMcdl03().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\ttxtDL03F0006.setValue(f06.getMcdl03());\r\n\r\n\t\t\t\t\t\tif (f06.getMcdl04().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\ttxtDL04F0006.setValue(f06.getMcdl04());\r\n\r\n\t\t\t\t\t\tif (f06.getMcan8() != null) {\r\n\t\t\t\t\t\t\ttxtAN8F0006.setValue(Math.round(f06.getMcan8()));\r\n\t\t\t\t\t\t\tlblDescripcionF0101.setValue(servicioF0101.buscar(\r\n\t\t\t\t\t\t\t\t\tf06.getMcan8()).getAbalph());\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (f06.getMctxa1().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\ttxtTXA1F0006.setValue(f06.getMctxa1());\r\n\r\n\t\t\t\t\t\ttxtMCUSF0006.setValue(f06.getMcmcus());\r\n\t\t\t\t\t\tif (f06.getMcmcus().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tlblDescripcionF0006.setValue(f06.getMcdl01());\r\n\r\n\t\t\t\t\t\tif (f06.getMcpecc().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorPECC\r\n\t\t\t\t\t\t\t\t\t.settearModelo(servicioF0005.buscar(\"00\",\r\n\t\t\t\t\t\t\t\t\t\t\t\"PF\",\r\n\t\t\t\t\t\t\t\t\t\t\tString.valueOf(f06.getMcpecc())));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp01().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria1.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"01\", f06.getMcrp01()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp02().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria2.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"02\", f06.getMcrp02()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp03().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria3.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"03\", f06.getMcrp03()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp04().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria4.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"04\", f06.getMcrp04()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp05().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria5.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"05\", f06.getMcrp05()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp06().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria6.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"06\", f06.getMcrp06()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp07().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria7.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"07\", f06.getMcrp07()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp08().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria8.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"08\", f06.getMcrp08()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp09().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria9.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"09\", f06.getMcrp09()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp10().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria10.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"10\", f06.getMcrp10()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp11().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria11.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"11\", f06.getMcrp11()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp12().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria12.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"12\", f06.getMcrp12()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp13().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria13.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"13\", f06.getMcrp13()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp14().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria14.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"14\", f06.getMcrp14()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp15().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria15.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"15\", f06.getMcrp15()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp16().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria16.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"16\", f06.getMcrp16()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp17().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria17.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"17\", f06.getMcrp17()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp18().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria18.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"18\", f06.getMcrp18()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp19().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria19.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"19\", f06.getMcrp19()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp20().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria20.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"20\", f06.getMcrp20()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp21().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria21.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"21\", f06.getMcrp21()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp22().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria22.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"22\", f06.getMcrp22()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp23().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria23.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"23\", f06.getMcrp23()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp24().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria24.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"24\", f06.getMcrp24()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp25().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria25.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"25\", f06.getMcrp25()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp26().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria26.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"26\", f06.getMcrp26()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp27().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria27.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"27\", f06.getMcrp27()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp28().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria28.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"28\", f06.getMcrp28()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp29().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria29.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"29\", f06.getMcrp29()));\r\n\r\n\t\t\t\t\t\tif (f06.getMcrp30().compareTo(\"\") != 0)\r\n\t\t\t\t\t\t\tbuscadorCategoria30.settearModelo(servicioF0005\r\n\t\t\t\t\t\t\t\t\t.buscar(\"00\", \"30\", f06.getMcrp30()));\r\n\t\t\t\t\t\tbtnBuscarCompannia.setVisible(false);\r\n\t\t\t\t\t\tbuscadorLDM.setFocus(true);\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tmsj.mensajeAlerta(Mensaje.editarSoloUno);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void salir() {\r\n\t\t\t\tcerrarVentana(divVF0006, titulo, tabs);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void reporte() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void limpiar() {\r\n\t\t\t\tmostrarBotones(false);\r\n\t\t\t\tlimpiarCampos();\r\n\t\t\t\thabilitarCampos();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void guardar() {\r\n\r\n\t\t\t\tif (validar()) {\r\n\t\t\t\t\tString MCMCU = txtUDCF0006.getValue();\r\n\t\t\t\t\tString dl01 = txtDL01F0006.getValue();\r\n\t\t\t\t\tString co = txtCOF0006.getValue();\r\n\t\t\t\t\tString ldmf = buscadorLDM.obtenerCaja();\r\n\t\t\t\t\tString styl = buscadorSTYL.obtenerCaja();\r\n\t\t\t\t\tString sbli = buscadorSBLI.obtenerCaja();\r\n\t\t\t\t\tString fmod = buscadorFMOD.obtenerCaja();\r\n\t\t\t\t\tString dl02 = txtDL02F0006.getValue();\r\n\t\t\t\t\tString dl03 = txtDL03F0006.getValue();\r\n\t\t\t\t\tString dl04 = txtDL04F0006.getValue();\r\n\t\t\t\t\tLong an8 = txtAN8F0006.getValue();\r\n\t\t\t\t\tString txa1 = txtTXA1F0006.getValue();\r\n\t\t\t\t\tString mcus = txtMCUSF0006.getValue();\r\n\t\t\t\t\tString pecc = buscadorPECC.obtenerCaja();\r\n\t\t\t\t\tString rp01 = buscadorCategoria1.obtenerCaja();\r\n\t\t\t\t\tString rp02 = buscadorCategoria2.obtenerCaja();\r\n\t\t\t\t\tString rp03 = buscadorCategoria3.obtenerCaja();\r\n\t\t\t\t\tString rp04 = buscadorCategoria4.obtenerCaja();\r\n\t\t\t\t\tString rp05 = buscadorCategoria5.obtenerCaja();\r\n\t\t\t\t\tString rp06 = buscadorCategoria6.obtenerCaja();\r\n\t\t\t\t\tString rp07 = buscadorCategoria7.obtenerCaja();\r\n\t\t\t\t\tString rp08 = buscadorCategoria8.obtenerCaja();\r\n\t\t\t\t\tString rp09 = buscadorCategoria9.obtenerCaja();\r\n\t\t\t\t\tString rp10 = buscadorCategoria10.obtenerCaja();\r\n\t\t\t\t\tString rp11 = buscadorCategoria11.obtenerCaja();\r\n\t\t\t\t\tString rp12 = buscadorCategoria12.obtenerCaja();\r\n\t\t\t\t\tString rp13 = buscadorCategoria13.obtenerCaja();\r\n\t\t\t\t\tString rp14 = buscadorCategoria14.obtenerCaja();\r\n\t\t\t\t\tString rp15 = buscadorCategoria15.obtenerCaja();\r\n\t\t\t\t\tString rp16 = buscadorCategoria16.obtenerCaja();\r\n\t\t\t\t\tString rp17 = buscadorCategoria17.obtenerCaja();\r\n\t\t\t\t\tString rp18 = buscadorCategoria18.obtenerCaja();\r\n\t\t\t\t\tString rp19 = buscadorCategoria19.obtenerCaja();\r\n\t\t\t\t\tString rp20 = buscadorCategoria20.obtenerCaja();\r\n\t\t\t\t\tString rp21 = buscadorCategoria21.obtenerCaja();\r\n\t\t\t\t\tString rp22 = buscadorCategoria22.obtenerCaja();\r\n\t\t\t\t\tString rp23 = buscadorCategoria23.obtenerCaja();\r\n\t\t\t\t\tString rp24 = buscadorCategoria24.obtenerCaja();\r\n\t\t\t\t\tString rp25 = buscadorCategoria25.obtenerCaja();\r\n\t\t\t\t\tString rp26 = buscadorCategoria26.obtenerCaja();\r\n\t\t\t\t\tString rp27 = buscadorCategoria27.obtenerCaja();\r\n\t\t\t\t\tString rp28 = buscadorCategoria28.obtenerCaja();\r\n\t\t\t\t\tString rp29 = buscadorCategoria29.obtenerCaja();\r\n\t\t\t\t\tString rp30 = buscadorCategoria30.obtenerCaja();\r\n\t\t\t\t\tF0006 fooo6 = new F0006();\r\n\t\t\t\t\tfooo6.setMcmcu(MCMCU);\r\n\t\t\t\t\tfooo6.setMcdl01(dl01);\r\n\t\t\t\t\tfooo6.setMcco(co);\r\n\t\t\t\t\tfooo6.setMcldm(ldmf);\r\n\t\t\t\t\tfooo6.setMcstyl(styl);\r\n\t\t\t\t\tfooo6.setMcsbli(sbli);\r\n\t\t\t\t\tfooo6.setMcfmod(fmod);\r\n\t\t\t\t\tfooo6.setMcdl02(dl02);\r\n\t\t\t\t\tfooo6.setMcdl03(dl03);\r\n\t\t\t\t\tfooo6.setMcdl04(dl04);\r\n\t\t\t\t\tif (an8 != null)\r\n\t\t\t\t\t\tfooo6.setMcan8(an8.doubleValue());\r\n\t\t\t\t\tfooo6.setMctxa1(txa1);\r\n\t\t\t\t\tfooo6.setMcmcus(mcus);\r\n\t\t\t\t\tfooo6.setMcpecc(pecc);\r\n\t\t\t\t\tfooo6.setMcrp01(rp01);\r\n\t\t\t\t\tfooo6.setMcrp02(rp02);\r\n\t\t\t\t\tfooo6.setMcrp03(rp03);\r\n\t\t\t\t\tfooo6.setMcrp04(rp04);\r\n\t\t\t\t\tfooo6.setMcrp05(rp05);\r\n\t\t\t\t\tfooo6.setMcrp06(rp06);\r\n\t\t\t\t\tfooo6.setMcrp07(rp07);\r\n\t\t\t\t\tfooo6.setMcrp08(rp08);\r\n\t\t\t\t\tfooo6.setMcrp09(rp09);\r\n\t\t\t\t\tfooo6.setMcrp10(rp10);\r\n\t\t\t\t\tfooo6.setMcrp11(rp11);\r\n\t\t\t\t\tfooo6.setMcrp12(rp12);\r\n\t\t\t\t\tfooo6.setMcrp13(rp13);\r\n\t\t\t\t\tfooo6.setMcrp14(rp14);\r\n\t\t\t\t\tfooo6.setMcrp15(rp15);\r\n\t\t\t\t\tfooo6.setMcrp16(rp16);\r\n\t\t\t\t\tfooo6.setMcrp17(rp17);\r\n\t\t\t\t\tfooo6.setMcrp18(rp18);\r\n\t\t\t\t\tfooo6.setMcrp19(rp19);\r\n\t\t\t\t\tfooo6.setMcrp20(rp20);\r\n\t\t\t\t\tfooo6.setMcrp21(rp21);\r\n\t\t\t\t\tfooo6.setMcrp22(rp22);\r\n\t\t\t\t\tfooo6.setMcrp23(rp23);\r\n\t\t\t\t\tfooo6.setMcrp24(rp24);\r\n\t\t\t\t\tfooo6.setMcrp25(rp25);\r\n\t\t\t\t\tfooo6.setMcrp26(rp26);\r\n\t\t\t\t\tfooo6.setMcrp27(rp27);\r\n\t\t\t\t\tfooo6.setMcrp28(rp28);\r\n\t\t\t\t\tfooo6.setMcrp29(rp29);\r\n\t\t\t\t\tfooo6.setMcrp30(rp30);\r\n\r\n\t\t\t\t\tservicioF0006.guardar(fooo6);\r\n\r\n\t\t\t\t\tmsj.mensajeInformacion(Mensaje.guardado);\r\n\t\t\t\t\tlimpiar();\r\n\t\t\t\t\tlistaGeneral = servicioF0006.buscarTodosOrdenados();\r\n\t\t\t\t\tcatalogo.actualizarLista(listaGeneral);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void eliminar() {\r\n\t\t\t\tif (gpxDatos.isOpen()) {\r\n\t\t\t\t\t/* Elimina Varios Registros */\r\n\t\t\t\t\tif (validarSeleccion()) {\r\n\t\t\t\t\t\tfinal List<F0006> eliminarLista = catalogo\r\n\t\t\t\t\t\t\t\t.obtenerSeleccionados();\r\n\t\t\t\t\t\tfinal int cantidad = eliminarLista.size();\r\n\t\t\t\t\t\tfor (int i = 0; i < eliminarLista.size(); i++) {\r\n\t\t\t\t\t\t\tF0006 valor = eliminarLista.get(i);\r\n\t\t\t\t\t\t\tList<F0101> objetoF0101 = servicioF0101\r\n\t\t\t\t\t\t\t\t\t.buscarPorAbmcu(valor.getMcmcu());\r\n\t\t\t\t\t\t\tList<F4100> objetoF4100 = servicioF4100\r\n\t\t\t\t\t\t\t\t\t.buscarPorMcu(valor.getMcmcu());\r\n\t\t\t\t\t\t\tList<F4105> objetoF4105 = servicioF4105\r\n\t\t\t\t\t\t\t\t\t.buscarPorMcu(valor.getMcmcu());\r\n\t\t\t\t\t\t\tList<F4930> objetoF4930 = servicioF4930\r\n\t\t\t\t\t\t\t\t\t.buscarPorMcu(valor.getMcmcu());\r\n\t\t\t\t\t\t\tList<F49041> objetoF49041 = servicioF49041\r\n\t\t\t\t\t\t\t\t\t.buscarPorMcu(valor.getMcmcu());\r\n\r\n\t\t\t\t\t\t\tif (!objetoF0101.isEmpty()\r\n\t\t\t\t\t\t\t\t\t|| !objetoF4100.isEmpty()\r\n\t\t\t\t\t\t\t\t\t|| !objetoF4105.isEmpty()\r\n\t\t\t\t\t\t\t\t\t|| !objetoF4930.isEmpty()\r\n\t\t\t\t\t\t\t\t\t|| !objetoF49041.isEmpty()) {\r\n\t\t\t\t\t\t\t\teliminarLista.remove(valor);\r\n\t\t\t\t\t\t\t\ti--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!eliminarLista.isEmpty()) {\r\n\t\t\t\t\t\t\tMessagebox\r\n\t\t\t\t\t\t\t\t\t.show(\"¿Desea Eliminar los \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ eliminarLista.size()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \" Registros?\",\r\n\t\t\t\t\t\t\t\t\t\t\t\"Alerta\",\r\n\t\t\t\t\t\t\t\t\t\t\tMessagebox.OK | Messagebox.CANCEL,\r\n\t\t\t\t\t\t\t\t\t\t\tMessagebox.QUESTION,\r\n\t\t\t\t\t\t\t\t\t\t\tnew org.zkoss.zk.ui.event.EventListener<Event>() {\r\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onEvent(Event evt)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrows InterruptedException {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (evt.getName().equals(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"onOK\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tservicioF0006\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.eliminarVarios(eliminarLista);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlistaGeneral = servicioF0006\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.buscarTodosOrdenados();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcatalogo.actualizarLista(listaGeneral);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (cantidad != eliminarLista\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size())\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmsj.mensajeInformacion(Mensaje.algunosEliminados);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmsj.mensajeInformacion(Mensaje.eliminado);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmsj.mensajeAlerta(Mensaje.registroUtilizado);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* Elimina un solo registro */\r\n\t\t\t\t\tif (clave != null) {\r\n\t\t\t\t\t\tList<F0101> objetoF0101 = servicioF0101\r\n\t\t\t\t\t\t\t\t.buscarPorAbmcu(clave);\r\n\t\t\t\t\t\tList<F4100> objetoF4100 = servicioF4100\r\n\t\t\t\t\t\t\t\t.buscarPorMcu(clave);\r\n\t\t\t\t\t\tList<F4105> objetoF4105 = servicioF4105\r\n\t\t\t\t\t\t\t\t.buscarPorMcu(clave);\r\n\t\t\t\t\t\tList<F4930> objetoF4930 = servicioF4930\r\n\t\t\t\t\t\t\t\t.buscarPorMcu(clave);\r\n\t\t\t\t\t\tList<F49041> objetoF49041 = servicioF49041\r\n\t\t\t\t\t\t\t\t.buscarPorMcu(clave);\r\n\t\t\t\t\t\tif (objetoF0101.isEmpty() && objetoF4100.isEmpty()\r\n\t\t\t\t\t\t\t\t&& objetoF4105.isEmpty()\r\n\t\t\t\t\t\t\t\t&& objetoF4930.isEmpty()\r\n\t\t\t\t\t\t\t\t&& objetoF49041.isEmpty()) {\r\n\t\t\t\t\t\t\tMessagebox\r\n\t\t\t\t\t\t\t\t\t.show(Mensaje.deseaEliminar,\r\n\t\t\t\t\t\t\t\t\t\t\t\"Alerta\",\r\n\t\t\t\t\t\t\t\t\t\t\tMessagebox.OK | Messagebox.CANCEL,\r\n\t\t\t\t\t\t\t\t\t\t\tMessagebox.QUESTION,\r\n\t\t\t\t\t\t\t\t\t\t\tnew org.zkoss.zk.ui.event.EventListener<Event>() {\r\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onEvent(Event evt)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrows InterruptedException {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (evt.getName().equals(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"onOK\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tservicioF0006\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.eliminarUno(clave);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmsj.mensajeInformacion(Mensaje.eliminado);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlimpiar();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlistaGeneral = servicioF0006\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.buscarTodosOrdenados();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcatalogo.actualizarLista(listaGeneral);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmsj.mensajeAlerta(Mensaje.registroUtilizado);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t\tmsj.mensajeAlerta(Mensaje.noSeleccionoRegistro);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void buscar() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\tabrirCatalogo();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void ayuda() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void annadir() {\r\n\t\t\t\tabrirRegistro();\r\n\t\t\t\tmostrarBotones(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\tbotonera.getChildren().get(6).setVisible(false);\r\n\t\tbotonera.getChildren().get(8).setVisible(false);\r\n\t\tbotonera.getChildren().get(1).setVisible(false);\r\n\t\tbotonera.getChildren().get(3).setVisible(false);\r\n\t\tbotonera.getChildren().get(5).setVisible(false);\r\n\t\tbotoneraF0006.appendChild(botonera);\r\n\r\n\t}", "title": "" }, { "docid": "bf0dbf15448305cdcfb09a505c58e9f2", "score": "0.6000958", "text": "public void cargarEscenaRegistrarPlantas() {\n\n\t\ttry {\n\n\t\t\tFXMLLoader loader2 = new FXMLLoader();\n\t\t\tloader2.setLocation(Main.class.getResource(\"./vista/registro_planta.fxml\"));\n\t\t\tScrollPane panel = (ScrollPane) loader2.load();\n\t\t\t((BorderPane) scrollPanel.getContent()).setCenter(panel);\n\n\t\t\tRegistroPlantaControlador controlador = loader2.getController();\n\t\t\tcontrolador.setEscenarioInicial(this);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "9ff4502430d92dcc0c8ce5061293cdc5", "score": "0.599797", "text": "public void cCrearHojaAltoConLetras() {\n\t\tLoginTest etiquetas = new LoginTest();\n\t\tetiquetas.ingresarEtiq(perfil);\n\t\tetiquetas.tIngresarCrearHoja();\n\t\tetiquetas.tCrearHojaAltoConLetras(\"Alto con Letras\",\"5\",\"Alto\",\"5\",\"5\",\"5\",\"5\");\n\t}", "title": "" }, { "docid": "346adaafe538ddc49bea0b758785f13b", "score": "0.59954864", "text": "void menuRegistarNovoJogador();", "title": "" }, { "docid": "a6dc45ea47f1c553cce07cf8bce7613c", "score": "0.5983966", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\t\t\t\tabrirRegistro();\r\n\t\t\t\tmostrarBotones(false);\r\n\r\n\t\t\t}", "title": "" }, { "docid": "b8d76d8d2bb38d58ba7eda0f11c21ed1", "score": "0.59778196", "text": "public void inicializa_controles() {\n bloquea_campos();\n blouea_botones();\n ocultar_label();\n }", "title": "" }, { "docid": "0660d60059cbd79a4c0174913d3c1068", "score": "0.5969872", "text": "public VentanaRegistro() {\r\n\t\tbotonGuardar = new JButton();\r\n\t\tbotonGuardar.setBounds(110, 200, 120, 25);\r\n\t\tbotonGuardar.setText(\"Registrar\");\r\n\r\n\t\tbotonCancelar = new JButton();\r\n\t\tbotonCancelar.setBounds(250, 200, 120, 25);\r\n\t\tbotonCancelar.setText(\"Cancelar\");\r\n\r\n\t\tlabelTitulo = new JLabel();\r\n\t\tlabelTitulo.setText(\"REGISTRO DE PERSONAS\");\r\n\t\tlabelTitulo.setBounds(120, 20, 380, 30);\r\n\t\tlabelTitulo.setFont(new java.awt.Font(\"Verdana\", 1, 18));\r\n\r\n\t\tlabelTabla1 = new JLabel();\r\n\t\tlabelTabla1.setText(\"Tabla Usando Matriz de datos\");\r\n\t\tlabelTabla1.setBounds(40, 250, 380, 50);\r\n\r\n\t\tlabelTabla2 = new JLabel();\r\n\t\tlabelTabla2.setText(\"Tabla Usando Table Model\");\r\n\t\tlabelTabla2.setBounds(40, 430, 380, 50);\r\n\r\n\t\tcod = new JLabel();\r\n\t\tcod.setText(\"Codigo\");\r\n\t\tcod.setBounds(20, 80, 80, 25);\r\n\t\tadd(cod);\r\n\r\n\t\tnombre = new JLabel();\r\n\t\tnombre.setText(\"Nombre\");\r\n\t\tnombre.setBounds(20, 120, 80, 25);\r\n\t\tadd(nombre);\r\n\r\n\t\ttelefono = new JLabel();\r\n\t\ttelefono.setText(\"telefono\");\r\n\t\ttelefono.setBounds(290, 160, 80, 25);\r\n\t\tadd(telefono);\r\n\r\n\t\tedad = new JLabel();\r\n\t\tedad.setText(\"Edad\");\r\n\t\tedad.setBounds(290, 120, 80, 25);\r\n\t\tadd(edad);\r\n\r\n\t\tprofesion = new JLabel();\r\n\t\tprofesion.setText(\"Profesion\");\r\n\t\tprofesion.setBounds(20, 160, 80, 25);\r\n\t\tadd(profesion);\r\n\r\n\t\ttextCod = new JTextField();\r\n\t\ttextCod.setBounds(80, 80, 80, 25);\r\n\t\tadd(textCod);\r\n\r\n\t\ttextNombre = new JTextField();\r\n\t\ttextNombre.setBounds(80, 120, 190, 25);\r\n\t\tadd(textNombre);\r\n\r\n\t\ttextTelefono = new JTextField();\r\n\t\ttextTelefono.setBounds(340, 160, 80, 25);\r\n\t\tadd(textTelefono);\r\n\r\n\t\ttextEdad = new JTextField();\r\n\t\ttextEdad.setBounds(340, 120, 80, 25);\r\n\t\tadd(textEdad);\r\n\r\n\t\ttextProfesion = new JTextField();\r\n\t\ttextProfesion.setBounds(80, 160, 190, 25);\r\n\t\tadd(textProfesion);\r\n\r\n\t\tbotonGuardar.addActionListener(this);\r\n\t\tbotonCancelar.addActionListener(this);\r\n\t\t// ////////////////////////////////////////////\r\n\t\tmibarra1 = new JScrollPane();\r\n\t\tmibarra1.setBounds(40, 300, 400, 130);\r\n\t\tmostrarDatosUsandoLogica();// mostramos la tabla\r\n\r\n\t\tmiBarra2 = new JScrollPane();\r\n\t\tmiBarra2.setBounds(40, 480, 400, 130);\r\n\t\tmostrarDatosConTableModel();// mostramos la tabla\r\n\r\n\t\tadd(botonCancelar);\r\n\t\tadd(botonGuardar);\r\n\t\tadd(labelTitulo);\r\n\t\tadd(labelTabla1);\r\n\t\tadd(labelTabla2);\r\n\t\tadd(mibarra1);\r\n\t\tadd(miBarra2);\r\n\t\tlimpiar();\r\n\t\tsetSize(480, 650);\r\n\t\tsetTitle(\"CoDejaVu : Componentes JTable\");\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetResizable(false);\r\n\t\tsetLayout(null);\r\n\t}", "title": "" }, { "docid": "e8ee4d5bffff102f445bafaa978d3709", "score": "0.5964762", "text": "@Override\n\tpublic boolean agregar(Usuario objad) throws Exception{\n\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "147315f105b4addcd9fbea21962b5bfc", "score": "0.5962867", "text": "public RegistroAumnos() {\n initComponents();\n //VerDatos(title);\n alumnoController = new AlumnoController();\n }", "title": "" }, { "docid": "c178706bdca8a6ace7d791601c3e6a1a", "score": "0.5962505", "text": "boolean registrarMatrimonio();", "title": "" }, { "docid": "37a6f8233039dcbdee57adaf5ce280f6", "score": "0.5959434", "text": "public Alta(){\n Configuración config=new Configuración();\n config=config.abrirArchivo();\n bdmanager= new BD();\n bdmanager.configuraBD(config.getUsuario(), config.getContraseña(), config.getEsquema(), config.getManejador());\n bdmanager.conectar(1);//\n campos = new LinkedList<String>(); \n }", "title": "" }, { "docid": "096c510c293418ef45d81e609bc346bb", "score": "0.5959296", "text": "protected void regolaViste() {\n /* variabili e costanti locali di lavoro */\n Vista unaVista = null;\n Campo unCampo = null;\n Campo campoSalaDescrizione = null;\n Campo campoNumTavolo = null;\n Modulo moduloSala = null;\n\n try { // prova ad eseguire il codice\n\n /* aggiunge un sub-ordine per numero di tavolo\n * ai campi della vista di default */\n unaVista = this.getVistaDefault();\n campoNumTavolo = this.getCampo(Tavolo.Cam.numtavolo);\n moduloSala = Progetto.getModulo(Sala.NOME_MODULO);\n campoSalaDescrizione = moduloSala.getCampo(Sala.CAMPO_DESCRIZIONE);\n unaVista.getCampo(campoSalaDescrizione).addOrdinePubblico(campoNumTavolo);\n unaVista.getCampo(Tavolo.Cam.numcoperti).addOrdinePrivato(campoNumTavolo);\n unaVista.getCampo(Tavolo.Cam.occupato).addOrdinePrivato(campoNumTavolo);\n unaVista.getCampo(Tavolo.Cam.nomecliente).addOrdinePrivato(campoNumTavolo);\n unaVista.getCampo(Tavolo.Cam.mezzapensione).addOrdinePrivato(campoNumTavolo);\n unaVista.getCampo(Tavolo.Cam.pasto).addOrdinePrivato(campoNumTavolo);\n\n // todo in sviluppo\n /* Assegna un renderer al campo Occupato per non far vedere\n * alcune colonne se il tavolo non e' occupato */\n unCampo = unaVista.getCampo(this.getCampo(Tavolo.Cam.numtavolo));\n// unCampo.getCampoDati().setRenderer(new RendererLista(unCampo));\n\n /* regola il titolo della colonna tavolo\n * nella vista VISTA_TAVOLO */\n unaVista = this.getVista(VISTA_TAVOLO);\n unCampo = unaVista.getCampo(Cam.numtavolo);\n unCampo.setTitoloColonna(COLONNA_TAVOLO);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "53833b8f5c82e542c5a4b0354e3dfa4e", "score": "0.5953493", "text": "public void cCreaMarcoAltoIngresaLetras() {\n\tLoginTest etiquetas = new LoginTest();\n\tetiquetas.ingresarEtiq(perfil);\n\tString hojaCreada2 = etiquetas.tCrearHoja();\n\tetiquetas.tCrearMarcoAltoIngresaLetras(hojaCreada2, \"Alto con letras\", \"25\", \"Alto\");\n\t}", "title": "" }, { "docid": "eeaad940601c61ec73aa41236de453f4", "score": "0.59355986", "text": "protected void registerDinosaurs() {\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "288310c69230bf2a57d8882d98bfa91f", "score": "0.59354216", "text": "public void cCrearHojaMargenInfConLetras() {\n \tLoginTest etiquetas = new LoginTest();\n\t\tetiquetas.ingresarEtiq(perfil);\n\t\tetiquetas.tIngresarCrearHoja();\n\t\tetiquetas.tCrearHojaMargenInfConLetras(\"MInferior con letras\",\"5\",\"5\",\"5\",\"Minferior\",\"5\",\"5\");\n }", "title": "" }, { "docid": "7e268d651717548ab24117bfc74d7be9", "score": "0.59323084", "text": "public void registrarEscalas() {\n try {\n con = new Conexion();\n\n final String SQL = \"INSERT INTO escalas (pais, aeropuerto, fecha, hora) VALUES (?, ?, ?, ?);\";\n PreparedStatement sentencia = con.obtenerConexion().prepareStatement(SQL);\n //Mecanismo para evitar un conexion SQL\n sentencia.setString(1, pais);\n sentencia.setString(2, aeropuerto);\n sentencia.setDate(3, Date.valueOf(fecha));\n sentencia.setString(4, hora);\n sentencia.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "70c2e437cf25e1c3eba17d99d2de7217", "score": "0.5925837", "text": "Registrar registrar();", "title": "" }, { "docid": "d3e3af4328359d64b0ff06bda0167215", "score": "0.59212255", "text": "private static void inicializarcuenta() {\n\t\tSystem.out.println(\"Introduzca el nombre del titular y pulse intro:\");\r\n\t\tString titular = entrada.nextLine();\r\n\t\tSystem.out.println(\"Introducir saldo y pulse intro:\");\r\n\t\tDouble saldo = entrada.nextDouble();\r\n\t\tentrada.nextLine();\r\n\t\tcuenta = new Cuenta(titular, saldo);\r\n\t\tSystem.out.println(\"El resultado de la operacion es \" + cuenta.toString());\r\n\t}", "title": "" }, { "docid": "0728f23fd6848ab9b9fd0bda69bc64f4", "score": "0.59202963", "text": "protected void regolaViste() {\n /* variabili e costanti locali di lavoro */\n Vista unaVista;\n Campo unCampo;\n\n try { // prova ad eseguire il codice\n\n unaVista = this.getVistaDefault();\n unaVista.setCampoOrdineDefault(this.getCampo(Citta.Cam.citta.get()));\n\n unaVista = this.getVista(Citta.Vis.citta);\n unCampo = unaVista.getCampo(Citta.Cam.citta);\n unCampo.setLarLista(150);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "title": "" }, { "docid": "5bee4810c95e43317db70bcbb975ad9b", "score": "0.5916057", "text": "public void cCrearHojaAnchoConLetras() {\n \tLoginTest etiquetas = new LoginTest();\n\t\tetiquetas.ingresarEtiq(perfil);\n\t\tetiquetas.tIngresarCrearHoja();\n\t\tetiquetas.tCrearHojaAnchoConLetras(\"Ancho con letras\",\"Ancho\",\"5\",\"5\",\"5\",\"5\",\"5\");\n }", "title": "" }, { "docid": "1f2518cff0b3d1fb01b5f74a84a2bb91", "score": "0.5902112", "text": "public void cCrearHojaMargenDerechoConLetras() {\n \tLoginTest etiquetas = new LoginTest();\n\t\tetiquetas.ingresarEtiq(perfil);\n\t\tetiquetas.tIngresarCrearHoja();\n\t\tetiquetas.tCrearHojaMargenDerechoConLetras(\"Mizq con letras\",\"5\",\"5\",\"5\",\"5\",\"5\",\"MDerecho\");\n }", "title": "" }, { "docid": "e89f94f2622e6739796f6f6e85f08cf8", "score": "0.590183", "text": "public preguntasControlador() {\n pregunta = new Pregunta();\n }", "title": "" }, { "docid": "7f4a1addd3612dcb0eb06ddcb7c7415b", "score": "0.58972085", "text": "public RegistrarPeliculaPanel() {\n initComponents();\n }", "title": "" }, { "docid": "f20b032b25ee20f8b3c6a10b1693b874", "score": "0.5894537", "text": "public void cadastrar() {\n CadastrarCliente cliente = helper.obterModelo();\n //Salva Objeto no Banco de Dados\n new ClienteDAO().insert(cliente);\n \n helper.limparTela();\n }", "title": "" }, { "docid": "2c1bbe1a34c87221cb5d6082f63562ff", "score": "0.58932656", "text": "public void registrar() {\n if (validar()) {\n JOptionPane.showMessageDialog(this, \"ingreso correcto\", \"\", JOptionPane.WARNING_MESSAGE);\n } else {\n JOptionPane.showMessageDialog(this, \"espacios no llenados\", \"\", JOptionPane.WARNING_MESSAGE);\n }\n }", "title": "" }, { "docid": "bad855d93eee4890753e6a8f1b9f086c", "score": "0.5893112", "text": "public reserva() {\n initComponents();\n escribir();\n desh();\n }", "title": "" }, { "docid": "a5c3528a332c8fa84e6ad37ba5f2141b", "score": "0.58897465", "text": "private void inicializarPecas() {\t\t\n\t\t\n\t\theroi = new Heroi(tabuleiro.getFreeCell());\t\t\n\t\tespada = new Espada(tabuleiro.getFreeCell());\n\t\tescudo = new Escudo(tabuleiro.getFreeCell());\n\t\t\n\t\tfor (int i = dragoes.length-1; i >= 0; i--){\n\t\t\tdragoes[i] = new Dragao(tabuleiro.getFreeCell());\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < dardos.length; i++){\n\t\t\tdardos[i] = new Dardo(tabuleiro.getFreeCell());\n\t\t}\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "cee507d8286b9ccd3b7f83d9eb12945b", "score": "0.58864623", "text": "public void generaODEDiario();", "title": "" }, { "docid": "8117e886a615182181cba50954452540", "score": "0.5885575", "text": "public ControlBuscaHabitante(DAOHabitantes daores){\r\n this.daores = daores;\r\n }", "title": "" }, { "docid": "7d0d5e4523e10802fb48f2b49cc29059", "score": "0.5882249", "text": "private void insertarSolicitud()\n {\n }", "title": "" }, { "docid": "8b437b4c0c39af6c391954a37d0b3b06", "score": "0.58796", "text": "private void configurarAcoes() {\n\t\tListView lista = (ListView) findViewById(R.id.id_list_conta_listagem);\n\t\tcontaListagemListViewAdapter = new ContaListViewAdapter(this, lista,\n\t\t\t\tandroid.R.layout.simple_list_item_1);\n\t\tlista.setAdapter(contaListagemListViewAdapter);\n\t\t\n\t\tlista.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View list, int position,\n\t\t\t\t\tlong id) {\n\t\t\t\t//MesaTO mesa = mesaListagemListViewAdapter.getItem(position);\n\t\t\t\tabrirPedidoItensListagem();\n\t\t\t}\n\n\t\t\t\n\t\t});\n\n\t\t// configurando botao de consulta\n\t\tButton btConsulta = (Button) findViewById(R.id.btn_conta_listagem_pesquisar);\n\t\tbtConsulta.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t new SyncContaTask().execute(\"\");\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "d366ad3629915c475119c83aa6a8146f", "score": "0.5875882", "text": "public regist() {\n initComponents();\n thairstyle();\n thairtreat();\n tbodytreat();\n tfacetreat();\n thandtreat();\n tpaket();\n tregist();\n AutoNumber();\n cekvitamin.setEnabled(false);\n }", "title": "" }, { "docid": "1fe6d86a1d92ca95670e2cb3c76d65fa", "score": "0.5870851", "text": "void adicionar(String nome);", "title": "" }, { "docid": "9a614e1f8d43e382497921aaf28e4952", "score": "0.5865135", "text": "public void adicionaExemplar(){\n\t\tcontadorId++;\n\t\tidlivros.add(contadorId);\n\t\tqtdExemplares++;\n\t\texemplar.add (new LivroExemplar(titulo, autor, edicao, contadorId));\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "f7bd1332cf55d5d667bd7e480f48291f", "score": "0.58646655", "text": "public AgregarTendencia() {\r\n\t\tbuildMainLayout();\r\n\t\tsetCompositionRoot(mainLayout);\r\n\t\t\r\n\r\n\t\t// TODO add user code here\r\n\t\tAgregarDatos();\r\n\t\tPonerEnEvento();\r\n\t\t\r\n\t\tbutton_4.addClickListener(new Button.ClickListener() {\r\n\t\t\tpublic void buttonClick(ClickEvent event) {\r\n\t\t\t\tMyVaadinUI.getCurrent().setContent(new VentanaPrincipal());\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "87e5a59cf2270125af80997e968c554e", "score": "0.58634734", "text": "private void inicializarCartasSorpresa(){\n mazo.add(new Sorpresa(\"Felicidades, ahora eres un Especulador. Aprovechate. \", TipoSorpresa.CONVERTIRME, 3000));\n \n mazo.add(new Sorpresa(\"Te hemos pillado con chanclas y calcetines,lo sentimos, ¡debes ir a la carcel!\", TipoSorpresa.IRACASILLA, tablero.getCarcel().getNumeroCasilla())); \n\n mazo.add(new Sorpresa(\"¡Felicidades! Has acertado la quiniela. ¡Puedes cobrar tu premio!\", TipoSorpresa.PAGARCOBRAR, 200));\n \n mazo.add(new Sorpresa(\"Te han pillado conduciendo un poco \\\"afectado\\\". Te toca pasar por caja.\", TipoSorpresa.PAGARCOBRAR, -200));\n \n mazo.add(new Sorpresa(\"Te ha salido un casting gracias a tu agencia y tu representante, Paquita. Ve sin tardanza a la casilla 12\", TipoSorpresa.IRACASILLA, 12));\n \n mazo.add(new Sorpresa(\"Estás cansado de tanto dar vueltas. Ve a descansar y a comerte una palmera de chocolate al Parking\", TipoSorpresa.IRACASILLA, 10));\n \n mazo.add(new Sorpresa(\"Pierdes una apuesta. Invita a todos los jugadores a cenar en una marisquería\", TipoSorpresa.PORJUGADOR, 100));\n \n mazo.add(new Sorpresa(\"¡Felicidades! Hoy es el día de tu no cumpleaños, recibes un regalo de todos\", TipoSorpresa.PORJUGADOR, -200));\n \n mazo.add(new Sorpresa(\"Recibes un premio por alojamiento pintoresco. Cobras 100 por cada casa y cada hotel de tu propiedad\", TipoSorpresa.PORCASAHOTEL, 100));\n \n mazo.add(new Sorpresa(\"Decides reformar tu imagen corporativa. Paga 80 por cada casa y cada hotel de tu propiedad\", TipoSorpresa.PORCASAHOTEL, -80));\n \n mazo.add(new Sorpresa(\"Usa esta carta si caes en la carcel para salir del trullo.\", TipoSorpresa.SALIRCARCEL, 0));\n \n mazo.add(new Sorpresa(\"Con tu nuevo titulo de Especulador puedes ser une chique male. ;)\", TipoSorpresa.CONVERTIRME, 5000));\n \n Collections.shuffle(mazo);\n }", "title": "" }, { "docid": "79dbf7eb9499889a3ac1646f48be4f76", "score": "0.5860378", "text": "public String Agencia_Agregar()\n {\n this.agenciaFacade.create(this.a);\n this.a = new Agencia();\n return \"index\";\n }", "title": "" }, { "docid": "2ffd2e8fc690aee08d9149d27d5c6ba4", "score": "0.5857039", "text": "@Override\n\tpublic boolean agregar(Asesoria asesoria) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9c0482c534f7692f1d08a422ea898cd1", "score": "0.58558416", "text": "public void registrar(Docente docente) throws RegisteredObjectException, NoResponseBDException;", "title": "" }, { "docid": "e2880083d1a74e31d7aa8ec50c63acd3", "score": "0.5851963", "text": "public void EsribirDatos() {\n Datos();\n /**\n * Manejo de excepciones para la escritura de nuevos registros al archivo entrada.txt\n */\n try {\n File archivo = new File(\"entrada.txt\"); //Se crea un objeto de tipo File con el archivo entrada.txt\n\n try {\n /**\n * Se crea el objeto escribir de la libreria FileWriter\n *\n * @method FileWriter constructor de la clase FileWriter\n * @param archivo directorio del archivo\n * @param true como apila la informacion en el archivo\n */\n FileWriter escribir = new FileWriter(archivo, true);\n /**\n * Proceso de escritura en el archivo utilizando el metodo write del objeto escribir\n */\n escribir.write(carne + \" | \");\n escribir.write(nombre + \" | \");\n escribir.write(apellido + \" | \");\n escribir.write(carrera + \"; \\r\\n\");\n /**\n * Se cierra el archivo\n */\n escribir.close();\n System.out.println(\"ARCHIVO: DATOS REGISTRADOS EXITOSAMENTE\");\n /**\n * @exception IOException ERROR: en el registro de los datos\n */\n } catch (IOException ioe) {\n System.out.println(\"ERROR::\" + ioe.getMessage());\n }\n /**\n * @exception ERROR: en la ubicacion del archivo\n */\n } catch (Exception e) {\n System.out.println(\"ERROR:\" + e.getMessage());\n }\n }", "title": "" }, { "docid": "0a731c172cfa6b0c81a00e7404370c01", "score": "0.58464026", "text": "private void registrarEmpleado() {\r\n long id = Long.parseLong(vista.txtID.getText());\r\n String nombre = vista.txtNombre.getText();\r\n String username = vista.txtUsername.getText();\r\n String password = String.valueOf(vista.passwordField.getPassword());\r\n if (modelo.getCliente(id) == null) {\r\n Empleado empleado;\r\n switch (vista.comboBoxTipo.getSelectedIndex()) {\r\n case 0:\r\n default:\r\n empleado = new Vendedor(nombre, id, username, password);\r\n break;\r\n case 1:\r\n empleado = new Administrador(nombre, id, username, password);\r\n break;\r\n }\r\n modelo.addEmpleado(empleado);\r\n actualizarArchivo(modelo.getEmpleados());\r\n actualizarTabla(vista.txtBuscarEmpleado.getText());\r\n }\r\n\r\n vista.txtID.setText(\"\");\r\n vista.txtNombre.setText(\"\");\r\n vista.txtUsername.setText(\"\");\r\n vista.passwordField.setText(\"\");\r\n }", "title": "" }, { "docid": "4d87d7bfa42a47048a5e39fd798a3c77", "score": "0.58437264", "text": "public void addFacturasNuevas(){\n DAOFacturas daof = new DAOFacturas();\n try{\n //----------seteo del estado inicial de la factura ---------------\n //Factura fac = new Factura(tipo, numeroFactura, importe, proveedor);\n DAOEstados daoe = new DAOEstados();\n Estado estadoExample = new Estado();\n Estado estado;\n estadoExample.setDescripcion(ConstantesOrm.ESTADOS_1_RECEPCION);\n estado = daoe.findByExample(estadoExample).get(0);\n getFactura().setEstado(estado);\n //----------seteo del estado inicial de la factura ---------------\n \n //getFactura().setProveedor(getSeleccionProveedorFactura().getProCod()); //seteo la seleccion del proveedor para la factura\n \n daof.save(getFactura()); \n getColFacturas().add(getFactura());\n System.out.println(\"@@@ FACTURA GUARDADA\");\n resetFactura(); \n closeDialog();\n displayInfoMessageToUser(ConstantesWeb.bundle.getString(\"creadoExitosamente\")); \n } catch (Exception e) {\n keepDialogOpen();\n displayErrorMessageToUser(\"Ops, we could not create. Try again later\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0e5097a31b8c84826dbed13e0e2d341b", "score": "0.5837754", "text": "public void registrarPublicidadDm() {\n try {\n pagoId = publicidadBean.registrarPublicidad(loginMBean.getUsuarioId(),\n titulo, url, caption, ubicacionSeleccionada,\n duracionSeleccionada, imagen, fechaDesde, fechaHasta, precio,\n NombreTipoPago.PAYPAL);\n } catch (Exception e) {\n }\n if (pagoId == null || pagoId < 0) {\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"Error al registrar pago.\", \"\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n RequestContext.getCurrentInstance().addCallbackParam(\"registrado\", false);\n return;\n }\n descripcion = \"Publicar anuncio: \" + titulo;\n RequestContext.getCurrentInstance().addCallbackParam(\"registrado\", true);\n }", "title": "" }, { "docid": "fc6eedd7d8c76b978f1ecf6d4c8e38b6", "score": "0.5832339", "text": "private void inicializarDatosTercerAgrupamiento() {\n\t\t\n\t\t\n\t\t//Formaro al campo del telefono\n\t\t\n\t\tMaskFormatter formatoTlfno;\n\t\ttry {\n\t\t\tformatoTlfno = new MaskFormatter(\"'(###')' ###' ###' ###\");\n\t\t\tformatoTlfno.setPlaceholderCharacter('*');\n\t\t} \n\t\tcatch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tlblMximo = new JLabel(Messages.getString(\"FormularioRegistroRuta.lblMximo.text\")); //$NON-NLS-1$\n\t\tlblMximo.setFont(new Font(\"Segoe UI\", Font.PLAIN, 14));\n\t\tGridBagConstraints gbc_lblMximo = new GridBagConstraints();\n\t\tgbc_lblMximo.anchor = GridBagConstraints.EAST;\n\t\tgbc_lblMximo.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_lblMximo.gridx = 1;\n\t\tgbc_lblMximo.gridy = 7;\n\t\tcontentPane.add(lblMximo, gbc_lblMximo);\n\t\t\n\t}", "title": "" }, { "docid": "642d83d9710643398f980893cd72b0ad", "score": "0.5830677", "text": "@Override\r\n\tpublic void insertar() {\n\t\ttab_tipo_producto.insertar();\r\n\t}", "title": "" }, { "docid": "7744c761335d7e109e7ae03638ee209a", "score": "0.58249146", "text": "public void RegistrarUsuario() throws Exception {\n //Objeto para la transaccion\n TransactionMySQL trans = new TransactionMySQL();\n int idass = -1;\n\n //Obtener id asignado\n idass = trans.userRegistration();\n\n if (idass != -1) {\n //Ir al menu principal pasando le el id del usuario actual\n MenuPrincipal(idass);\n }//FIn if 1\n\n //Cerrar el statement y la conexion a la base de datos (Fin transaccion)\n trans.close();\n\n }", "title": "" }, { "docid": "50b15c9f7545888bf37c02414b82330e", "score": "0.5824334", "text": "public CadastrarAluno() {\n initComponents();\n this.lista = new ArrayList(); //inicializa lista e depois carrega ela com o que armazenado\n carregar();\n \n \n }", "title": "" }, { "docid": "f13e41b18eaa25b2a18a601de787bc8c", "score": "0.58240986", "text": "public Frm_RegistraFabricante() {\n initComponents();\n AjustarVentana();\n }", "title": "" }, { "docid": "31e01f70d1f268b8a895bb2ecb98fbdc", "score": "0.58191323", "text": "public VentanaPrincipal() {\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\r\n\t\tbotonRegistrar = new JButton();\r\n\t\tbotonRegistrar.setBounds(100, 280, 120, 25);\r\n\t\tbotonRegistrar.setText(\"Registrar\");\r\n\t\t\r\n\t\tbotonBuscar = new JButton();\r\n\t\tbotonBuscar.setBounds(240, 280, 120, 25);\r\n\t\tbotonBuscar.setText(\"Buscar\");\r\n\r\n\t\tlabelTitulo = new JLabel();\r\n\t\tlabelTitulo.setText(\"PATRON MODELO VISTA CONTROLADOR\");\r\n\t\tlabelTitulo.setBounds(60, 40, 380, 30);\r\n\t\tlabelTitulo.setFont(new java.awt.Font(\"Verdana\", 1, 15));\r\n\r\n\t\tlabelSeleccion = new JLabel();\r\n\t\tlabelSeleccion.setText(\"Escoja que operacion desea realizar\");\r\n\t\tlabelSeleccion.setBounds(75, 240, 250, 25);\r\n\r\n\t\ttextoIntroduccion = \"Esta aplicación presenta un ejemplo práctico del patron \"\r\n\t\t\t\t+ \"de diseño MVC.\\n\\n\"\r\n\t\t\t\t+ \"La aplicación permite registrar, actualizar, buscar y eliminar registros de una tabla Persona.\" +\r\n\t\t\t\t\"tambien son vinculados algunos conceptos de los Patrones Value Object y Data Access Objetc\\n\";\r\n\r\n\t\tareaIntroduccion = new JTextArea();\r\n\t\tareaIntroduccion.setBounds(50, 90, 380, 140);\r\n\t\tareaIntroduccion.setEditable(false);\r\n\t\tareaIntroduccion.setFont(new java.awt.Font(\"Verdana\", 0, 14));\r\n\t\tareaIntroduccion.setLineWrap(true);\r\n\t\tareaIntroduccion.setText(textoIntroduccion);\r\n\t\tareaIntroduccion.setWrapStyleWord(true);\r\n\t\tareaIntroduccion.setBorder(javax.swing.BorderFactory.createBevelBorder(\r\n\t\t\t\tjavax.swing.border.BevelBorder.LOWERED, null, null, null,\r\n\t\t\t\tnew java.awt.Color(0, 0, 0)));\r\n\r\n\t\tbotonRegistrar.addActionListener(this);\r\n\t\tbotonBuscar.addActionListener(this);\r\n\t\tadd(botonBuscar);\r\n\t\tadd(botonRegistrar);\r\n\t\tadd(labelSeleccion);\r\n\t\tadd(labelTitulo);\r\n\t\tadd(areaIntroduccion);\r\n\t\r\n\t\tsetSize(480, 350);\r\n\t\tsetTitle(\"CoDejaVu : Patrones de Diseño/MVC\");\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetResizable(false);\r\n\t\tsetLayout(null);\r\n\r\n\t}", "title": "" }, { "docid": "d2986b1e7db8ce97219f2357256bde57", "score": "0.5818014", "text": "protected void annadirProducto() {\n\t\tannadirProducto = new AnnadirProducto();\n\t\tannadirProducto.setVisible(true);\n\t}", "title": "" }, { "docid": "58285d5fd3fab140d0fd75acfdca1f40", "score": "0.58080643", "text": "public static void RegistrarTurno() {\n if (VerificarTurno() == false) {\n modelo.Turno tur = new modelo.Turno(vrec.getTxtFecha().getText(), vrec.getTxtHora().getText(), vrec.getTxtTelefono().getText());\n modelo.Memoria.AgregarTurnoCarga(tur);\n LimpiarCasillas();\n }\n }", "title": "" }, { "docid": "5c17ed187205b35f441c5632e7fc0a2a", "score": "0.5800464", "text": "private ValorAndes()\r\n\t{\r\n\t\tdao = new ConsultaDAO();\r\n\t}", "title": "" }, { "docid": "b0b585ea84c9ce69273ad163ed663033", "score": "0.58001083", "text": "void agregarTemaAAsesoria(int idAsesoria, int idTema);", "title": "" }, { "docid": "b6d6bfd853e49434d3cb7d2436e0db09", "score": "0.5793965", "text": "public Catalogo() {\n pelicula = new Pelicula();\n }", "title": "" }, { "docid": "7e12edd64ab2434f0181f2dd92c57ec1", "score": "0.57920307", "text": "public void cCreaReglaEtiquetas() throws IOException, InterruptedException {\n\t\tLoginTest etiquetas = new LoginTest();\n\t\tetiquetas.ingresarEtiq(perfil);\n\t //etiquetas.crearRegla();\n\t}", "title": "" }, { "docid": "4b36d647b83da0f80527c644751c26d7", "score": "0.57919943", "text": "@Test\n\tpublic void agregarTest4() throws InformacionExisteExcepcion {\n\t\t\n\t\tsetup2();\n\t\t\n\t\tassertTrue(controladora.getPrimerBanco().getSiguiente().getSiguiente().getNombre() == \"Banco popular\");\n\t\t\n\t}", "title": "" }, { "docid": "bc1b342420bf3d267c2679106d0fdb25", "score": "0.5788376", "text": "public CrearGuardar() {\n initComponents();\n }", "title": "" }, { "docid": "ab9ad6190db89c17acdbb11ef849d4cb", "score": "0.57862717", "text": "@Before\n\tpublic void inicializar() {\n\n\t\t// Creamos contenidos\n\t\tc1 = new Cancion(\"c1\", 2);\n\t\tc2 = new Cancion(\"c2\", 2);\n\t\tc3 = new Cancion(\"c3\", 2);\n\t\tc4 = new Cancion(\"c4\", 2);\n\t\tc5 = new Cancion(\"c5\", 2);\n\t\tc6 = new Cancion(\"c6\", 2);\n\t\tc7 = new Cancion(\"c7\", 2);\n\t\tc8 = new Cancion(\"c8\", 2);\n\t\tc9 = new Cancion(\"c9\", 2);\n\t\tc10 = new Emisora(\"c10\");\n\t\tc11 = new Cancion(\"c11\", 2);\n\t\tc12 = new Emisora(\"c12\");\n\t\tc13 = new Cancion(\"c13\", 2);\n\t\tc14 = new Cancion(\"c14\", 2);\n\t\tc15 = new Cancion(\"c15\", 2);\n\t\te1 = new Cancion(\"e1\", 2);\n\t\te2 = new Cancion(\"e2\", 2);\n\n\t\t// Creamos Anuncios\n\t\ta1 = new Anuncio();\n\n\n\n\t\t// Creamos una lista con todos los contenidos\n\t\tcontenidos = new ArrayList<Contenido>();\n\t\tcontenidos.add(c1);\n\t\tcontenidos.add(c2);\n\t\tcontenidos.add(c3);\n\t\tcontenidos.add(c4);\n\t\tcontenidos.add(c5);\n\t\tcontenidos.add(c6);\n\t\tcontenidos.add(c7);\n\t\tcontenidos.add(c8);\n\t\tcontenidos.add(c9);\n\t\tc10.agregar(c11,null);\n\t\tc10.agregar(c12, c11);\n\t\tc10.agregar(c13, c12);\n\t\tc10.agregar(c14, c13);\n\t\tc10.agregar(c15, c14);\n\t\tcontenidos.add(c10);\n\t\tcontenidos.add(e1);\n\t\tcontenidos.add(e2);\n\n\t\t// Creamos una lista con todos los anuncios\n\t\tanuncios = new ArrayList<Contenido>();\n\t\tanuncios.add(a1);\n\n\n\t\t// Creamos un servidor básico con la lista de anuncios y contenidos\n\t\tbasico = new ServidorBasico(nombreBasico, contenidos, anuncios);\n\n\t\t// Creamos un servidor con respaldo sin anuncios ni contenidos\n\t\t// Ponemos de respaldo el servidor básico\n\t\tconRespaldo1 = new ServidorConRespaldo(\"Server respaldo 1\", new ArrayList<Contenido>(),\n\t\t\t\tnew ArrayList<Contenido>(), basico);\n\n\t\t// Creamos un servidor con respaldo sin anuncios ni contenidos\n\t\t// Ponemos de respaldo el servidor de respaldo 1\n\t\tconRespaldo2 = new ServidorConRespaldo(\"Server respaldo 2\", new ArrayList<Contenido>(),\n\t\t\t\tnew ArrayList<Contenido>(), conRespaldo1);\n\n\t}", "title": "" }, { "docid": "06101a78baacb4c032830e557186e357", "score": "0.5785097", "text": "private void adicionar() {\n\t\tString sql = \"INSERT INTO clientes (nomecliente, endcliente, fonecliente, emailcliente) VALUES (?, ?, ?, ?)\";\n\t\t\t\t\n\t\ttry {\n\t\t\tprepared = connection.prepareStatement(sql);\n\t\t\t\t\t\n\t\t\tprepared.setString(1, txtNomeCliente.getText());\n\t\t\tprepared.setString(2, txtEnderecoCliente.getText());\n\t\t\tprepared.setString(3, txtFoneCliente.getText());\n\t\t\tprepared.setString(4, txtEmailCliente.getText());\n\t\t\t\t\t\n\t\t\t// Validação dos campos obrigatorios\n\t\t\tif ((txtNomeCliente.getText().isEmpty()) || (txtFoneCliente.getText().isEmpty())) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Preencha todos os campos obrigatórios.\", \"ERROR - Campos em branco\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t// Atualiza tabela de usuario com dados do formulario\n\t\t\t\tint adicionado = prepared.executeUpdate();\n\t\t\t\t\t\t\n\t\t\t\tif (adicionado > 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Cliente adicionado com sucesso!\", \"Cliente adicionado\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\t\n\t\t\t\t\tlimpaCampos();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t}\n\t}", "title": "" }, { "docid": "0e0b583b60e5facdb21226a9dddb3681", "score": "0.5780799", "text": "@Override\r\n\tpublic void inicializar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8ec6f8331eb1d3b9accdb1d47fc0e253", "score": "0.5780733", "text": "public RegistroDiaTrabajadorController() {\r\n this.trabajadorDao = new TrabajadorDaoImpl();\r\n this.trabajadorItems = this.trabajadorDao.findAll();\r\n\r\n this.tipoDiaTrabajadorDao = new TipoDiaTrabajadorDaoImpl();\r\n this.tipoDiaItems = this.tipoDiaTrabajadorDao.findAll();\r\n\r\n this.diaTrabajadorDao = new DiaTrabajadorDaoImpl();\r\n this.items = this.diaTrabajadorDao.findWithLimit();\r\n\r\n this.selected = prepareCreate();\r\n }", "title": "" }, { "docid": "0eb128b9d5aeb6d840b8164890cfc269", "score": "0.5780279", "text": "public ControllerManagerDiSistema() {}", "title": "" }, { "docid": "9e9f3f3d2aa7a45f1b75a1cd015d27ae", "score": "0.57771105", "text": "public void cargarEscenaRegistroGenerosFamilias() {\n\n\t\ttry {\n\n\t\t\tFXMLLoader loader2 = new FXMLLoader();\n\t\t\tloader2.setLocation(Main.class.getResource(\"./vista/registro_generos_familias.fxml\"));\n\t\t\tScrollPane panel = (ScrollPane) loader2.load();\n\t\t\t((BorderPane) scrollPanel.getContent()).setCenter(panel);\n\n\t\t\tGestionGFControlador gestionGPControlador = loader2.getController();\n\t\t\tgestionGPControlador.setEscenarioInicial(this);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "4a0ef58a89db8ef0034f37c163ec79d7", "score": "0.5776665", "text": "public void adicionar() {\n\t\tsetSelecionado(new Valor());\n\t\tgetSelecionado().setConta(crudContaBean.getSelecionado());\n\t\t//bug \n\t\tgetSelecionado().setId((long) 0);\n\n\t\tgetSelecionado().setValorOutraFonte(BigDecimal.ZERO);\n\t\tgetSelecionado().setValorTesouro(BigDecimal.ZERO);\n\t\tgetSelecionado().setValorReajusteOutraFonte(BigDecimal.ZERO);\n\t\tgetSelecionado().setValorReajusteTesouro(BigDecimal.ZERO);\n\t\tgetSelecionado().setValorTotal(BigDecimal.ZERO);\n\t\tgetSelecionado().setValorReajusteTesouro(BigDecimal.ZERO);\n\t\tcrudContaBean.getSelecionado().getValores().add(getSelecionado());\n\t}", "title": "" }, { "docid": "7f06a013c4ac0d5aea0d23b4335163f6", "score": "0.5773472", "text": "public ControladorRequerimientos() {\n this.requerimiento_1Dao = new Requerimiento_1Dao();\n this.requerimiento_2Dao = new Requerimiento_2Dao();\n this.requerimiento_3Dao = new Requerimiento_3Dao();\n /*this.requerimiento_4Dao = new Requerimiento_4Dao();\n this.requerimiento_5Dao = new Requerimiento_5Dao();*/\n }", "title": "" } ]
27535fe5aa5a9e9b4b5046bb0258a3aa
Method tests the getIndexOf in MapData
[ { "docid": "8df348f90683454b21d8e2e9e4a1d514", "score": "0.7452558", "text": "@Test\n public void testGetIndexOf() throws IOException\n {\n final int year = 2018;\n final int month = 8;\n final int day = 30;\n final int hour = 17;\n final int minute = 45;\n final String directory = \"data\";\n // values for calling objects\n MapData mapData = new MapData(year, month, day, hour, minute, directory);\n mapData.parseFile();\n // getting expected and actual\n Integer x = mapData.getIndexOf(\"STID\");\n Integer y = new Integer(1);\n // testing\n Assert.assertEquals(\"Incorrect test get Index of.\", y, x);\n }", "title": "" } ]
[ { "docid": "028c217e5b098aa826ebc9786ff0744d", "score": "0.67542183", "text": "@Test\n void indexOf() {\n assertEquals(53, list.indexOf(21022));\n assertNotEquals(53, list.indexOf(10246));\n }", "title": "" }, { "docid": "c33f76accd425f981a09dd92dc3d8335", "score": "0.639914", "text": "public void testIndexOfWith() {\r\n\t\tassertEquals(0, topLevelNest.indexOf(midLevelNest));\r\n\t\tassertEquals(1, midLevelNest.indexOf(simpleShape));\r\n\t}", "title": "" }, { "docid": "522e9895d7f853d6bba8dc63706c9a94", "score": "0.63842297", "text": "public void testGetIndexPoint() {\n System.out.println(\"Entering testGetIndexPoint\");\n\n int position = za.getIndexPoint(indx);\n assertTrue(position == 2); // depot == 1, default shipment == 2, depot == 3\n System.out.println(\"Exiting testGetIndexPoint\");\n }", "title": "" }, { "docid": "dc5f26ba43746551ab50f00279f754f9", "score": "0.62967813", "text": "private int indexOfData(String keyName)\n {\n\t int result = -1;\n\n for(int x = 0; x < dataMem.size(); ++x)\n {\n if(dataMem.get(x).getKey().equals(keyName))\n {\n result = x;\n break;\n }\n }\n return result;\n }", "title": "" }, { "docid": "a3106fb4fac948d34d913bbaff2e7f62", "score": "0.62688637", "text": "@Test\n\tpublic void testIndexOf() {\n\t\t\n\t\t// Test indexOf(int n) using build(100).\t\n\t\tIntList list = buildList(100);\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tassertEquals(i, list.indexOf(i));\n\t\t}\n\t}", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.620438", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.620438", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.620438", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.620438", "text": "long getIndex();", "title": "" }, { "docid": "b37a68952e33a95e2efb784fc35d1fbc", "score": "0.61372894", "text": "public abstract int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.61043036", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.61043036", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.61043036", "text": "int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.6064227", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.6064227", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.6064227", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.6064227", "text": "public int getIndex();", "title": "" }, { "docid": "01c479fc459e6cf4d1b36eb205445ef5", "score": "0.60454017", "text": "@Override\n\tpublic int indexOf(T e) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "93c6d5654bff37168a9af215749c9b41", "score": "0.59802556", "text": "@Test\n public void testCellScentMarker(){\n Map m = new Map();\n m.generateMap();\n\n Position p = new Position(5,5);\n m.setCellScentMarker(p,3);\n assertEquals(-1, m.getCellScentMarker(Colour.BLACK, p));\n assertEquals(3,m.getCellScentMarker(Colour.RED,p));\n\n m.setCellScentMarker(p,8);\n assertEquals(8,m.getCellScentMarker(Colour.BLACK,p));\n assertEquals(-1,m.getCellScentMarker(Colour.RED,p));\n\n\n }", "title": "" }, { "docid": "8e9a4bae072b81cd0b51fab3ff7c6323", "score": "0.5879521", "text": "public Integer getIndex();", "title": "" }, { "docid": "eebd66181fb66c57a53e76b3a5608565", "score": "0.5862336", "text": "public int indexOfKey(long key) {\n/* 159 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "950efc5a2e0aac4e026a9727ebc8f40b", "score": "0.5844593", "text": "@Request(id = 20, retryable = true, response = ResponseMessageConst.INTEGER)\n Object indexOf(String name, Data value);", "title": "" }, { "docid": "04ef5b4e6537eaf57c307c715397f19c", "score": "0.5821437", "text": "@Override\r\n\tpublic int indexOf(Object o) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b81ea40d7a60dc09504ba8947ba8e95d", "score": "0.5819928", "text": "public int getIndex() {\n/* 110 */ return this.index;\n/* */ }", "title": "" }, { "docid": "e57e802c8abaefdd4f37ca0b46df92f0", "score": "0.57853615", "text": "void testGetIndex(Tester t) {\r\n this.initData();\r\n t.checkExpect(fg1.getIndex(0, 1), 3);\r\n t.checkExpect(fg1.getIndex(1, 0), 1);\r\n t.checkExpect(fg1.getIndex(0, 0), 0);\r\n t.checkExpect(fg1.getIndex(1, 1), 4);\r\n t.checkExpect(fg1.getIndex(2, 2), 8);\r\n t.checkExpect(fg1.getIndex(1, 2), 7);\r\n }", "title": "" }, { "docid": "3aea3368c4708e3b2f100d5f958f8c86", "score": "0.5751779", "text": "public int getIndex(T entry);", "title": "" }, { "docid": "9992c33a260ab88def8cce6b104808d8", "score": "0.5727877", "text": "public abstract int index();", "title": "" }, { "docid": "b5cd44930661409e5cd1d596ab736af6", "score": "0.5725788", "text": "@Override\r\n\tpublic int indexOf(E value) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "9085b306ec1994c97ffc181312fcd622", "score": "0.5682869", "text": "public abstract String getTileIndex();", "title": "" }, { "docid": "f5ea6fff80d1e388fe884ba5b8b5c5d3", "score": "0.5655057", "text": "@Override\n\t\tpublic int getIndex() {\n\t\t\treturn 0;\n\t\t}", "title": "" }, { "docid": "a6725d51d80990c7b49e10a786e95eec", "score": "0.56508654", "text": "public int indexOfValue(E value) {\n/* 170 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "a8e0822871fa02c36f1a8cdae6c6518d", "score": "0.56504494", "text": "public int getMarkerNo();", "title": "" }, { "docid": "dc4222a3ecd4749ccfc60cbe52c06b10", "score": "0.5645668", "text": "boolean hasIndex();", "title": "" }, { "docid": "dc4222a3ecd4749ccfc60cbe52c06b10", "score": "0.5645668", "text": "boolean hasIndex();", "title": "" }, { "docid": "dc4222a3ecd4749ccfc60cbe52c06b10", "score": "0.5645668", "text": "boolean hasIndex();", "title": "" }, { "docid": "7f3848afb80458ce891a634997151c32", "score": "0.5641795", "text": "private int indexFor(T value, int start, int end) {\n\t\tfor (int i = start; i < end; i++) {\r\n\t\t\tif(this.values[i] == null || value.equals(this.values[i])){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "5792aac04080891a8170be4f7bb28d8d", "score": "0.5633015", "text": "protected int mapKeyLocation(int location) {\n/* 214 */ return location - 1;\n/* */ }", "title": "" }, { "docid": "8cbf0c6cdf42590d14755fabcb0a3720", "score": "0.56297034", "text": "public int indexOf(TimeSeries series) {\n/* 297 */ ParamChecks.nullNotPermitted(series, \"series\");\n/* 298 */ return this.data.indexOf(series);\n/* */ }", "title": "" }, { "docid": "94f87d0fffefa9a710da152d852c64e5", "score": "0.5623033", "text": "@Override\n\tpublic int indexOf(Object obj) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "bf88242e9efd368899e60f98204a360d", "score": "0.5618398", "text": "public void findMap() {\r\n\t\tmap = 1;\r\n\t}", "title": "" }, { "docid": "704ef2fb80780f8cdd2c97519297e9ed", "score": "0.5597216", "text": "private int getIndex () {\n return index;\n }", "title": "" }, { "docid": "31c34193d6359f77a48fdc2c7d94e03c", "score": "0.5593555", "text": "private void maintainMapIndex(){\n if (cartMapIndex == null) {\n cartMapIndex = new LinkedHashMap<>();\n }\n for (int i = 0; i < mCartCount; i++) {\n int cartNumber = (Integer)(cartMap.keySet().toArray()[i]);\n cartMapIndex.put(cartNumber,i);\n }\n\n }", "title": "" }, { "docid": "c387466f16f600b4da9bf4f6ef6734d4", "score": "0.55842304", "text": "public abstract int indexOf(T elem);", "title": "" }, { "docid": "c410ebaea1a0c0be368265c33dbad080", "score": "0.5568961", "text": "private int indexOf(T value, int start, int end) {\n\t\tassert value != null : \"value can’t be null\";\r\n\t\tfor (int i = start; i < end; i++) {\r\n\t\t\tif(value.equals(this.values[i])){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "15dba9f1dac0c9f86cdbbc4134499b95", "score": "0.5553509", "text": "int getSeen(int index);", "title": "" }, { "docid": "c3dbd6731a4e5f00a41ea0335993a720", "score": "0.551274", "text": "public int indexOf(T item);", "title": "" }, { "docid": "959de733076f82f33c26e54e6a5765b9", "score": "0.5508683", "text": "@Override\n\tpublic int indexOf(Object o)\n\t{\n\t\treturn values.indexOf(o);\n\t}", "title": "" }, { "docid": "55a55490ae843593712c066e49b17de8", "score": "0.55081606", "text": "protected abstract boolean isOnMap( Tuple coord );", "title": "" }, { "docid": "384d1179b6b354d68fd1bf3710af370b", "score": "0.5506657", "text": "private int indexOf(T value) {\n\t\tint start = startIndexFor(value);\r\n\t\tint index = indexOf(value, start, this.values.length);\r\n\t\tif(index == -1){\r\n\t\t\tindex = indexOf(value, 0, start);\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "81b21d879efd68d0931f4f72d4def5d5", "score": "0.5504781", "text": "private boolean testIndexOf(IndexedUnsortedList<Integer> list, Integer element, int expectedIndex) {\r\n\t\ttry {\r\n\t\t\treturn list.indexOf(element) == expectedIndex;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.printf(\"%s caught unexpected %s\\n\", \"testIndexOf\", e.toString());\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "05234e64aa6be41fc8e2bf3b8eb3568d", "score": "0.5502017", "text": "private int index( Location loc ) {\n return loc.x * height + loc.y;\n }", "title": "" }, { "docid": "3176930ab757f721ae97e0a4586a8034", "score": "0.5494548", "text": "public abstract int indexOf(int y, int xi);", "title": "" }, { "docid": "45ef7eb2df346d1015cd9a924c33137a", "score": "0.54864466", "text": "public int indexOf(String key) throws NotInGraphException;", "title": "" }, { "docid": "6405451748631501569e376452fd228c", "score": "0.54840493", "text": "int index();", "title": "" }, { "docid": "e19f3d3ffa7e9fec1aaef759574b89a6", "score": "0.546969", "text": "@Test\r\n \tpublic void testCalcIndex() {\n \t\tassertEquals(0, board.calcIndex(0, 0));\r\n \t\tassertEquals(NUM_COLUMNS-1, board.calcIndex(0, NUM_COLUMNS-1));\r\n \t\tassertEquals(600, board.calcIndex(NUM_ROWS-1, 0));\r\n \t\tassertEquals(624, board.calcIndex(NUM_ROWS-1, NUM_COLUMNS-1));\r\n \t\t// Test a couple others\r\n \t\tassertEquals(26, board.calcIndex(1, 1));\r\n \t\tassertEquals(70, board.calcIndex(2, 20));\t\t\r\n \t}", "title": "" }, { "docid": "828f1f0621ab5a255983aae27ccaa205", "score": "0.54686785", "text": "public void testIndexOfWithNonExistingChild() {\r\n\t\tassertEquals(-1, topLevelNest.indexOf(bottomLevelNest));\r\n\t}", "title": "" }, { "docid": "02f13b7ac25919b5d451bf2fce1e013e", "score": "0.5455571", "text": "@Override\n public boolean isIndexed() {return false;}", "title": "" }, { "docid": "66c23b97ac659da88127342cdcdc8484", "score": "0.54531133", "text": "static synchronized int indexOfCoordinate(int x, int y, int z, int sizeOfAxes){\n int index = 0;\n index = index + (x*1);\n index = index + (y*sizeOfAxes);\n index = index + (z*sizeOfAxes*sizeOfAxes);\n return index;\n }", "title": "" }, { "docid": "468549d1f2908283692f64393d33d0dd", "score": "0.5446872", "text": "@Override\n public int getIndex()\n {\n return index;\n }", "title": "" }, { "docid": "0cae4966f60a31d1ab20b5dd37f38065", "score": "0.54466873", "text": "private static long indexOf(int offset) throws IOException {\n return index() + offset;\n }", "title": "" }, { "docid": "e2b92c9f4a0d45e8a36c51a3529cac0d", "score": "0.5436891", "text": "protected final int nextIndex() {\n if (_expectedSize != _hash.size()) {\n throw new ConcurrentModificationException();\n }\n\n Object[] set = _map._set;\n int i = _index;\n while (i-- > 0\n && (set[i] == null || set[i] == TObjectHash.REMOVED || set[i] == TObjectHash.FREE)) {\n }\n return i;\n }", "title": "" }, { "docid": "5933e3b150a992b6a8e01ee2bed2afe1", "score": "0.54291487", "text": "public int indexOf(Object o) {\n return 0;\n }", "title": "" }, { "docid": "2269b00102a5a9c4e889a7a9d213552f", "score": "0.5409732", "text": "int getIndex() {\n\t \treturn index;\n\t}", "title": "" }, { "docid": "5048f0765d2ec97f6e16848c9cacb701", "score": "0.54044557", "text": "@Override\n public int getIndex(I item) {\n return 0;\n }", "title": "" }, { "docid": "469b22bbd5535d159c9fae5e21b59b8d", "score": "0.54022497", "text": "int getIndex() {\n switch (this) {\n case X: return 0;\n case Y: return 1;\n case Z: return 2;\n }\n return -1;\n }", "title": "" }, { "docid": "45e85682be23adb13220f4f9dcdc0009", "score": "0.53998125", "text": "@Test\n public void findCrossingIndex() {\n assertTrue(lineStringTrack.crosses(lineStringEast));\n assertTrue(lineStringTrack.crosses(lineStringWest));\n\n int expected = 10;\n int actual = IntersectionUtil.findCrossingIndex(lineStringTrack,\n lineStringEast);\n assertEquals(\"Index check\", expected, actual);\n\n expected = 0;\n actual = IntersectionUtil.findCrossingIndex(lineStringTrack,\n lineStringWest);\n assertEquals(\"Index check\", expected, actual);\n }", "title": "" }, { "docid": "6e0b1bb2ec6a2c61fcdc49f827ce02d2", "score": "0.53992695", "text": "public int indexOf(GenericListItem item);", "title": "" }, { "docid": "9fb659a61b8e83150b30f867091a3f46", "score": "0.53933316", "text": "public int indexOf(E obj)\n {\n //if object does not exist --> cannot return int\n for (int x = 0; x<= size; x++)\n {\n if (data[x] == null || obj == null)\n {\n \tif (data[x] == obj)\n \t{return x;}\n }\n else if (data[x].equals(obj))\n {\n return x;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "ac99d95ec14deb69c20cfb6ddbb87b92", "score": "0.53576773", "text": "@Override\n public int locationToIndex(Point location) {\n int index = super.locationToIndex(location);\n Logger.getGlobal().info(\"\" + index);\n if (index != -1 && !getCellBounds(index, index).contains(location)) {\n return -1;\n } else {\n return index;\n }\n }", "title": "" }, { "docid": "2f4c701de918e450b53c108896dbbfc0", "score": "0.53576076", "text": "private int search (Object inObj){\r\n for(int i = 0; i < _size; ++i){\r\n if( _store[i].equals( inObj ))\r\n return i;\r\n }\r\n // if the for-loop cannot find the position of inStr, return -1\r\n return -1;\r\n }", "title": "" }, { "docid": "770179edec93f5564b6864f57de6a146", "score": "0.53442436", "text": "@Override\r\n\tpublic int lastIndexOf(Object o) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "03cd817bd9f0d5f0eb9da044e66d11eb", "score": "0.5339097", "text": "@Override\n public final int indexOf(Object value) {\n return Objects.equals(value, this.value) ? 0 : -1;\n }", "title": "" }, { "docid": "486fa3704a57220320c5728bdd38586a", "score": "0.5335545", "text": "@Override\n\tpublic int lastIndexOf(T e) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "34133f389aae988efc74219131e852a2", "score": "0.5334692", "text": "@Override\n\tpublic int getIndex() {\n\t\treturn index;\n\t}", "title": "" }, { "docid": "a5020bb1ba28765059fbcda4c4863c32", "score": "0.5332973", "text": "public long keyAt(int index) {\n/* 129 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "b3fb790d435dd5669eed1df3eacd9b91", "score": "0.5329453", "text": "public Long getIndex() throws IOException;", "title": "" }, { "docid": "c69ca3654359a97992d2cf7d1a406c33", "score": "0.5328971", "text": "public int getLocationIndex()\r\n\t{\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "92adfa00f89c2265cf743337566a6700", "score": "0.53243744", "text": "int getPos()\r\n/* 75: */ throws IOException\r\n/* 76: */ {\r\n/* 77:159 */ return this.data.getPosition();\r\n/* 78: */ }", "title": "" }, { "docid": "210aa26489e6c8b997fffae165d9706c", "score": "0.5324093", "text": "public MapPoint get(int index) {return locations.get(index);}", "title": "" }, { "docid": "ea08a9b9d39bfe5fde036430bd2b1e96", "score": "0.53206736", "text": "private static int getIndexOf(Object[] oa, Object o) {\n\t\tfor (int i = 0; i < oa.length; i++) {\n\t\t\tif (oa[i] == o) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "8097137c9b9d7f333dca588fbe3f38c9", "score": "0.5319124", "text": "public int placeIndexOf(int indEvent) {\n for (int pif = 0; pif < vp.size(); pif++) {\n if (((PlacePuro) vp.elementAt(pif)).getIndexEvent() == indEvent)\n return pif;\n }\n return -1;\n }", "title": "" }, { "docid": "1be4047b2e9f7689431ea1db926f0abe", "score": "0.5317635", "text": "public short getIndex();", "title": "" }, { "docid": "f55c4feed0c209c5f15047b8d8fe42ba", "score": "0.53164345", "text": "@SuppressWarnings({\"SuspiciousMethodCalls\"})\r\n @Override\r\n public boolean contains(Object o) {\r\n return indexes.containsKey(o);\r\n }", "title": "" }, { "docid": "34e3015a8038682ccab8f1d935f626c9", "score": "0.5314937", "text": "private static int mappear(String next) {\r\n\t\tInteger idx = map.get(next);\r\n\t\tif (idx == null) {\r\n\t\t\tidx = map.size();\r\n\t\t\tmap.put(next, idx);\r\n\t\t\tinvMap.put(idx, next);\r\n\t\t}\r\n\t\treturn idx;\r\n\t}", "title": "" }, { "docid": "4833325e6995d1f6f3ff12eac55277d8", "score": "0.5310065", "text": "@Test\n public void testGetSortedMap() {\n Map<Integer, RangeObject> sortedMap = RangeUtils\n .getSortedMap(RangeUtils.getInputRange());\n Iterator<Integer> mapIte = sortedMap.keySet().iterator();\n int key = mapIte.next();\n Assert.assertEquals(key, 43012);\n }", "title": "" }, { "docid": "f6d28d404fb19d83e64669f8da08bc33", "score": "0.5301354", "text": "public int getMapNumber(){\n return mapNumber;\n }", "title": "" }, { "docid": "fe0fea5a2d91f49a96de020889dda1d5", "score": "0.53012514", "text": "public abstract int search(Map map, int score);", "title": "" }, { "docid": "a736d1ffbba3275ff22b8dd91c47144f", "score": "0.52933526", "text": "void testSameIndex(Tester t) {\n initData();\n t.checkExpect(i1.sameIndex(i2), false);\n t.checkExpect(i1.sameIndex(i1), true);\n t.checkExpect(i3.sameIndex(i2), true);\n }", "title": "" }, { "docid": "910a34601206f17eec5ee7b8fc54a83d", "score": "0.52923644", "text": "public int linearSearch (int [] dataset, int key){\n for (int pos = 0; pos < dataset.length; pos++){\n if (dataset[pos] == key){\n //value is found\n return pos;\n }\n }\n //value is not found\n return -1;\n}", "title": "" }, { "docid": "cbc13a04580498497707ea82d7fa74b1", "score": "0.5286108", "text": "@Override\n\tpublic int lastIndexOf(Object obj) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f92d7c069a1ac9a0fbbf098c7a53cadb", "score": "0.52857137", "text": "private int indexOfMutatedItem(T item) {\n\t\t// Must do a linear scan of the data list because we may be looking for a mutated item\n\t\t// that went out of order.\n\t\t//\n\t\tint index = -1;\n\t\t\n\t\tfor (int i = 0; index < 0 && i < data.size(); ++i) {\n\t\t\tif (data.get(i).item() == item) {\n\t\t\t\tindex = i;\n\t\t\t} else {\n\t\t\t\t++i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn index;\n\t}", "title": "" }, { "docid": "e73781decaeff878da321d11225a70da", "score": "0.5272499", "text": "public int indexOf(OMGraphic graphic) {\n return _indexOf(graphic);\n }", "title": "" }, { "docid": "ad6d12549cc808b6ff58bd688cc4f8ba", "score": "0.5272085", "text": "public synchronized int getPosition(Object data) {\n\t\tListNode current=head;\n\t\tint index=0;\n\t\tif(head!=null) {\n\t\t\twhile(current!=null) {\n\t\t\t\tif(current.getData()==data) {\n\t\t\t\t\treturn index;\n\t\t\t\t}\n\t\t\t\tindex+=1;\n\t\t\t\tcurrent=current.getNext();\n\t\t\t}\n\t\t}\n\t\treturn Integer.MIN_VALUE;\n}", "title": "" }, { "docid": "b58d14a5165b714fe8dc15c4f6cf5075", "score": "0.5264064", "text": "private int idx(int key) {\n \treturn Integer.hashCode(key) & keys.length;\n }", "title": "" }, { "docid": "31dd70a10446de9a1f0e229b3f1f76c1", "score": "0.5258285", "text": "public void testBestPositionFromDocument() {\n assertEquals(DATA.getBestPositionUriId(null), DOCUMENT.getUniqueId().toString());\n }", "title": "" }, { "docid": "a3761ceede391f85be48944f4426eca8", "score": "0.52525955", "text": "boolean hasAddressIndex();", "title": "" }, { "docid": "a3761ceede391f85be48944f4426eca8", "score": "0.52525955", "text": "boolean hasAddressIndex();", "title": "" }, { "docid": "a3761ceede391f85be48944f4426eca8", "score": "0.52525955", "text": "boolean hasAddressIndex();", "title": "" }, { "docid": "a3761ceede391f85be48944f4426eca8", "score": "0.52525955", "text": "boolean hasAddressIndex();", "title": "" }, { "docid": "178cb2ef1f51299a2e4129b820ae9fff", "score": "0.524941", "text": "int pLoc()\n {for(int row=0;row<a.length;row++)\n\tfor(int col=0;col<a[row].length;col++)\n\tif(a[row][col]==Cell.o||a[row][col]==Cell.O)\n\t\treturn Cols*row+col;\n\treturn -1;}", "title": "" } ]
bc8d96b03016c004c55dfaeba94f9e41
Lay the card that gives cards back if possble to computers point cards.
[ { "docid": "d6c1185e1dac3e6d5e1e55c24eb45aaf", "score": "0.57672524", "text": "public void cardOnTable() {\n\t\tint index = 0;\n\n\t\tfor (int i = 0; i < cards.size(); i++) {\n\t\t\tCard card = cards.get(i);\n\t\t\tArrayList<Card> cardsReturned = table.addCard(card, true);\n\t\t\tint rankAllCards = rankCard.rankAll(cardsReturned);\n\t\t\t\n\t\t\tif (rankAllCards > 0) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tpointsCards = table.addCard(cards.get(index), false);\n\t\tcards.remove(index);\n\t}", "title": "" } ]
[ { "docid": "dc6509c22700e8d90c6b40cbb7a2df82", "score": "0.6742958", "text": "@Override\n public void mouseReleased(MouseEvent me) {\n if (getCard() == null)\n return;\n else if (!getCard().isTurnedFaceUp())\n return;\n\n Container table = getTable();\n Container stack_from = getStack_from();\n\n table.setComponentZOrder(getCardPanel(), table.getComponentCount() - 1);\n setStack_to((Container) table.getComponentAt(getLocation().getLocation()));\n\n if (getStack_to() == null) {\n return_card();\n return;\n }\n\n int to;\n Component cmp_to = table.getComponentAt(getLocation());\n CardDeck card_st_to;\n if (cmp_to instanceof DeckPanelInterface) {\n card_st_to = ((DeckPanelInterface) cmp_to).getDeck();\n to = TARGET;\n } else if (cmp_to instanceof StackPanelInterface) {\n card_st_to = ((StackPanelInterface) cmp_to).getStack();\n to = WORKING;\n } else {\n return_card();\n return;\n }\n\n int from;\n CardDeck card_st_from;\n if (stack_from instanceof WastedPanel) {\n card_st_from = ((WastedPanel) stack_from).getDeck();\n from = WASTE;\n } else if (stack_from instanceof StackPanelInterface) {\n card_st_from = ((StackPanelInterface) stack_from).getStack();\n from = WORKING;\n } else if (stack_from instanceof TargetPanel) {\n card_st_from = ((TargetPanel) stack_from).getDeck();\n from = TARGET;\n } else {\n return_card();\n return;\n }\n\n if (card_st_to.checkPut(getCard())) {\n\n put_card(card_st_from, card_st_to, from, to);\n } else {\n return_card();\n }\n\n }", "title": "" }, { "docid": "42aaa033aa24d1016ef6bbba75f67b2e", "score": "0.66293085", "text": "private void return_card() {\n getStack_from().add(getCardPanel());\n\n if (getStack_from() instanceof StackPanel) {\n StackPanel stack = (StackPanel) getStack_from();\n int index = stack.getCards().indexOf(this);\n int maxIndex = stack.getCards().size() - 1;\n\n while (index < maxIndex) {\n index++;\n getTable().remove(stack.getCards().get(index));\n }\n }\n\n getStack_from().revalidate();\n getStack_from().repaint();\n\n getTable().remove(getCardPanel());\n getTable().revalidate();\n getTable().repaint();\n }", "title": "" }, { "docid": "815fd2300aa10392128c7821d48dae48", "score": "0.64772177", "text": "void bank2deck(CardLayout cardLayout, int destinationIndex){\ndebugUserPlay(\"b2d before\");\n bankBuffer.removeCard(cardLayout);\n deck.insertCard(cardLayout.card , destinationIndex);\ndebugUserPlay(\"b2d after insert\");\n doUserPlayerSetAssessment(destinationIndex);\ndebugUserPlay(\"b2d after set assessment\");\n currentRound.drawComplete();\n }", "title": "" }, { "docid": "aacd50fd1e82e2132d92f9f959c39795", "score": "0.6375099", "text": "public Card drawFlippedCard()\n {\n if(getSize()==0) return null;\n Card card = cards.get(0);\n cards.remove(card);\n if(getSize()==0) {\n setImage(new GreenfootImage(Card.CARD_IMAGE_LOCATION+EMPTY_DECK));\n }\n return card;\n }", "title": "" }, { "docid": "0585747dfc42f050f833e7f0d90a916f", "score": "0.6292391", "text": "void initialLay() {\n List<LayCardAction> cards[ ] = new List[ruleSet.numPlayers];\n\n for(int p = 0; p < ruleSet.numPlayers; p++) {\n playerInput.say(player(p).getPlayerName() + \"'s turn to lay cards\");\n cards[p] = new ArrayList<LayCardAction>();\n try {\n while(gs.player[p].hand.size() > 0) {\n LayCardAction action = (LayCardAction) playerInput.getLayCardAction(\"Which card to lay?\", gs.player[p].hand, gs.player[p].fields, true);\n\n doAction(player(p),action);\n }\n } catch (RomaException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n }", "title": "" }, { "docid": "c05e5136ff29a0913324a4802d1da744", "score": "0.6255926", "text": "private void shiftdeck(){\r\n\t\t\t/**Used when the top card of the deck is drawn,\r\n\t\t\t * need to move the \"No Card\" to the end of the deck\r\n\t\t\t * */\r\n\t\t\t\tfor(int i = 0; i < decklength; i +=1){\r\n\t\t\t\t\t\tOmenscard temp = deck[i];\r\n\t\t\t\t\t\tdeck[i] = deck[i+1];\r\n\t\t\t\t\t\tdeck[i+1]=temp;\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "123b9e419d74622e3ce8628a2901db0f", "score": "0.61692643", "text": "@Override\n public void mouseDragged(MouseEvent me) {\n me.translatePoint(me.getComponent().getLocation().x, me.getComponent().getLocation().y);\n CardPanel p = getCardPanel();\n ArrayList<CardPanel> cards = new ArrayList<>();\n cards.add(p);\n int j = 0;\n\n if (p.getCard() == null)\n return;\n else if (!p.getCard().isTurnedFaceUp())\n return;\n\n Container stackPanel = getStack_from();\n\n if (stackPanel instanceof StackPanelInterface) {\n StackPanel stackPanel1 = (StackPanel) stackPanel;\n int index = stackPanel1.getCards().indexOf(p);\n int maxIndex = stackPanel1.getCards().size() - 1;\n\n while (index < maxIndex) {\n index++;\n cards.add(stackPanel1.getCards().get(index));\n getTable().add(stackPanel1.getCards().get(index), 0);\n }\n }\n for (int i = 0; i < cards.size(); i++) {\n cards.get(i).setLocation(me.getX(), me.getY() + j);\n j += 20;\n }\n }", "title": "" }, { "docid": "9175a7a4d3ee0af94070d20dce71f07d", "score": "0.61416507", "text": "public Card drawCard(){\n Card card=deck.pop();\r\n playingDeck.remove(card);\r\n return card;\r\n }", "title": "" }, { "docid": "0a343e23188d6c8d2bd98f7dad163cbc", "score": "0.6018218", "text": "public void mouseReleased(MouseEvent e) {\n\t\tCardImage nearestCard = it.getNearest();\n\t\t\n\t\t// options for a single move, initialized to false\n\t\tboolean grayCardAtStart = false;\n\t\tboolean thisIsAnAce = false;\n\t\tboolean legalMove = false;\n\t\t\n\t\t// test if this card has been dropped on one of the opening gray spaces\n\t\tif ((nearestCard.getNumber() == 14)\n\t\t\t\t&& (nearestCard.getIndex() % 14 == 0)) {\n\t\t\tgrayCardAtStart = true;\n\t\t}\n\t\t\n\t\t// test if this is an ace\n\t\tif (it.getNumber() == 1) {\n\t\t\tthisIsAnAce = true;\n\t\t}\n\t\t\n\t\t// test if this was a standard legal move\n\t\t// these two tests must happen first to prevent exceptions\n\t\tif (!grayCardAtStart && !thisIsAnAce\n\t\t\t\t&& Main.getCard(nearestCard.getIndex() - 1).getNumber()\n\t\t\t\t== it.getNumber() - 1\n\t\t\t\t&& Main.getCard(nearestCard.getIndex() - 1).getSuit()\n\t\t\t\t== it.getSuit()) {\n\t\t\tlegalMove = true;\n\t\t}\n\t\t\n\t\t// swap if this move is placing an ace at the start of a row,\n\t\t// or is a standard legal move otherwise,\n\t\t// beep and put the card back where it was\n\t\tif ((grayCardAtStart && thisIsAnAce) || legalMove) {\n\t\t\tit.swap(it.getNearest());\n\t\t} else {\n\t\t\tjava.awt.Toolkit.getDefaultToolkit().beep();\n\t\t\tMain.redrawInPlace();\n\t\t}\n\n\t\tMain.checkWin();\n\t}", "title": "" }, { "docid": "93383e1e1f9ef69b669acd133b8127b0", "score": "0.59493303", "text": "public Card drawCard() {\n\t\tCard topCard = new Card();\n\t\ttopCard = cards.get(0);\n\t\tcards.remove(0);\n\t\treturn topCard;\n\t}", "title": "" }, { "docid": "383a8b687f9f323848b31601c1b21000", "score": "0.5934201", "text": "public Card draw(){\n return stack.pop();\n }", "title": "" }, { "docid": "560b84294db16ab5eed1e41e518632ab", "score": "0.5912202", "text": "public void swapCards(){\n\t\tpresIndex = viceIndex = viceScumIndex = scumIndex = -1;\t\r\n\r\n\t\tfor(int i = 0; i < gameLogic.players.size(); ++i){\r\n\t\t\tswitch(gameLogic.players.get(i).rank){\r\n\t\t\t\tcase President:\r\n\t\t\t\t\tpresIndex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Scum:\r\n\t\t\t\t\tscumIndex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vice_Pres:\r\n\t\t\t\t\tviceIndex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Vice_Scum:\r\n\t\t\t\t\tviceScumIndex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// hack for three players and computer is pres\r\n\t\tif(gameLogic.players.size() == 3)\r\n\t\t\tviceIndex = 1;\r\n\t\t\r\n\t\t// swap the cards\r\n\t\tif(presIndex > 0 && viceIndex > 0){ //human is not pres or vice\r\n\t\t\t// cards to give to president\r\n\t\t\tgameLogic.players.get(scumIndex).discardCards((gameLogic.players.size() > 3)? 2:1, true);\r\n\t\t\tgameLogic.players.get(presIndex).discardCards((gameLogic.players.size() > 3)? 2:1, false);\r\n\t\t\t// swap cards\r\n\t\t\tgameLogic.players.get(scumIndex).addCards(gameLogic.players.get(presIndex).discardedCards);\r\n\t\t\tgameLogic.players.get(presIndex).addCards(gameLogic.players.get(scumIndex).discardedCards);\r\n\t\t\t\r\n\t\t\tif(gameLogic.players.size() > 3){\r\n\t\t\t\tgameLogic.players.get(viceScumIndex).discardCards(1, true);\r\n\t\t\t\tgameLogic.players.get(viceIndex).discardCards(1, false);\r\n\t\t\t\t// swap cards\r\n\t\t\t\tgameLogic.players.get(viceScumIndex).addCards(gameLogic.players.get(viceIndex).discardedCards);\r\n\t\t\t\tgameLogic.players.get(viceIndex).addCards(gameLogic.players.get(viceScumIndex).discardedCards);\r\n\t\t\t}\t\t\t\r\n\t\t} else { // human is vice or pres\r\n\t\t\t// cards to give to president\r\n\t\t\tif(presIndex == 0){ // get highest cards from scum and add to humans hand\r\n\t\t\t\tgameLogic.players.get(scumIndex).discardCards((gameLogic.players.size() > 3)? 2:1, true);\r\n\t\t\t\t// swap cards\r\n\t\t\t\tgameLogic.players.get(presIndex).addCards(gameLogic.players.get(scumIndex).discardedCards);\r\n\t\t\t\t\r\n\t\t\t\tif(gameLogic.players.size() > 3){\r\n\t\t\t\t\tgameLogic.players.get(viceScumIndex).discardCards(1, true);\r\n\t\t\t\t\tgameLogic.players.get(viceIndex).discardCards(1, false);\r\n\t\t\t\t\t// swap cards\r\n\t\t\t\t\tgameLogic.players.get(viceScumIndex).addCards(gameLogic.players.get(viceIndex).discardedCards);\r\n\t\t\t\t\tgameLogic.players.get(viceIndex).addCards(gameLogic.players.get(viceScumIndex).discardedCards);\r\n\t\t\t\t}\t\r\n\t\t\t} else if(viceIndex == 0){ // human is vice pres\r\n\t\t\t\t\r\n\t\t\t\tgameLogic.players.get(viceScumIndex).discardCards(1, true);\r\n\t\t\t\t// swap cards\r\n\t\t\t\tgameLogic.players.get(viceIndex).addCards(gameLogic.players.get(viceScumIndex).discardedCards);\r\n\t\t\t\t\r\n\t\t\t\t// cards to give to president\r\n\t\t\t\tgameLogic.players.get(scumIndex).discardCards(2, true);\r\n\t\t\t\tgameLogic.players.get(presIndex).discardCards(2, false);\r\n\t\t\t\t// swap cards\r\n\t\t\t\tgameLogic.players.get(scumIndex).addCards(gameLogic.players.get(presIndex).discardedCards);\r\n\t\t\t\tgameLogic.players.get(presIndex).addCards(gameLogic.players.get(scumIndex).discardedCards);\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tsortPlayersHands();\r\n\t}", "title": "" }, { "docid": "c46f017b943f467fc55081f88edb2d3c", "score": "0.5884346", "text": "private void createNewActiveCard() {\n\t\tPolygon pol = null;\n\t\tArrayList<Card> hand = getActualHand();\n\t\t// starting at activeCards.size() to get the uppermost card => most\n\t\t// right card in hand\n\t\tfor (int i = handCards.size() - 1; i >= 0; i--) {\n\t\t\tpol = handCards.get(i);\n\t\t\t// check for cards in hand that are gonna be dragged / heigt-\n\t\t\t// because of y axis being upside down in mouse inputs\n\t\t\tif (pol.contains(Gdx.input.getX(),\n\t\t\t\t\tUIConfig.height - Gdx.input.getY())) {\n\t\t\t\t// Checks if card is playable in momentary gamestate\n\t\t\t\tif (game.isCardPlayable(hand.get(i))) {\n\t\t\t\t\tVector3 mousePos = new Vector3();\n\t\t\t\t\tmousePos.set(Gdx.input.getX(),\n\t\t\t\t\t\t\tUIConfig.height - Gdx.input.getY(), 0);\n\t\t\t\t\tcamera.unproject(mousePos);\n\t\t\t\t\tactiveCard = new FloatingCard(hand.get(i), mousePos.x,\n\t\t\t\t\t\t\tmousePos.y);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "492a01ddbcddf6bca070d90d871db9e3", "score": "0.5871957", "text": "private void putCardInPlayersHand(Card card) {\n\t\tif(player.handIsFull()) {\n\t\t\tCard cardToDiscard;\n\t\t\tplayer.collectTreasureCard(card);\n\t\t\tcardToDiscard = playerView.selectCardToDiscard();\n\t\t\tplayer.discardCard(cardToDiscard);\n\t\t} \n\t\telse\n\t\t\tplayer.collectTreasureCard(card);\n\t}", "title": "" }, { "docid": "be47f430acaa4cb41960e2ca352f7938", "score": "0.5853773", "text": "@Override\n public void mousePressed(MouseEvent me) {\n CardPanel p = getCardPanel();\n\n if (p.getCard() == null)\n return;\n else if (!p.getCard().isTurnedFaceUp())\n return;\n\n setTable(p.getParent().getParent());\n setStack_from(p.getParent());\n\n getStack_from().repaint();\n getStack_from().remove((p));\n getTable().add(p, 0);\n }", "title": "" }, { "docid": "3c6c616b03c7625bee6e9617e6899c83", "score": "0.58360964", "text": "private void makeSpace(int index) {\n if (cards.getChildren().size > 0) {\n stopMakingSpace();\n invisibleCard = new Group();\n invisibleCard.setBounds(0,0,cards.getChildren().get(0).getWidth(),cards.getChildren().get(0).getHeight());\n\n //save the old positions of the cards\n List<Vector2> oldPositions = getPositions(cards.getChildren());\n oldPositions.add(index,new Vector2(invisibleCard.getX(),invisibleCard.getY()));\n\n //Determine what the new positions would be\n //by adding them to a horizontal group and checking their positions\n HorizontalGroup newGroup = new HorizontalGroup().space(calculateSpacing(cards.getChildren().size + 1,invisibleCard.getWidth()));\n newGroup.align(Align.bottom);\n\n cards.addActorAt(index,invisibleCard);\n\n while (cards.getChildren().size > 0) {\n newGroup.addActor(cards.getChildren().get(0));\n }\n newGroup.layout();\n\n\n\n List<Vector2> newPositions = getPositions(newGroup.getChildren());\n //calculate what is needed to center the cards\n float centerOffset = UIConstants.WORLD_WIDTH / 2 - newGroup.getPrefWidth() / 2;\n //remove them from the horizontal group and add them back to the normal group so it doesn't try to move them around\n while (newGroup.getChildren().size > 0) {\n cards.addActor(newGroup.getChildren().get(0));\n }\n\n //interpolate all but the invisible card\n cards.getChildren().get(index).setPosition(newPositions.get(index).x,newPositions.get(index).y);\n cards.removeActor(invisibleCard);\n oldPositions.remove(index);\n newPositions.remove(index);\n\n interpolateActorPositions(cards.getChildren(), oldPositions, newPositions, centerOffset, Interpolation.linear,0.2f);\n cards.addActor(invisibleCard);\n }\n }", "title": "" }, { "docid": "7159355a3aee64e2fd690e0e3f831f69", "score": "0.5826564", "text": "public void dealCards() {\r\n\t\tplayer1.setHand(new ArrayList<Card>());\r\n\t\tplayer2.setHand(new ArrayList<Card>());\r\n\t\tplayer1.setMyTurn(true);\r\n\t\tplayer2.setMyTurn(false);\r\n\t\tplayer1.setTillFace(0);\r\n\t\tplayer2.setTillFace(0);\r\n\r\n\t\ttheStack = new ArrayList<Card>();\r\n\t\tshuffleCards(cardDeck);\r\n\r\n\t\tint i = 0;\r\n\t\tfor (Card c : cardDeck)// for (int i = 0; i > cardDeck.size(); i++)\r\n\t\t{\r\n\t\t\tif ((i % 2) == 0) {\r\n\t\t\t\tplayer1.addCard(c);// cardDeck.get(i));\r\n\t\t\t} else {\r\n\t\t\t\tplayer2.addCard(c);// cardDeck.get(i));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tGAME_STARTED = true;\r\n\t}", "title": "" }, { "docid": "e2525f03364272036354b14355c78c90", "score": "0.58260965", "text": "private void letP2arrange() {\n MathModel.generateShipPlacement(player2, boardAdapter2, numGridsside); // Zach's code\n letP1arrange();\n }", "title": "" }, { "docid": "6da74472c12b872576606d14070b0a76", "score": "0.58242905", "text": "Card pullCard();", "title": "" }, { "docid": "3c5ebb6766d10120b25d9fda86e31e0f", "score": "0.5812602", "text": "public Card drawCard()\n {\n if(getSize()==0) return null;\n Card card = cards.get(0);\n cards.remove(card);\n if(getSize()==0) {\n setImage(new GreenfootImage(Card.CARD_IMAGE_LOCATION+EMPTY_DECK));\n }\n return card;\n }", "title": "" }, { "docid": "af538ec0ada2f7db23bcfb2c9290649c", "score": "0.580152", "text": "public void stay(){\n\t\tint total=0;\n\t\tCard temp = d.get(0);\n\t\tCard temp2 = d.get(1);\n\t\ttotal = temp.getPoint() + temp2.getPoint();\n\t\tfor(int i=2; i < d.size()+1; i++){\t\t\t\n\t\t\tif (total < 17){\n\t\t\t\td.add(deck.get(deck.size()-1));\n\t\t\t\tdeck.remove(deck.size()-1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t\t//stay and do nothing\n\t\t\t}\n\t\t\ttemp = d.get(i);\n\t\t\ttotal += temp.getPoint();\n\t\t}\n\n\t}", "title": "" }, { "docid": "dd3347d2bc0ae930b6279bc4c78e0b6f", "score": "0.57951593", "text": "private void refreshOtherVisibleCardsPosition(float offset_x, float offset_y) {\n float factor = (float) (Math.sqrt(offset_x * offset_x + offset_y * offset_y)\n / Math.sqrt(mDragThresholdX * mDragThresholdX + mDragThresholdY * mDragThresholdY));\n factor = Math.min(factor, 1);\n if (getItemCount() > 1) {\n int cardOffset = mCardOffset;\n // count of all the attached cards\n int maxAttachChildrenCount = Math.min(mRecyclerView.getVisibleCardCount(), getItemCount() - 1);\n // count of all the cards required refreshing\n int totalRefreshingCount = Math.min(getItemCount() - 1, mRecyclerView.getVisibleCardCount());\n for (int i = 1; i <= totalRefreshingCount; i++) {\n int childPosition = maxAttachChildrenCount - i;\n View child_i = getChildAt(childPosition);\n // transY\n if (i < mRecyclerView.getVisibleCardCount()) {\n child_i.setTranslationY(-2 * cardOffset * (float) Math.sqrt(factor));\n }\n // scale\n float scaleX_start = (child_i.getWidth() - i * cardOffset * 2) * 1f / child_i.getWidth();\n float scaleX_end = (child_i.getWidth() - (i - 1) * cardOffset * 2) * 1f / child_i.getWidth();\n float scaleY_start = (child_i.getHeight() - i * cardOffset * 2) * 1f / child_i.getHeight();\n float scaleY_end = (child_i.getHeight() - (i - 1) * cardOffset * 2) * 1f / child_i.getHeight();\n float currentScaleX = scaleX_start + (scaleX_end - scaleX_start) * (float) Math.sqrt(factor);\n float currentScaleY = scaleY_start + (scaleY_end - scaleY_start) * (float) Math.sqrt(factor);\n child_i.setScaleX(currentScaleX);\n child_i.setScaleY(currentScaleY);\n\n // calculate the current card ori elevation\n int current = mRecyclerView.getVisibleCardCount() - i;\n int oriElevation = mCardElevation * current;\n int currentElevation = (int) (oriElevation + mCardElevation * (float) Math.sqrt(factor));\n // update transZ\n ViewCompat.setTranslationZ(child_i, currentElevation);\n }\n }\n }", "title": "" }, { "docid": "3a991d7499197e59f4696ff6868839c6", "score": "0.5789483", "text": "public Card draw(){\n\t\tCard card = getCard(0);\n\t\tremoveCard(0);\t\n\t\treturn card;\n\t}", "title": "" }, { "docid": "2e8f996fed2d12816d6cb2ef4ea64a1d", "score": "0.57762307", "text": "public void returnToPos() {\n for (Card card : currentCards)\n card.returnToOldLocation();\n\n currentCards.clear();\n }", "title": "" }, { "docid": "1573bc94d72ece83cff5bfbc31e0010a", "score": "0.5771695", "text": "private void resetDragCard(final View card) {\n final float oriTransX = card.getTranslationX();\n final float oriTransY = card.getTranslationY();\n final float oriRotateDeg = card.getRotation();\n final float oriScaleX = card.getScaleX();\n final float oriScaleY = card.getScaleY();\n final float oriAlpha = card.getAlpha();\n\n final float oriTransZ = ViewCompat.getTranslationZ(card);\n final float targetTransZ = mRecyclerView.getVisibleCardCount() * mCardElevation;\n\n ValueAnimator animator = ValueAnimator.ofFloat(1, 0);\n animator.setInterpolator(new OvershootInterpolator());\n animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float offset = (float) animation.getAnimatedValue();\n card.setTranslationX(oriTransX * offset);\n card.setTranslationY(oriTransY * offset);\n ViewCompat.setTranslationZ(card, targetTransZ + (oriTransZ - targetTransZ) * offset);\n card.setRotation(oriRotateDeg * offset);\n card.setScaleX((oriScaleX - 1) * offset + 1);\n card.setScaleY((oriScaleY - 1) * offset + 1);\n card.setAlpha((oriAlpha - 1) * offset + 1);\n refreshOtherVisibleCardsPosition(oriTransX * offset, oriTransY * offset);\n dispatchOnDragEvent(card, false, false, oriTransX * offset, oriTransY * offset);\n\n }\n });\n animator.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n ViewCompat.setTranslationZ(mRecyclerView, -1);\n }\n });\n animator.setDuration(500);\n animator.start();\n }", "title": "" }, { "docid": "1600f47e6b0ebfb9e32ddcd4d2ed969f", "score": "0.57504207", "text": "public CardPanel(Card card, Game game) {\n this.card = card;\n this.game = game;\n setOpaque(false);\n\n if (card == null) {\n try {\n img = ImageIO.read(getClass().getResource(\"/images/emptyCard.png\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n } else {\n try {\n if (card.isTurnedFaceUp())\n img = ImageIO.read(getClass().getResource(card.getImage()));\n else\n img = ImageIO.read(getClass().getResource(\"/images/Back.png\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n addMouseMotionListener(new MouseMotionAdapter() {\n /**\n * Metoda, ktora umoznuje vizualizovat presuvanie kariet.\n * @param me Udalost, ktora sa spracovava - presun pomocou mysi.\n */\n @Override\n public void mouseDragged(MouseEvent me) {\n me.translatePoint(me.getComponent().getLocation().x, me.getComponent().getLocation().y);\n CardPanel p = getCardPanel();\n ArrayList<CardPanel> cards = new ArrayList<>();\n cards.add(p);\n int j = 0;\n\n if (p.getCard() == null)\n return;\n else if (!p.getCard().isTurnedFaceUp())\n return;\n\n Container stackPanel = getStack_from();\n\n if (stackPanel instanceof StackPanelInterface) {\n StackPanel stackPanel1 = (StackPanel) stackPanel;\n int index = stackPanel1.getCards().indexOf(p);\n int maxIndex = stackPanel1.getCards().size() - 1;\n\n while (index < maxIndex) {\n index++;\n cards.add(stackPanel1.getCards().get(index));\n getTable().add(stackPanel1.getCards().get(index), 0);\n }\n }\n for (int i = 0; i < cards.size(); i++) {\n cards.get(i).setLocation(me.getX(), me.getY() + j);\n j += 20;\n }\n }\n\n @Override\n public void mouseMoved(MouseEvent e) {\n }\n });\n\n\n addMouseListener(new MouseAdapter() {\n /**\n * Metoda, ktora nastavi danemu CardPanelu rodica - komponentu ktorej patri,\n * aby sme kartu v pripade neuspesneho presunu vedeli polozit na spravne povodne miesto.\n * @param me Udalost, ktora sa spracovava - stlacenie tlacidla mysi.\n */\n @Override\n public void mousePressed(MouseEvent me) {\n CardPanel p = getCardPanel();\n\n if (p.getCard() == null)\n return;\n else if (!p.getCard().isTurnedFaceUp())\n return;\n\n setTable(p.getParent().getParent());\n setStack_from(p.getParent());\n\n getStack_from().repaint();\n getStack_from().remove((p));\n getTable().add(p, 0);\n }\n\n /**\n * Metoda nastavi ako cielove umiestnenie karty miesto na ktorom sme pustili tlacidlo mysi.\n * Potom sa na toto miesto pokusi polozit kartu - ak je polozenie mozne, tak sa zavola metoda,\n * ktora toto polozenie vykona, inak sa zavola metoda, ktora vrati kartu na pvodne miesto.\n * @param me Udalost, ktora sa spracovava - pustenie tlacidla mysi.\n */\n @Override\n public void mouseReleased(MouseEvent me) {\n if (getCard() == null)\n return;\n else if (!getCard().isTurnedFaceUp())\n return;\n\n Container table = getTable();\n Container stack_from = getStack_from();\n\n table.setComponentZOrder(getCardPanel(), table.getComponentCount() - 1);\n setStack_to((Container) table.getComponentAt(getLocation().getLocation()));\n\n if (getStack_to() == null) {\n return_card();\n return;\n }\n\n int to;\n Component cmp_to = table.getComponentAt(getLocation());\n CardDeck card_st_to;\n if (cmp_to instanceof DeckPanelInterface) {\n card_st_to = ((DeckPanelInterface) cmp_to).getDeck();\n to = TARGET;\n } else if (cmp_to instanceof StackPanelInterface) {\n card_st_to = ((StackPanelInterface) cmp_to).getStack();\n to = WORKING;\n } else {\n return_card();\n return;\n }\n\n int from;\n CardDeck card_st_from;\n if (stack_from instanceof WastedPanel) {\n card_st_from = ((WastedPanel) stack_from).getDeck();\n from = WASTE;\n } else if (stack_from instanceof StackPanelInterface) {\n card_st_from = ((StackPanelInterface) stack_from).getStack();\n from = WORKING;\n } else if (stack_from instanceof TargetPanel) {\n card_st_from = ((TargetPanel) stack_from).getDeck();\n from = TARGET;\n } else {\n return_card();\n return;\n }\n\n if (card_st_to.checkPut(getCard())) {\n\n put_card(card_st_from, card_st_to, from, to);\n } else {\n return_card();\n }\n\n }\n });\n }", "title": "" }, { "docid": "65d84a49702d56f93a44808597d137f8", "score": "0.57469577", "text": "public void removeLastCard()\r\n\t{\r\n\t\tthis.pile.removeLastCard();\r\n\t}", "title": "" }, { "docid": "c243d23def6481c96ca548b609010a66", "score": "0.57440174", "text": "public Card draw() {\n //Check if pile empty, if so, take top card, shuffle played deck and make take deck from it\n int takeDeckSize = deck.size();\n if (takeDeckSize == 0) {\n replaceTakeDeck();\n }\n\n Card lastCard = deck.getLast();\n deck.remove(lastCard);\n drawnCards.add(lastCard);\n\n return lastCard;\n }", "title": "" }, { "docid": "271498a56cacc7c0f5e1f4f614ffc70f", "score": "0.5738594", "text": "public Card drawCard() {\n Card result = null;\n if (hasMoreCards()) {\n result = cards[--topCard];\n }\n return result;\n }", "title": "" }, { "docid": "f77e6a5896e477fa1c4c241cfdb52153", "score": "0.5731254", "text": "public Card drawCard()\n {\n Card drawn = shoe.remove(0);\n return drawn;\n }", "title": "" }, { "docid": "a0e3b26244fa0b48934a1dafeaf80374", "score": "0.57285017", "text": "private void put_card(CardDeck card_dc_from, CardDeck card_dc_to, int from, int to) {\n CardStack card_st_from, s;\n Card c, c2;\n int size;\n boolean b = false;\n\n if (card_dc_from instanceof CardStack) {\n\n card_st_from = (CardStack) card_dc_from;\n s = card_st_from.pop(this.card);\n size = s.size();\n\n c2 = card_st_from.get();\n if (c2 != null) {\n b = c2.turnFaceUp();\n }\n\n if (s.size() == 1) {\n card_dc_to.put(s.pop());\n } else if (card_dc_to instanceof CardStack) {\n ((CardStack) card_dc_to).put(s);\n } else {\n if (s.size() > 1)\n return_card();\n else {\n if (s.get() != null)\n card_dc_to.put(s.get());\n }\n }\n\n // ulozenie tahu\n this.game.pushItem(new UndoStackItem(card_st_from, card_dc_to, getStack_from(), getStack_to(), size, b, game.getScore()));\n // bodovanie\n this.game.scoring(from, to);\n if (b) this.game.scoring(ROTATE);\n } else {\n c = card_dc_from.pop();\n card_dc_to.put(c);\n\n c2 = card_dc_from.get();\n if (c2 != null)\n b = c2.turnFaceUp();\n\n // uloženie ťahu\n this.game.pushItem(new UndoStackItem(card_dc_from, card_dc_to, getStack_from(), getStack_to(), b, game.getScore()));\n this.game.scoring(from, to);\n }\n\n Container xx = getStack_to();\n if (xx == null) {\n return;\n }\n xx.add(getCardPanel());\n xx.revalidate();\n xx.repaint();\n\n Container game_con = getTable().getParent();\n while (!(game_con instanceof JFrame))\n game_con = game_con.getParent();\n if (game_con instanceof OneGame) {\n OneGame tmp_game = (OneGame) game_con;\n tmp_game.revalidateScore();\n tmp_game.revalidateScore();\n } else {\n FourGames tmp_game = (FourGames) game_con;\n int gameNum = tmp_game.getGameNumber(this.game);\n tmp_game.revalidateScore(gameNum);\n tmp_game.revalidateScore(gameNum);\n }\n\n getTable().remove(getCardPanel());\n getTable().revalidate();\n getTable().repaint();\n\n\n getStack_from().add(this);\n if (getStack_from() instanceof StackPanel) {\n StackPanel stack = (StackPanel) getStack_from();\n int index = stack.getCards().indexOf(this);\n int maxIndex = stack.getCards().size() - 1;\n\n while (index < maxIndex) {\n index++;\n getTable().remove(stack.getCards().get(index));\n }\n }\n\n getStack_from().remove(this);\n getStack_from().revalidate();\n getStack_from().repaint();\n\n if (this.game.checkWin()) {\n Container con = getTable();\n while (!(con instanceof JFrame))\n con = con.getParent();\n\n if (con instanceof OneGame) {\n OneGame frame = (OneGame) con;\n\n NewGameDialog.Decision decision;\n\n WinnerDialog dialog = new WinnerDialog(frame, true);\n dialog.setLocationRelativeTo(null);\n dialog.setVisible(true);\n decision = dialog.getDecision();\n\n if (decision == null)\n return;\n switch (decision) {\n case CLOSE:\n break;\n\n case NEW:\n frame.setGaming(false);\n frame.setDefault();\n frame.newGame();\n break;\n\n case EXIT:\n frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));\n }\n }\n\n if (con instanceof FourGames) {\n FourGames frame = (FourGames) con;\n MoreGamesWinnerDialog dialog = new MoreGamesWinnerDialog(frame, true);\n dialog.setLocationRelativeTo(null);\n dialog.setVisible(true);\n int gameNum = frame.getGameNumber(this.game);\n if (gameNum != 0) {\n frame.hidePanels(gameNum);\n frame.setDefault(gameNum);\n frame.cancelGaming(gameNum);\n }\n }\n }\n\n }", "title": "" }, { "docid": "b67f5a2692497b5b9e481dabad011d7b", "score": "0.57208055", "text": "private void deal() {\n\n cards.add(new Card(52));\n cards.add(new Card(2));\n cards.add(new Card(11));\n cards.add(new Card(47));\n cards.add(new Card(13));\n cards.add(new Card(2));\n cards.add(new Card(47));\n cards.add(new Card(36));\n cards.add(new Card(2));\n cards.add(new Card(12));\n cards.add(new Card(23));\n cards.add(new Card(49));\n cards.add(new Card(47));\n\n }", "title": "" }, { "docid": "0ccda847849fc47377f100889103a802", "score": "0.5719026", "text": "private void dropCard(final View card) {\n final float oriTransX = card.getTranslationX();\n final float oriTransY = card.getTranslationY();\n final float oriRotateDeg = card.getRotation();\n final float oriScaleX = card.getScaleX();\n final float oriScaleY = card.getScaleY();\n final float oriAlpha = card.getAlpha();\n\n ValueAnimator animator = ValueAnimator.ofFloat(1, 0);\n animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float offset = (float) animation.getAnimatedValue();\n card.setTranslationX(3 * oriTransX - 2 * oriTransX * offset);\n card.setTranslationY(3 * oriTransY - 2 * oriTransY * offset);\n card.setRotation(3 * oriRotateDeg - 2 * oriRotateDeg * offset);\n card.setScaleX(oriScaleX * offset);\n card.setScaleY(oriScaleY * offset);\n card.setAlpha(oriAlpha * offset);\n refreshOtherVisibleCardsPosition(mDragThresholdX + (Math.abs(oriTransX) - mDragThresholdX) * offset,\n mDragThresholdY + (Math.abs(oriTransY) - mDragThresholdY) * offset);\n dispatchOnDragEvent(card, false, false, oriTransX, oriTransY);\n }\n });\n animator.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n if (null != mRecyclerView && null != mRecyclerView.getAdapter()) {\n mRecyclerView.dropCard();\n dispatchOnDragEvent(card, false, true, oriTransX, oriTransY);\n ViewCompat.setTranslationZ(mRecyclerView, -1);\n }\n }\n });\n animator.setDuration(300);\n animator.start();\n }", "title": "" }, { "docid": "29226e997cdd3affbc00dbe6851c9208", "score": "0.5706262", "text": "public Card draw() {\n\t\tCard result = this.getCard(0);\n\t\tthis.removeCard(0);\n\t\tthis.reset();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "7032d3d834eb46a9f5a9f60da64ab3ed", "score": "0.5697846", "text": "public synchronized Card drawCard() {\n // gets top card of deck\n Card returnCard = this.deck.get(0);\n // removes card from the deck\n this.deck.remove(0);\n return returnCard;\n }", "title": "" }, { "docid": "69f337175b38a286461ad89052e35857", "score": "0.5694847", "text": "public static void gameView(){//fungsi ini panjang karena menginisiasi segalanya, jadi menurut saya tidak apa apa panjang\n Image back = new Image(\"com/wallppg.jpg\");\n ImageView bg = new ImageView(back);\n BackgroundSize bSize = new BackgroundSize(1.0,1.0, true, true, false, false);\n\n HBox store = new HBox();\n store.setMinHeight(440);\n store.setAlignment(Pos.CENTER);\n CardView.cardDisp.getChildren().add(CardView.drawCard(new Character(),230));\n store.getChildren().add(CardView.cardDisp);\n\n BorderPane cardLayout2 = new BorderPane();\n cardLayout2.setMinWidth(250);\n cardLayout2.setMaxHeight(400);\n cardLayout2.setBorder(new Border(new BorderStroke(Color.WHITE,BorderStrokeStyle.SOLID,null, new BorderWidths(2))));\n\n HBox store2 = new HBox();\n store2.setMinHeight(440);\n store2.setAlignment(Pos.CENTER);\n store2.getChildren().add(cardLayout2);\n \n FieldSide.initLandUI();\n // Left Layout\n //land layout\n BorderPane landp1 = new BorderPane();\n landp1.setCenter(FieldSide.land1);\n BorderPane landp2 = new BorderPane ();\n landp2.setCenter(FieldSide.land2);\n VBox landLayout = new VBox();\n HBox padLand = new HBox();\n padLand.setMinHeight(30);\n landLayout.setAlignment(Pos.CENTER);\n landLayout.getChildren().add(landp2);\n landLayout.getChildren().add(padLand);\n landLayout.getChildren().add(landp1);\n\n //lef layout in main\n BorderPane sidebar = new BorderPane();\n sidebar.setMinWidth(290);\n sidebar.setMinHeight(880);\n sidebar.setTop(store);\n sidebar.setBottom(store2);\n\n BorderPane bigger = new BorderPane();\n\n // Right Layout\n BorderPane plane = new BorderPane();\n plane.setMinWidth(900);\n plane.setMaxHeight(840);\n plane.setTop(FieldView.generateField(State.p2));\n BorderPane atas = new BorderPane();\n HBox spaces = new HBox();\n spaces.setMinHeight(100);\n spaces.setMaxWidth(750);\n spaces.setBorder(new Border(new BorderStroke(Color.WHITE,BorderStrokeStyle.SOLID,null, new BorderWidths(2))));\n spaces.getChildren().add(HandView.p2Hand);\n atas.setBottom(spaces);\n atas.setTop(HealthView.hpBar(State.p2,HealthView.healthp2));\n\n //bar\n BorderPane bawah = new BorderPane();\n HBox spaces2 = new HBox();\n spaces2.setMinHeight(100);\n spaces2.setMaxWidth(750);\n spaces2.setBorder(new Border(new BorderStroke(Color.WHITE,BorderStrokeStyle.SOLID,null, new BorderWidths(2))));\n spaces2.getChildren().add(HandView.p1Hand);\n bawah.setTop(spaces2);\n bawah.setBottom(HealthView.hpBar(State.p1,HealthView.healthp1));\n plane.setBottom(FieldView.generateField(State.p1));\n bigger.setCenter(plane);\n Buttons.init();\n bigger.setRight(Buttons.phaseButtons());\n bigger.setTop(atas);\n bigger.setBottom(bawah);\n\n HandView.init();\n\n BorderPane layoutBigger = new BorderPane();\n layoutBigger.setCenter(bigger);\n layoutBigger.setLeft(landLayout);\n\n HBox planeBox = new HBox();\n planeBox.setMinWidth(1000);\n planeBox.setAlignment(Pos.CENTER);\n planeBox.getChildren().add(layoutBigger);\n\n //grid bar\n // Main Layout\n BorderPane mainLayout = new BorderPane();\n mainLayout.setBackground(new Background(new BackgroundImage(back,\n BackgroundRepeat.NO_REPEAT,\n BackgroundRepeat.NO_REPEAT,\n BackgroundPosition.CENTER,\n bSize)));\n mainLayout.setLeft(sidebar);\n mainLayout.setCenter(planeBox);\n RegView.Screen.getChildren().clear();\n RegView.Screen.getChildren().add(mainLayout);\n }", "title": "" }, { "docid": "fac42b944b525a34fc906c8b748f95ab", "score": "0.56826884", "text": "public Card draw() {\n\t\treturn cards.remove(cards.size() - 1);\n\t}", "title": "" }, { "docid": "5b55a15138938488e7cce5f5b6d18b8e", "score": "0.566887", "text": "public void compactOpenCards()\r\n {\r\n // Partitioning algorithm (proceed from both ends):\r\n int size = 0;\r\n LinkedList<Integer> emptyIndices = new LinkedList<Integer>();\r\n for (int x = 0; x < dfltOpenCards; x++) {\r\n if (openCards[x]==null)\r\n emptyIndices.add(x);\r\n }\r\n ListIterator iter = emptyIndices.listIterator();\r\n size = emptyIndices.size();\r\n int count = 0;\r\n for (int x = 19; x <= dfltOpenCards; x--) {\r\n if (openCards[x]!=null && count<size) {\r\n int ind = (int)(iter.next());\r\n openCards[ind]=openCards[x];\r\n openCards[x]=null;\r\n count++;\r\n }\r\n }\r\n\r\n // int[] emptySlots = new int[20];\r\n // int count = 0;\r\n // // for (ZetCard eachCard: openCards)\r\n // // {\r\n // // if (eachCard == null)\r\n // // {\r\n // // emptySlots[count] = 1;\r\n // // count++;\r\n // // }\r\n // // }\r\n // // // for (int i = dfltOpenCards; i < openCards; i++)\r\n // // // {\r\n // // // for (int wq: emptySlots)\r\n // // // {\r\n // // // if (wq == 1) \r\n // // // {\r\n // // // {\r\n // // // \r\n // // // }\r\n // // // }\r\n // // // }\r\n // // // }\r\n }", "title": "" }, { "docid": "dafb8f3b16e6c4397f226ac5dde441dc", "score": "0.5668313", "text": "public CardGraphic(Card card, ActionMap actionmap, Natural row, Natural column, GameWindow gamewindow, Point drawLocation)\n {\n\n }", "title": "" }, { "docid": "f65aa81de7c9a90500cb0ae079baa9ed", "score": "0.5659607", "text": "public void replaceTakeDeck() {\n\n deck = drawnCards;\n drawnCards = new LinkedList<>();\n shuffle();\n }", "title": "" }, { "docid": "d16a0f09204d01844461d59d9e69626f", "score": "0.56485736", "text": "public void showCards() throws InterruptedException {\r\n \r\n \t//this for loop removes all JPanels\tfrom the JPanelList (so lang as JPanelList isn't empty)\r\n \tif(JPanelList.size() != 0) {\r\n \t\tfor(int i=0; i<JPanelList.size();i++){\r\n this.remove(JPanelList.get(i));\r\n \t\t}\r\n \t}\r\n \t\r\n \t//Creates JPanels \r\n \tthis.createJPanels();\r\n \r\n //Values of JPanel axis\r\n this.x_Achse = 15;\r\n this.y_Achse = 5;\r\n \r\n for (int i = 0; i < Deck.displayed.size(); i++) {\r\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//i < 4 1.Zeile\r\n size = Deck.displayed.size() / 3;\r\n if (i >= size && i < size * 2) { //second line\r\n if (i == size) {\r\n this.setXAchseDefault();\t\t\t\t\t\t\t\t//first position from the respective line therefore we have to set the value of the x-axis to default\r\n }\r\n this.y_Achse = 240;\r\n } else if (i >= size * 2 && i < Deck.displayed.size()) { //third line\r\n if (i == size * 2) {\r\n this.setXAchseDefault();\t\t\t\t\t\t\t\t//same like line 181\r\n }\r\n this.y_Achse = 475;\r\n }\r\n\r\n //JPanel properties\r\n JPanelList.get(i).setBounds(x_Achse, y_Achse, Design.PANEL_WIDTH, Design.PANEL_HEIGHT);\r\n JPanelList.get(i).setBackground(Color.WHITE);\r\n JPanelList.get(i).setBorder(null);\r\n \r\n //number == amount of \"symbols\" of a respective card in the ArrayList \"displayed\"\r\n number = Integer.parseInt(Deck.displayed.get(i).getNumber());\r\n \r\n //To each JPanel which are in the ArrayList \"JPanelList\" will add of the amount of \"number\" Card Symbols \r\n switch (number) {\r\n case 1:\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())));\r\n break;\r\n case 2:\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())), number, Deck.displayed.get(i));\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())), number, Deck.displayed.get(i));\r\n break;\r\n case 3:\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())), number, Deck.displayed.get(i));\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())), number, Deck.displayed.get(i));\r\n JPanelList.get(i).setInto(new JLabel(new ImageIcon(Deck.displayed.get(i).getIcon())), number, Deck.displayed.get(i));\r\n break;\r\n }\r\n //Position of JPanels on the X-Axis\r\n x_Achse += 130;\r\n\r\n //Add components into Frame \r\n this.setJMenuBar(menuBar);\r\n //Add JPanel into JFrame\r\n this.add(JPanelList.get(i));\r\n \r\n }//for(int i;...;...) closing\r\n \r\n //Here the JFrame is drawn once more as needed\r\n this.setSize(x_Achse + 15, this.getHeight()); \r\n this.validate();\r\n this.repaint();\r\n\r\n //prophibits any activity within the frame\r\n this.setEnabled(false);\r\n }", "title": "" }, { "docid": "adc89314761f15991ada4da32b0e2135", "score": "0.5625602", "text": "public boolean reserveCard() {\n boolean reserve = turnManager.getCurrentPlayer().reserve();\n if (reserve)\n drawCard();\n return reserve;\n }", "title": "" }, { "docid": "a0d464b7216821a25cde252d90d5c270", "score": "0.5615028", "text": "@Override\n public void playerThrewReject(Card card) {\nSystem.out.println(\"++++++++++++++++++++++ @GameActivity.playerThrewReject() --- \" + currentRound.turnPlayer + \" ---- user turn \" + currentRound.userTurn());\n\n //if not user player, display rejected card\n if(!currentRound.userTurn()){\n PlayerLayoutWrapper pl = playerAvatars.get(currentRound.turnPlayer);\n pl.textView.setText(currentRound.turnPlayer.getStatusText());\n\n\n //animateCpuPlayerReject(card);\n reject.layoutContainer();\n }\n\n }", "title": "" }, { "docid": "7e076303427c0ee519762b3e563dd033", "score": "0.56127703", "text": "public void drawCards() {\n for (int i = actionDeck.size(); i < drawSize; i++) {\n // exit if being has already drawn their entire deck\n if (actionDeck.size() == deck.size()) {\n return;\n }\n\n // fill draw pile from discard pile as necessary\n if (drawPile.isEmpty()) {\n // Reset this player's draw pile\n drawPile.addAll(discardPile);\n discardPile.clear();\n Collections.shuffle(drawPile);\n }\n\n Card card = drawPile.remove(0);\n actionDeck.add(card);\n }\n }", "title": "" }, { "docid": "4ad7bc58846b73919e0536c40e34663d", "score": "0.5609612", "text": "private void calculate() {\n //if cards16 are equal, remove them and add point\n if (firstCard == secondCard){\n\n beep.start();\n\n if (clickedFirst == 0) {\n iv_8_11.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 1) {\n iv_8_12.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 2) {\n iv_8_21.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 3) {\n iv_8_22.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 4) {\n iv_8_31.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 5) {\n iv_8_32.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 6) {\n iv_8_41.setVisibility(View.INVISIBLE);\n } else if (clickedFirst == 7) {\n iv_8_42.setVisibility(View.INVISIBLE);\n }\n\n if (clickedSecond == 0) {\n iv_8_11.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 1) {\n iv_8_12.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 2) {\n iv_8_21.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 3) {\n iv_8_22.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 4) {\n iv_8_31.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 5) {\n iv_8_32.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 6) {\n iv_8_41.setVisibility(View.INVISIBLE);\n } else if (clickedSecond == 7) {\n iv_8_42.setVisibility(View.INVISIBLE);\n }\n\n //add points to the correct player\n\n if (turn ==1) {\n playerPoints++;\n tv_p1.setText(p1_name + \": \" + playerPoints);\n }\n } else {\n playerPoints++;\n tv_p1.setText(p1_name + \": \" + playerPoints);\n\n iv_8_11.setImageResource(R.drawable.ic_back);\n iv_8_12.setImageResource(R.drawable.ic_back);\n\n iv_8_21.setImageResource(R.drawable.ic_back);\n iv_8_22.setImageResource(R.drawable.ic_back);\n\n iv_8_31.setImageResource(R.drawable.ic_back);\n iv_8_32.setImageResource(R.drawable.ic_back);\n\n iv_8_41.setImageResource(R.drawable.ic_back);\n iv_8_42.setImageResource(R.drawable.ic_back);\n\n }\n iv_8_11.setEnabled(true);\n iv_8_12.setEnabled(true);\n\n iv_8_21.setEnabled(true);\n iv_8_22.setEnabled(true);\n\n iv_8_31.setEnabled(true);\n iv_8_32.setEnabled(true);\n\n iv_8_41.setEnabled(true);\n iv_8_42.setEnabled(true);\n\n\n //check if the game is over\n checkEnd();\n }", "title": "" }, { "docid": "f59e1b81696d63d2507d9bcee7883fe9", "score": "0.5604999", "text": "public Card draw() {\n\t\treturn deck.remove(deck.size() - 1);\r\n\t}", "title": "" }, { "docid": "0df34ba0a6ebfa3c9acf91dd5a3cb87b", "score": "0.5601359", "text": "public Card draw() {\n\t\tif(cardDeck.isEmpty()) {\n\t\t\tCollections.shuffle(treasureDiscardPile); // shuffle\n\t\t\tCollections.reverse(treasureDiscardPile);// turn over\n\t\t\tcardDeck = treasureDiscardPile;\n\t\t\ttreasureDiscardPile.clear();\n\t\t}\n\t\t\n\t\treturn cardDeck.pop();\n\t}", "title": "" }, { "docid": "acf558a7afd75e5bae9ec6e8e464b488", "score": "0.56002927", "text": "public AmmoTileCard draw(){\n AmmoTileCard drawn;\n\n if(activeDeck.isEmpty())\n this.setActiveDeck();\n\n drawn=activeDeck.get(0);\n activeDeck.remove(0);\n return drawn;\n }", "title": "" }, { "docid": "b00d9b606f0ce85ed14c17ed59318b23", "score": "0.5599416", "text": "private void addCard(SolitaireCard card) {\n if(!endStack) {\n if(card.getPile() != null)\n card.getPile().removeTop();\n\n card.setPile(this);\n card.setLocation(getX(), getY() + calcOffset());\n cards.push(card);\n card.setDrag(true);\n }else {\n if(card.getPile() != null) {\n card.getPile().removeTop();\n card.setPile(this);\n }\n card.setPile(this);\n topEndCard = card;\n card.setLocation(getX(), getY());\n card.setDrag(false);\n }\n }", "title": "" }, { "docid": "36519d2bef25bfc54d5fefc417ceee2e", "score": "0.5587607", "text": "public void makeMove() {\n topCard = count(hand);\n idealCardValue = topCard[2];\n idealCardQuantity = topCard[1];\n\n // If we do, we have an ideal card to look for in discard pile.\n if (idealCardQuantity <= 1) {\n hasIdealCard = false;\n hasNextIdeal = false;\n } else {\n hasIdealCard = true;\n }\n\n handWithoutBestCard.clear();\n\n // If we have more than one card of a kind, check for second ideal. Mark true if\n // we have one, false if we don't.\n if (hasIdealCard) {\n handWithoutBestCard.addAll(hand);\n for (Card D : hand) {\n if (D.getValue() == idealCardValue) {\n handWithoutBestCard.remove(D);\n }\n }\n\n nextTopCard = count(handWithoutBestCard);\n secondChoiceValue = nextTopCard[2];\n secondChoiceQuantity = nextTopCard[1];\n\n if (secondChoiceQuantity <= 1) {\n hasNextIdeal = false;\n } else {\n hasNextIdeal = true;\n }\n }\n\n // Check if the discard pile has a matching card, to any card in our hand.\n boolean discardHasMatchingCard = false;\n if (!discardPile.empty()) {\n for (Card N : hand) {\n if (discardPile.peek().getValue() == N.getValue()) {\n discardHasMatchingCard = true;\n break;\n }\n }\n }\n\n // If discard pile has any card I have, take it.\n if (discardHasMatchingCard) {\n System.out.println(\"Player \" + playerNumber + \" draws the \" + discardPile.peek().toString()\n + \" from the discard pile.\");\n hand.add(discardPile.peek());\n discardPile.pop();\n }\n // If not, we draw from the pile.\n else {\n System.out.println(\"Player \" + playerNumber + \" draws from the draw pile.\");\n hand.add(drawPile.pop());\n }\n\n checkWinStatus();\n // With our new hand, we re assess and see if we have more than one of a kind of\n // card.\n topCard = count(hand);\n idealCardValue = topCard[2];\n idealCardQuantity = topCard[1];\n //If we have more than one of a card, we have an ideal card, i.e a card we should get more of to win.\n if (idealCardQuantity <= 1) {\n hasIdealCard = false;\n } else {\n hasIdealCard = true;\n }\n\n /* \n *Create a hypothetical second hand, without the ideal card, to determine if we\n * have any other cards of a kind.\n * I just remove the ideal cards and run it through my count method again.\n\n */ \n handWithoutBestCard.clear();\n if (hasIdealCard) {\n handWithoutBestCard.addAll(hand);\n for (Card D : hand) {\n if (D.getValue() == idealCardValue) {\n handWithoutBestCard.remove(D);\n }\n }\n nextTopCard = count(handWithoutBestCard);\n secondChoiceValue = nextTopCard[2];\n secondChoiceQuantity = nextTopCard[1];\n if (secondChoiceQuantity <= 1) {\n hasNextIdeal = false;\n } else {\n hasNextIdeal = true;\n }\n }\n // We know should know if we have any cards worth keeping, so discard.\n discard();\n // And check if I win.\n checkWinStatus();\n }", "title": "" }, { "docid": "4a4759f8c8d685273fbac180dffb4aae", "score": "0.5587581", "text": "public void backMove() {\n\t\n\tif(x0<=50) {\n\tx0=x0-1;\n\tx1=x1-8;\n\tx2=x2-15;\n\t}\n\t}", "title": "" }, { "docid": "fbb7f626736a33b0017d8ceedc5f8dd9", "score": "0.5587417", "text": "private void hideEveryRevealedCard() {\n\t\t\n\t\tfor(int nCard = 0; nCard < cards.size(); nCard++) {\n\t\t\t\n\t\t\tif(!cards.get(nCard).isFaceDown()) {\n\t\t\t\t\n\t\t\t\tcards.get(nCard).setVisible(false);\n\t\t\t\tcards.get(nCard).setEnabled(false);\n\t\t\t\tcards.remove(nCard);\n\t\t\t\tnCard--;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "f35217e07f83a7ff2146b156a57ca103", "score": "0.558279", "text": "public void keepWarDeck(){\r\n\t\tfor( int i=0; i < getWarDeck().getCardsLeft(); i++){\r\n\t\t\tgetWinDeck().addCard( getWarDeck().getCard(i) );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "be64be2a00d8ca49ea0d6b7002bc0d9c", "score": "0.5564256", "text": "boolean cardExposed(int row, int card);", "title": "" }, { "docid": "8f0ebdc8575d5ab3510d172b5599caee", "score": "0.55624306", "text": "public void dealStartingHands() {\r\n\t\t//deal dealer's cards; one is face down\r\n\t\tPlayingCard tempCard = deck.draw();\r\n\t\tplayers.get(0).getCards(0).add(tempCard);\r\n\t\tplayerPanels.get(0).addCard(0, tempCard);\r\n\t\ttempCard = deck.draw();\r\n\t\ttempCard.setFaceUp(false);\r\n\t\tplayers.get(0).getCards(0).add(tempCard);\r\n\t\tplayerPanels.get(0).addCard(0, tempCard);\r\n\t\t//deal player cards\r\n\t\tfor(int i = 1; i < 5; i++) {\r\n\t\t\tif(players.get(i).getPlayerType() != BlackjackPlayerType.CLOSED) {\r\n\t\t\t\ttempCard = deck.draw();\r\n\t\t\t\tplayers.get(i).getCards(0).add(tempCard);\r\n\t\t\t\tplayerPanels.get(i).addCard(0, tempCard);\r\n\t\t\t\ttempCard = deck.draw();\r\n\t\t\t\tplayers.get(i).getCards(0).add(tempCard);\r\n\t\t\t\tplayerPanels.get(i).addCard(0, tempCard);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5fc7a35573d40603c41ae53dda0ea850", "score": "0.55599916", "text": "private void drawCardsOnBoard() {\n\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tArrayList<Card> board = game.getBoard();\n\t\tint countTreasure = 0;\n\t\tfor (Card c : board) {\n\t\t\tif (c.getType() == GameUtils.CARDTYPE_TREASURE)\n\t\t\t\tcountTreasure++;\n\t\t}\n\t\tif (countTreasure > 0)\n\t\t\tstepTreasure = (UIConfig.boardWidth - UIConfig.boardCardWidth)\n\t\t\t\t\t/ (countTreasure);\n\t\tif (board.size() > countTreasure)\n\t\t\tstepAction = (UIConfig.boardWidth - UIConfig.boardCardWidth)\n\t\t\t\t\t/ ((board.size() - countTreasure));\n\t\tif (stepTreasure > UIConfig.defaultstep)\n\t\t\tstepTreasure = UIConfig.defaultstep;\n\t\tif (stepAction > UIConfig.defaultstep)\n\t\t\tstepAction = UIConfig.defaultstep;\n\n\t\tfor (Card c : board) {\n\t\t\tif (c.getType() == GameUtils.CARDTYPE_TREASURE) {\n\t\t\t\tbatch.draw(c.getTexture(), UIConfig.boardX + i * stepTreasure,\n\t\t\t\t\t\tUIConfig.boardY, UIConfig.boardCardWidth,\n\t\t\t\t\t\tUIConfig.boardCardHeight, 0, 0, UIConfig.textureWidth,\n\t\t\t\t\t\tUIConfig.textureHeight, false, false);\n\t\t\t\ti++;\n\t\t\t} else {\n\t\t\t\tbatch.draw(c.getTexture(), UIConfig.boardX + j * stepAction,\n\t\t\t\t\t\tUIConfig.boardY + UIConfig.boardCardHeight\n\t\t\t\t\t\t\t\t+ UIConfig.heightStep, UIConfig.boardCardWidth,\n\t\t\t\t\t\tUIConfig.boardCardHeight, 0, 0, UIConfig.textureWidth,\n\t\t\t\t\t\tUIConfig.textureHeight, false, false);\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "a1c5983dbc7e3b145290125c53373377", "score": "0.5556253", "text": "public ClueCard drawClueCard()\r\n {\r\n //IF clueCards list is not empty\r\n if (!clueCards.isEmpty())\r\n {\r\n //RETURN clue card at clueCard size - 1 by removing it from the list\r\n return clueCards.remove(clueCards.size() - 1);\r\n //ENDIF\r\n }\r\n //RETURN null if the list is empty.\r\n return null;\r\n }", "title": "" }, { "docid": "c022c348de7f41e4cc30cb57a5b27f5a", "score": "0.55519", "text": "private void showCard() {\n }", "title": "" }, { "docid": "cc044dee6a375400b80110940848a2d3", "score": "0.5550841", "text": "public void drawCard(Stack _stack) {\r\n\t}", "title": "" }, { "docid": "18302e18e0585e6a8a7d0454bd5b7258", "score": "0.5539074", "text": "@Override\r\n\t\t\tpublic void adjusthand() {\r\n\t\t\t\tfor (int i = 0; i < handlength; i+=1){\r\n\t\t\t\t\tif (hand[i].getName().equalsIgnoreCase(\"no card\")){\r\n\t\t\t\t\t\tOmenscard temp= hand[i];\r\n\t\t\t\t\t\thand[i] = hand[i+1]; \r\n\t\t\t\t\t\thand[i+1] = temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}}", "title": "" }, { "docid": "7131fa2128c13785a63919cb3b86a55b", "score": "0.55255675", "text": "CardSet detectUserPlayerSet(int cardPosition){\n\n\n Card cX = currentRound.userPlayer.hand.get(cardPosition);\n CardSet set = null;\n\nSystem.out.println(\"detecting set in position \" + cardPosition);\n\nSystem.out.println(\"@\" + cX.getContentString() + \" backward\");\n\n //back\n for(int i=cardPosition-1 ; i > -1 ; i--){\n Card cY = currentRound.userPlayer.hand.get(i);\nSystem.out.println(\"\\t with \" + cY.getContentString());\n\n\n if(cX.isAce()){\n cX.debug = true;\n cX.setAceModeInRelationToCard(cY);\n }\n if(cY.isAce()){\n cY.debug = true;\n cY.setAceModeInRelationToCard(cX);\n }\n\nSystem.out.println(\"detectUserPlayerSet:: 1/\" + cX.getContentString() + \" - \" + cY.getContentString());\n\n if(set==null && CardSet.associateable(cX,cY)!=-1){\nSystem.out.println(\"detectUserPlayerSet:: 2/\" + cX.getContentString() + \" - \" + cY.getContentString());\n set = CardSet.createSet(currentRound.userPlayer , cX,cY);\nSystem.out.println(\"\\tdetectUserPlayerSet:: created \" + set.getContentString() + \" - \" + Card.getDenominationString(set.lowerBound) + \" to \" + Card.getDenominationString(set.upperBound) );\n }\n else if(set!=null && set.addable(cY)){\nSystem.out.println(\"\\t\\t2\");\nSystem.out.println(\"\\tdetectUserPlayerSet:: adding \" + cY.getContentString() + \" to \" + set.getContentString() );\n set.addCard(cY);\n cX=cY;\nSystem.out.println(\"\\tdetectUserPlayerSet:: result \" + set.getContentString() );\n }\n else break;\n }\n\n //reset start position to original card\n cX = currentRound.userPlayer.hand.get(cardPosition);\n\nSystem.out.println(\"@\" + cX.getContentString() + \" forward\");\n\n //forward\n for(int i = cardPosition+1 ; i < currentRound.userPlayer.hand.size() ; i++){\n Card cY = currentRound.userPlayer.hand.get(i);\n\n if(cX.isAce()) cX.setAceModeInRelationToCard(cY);\n if(cY.isAce()) cY.setAceModeInRelationToCard(cX);\n\nSystem.out.println(\"\\t with \" + cY.getContentString());\n if(set==null && CardSet.associateable(cX,cY)!=-1){\n set = CardSet.createSet(currentRound.userPlayer , cX,cY);\nSystem.out.println(\"detectUserPlayerSet:: created \" + set.getContentString() + \" - \" + Card.getDenominationString(set.lowerBound) + \" to \" + Card.getDenominationString(set.upperBound) );\nSystem.out.println(\"\\t\\t1\");\n }\n else if(set!=null && set.addable(cY)){\nSystem.out.println(\"\\t\\t2\");\n set.addCard(cY);\n cX=cY;\n }\n else break;\n }\n\nif(set!=null) System.out.println(\"result: \" + set.getContentString());\n\n return set;\n }", "title": "" }, { "docid": "ce4af3a65bae1f59c233513043ea232b", "score": "0.5519845", "text": "private void prepareNextShipPlacement() {\n placeShipOnPreviewGrid(ships[idxShipToPlace]);\n }", "title": "" }, { "docid": "a14cc7425065431e516e87f33370bc83", "score": "0.55182016", "text": "public DeckView refresh() {\n int maxWidth = ((View) getParent()).getWidth();\n int cardHeight = ((View) getParent()).getHeight();\n int cardWidth = cardHeight * 5 / 7;\n\n this.removeAllViews();\n final List<T> viewDeck = new LinkedList<>();\n switch (type) {\n case HAND:\n viewDeck.addAll(deck.getCards());\n break;\n case COMMON_EXECUTE:\n viewDeck.addAll(deck.getCards().subList(0, Math.min(MAX_COMMON_DECK_CARDS, deck.getCards().size())));\n Collections.reverse(viewDeck);\n break;\n case COMMON_PLAN:\n viewDeck.addAll(deck.getCards().subList(Math.max(0, (deck.size() - 1) - MAX_COMMON_DECK_CARDS), deck.size()));\n break;\n }\n\n\n int card_gap = type==Type.HAND? DEFAULT_HAND_CARD_GAP : 0 - cardWidth * 9 / 10;\n\n if ((viewDeck.size() * (cardWidth + card_gap) - card_gap) > maxWidth) {\n card_gap = (maxWidth - (viewDeck.size() * cardWidth)) / (viewDeck.size() - 1);\n }\n int offset = (maxWidth - (viewDeck.size() * (cardWidth + card_gap) - card_gap)) / 2;\n\n\n for (int i = 0; i < viewDeck.size(); i++) {\n final Card card = viewDeck.get(i);\n if(type==Type.HAND){\n card.setPlayedHidden(false);\n }\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(cardWidth,cardHeight);\n params.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);\n params.leftMargin = offset + i * (cardWidth + card_gap);\n CardView cv = new CardView(getContext(), card) {\n @Override\n public void onClick(Long cardId) {\n if(type==Type.HAND) DeckView.this.onCardClick(cardId);\n }\n }.refresh();\n addView(cv, params);\n }\n\n return this;\n }", "title": "" }, { "docid": "cdb879bee9792859351b715153019fc0", "score": "0.5513858", "text": "public void newDeal(View view) {\n List<PlayerCard> playerCards = engine.getPlayerCards();\n enableFixCardsButton(false);\n for(PlayerCard playerCard: playerCards){\n playerCard.setSelected(false);\n playerCard.setCard(null);\n TextView playerCardView = (TextView) findViewById(playerCard.getId());\n playerCardView.setText(playerCard.getDefaultText());\n playerCardView.setBackgroundResource(0);\n }\n PlayerCard firstCard = playerCards.get(0);\n TextView playerCardView = (TextView) findViewById(firstCard.getId());\n selectYourCardSpot(playerCardView);\n }", "title": "" }, { "docid": "163a9d2ba86332de0006e4fefb5bc0c5", "score": "0.5510359", "text": "public void showDevCard(){\n if (mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(0).getCards().size() != 0) {\n dev1.setImage(new Image(getClass().getResource(\"/images/Devs/FRONT/\" +\n mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(0).getCards().get(0) +\n \".png\").toExternalForm()));\n\n }\n if (mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(1).getCards().size() != 0) {\n dev2.setImage(new Image(getClass().getResource(\"/images/Devs/FRONT/\" +\n mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(1).getCards().get(0) +\n \".png\").toExternalForm()));\n }\n if (mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(2).getCards().size() != 0) {\n dev3.setImage(new Image(getClass().getResource(\"/images/Devs/FRONT/\" +\n mainController.getGame().getPlayerById(mainController.getGui().getID()).getPersonalBoard().getCardSlot().get(2).getCards().get(0) +\n \".png\").toExternalForm()));\n }\n }", "title": "" }, { "docid": "364a36b16c66d7e39876b42fa204d8c5", "score": "0.54925746", "text": "private void releaseCard(View card, float offset_x, float offset_y, int velocity) {\n if (Math.abs(offset_x) >= mDragThresholdX\n || Math.abs(offset_y) >= mDragThresholdY\n || (velocity >= mMinVelocityThreshold && velocity <= mMaxVelocityThreshold)) {\n dropCard(card);\n } else {\n resetDragCard(card);\n }\n }", "title": "" }, { "docid": "a5adb3523fa615602d4ed38911429eeb", "score": "0.5491804", "text": "@Override\r\n\r\n protected boolean addToTurnedCardsBuffer(Card card) {\n this.turnedCardsBuffer.add(card);\r\n if(this.turnedCardsBuffer.size() == getCardsToTurnUp())\r\n {\r\n // We are uncovering the last card in this turn\r\n // Record the player's turn\r\n this.turnsTakenCounter.increment();\r\n // get the other card (which was already turned up)\r\n\r\n \r\n //Creates a Hand array for Ranks\r\n \r\n String[] WinningHandRank = new String[5];\r\n int[] WinningHandNumbers= new int[5];\r\n int suma=0;\r\n \r\n for (int i=0; i<5; i++){\r\n WinningHandRank[i] = this.turnedCardsBuffer.get(i).getRank();\r\n if (WinningHandRank[i].equalsIgnoreCase(\"a\")){\r\n WinningHandRank[i] = \"1\";\r\n }\r\n else if (WinningHandRank[i].equalsIgnoreCase(\"t\")){\r\n WinningHandRank[i] = \"10\";}\r\n else if (WinningHandRank[i].equalsIgnoreCase(\"j\")){\r\n WinningHandRank[i] = \"11\";}\r\n else if (WinningHandRank[i].equalsIgnoreCase(\"q\")){\r\n WinningHandRank[i] = \"12\";}\r\n else if (WinningHandRank[i].equalsIgnoreCase(\"k\")){\r\n WinningHandRank[i] = \"13\";}\r\n\r\n this.WinningHandSuit[i] = this.turnedCardsBuffer.get(i).getSuit();\r\n\r\n\r\n\r\n WinningHandNumbers[i]=Integer.parseInt(WinningHandRank[i]);\r\n suma=WinningHandNumbers[i]+suma;\r\n\r\n }\r\n\r\n Arrays.sort(WinningHandNumbers);\r\n\r\n\r\n\r\n \t//Decide si es un Winning Hand de no serlo voltea las cartas nuevamente\r\n\r\n if((suma==15 && WinningHandNumbers[0]==1 && WinningHandNumbers[1]==2 \r\n && WinningHandNumbers[2]==3 && WinningHandNumbers[3]==4 && WinningHandNumbers[4]==5) \r\n && (this.WinningHandSuit[0].equals(this.WinningHandSuit[1])&& this.WinningHandSuit[0].equals(this.WinningHandSuit[2])\r\n && this.WinningHandSuit[0].equals(this.WinningHandSuit[3])&& this.WinningHandSuit[0].equals(this.WinningHandSuit[4]))) {\r\n addScore(this.score);\r\n this.scorelabel.setText(\"Score: \"+this.score);\r\n this.mainFrame.add(scorelabel);\r\n this.turnedCardsBuffer.clear();\r\n }\r\n else \r\n {\r\n // The cards do not match, so start the timer to turn them down\r\n substractScore(this.score);\r\n this.scorelabel.setText(\"Score: \"+this.score);\r\n this.mainFrame.add(scorelabel);\r\n this.turnDownTimer.start();\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "e9b4313ac2dc5b9f096ab9a283c27ce2", "score": "0.5484118", "text": "public void reArrange() {\n return;\n }", "title": "" }, { "docid": "834cf29a12de65d192f83265c660c9a2", "score": "0.54714185", "text": "public void reset() {\n\t\tif(this.cards.size() <= startDeck/2) {\n\t\t\tthis.createFullCards();\n\t\t}\n\t}", "title": "" }, { "docid": "0ef7badda4a1fff8bc70601876586970", "score": "0.5467311", "text": "public void computersTurn(){\n\n boolean cardPlayed = false;\n\n // If computer has a card that can be played, then pay that card\n for (Card c : cardsWithComputer){\n if (checkTopPileCard(c)){\n playCard(c, cardsWithComputer);\n cardPlayed = true;\n Toast.makeText(getApplicationContext(), \"Computer played \"+c.getCardColor()+\" \"+c.getCardNumber(),\n Toast.LENGTH_SHORT).show();\n updateComputerCardsMessage();\n break;\n }\n }\n\n // Check if computer has won\n if (cardsWithComputer.size() == 0){\n endGame(\"Computer won!\");\n }\n\n // If computer did not have any card that could be played, pick a card from the deck.\n if (!cardPlayed){\n // Check for empty deck before picking a card.\n if (!deck.empty()) {\n addCardToHand(cardsWithComputer);\n Toast.makeText(getApplicationContext(), \"Computer picked a card from deck\",\n Toast.LENGTH_SHORT).show();\n updateComputerCardsMessage();\n }\n else{ // If deck is empty, end the game as draw.\n Intent intent = new Intent(getApplicationContext(), GameEnd.class);\n intent.putExtra(\"Winner\", \"No more cards in deck. Game is a draw!\");\n startActivity(intent);\n }\n }\n\n }", "title": "" }, { "docid": "98bce91aa00771acd997158383e70674", "score": "0.54661393", "text": "private JPanel getCard6() {\n GridBagConstraints c;\n /*\n card 6: rejoin\n */\n JPanel card6 = new JPanel(new GridBagLayout());\n card6.setOpaque(false);\n\n JLabel label = new JLabel();\n label.setText(\" Continue with these settings? \");\n label.setHorizontalAlignment(SwingConstants.CENTER);\n label.setFont(new Font(PAPYRUS, Font.BOLD, 20));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 0;\n c.weighty = 0.1;\n c.gridwidth = 2;\n c.anchor = GridBagConstraints.PAGE_END;\n card6.add(label, c);\n\n JLabel nameLabel = new JLabel();\n nameLabel.setText(\"name:\");\n nameLabel.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 1;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.LINE_END;\n card6.add(nameLabel, c);\n\n\n recap1_Rejoin_Label = new JLabel();\n recap1_Rejoin_Label.setText(Ark.nickname);\n recap1_Rejoin_Label.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 1;\n c.gridy = 1;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.CENTER;\n card6.add(recap1_Rejoin_Label, c);\n\n JLabel addressLabel = new JLabel();\n addressLabel.setText(\"ip:\");\n addressLabel.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 2;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.LINE_END;\n card6.add(addressLabel, c);\n\n recap2_Rejoin_Label = new JLabel();\n recap2_Rejoin_Label.setText(Ark.defaultAddress);\n recap2_Rejoin_Label.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 1;\n c.gridy = 2;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.CENTER;\n card6.add(recap2_Rejoin_Label, c);\n\n JLabel portLabel = new JLabel();\n portLabel.setText(\"port:\");\n portLabel.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 3;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.LINE_END;\n card6.add(portLabel, c);\n\n recap3_Rejoin_Label = new JLabel();\n recap3_Rejoin_Label.setText(\"\" + Ark.defaultPort);\n recap3_Rejoin_Label.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 1;\n c.gridy = 3;\n c.weighty = 0.1;\n c.gridwidth = 1;\n c.anchor = GridBagConstraints.CENTER;\n card6.add(recap3_Rejoin_Label, c);\n\n JLabel lobbyNumberLabel = new JLabel();\n lobbyNumberLabel.setText(\"Lobby number:\");\n lobbyNumberLabel.setFont(new Font(TIMES, Font.PLAIN, 18));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 4;\n c.weighty = 0.1;\n c.anchor = GridBagConstraints.FIRST_LINE_END;\n card6.add(lobbyNumberLabel, c);\n\n lobbyNumber_Rejoin_Field = new JTextField(4);\n lobbyNumber_Rejoin_Field.setText(\"343\");\n lobbyNumber_Rejoin_Field.setFont(new Font(TIMES, Font.PLAIN, 20));\n lobbyNumber_Rejoin_Field.setHorizontalAlignment(SwingConstants.CENTER);\n lobbyNumber_Rejoin_Field.setOpaque(false);\n lobbyNumber_Rejoin_Field.setBorder(BorderFactory.createLineBorder(Color.GRAY, 1));\n c = new GridBagConstraints();\n c.insets = new Insets(0, 0, 35, 0);\n c.anchor = GridBagConstraints.CENTER;\n c.gridx = 1;\n c.gridy = 4;\n c.weighty = 0.1;\n c.gridwidth = 1;\n card6.add(lobbyNumber_Rejoin_Field, c);\n\n JButton settings_Rejoin_Button = new JButton(\"Settings\");\n settings_Rejoin_Button.addActionListener(settings_Rejoin_Button_actionListener);\n settings_Rejoin_Button.setPreferredSize(new Dimension(120, 40));\n settings_Rejoin_Button.setFont(new Font(PAPYRUS, Font.BOLD, 20));\n settings_Rejoin_Button.setBackground(new Color(231, 210, 181));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 5;\n c.weighty = 0.01;\n c.gridwidth = 1;\n c.insets = new Insets(15, 25, 0, 0);\n c.anchor = GridBagConstraints.LINE_START;\n card6.add(settings_Rejoin_Button, c);\n\n JButton confirm_Rejoin_Button = new JButton(\"Confirm\");\n confirm_Rejoin_Button.addActionListener(confirm_Rejoin_Button_actionListener);\n confirm_Rejoin_Button.setPreferredSize(new Dimension(120, 40));\n confirm_Rejoin_Button.setFont(new Font(PAPYRUS, Font.BOLD, 20));\n confirm_Rejoin_Button.setBackground(new Color(231, 210, 181));\n c = new GridBagConstraints();\n c.gridx = 1;\n c.gridy = 5;\n c.weighty = 0.01;\n c.gridwidth = 1;\n c.insets = new Insets(15, 0, 0, 25);\n c.anchor = GridBagConstraints.LINE_END;\n card6.add(confirm_Rejoin_Button, c);\n\n\n JLabel emptyLabel = new JLabel(\"\");\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 6;\n c.weighty = 1;\n c.gridwidth = 2;\n c.fill = GridBagConstraints.BOTH;\n c.anchor = GridBagConstraints.CENTER;\n c.insets = new Insets(0, 160, 0, 160);\n card6.add(emptyLabel, c);\n\n JButton back_Rejoin_Button = new JButton(\"Back\");\n back_Rejoin_Button.addActionListener(back_Rejoin_Button_actionListener);\n back_Rejoin_Button.setPreferredSize(new Dimension(120, 40));\n back_Rejoin_Button.setFont(new Font(PAPYRUS, Font.BOLD, 20));\n back_Rejoin_Button.setBackground(new Color(231, 210, 181));\n c = new GridBagConstraints();\n c.gridx = 0;\n c.gridy = 7;\n c.weighty = 0.1;\n c.insets = new Insets(4, 0, 0, 0);\n c.anchor = GridBagConstraints.LAST_LINE_START;\n card6.add(back_Rejoin_Button, c);\n\n return card6;\n }", "title": "" }, { "docid": "219dc61d0ffe3d480fceb73ae06a173b", "score": "0.5460768", "text": "public void plusb(View view) {\n if (scorePlayerB >= 11 && (scorePlayerB - scorePlayerA) >= 2) {\n scorePlayerA = 0;\n scorePlayerB = 0;\n setTeamB = setTeamB + 1;\n displayForPlayerA(scorePlayerA);\n displayForPlayerB(scorePlayerB);\n displayForSetB(setTeamB);\n } else if (scorePlayerA >= 11 && (scorePlayerA - scorePlayerB) >= 2) {\n scorePlayerA = 0;\n scorePlayerB = 0;\n setTeamA = setTeamA + 1;\n displayForPlayerA(scorePlayerA);\n displayForPlayerB(scorePlayerB);\n displayForSetA(setTeamA);\n } else if (scorePlayerB < 11 || ((scorePlayerB - scorePlayerA) <= 1)) {\n scorePlayerB = scorePlayerB + 1;\n displayForPlayerB(scorePlayerB);\n }\n }", "title": "" }, { "docid": "838d12eaad807554a943102a341dbe14", "score": "0.545569", "text": "public boolean turnNextCard() {\n\t\tfor (int i = 0; i < isVisible.length; i++) {\n\t\t\tif (isVisible[i] == false) {\n\t\t\t\tisVisible[i] = true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "07f61da5e878c4bc72108ac1a5593dd4", "score": "0.54516786", "text": "public Card draw()\n {\n if(active.isEmpty())\n {\n shuffleDiscard();\n Card topCard = new Card(active.dealCard());\n return topCard;\n }\n else\n { \n Card topCard = new Card(active.dealCard());\n return topCard;\n }\n }", "title": "" }, { "docid": "fcda656c4c539d1a0a6e981326bf75f2", "score": "0.54514503", "text": "public void selectYourCard(View view) {\n boolean cardFound = false;\n Card selectedCard = new Card(view.getId());\n PlayerCard playerCardSlot = null;\n List<PlayerCard> playerCardsList = engine.getPlayerCards();\n selectedCard = engine.getPlayingCards().get(engine.getPlayingCards().indexOf(selectedCard));\n for(PlayerCard playerCard: playerCardsList){\n //put the selected card into the player hand\n if(playerCard.isSelected()) {\n playerCardSlot = playerCard;\n TextView myCard = (TextView) findViewById(playerCard.getId());\n playerCard.setCard(selectedCard);\n myCard.setText(selectedCard.getValue());\n playerCard.setSelected(false);\n decideBackGround(playerCard, \"\");\n cardFound = true;\n checkIfHandIsFull();\n }\n }\n //a card was selected and updated with a cards info\n if(cardFound) {\n if(playerCardSlot.getCardNumber() < 5) {\n for(PlayerCard playerCard: playerCardsList){\n if(playerCard.getCardNumber() == playerCardSlot.getCardNumber() +1 && playerCard.getCard() == null) {\n TextView myCard = (TextView) findViewById(playerCard.getId());\n decideBackGround(playerCard, AppConstants.SELECTED);\n playerCard.setSelected(true);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "477cb6028f4f3c18a36f4f9f76a48360", "score": "0.54477566", "text": "public void transferCardsToCommunalPile() {\r\n\t\tcheckIfPlayersOutTheGame();\r\n\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\tcommunalPile.add(players.get(i).loseCard());\r\n\t\t}\r\n\t\tSystem.out.println(\"The communal pile has this many cards: \" + communalPile.size() + \".\");\r\n\t\tcheckIfPlayersOutTheGame();\r\n\t\tsetIsDraw(true);\r\n\t}", "title": "" }, { "docid": "e3111d0b8096c41755af282b23e71df0", "score": "0.54475623", "text": "PlayingCardEnum pullFromTop();", "title": "" }, { "docid": "d73542bf7f708b8f1841f296b1496b6f", "score": "0.5442175", "text": "public void dealerMove(){\n\t\t\n\t\tdealer.showHiddenCard();\n\t\tdealer.makeDecisions();\n\t}", "title": "" }, { "docid": "251ec5fee7a3b35dd88c0e2315d0c7e2", "score": "0.54395884", "text": "@Override\n public void onLeftCardExit(Object dataObject) {\n\n Toast.makeText(MainActivity.this, \"Discarded\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "437ee64daa144b30b91ca01f77ef660a", "score": "0.54314697", "text": "private final void m93154a(CardInfo cardInfo, boolean z) {\n if (cardInfo.equals(this.f108733z)) {\n m93156a(z, (ImageView) this.f108726s.getChildAt(this.f108691B.length));\n return;\n }\n if (this.f108733z != null) {\n this.f108726s.removeViewAt(this.f108691B.length);\n }\n this.f108733z = cardInfo;\n this.f108690A = z;\n ImageView a = m93147a(cardInfo);\n this.f108726s.addView(a);\n m93156a(z, a);\n m93155a(cardInfo.f108340a);\n }", "title": "" }, { "docid": "126562e7e36c8979a0c0bf46df03218f", "score": "0.5428337", "text": "protected void deal() {\n for (int index = 0; index < 8; index++) {\n for (IPlayer player : players) {\n Card card = deck.draw();\n ArrayList<Card> hand = player.getHand();\n hand.add(card);\n// players.get(playerId).getHand().add(deck.draw());\n }\n }\n }", "title": "" }, { "docid": "bdb9b6ea8632c426276cff2149e7f102", "score": "0.5427273", "text": "protected void switchToDeckBuilder(){\r\n\t\tscreenOn[0] = false;\r\n\t\tscreenOn[2] = true;\r\n\t}", "title": "" }, { "docid": "61e94fccbfc94beda82727e3e7a4c62e", "score": "0.5423973", "text": "public Card draw(CardPile hand)\n\t{\n\t\treturn hand.removeFromTop(1).getCard(0);\n\t}", "title": "" }, { "docid": "aa0aac39c806edcd85a996a7073031f1", "score": "0.542314", "text": "void endTurn(){\n int possibleMovement = !battleGroup ? this.getActionPointCap() : myArmy.getAvailableMovement();\r\n setActionPoints(getActionPoints() + possibleMovement);\r\n if(getActionPoints() > possibleMovement){\r\n setActionPoints(possibleMovement);\r\n }\r\n }", "title": "" }, { "docid": "8d089a40eebd81a3deda3be3bece3c48", "score": "0.542205", "text": "public void actionPerformed(ActionEvent e)\n {\n // Get the currently clicked card from a click event\n FlippableCard currCard = (FlippableCard)e.getSource();\n\n //checks if the two cards are null and if they are the same pic\n //if both are false the previous cards will be hidden again\n if ((prevCard1 != null && prevCard2 != null) && (prevCard1.id() != prevCard2.id()))\n {\n prevCard1.hideFront();\n prevCard2.hideFront();\n prevCard1 = null;\n prevCard2 = null;\n }\n else if(prevCard1 != null && prevCard1.id() == 55) //if happy face is found first do nothing\n {\n prevCard1.hideFront();\n prevCard1 = null;\n }\n\n //increment click count\n clickCount++;\n\n\n //if statements to set the cards to proper prevCards and show them\n if(prevCard1 == null)\n {\n prevCard1 = currCard;\n prevCard1.showFront();\n }\n else if(prevCard2 == null)\n {\n prevCard2 = currCard;\n prevCard2.showFront();\n }\n\n //if prevCard1 and 2 are not null\n if (prevCard1 != null && prevCard2 != null)\n {\n\n if(prevCard1.id() == prevCard2.id()) //checks the ID to see if they are the same picture, increments pairsFound\n {\n pairsFound++;\n timerLabel.setText(\"Matches: \" + pairsFound);\n prevCard1 = null;\n prevCard2 = null;\n\n }\n else\n {\n if(prevCard2.id() == 55) //if the happy face is found second\n {\n //do nothing as error count will NOT be incremented\n }\n else {\n errorCount++;\n errorLabel.setText(\"Errors: \" + errorCount);\n }\n }\n\n if(pairsFound == 12) //winner statements\n {\n int finishTime = gameTime;\n gameTimer.cancel();\n repaint();\n timerLabel.setText(\"Winner! It took you \" + finishTime + \" seconds.\");\n }\n\n }\n\n\n\n }", "title": "" }, { "docid": "943d2da35a73b625f3bae823a6de2822", "score": "0.541549", "text": "public void mouseReleased(MouseEvent e) {\n if(e.getX()>600 || e.getX()<0||e.getY()>600 || e.getY()<0){//remise en place si la piece est sortie de l'échiquier\n if (chessPiece == null) return;\n\n chessPiece.setVisible(false);\n Component c = chessBoard.findComponentAt(xPressed, yPressed);\n\n if (c instanceof JLabel) {\n Container parent = c.getParent();\n parent.remove(0);\n parent.add(chessPiece);\n } else {\n Container parent = (Container) c;\n parent.add(chessPiece);\n }\n\n chessPiece.setVisible(true);\n }\n else {\n if (control.move(xPressed,yPressed,e.getX(),e.getY())) {//Vérifie la validité du déplacement\n if (chessPiece == null) return;\n\n chessPiece.setVisible(false);\n Component c = chessBoard.findComponentAt(e.getX(), e.getY());\n\n if (c instanceof JLabel) {\n Container parent = c.getParent();\n parent.remove(0);\n parent.add(chessPiece);\n } else {\n Container parent = (Container) c;\n parent.add(chessPiece);\n }\n\n chessPiece.setVisible(true);\n }\n else{// si le déplacement est non valide -> La piece retourne à ça place\n if (chessPiece == null) return;\n\n chessPiece.setVisible(false);\n Component c = chessBoard.findComponentAt(xPressed, yPressed);\n\n if (c instanceof JLabel) {\n Container parent = c.getParent();\n parent.remove(0);\n parent.add(chessPiece);\n } else {\n Container parent = (Container) c;\n parent.add(chessPiece);\n }\n\n chessPiece.setVisible(true);\n }\n }\n }", "title": "" }, { "docid": "5c9a885359cff8cd386d659020f39482", "score": "0.5413114", "text": "public void mousePressed(java.awt.event.MouseEvent me) {\r\n// \t// Original controller\r\n// \t// get the element backing the view widget\r\n// Pile pile = (Pile) pileview.getModelElement();\r\n//\r\n// // delete its top card.\r\n// Card c = pile.get();\r\n// System.out.println (\"Removed \" + c);\r\n// \r\n// // have solitaire game refresh widgets that were affected \r\n// narcoticGame.refreshWidgets();\r\n \r\n \t// Revised controller. Comment out the above code, and instead insert this\r\n \t\r\n\t\t// Ask PileView to retrieve the top card as a CardView\r\n\t\t// Widget\r\n\t\tCardView cardView = pileview.getCardViewForTopCard(me);\r\n\r\n\t\t// Have container track this object now. Record where it came from\r\n\t\tContainer c = narcoticGame.getContainer();\r\n\t\tc.setActiveDraggingObject (cardView, me);\r\n\t\tc.setDragSource(pileview);\r\n\r\n\t\t// we simply redraw our source pile to avoid flicker,\r\n\t\t// rather than refreshing all widgets...\r\n\t\tpileview.redraw(); \r\n }", "title": "" }, { "docid": "571f39c6e00f36f5496eb412b8a4f328", "score": "0.5408879", "text": "public void shuffle() {\r\n\t\tp.setLayout(new GridLayout(10,10));\r\n\t\tfor(int i=0;i<100;i++){\r\n\t\t\tbuttons[i]=new MemoryCards();\r\n\t\t\tbuttons[i].location = i;\r\n\t\t\tp.add(buttons[i]);\r\n\t\t}\r\n\t\t\r\n\t\t//prints the corresponding card in each tile of the grid\r\n\t\tfor(int i = 0, j = 0; i<100; i++,j++) {\r\n\t\t\tif (j == 10) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tj = 0;\r\n\t\t\t}\r\n\t\t\tbuttons[i].ID = MemoryCards.idBoard[i/10][j]/10;\r\n\t\t\tSystem.out.print(buttons[i].ID + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//prints out the location of each memory card with respect to the board\r\n\t\tfor(int i = 0, j = 0; i<100; i++,j++) {\r\n\t\t\tif (j == 10) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tj = 0;\r\n\t\t\t}\r\n\t\t\tSystem.out.print(buttons[i].location + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t\tadd(p);\r\n\t}", "title": "" }, { "docid": "8f31d7c89f1487f0dda8921a9765c3d3", "score": "0.5403525", "text": "public void lastContainer() {\n\t\tif (this.playerIsOwner() && this.getStones()==1 && this.getOpposite().getStones() >0 ){\n\t\t\t\tthis.stealFromOpponent();\n\t\t}\n\t\telse{\t\t\t\n\t\t\tthis.getOwner().switchPlayer();\n\t\t\tthis.checkIfEndGame();\n\t\t}\n\t}", "title": "" }, { "docid": "8375b916a1d6bd81cedb996eca6c339f", "score": "0.5395093", "text": "public void cardMove(float _dt) {\n\t\t\n\t\tif (card1.card.getX() <= 0 && card1.card.getY() <= 0) {\n\t\t\tcard1.card.setPosition(card1.card.getX() + (.3f * _dt), card1.card.getY() + (.18f * _dt));\n\t\t} else if (card1.card.getX() >= 0 && card1.card.getY() <= 0) {\n\t\t\tcard1.card.setPosition(card1.card.getX() - (.3f * _dt), card1.card.getY() + (.18f * _dt));\n\t\t} else if (card1.card.getX() >= 0 && card1.card.getY() >= 0){\n\t\t\tcard1.card.setPosition(card1.card.getX() - (.3f * _dt), card1.card.getY() - (.18f * _dt));\n\t\t} else if (card1.card.getX() <= 0 && card1.card.getY() >= 0){\n\t\t\tcard1.card.setPosition(card1.card.getX() + (.3f * _dt), card1.card.getY() - (.18f * _dt));\n\t\t}\n\t\tif (card2.card.getX() <= 0 && card2.card.getY() <= 0) {\n\t\t\tcard2.card.setPosition(card2.card.getX() + (.3f * _dt), card2.card.getY() + (.18f * _dt));\n\t\t} else if (card2.card.getX() >= 0 && card2.card.getY() <= 0) {\n\t\t\tcard2.card.setPosition(card2.card.getX() - (.3f * _dt), card2.card.getY() + (.18f * _dt));\n\t\t} else if (card2.card.getX() >= 0 && card2.card.getY() >= 0){\n\t\t\tcard2.card.setPosition(card2.card.getX() - (.3f * _dt), card2.card.getY() - (.18f * _dt));\n\t\t} else if (card2.card.getX() <= 0 && card2.card.getY() >= 0){\n\t\t\tcard2.card.setPosition(card2.card.getX() + (.3f * _dt), card2.card.getY() - (.18f * _dt));\n\t\t}\n\t}", "title": "" }, { "docid": "71fdf5864a8d5237516b794949a3ea02", "score": "0.5393247", "text": "public boolean landOnTile(Player p) {\n \tsuper.landOnTile(p);\n ChanceCard currCard = p.nextCard();\n System.out.println(currCard);\n boolean succeded = currCard.useCard(p);\n if (currCard.isKeepCard())\n \tp.addKeepingCard(currCard);\n else\n currCard.returnToDeck();\n return succeded;\n }", "title": "" }, { "docid": "b8b40bc968e8bde1f4902d414f4c75e4", "score": "0.53895074", "text": "private void drawCardsFromTreasureDeckToStart() {\n\t\tTreasureDeck treasureDeck = TreasureDeck.getInstance();\n\t\tArrayList<Card> treasureCards = treasureDeck.drawCardsForStartOfGame();\n\t\t\n\t\tplayerView.printNumberDrawnCards(treasureCards.size());\n\t\ttreasureCards.forEach((card) -> {\n\t\t\tplayerView.printPlayerCard(card);\n\t\t\tputCardInPlayersHand(card);\n\t\t});\n\t\tgameView.printNewLine(); \n\t}", "title": "" }, { "docid": "196240352a20150eb11bf2219945825c", "score": "0.53844327", "text": "public Card draw() {\n\t\tCard FirstCard = deck.get(0);\r\n\t\tdeck.remove(0);\r\n\t\treturn FirstCard;\r\n\t}", "title": "" }, { "docid": "cf13313187f08da9c3eae766ae044135", "score": "0.538398", "text": "public void backUpAndCheckSlotTwo(){\n backUp(); // to third\n backUp(); //to second\n //If slot 2 is empty, put it, else showUpdatedStatus\n if(!seesCD()){\n putCD();\n }else{\n Vic.say(\"Cannot overlay CDs\");\n }\n }", "title": "" }, { "docid": "31584216023608ac47d83a9258ff409a", "score": "0.5379634", "text": "@Override\n public void deplacement()\n {\n \n }", "title": "" }, { "docid": "b77ff0ce497ed42d96abbf7bd199a414", "score": "0.5379284", "text": "public void reset() {\n\n\t\t// clear all player own card history\n\t\tfor (Player player : this.Players) {\n\t\t\tif (player != null) {\n\t\t\t\tplayer.Cards = new ArrayList<Card>();\n\t\t\t}\n\t\t}\n\n\t\t// define card\n\t\t// for id naming\n\t\tString[] ids = new String[] { \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\",\n\t\t\t\t\"i\", \"j\", \"k\", \"l\", \"m\" };\n\t\tint[] ruleIds = new int[] { R.string.rule1, R.string.rule2,\n\t\t\t\tR.string.rule3, R.string.rule4, R.string.rule5, R.string.rule6,\n\t\t\t\tR.string.rule7, R.string.rule8, R.string.rule9,\n\t\t\t\tR.string.rule10, R.string.rule11, R.string.rule12,\n\t\t\t\tR.string.rule13 };\n\n\t\t// for display text\n\t\tString[] numbers = new String[] { \"A\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\",\n\t\t\t\t\"8\", \"9\", \"10\", \"J\", \"Q\", \"K\" };\n\t\tString[] shapes = new String[] { \"Spade\", \"Heart\", \"Club\", \"Diamond\" };\n\n\t\tfor (int i = 0; i < ids.length; i++) {\n\n\t\t\tString rule = context.getResources().getString(ruleIds[i]);\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tString prefix = ids[i];\n\t\t\t\tString suffix = Integer.toString(j + 1);\n\n\t\t\t\tString id = prefix + suffix;\n\t\t\t\tString text = numbers[i] + \" \" + shapes[j];\n\t\t\t\tthis.Cards.add(new Card(id, text, rule));\n\t\t\t}\n\t\t}// end loops\n\n\t\tthis.playerIndex = 0;\n\t\t// Collections.sort(this.Cards, new CardComparator());\n\t\t// this.Current = this.Cards.get(0);\n\t}", "title": "" }, { "docid": "b2f98e1252ec98fb5cf7c6a3592a0292", "score": "0.53776467", "text": "public void dropIn(View view){\n ImageView counter=(ImageView)view;\n\n int index=Integer.parseInt(counter.getTag().toString());\n\n if(activePlayer==0&&gameState[index]==2&&gameActive){\n counter.setTranslationY(-1500);\n counter.setImageResource(R.drawable.yellow);\n activePlayer=1;\n gameState[index]=0;\n counter.animate().translationYBy(1500).rotation(360).setDuration(300);\n } else if(activePlayer==1&&gameState[index]==2&&gameActive){\n counter.setTranslationY(-1500);\n counter.setImageResource(R.drawable.red);\n activePlayer=0;\n gameState[index]=1;\n counter.animate().translationYBy(1500).rotation(360).setDuration(300);\n }\n\n for(int [] win:gameWin){\n if(gameState[win[0]]==gameState[win[1]]&&gameState[win[1]]==gameState[win[2]]&&gameState[win[0]]!=2&&gameActive){\n String winner=\"\";\n if(activePlayer==0){\n winner=\"Red is winner\";\n }else if(activePlayer==1){\n winner=\"Yellow is winner\";\n }\n gameActive=false;\n Button button=findViewById(R.id.button);\n textView.setText(winner);\n textView.setVisibility(View.VISIBLE);\n button.setVisibility(View.VISIBLE);\n }\n }\n draw=false;\n for (int j : gameState) {\n if (j != 2) {\n draw = true;\n } else {\n draw = false;\n break;\n }\n }\n if(draw &&textView.getVisibility()==View.INVISIBLE){\n String winner=\"Match draw\";\n gameActive=false;\n Button button=findViewById(R.id.button);\n textView.setText(winner);\n textView.setVisibility(View.VISIBLE);\n button.setVisibility(View.VISIBLE);\n }\n\n }", "title": "" }, { "docid": "5f8aed52520c7c3de30d4285fb3f164f", "score": "0.53768104", "text": "public void slapStack(IPlayer player) {\r\n\t\tSLAPPED = true;\r\n\t\tfor (int i = 0; i < theStack.size(); i++) {\r\n\t\t\tCard c = theStack.get(i);\r\n\t\t\tc.resetCardBitmap();\r\n\t\t\tplayer.addCard(c);\r\n\t\t}\r\n\t\ttheStack = new ArrayList<Card>();\r\n\t\t// Reset the number of chances to play a letter card if a player has those chances\r\n\t\tplayer.setTillFace(0);\r\n\t\tplayer.setMyTurn(true);\r\n\t\tIPlayer playerB = getOtherPlayer(player);\r\n\t\tplayerB.setTillFace(0);\r\n\t\tplayerB.setMyTurn(false);\r\n\r\n\t\tSLAPPED = false;\r\n\r\n\t\tif (player2.myTurn()) {\r\n\t\t\t// Start a new timer for the computer's turn\r\n\t\t\t// TIME_BETWEEN_TURNS???\r\n\t\t\tTimer player2TurnTask = new Timer();\r\n\t\t\tplayer2TurnTask.schedule(new Player2TurnTask(), DELAY_INTERVAL);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5b6c72c440a27569de784c18f7bf20cd", "score": "0.53749377", "text": "public ActionCard drawActionCard()\r\n {\r\n //IF actionCards list is not empty\r\n if (!actionCards.isEmpty())\r\n {\r\n //RETURN action card at index of actionCards size - 1 by removing it\r\n // from the list\r\n return actionCards.remove(actionCards.size() - 1);\r\n //ENDIF\r\n }\r\n //RETURN null if the list is empty\r\n return null;\r\n }", "title": "" }, { "docid": "fbe8f15b4f25b44f2adda2b36b0700b8", "score": "0.53745973", "text": "public void actionPerformed(ActionEvent e)\r\n\t{\n\t\tObject src = e.getSource();\r\n\t\r\n\t\tif(p1Deck == src && ((playerturn % 2) == 0) && (playerlayStack == playerturn)){ \r\n\t\t\tplayerturn++;\r\n\t\t\tCard card = cardDeck.dealCard();\r\n\r\n\t\t\tif (card != null){\r\n\t\t\t\tif(src == p1Deck)\r\n\t\t\t\t\tp1Hand.addCard(card);\r\n\t\t\t}\r\n\t\t\tif(cardDeck.getSizeOfDeck() == 0)\r\n\t\t\t\tdeckPile.setIcon(new ImageIcon(Card.directory + \"blank.gif\"));\r\n\t\t\tp1Hand.sort();\r\n\r\n\t\t\t//Endgame Deck\r\n\t\t\tif(cardDeck.isEmpty()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t\tif(p2Deck == src && ((playerturn % 2) == 1) && (playerlayStack == playerturn)){ \r\n\t\t\tplayerturn++;\r\n\t\t\tCard card = cardDeck.dealCard();\r\n\t\t\t\r\n\t\t\tif(card != null){\r\n\t\t\t\tif(src == p2Deck)\r\n\t\t\t\t\tp2Hand.addCard(card);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(cardDeck.getSizeOfDeck() == 0)\r\n\t\t\t\tdeckPile.setIcon(new ImageIcon(Card.directory + \"blank.gif\"));\r\n\t\t\tp2Hand.sort();\r\n\t\t}\r\n\r\n\t\tif(p1Stack == src && (playerturn % 2 == 0) ){\r\n\r\n\t\t\tCard card = stackDeck.Peek();\r\n\r\n\t\t\tif(card != null){\r\n\t\t\t\tplayerturn++;\r\n\t\t\t\tCard topCard = stackDeck.Pop();\r\n\t\t\t\tif (stackDeck.isEmpty() != true) \r\n\t\t\t\t\ttopOfStack.setIcon(topCard.getCardImage());\r\n\t\t\t\telse\r\n\t\t\t\t\ttopOfStack.setIcon(new ImageIcon(Card.directory + \"blank.gif\"));\r\n\r\n\t\t\t\tif(p1Stack == src)\r\n\t\t\t\t\tp1Hand.addCard(card);\r\n\t\t\t}\r\n\t\t\tp1Hand.sort();\r\n\r\n\t\t}\r\n\r\n\t\tif(p2Stack == src && playerturn % 2 == 1){\r\n\r\n\t\t\t\r\n\t\t\tCard card = stackDeck.Peek();\r\n\r\n\t\t\tif(card != null){\r\n\t\t\t\tplayerturn++;\r\n\t\t\t\tCard topCard = stackDeck.Pop();\r\n\t\t\t\tif (stackDeck.isEmpty() != true)\r\n\t\t\t\t\ttopOfStack.setIcon(topCard.getCardImage());\r\n\t\t\t\telse\r\n\t\t\t\t\ttopOfStack.setIcon(new ImageIcon(Card.directory + \"blank.gif\"));\r\n\r\n\t\t\t\tif(p2Stack == src)\r\n\t\t\t\t\tp2Hand.addCard(card);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tp2Hand.sort();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tif(p1Lay == src){\r\n\t\t\tObject [] cards = p1Hand.findSet();\r\n\t\t\tif (cards != null){\r\n\t\t\t\tfor(int i = 0; i < cards.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tCard card = (Card)cards[i];\r\n\t\t\t\t\tlayCard(card);\r\n\t\t\t\t\tp1Hand.removeCard(card);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(p1Hand.GameOver()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif(cardDeck.isEmpty()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif(p2Lay == src){\r\n\t\t\tObject [] cards = p2Hand.findSet();\r\n\t\t\tif (cards != null){\r\n\t\t\t\tfor(int i = 0; i < cards.length; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tCard card = (Card)cards[i];\r\n\t\t\t\t\tlayCard(card);\r\n\t\t\t\t\tp2Hand.removeCard(card);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Endgame Lay\r\n\t\t\tif(p2Hand.GameOver()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\r\n\r\n\t\tif(p1LayOnStack == src && (playerlayStack % 2 == 0) && (playerlayStack < playerturn)){\r\n\t\t\tplayerlayStack++;\r\n\t\t\tint [] num = p1HandPile.getSelectedIndices();\r\n\t\t\tif (num.length == 1)\r\n\t\t\t{\r\n\t\t\t\tObject obj = p1HandPile.getSelectedValue();\r\n\t\t\t\tif (obj != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tp1Hand.removeObj(obj);\r\n\t\t\t\t\tCard card = (Card)obj;\r\n\t\t\t\t\tstackDeck.Push(card);\r\n\t\t\t\t\ttopOfStack.setIcon(card.getCardImage());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//CPU\r\n\t\t\t\t\r\n\t\t\t\t//CPU Draw\r\n\t\t\t\tp2Hand.sort();\r\n\t\t\t\tplayerturn++;\r\n\t\t\t\tplayerlayStack++;\r\n\t\t\t\tCard CPUcard = cardDeck.dealCard();\r\n\t\t\t\tif (CPUcard != null){\r\n\t\t\t\t\tp2Hand.addCard(CPUcard);\r\n\t\t\t\t}\r\n\t\t\t\tif(cardDeck.getSizeOfDeck() == 0){\r\n\t\t\t\t\tdeckPile.setIcon(new ImageIcon(Card.directory + \"blank.gif\"));\r\n\t\t\t\t}\r\n\t\t\t\tp2Hand.sort();\r\n\t\t\t\t\r\n\t\t\t\t//CPU Lay Sets\r\n\t\t\t\tObject [] CPUcards = p2Hand.findSet();\r\n\t\t\t\tif (CPUcards != null){\r\n\t\t\t\t\tfor(int i = 0; i < CPUcards.length; i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCard CPUlaycard = (Card)CPUcards[i];\r\n\t\t\t\t\t\tlayCard(CPUlaycard);\r\n\t\t\t\t\t\tp2Hand.removeCard(CPUlaycard);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//CPU Discard\r\n\t\t\t\r\n\t\t\t\tCard ccard = p2Hand.getCard(0);\r\n\t\t\t\tstackDeck.Push(ccard);\r\n\t\t\t\ttopOfStack.setIcon(ccard.getCardImage());\r\n\t\t\t\tp2Hand.removeCard(ccard);\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t//Endgame Lay\r\n\t\t\tif(p1Hand.GameOver()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) < 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Endgame Deck\r\n\t\t\tif(cardDeck.isEmpty()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) < 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\r\n\r\n\r\n\t\tif(p2LayOnStack == src && (playerlayStack % 2 == 1) && (playerlayStack < playerturn)){\r\n\t\t\tplayerlayStack++;\r\n\t\t\tint [] num = p2HandPile.getSelectedIndices();\r\n\t\t\tif (num.length == 1)\r\n\t\t\t{\r\n\t\t\t\tObject obj = p2HandPile.getSelectedValue();\r\n\t\t\t\tif (obj != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tp2Hand.removeObj(obj);\r\n\t\t\t\t\tCard card = (Card)obj;\r\n\t\t\t\t\tstackDeck.Push(card);\r\n\t\t\t\t\ttopOfStack.setIcon(card.getCardImage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Endgame Lay\r\n\t\t\tif(p2Hand.GameOver()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Endgame Deck\r\n\t\t\tif(cardDeck.isEmpty()){\r\n\t\t\t\tif(p1Hand.compareTo(p2Hand) > 0){\r\n\t\t\t\t\tSystem.out.println(\"Player 1 Wins!!!\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(p1Hand.compareTo(p2Hand) == 0){\r\n\t\t\t\t\tSystem.out.println(\"Tie!\");\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Player 2 Wins!!!\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" } ]
212c4886840c9aae3e9748a694ca0de2
This method is called upon creation of this Service. It merely instantiates the DefaultHttpClient and LocalBinder. Both are to remain throughout the application use.
[ { "docid": "6d829b6aaf652ad79b0deaa96a98edfa", "score": "0.6923888", "text": "public void onCreate() {\r\n\t\tsuper.onCreate();\r\n\t\tHttpParams httpParameters = new BasicHttpParams();\r\n\t\t// Set the timeout in milliseconds until a connection is established.\r\n\t\t// The default value is zero, that means the timeout is not used. \r\n\t\tint timeoutConnection = 3000;\r\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\r\n\t\t// Set the default socket timeout (SO_TIMEOUT) \r\n\t\t// in milliseconds which is the timeout for waiting for data.\r\n\t\tint timeoutSocket = 5000;\r\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\r\n\t\t// Set maximum number of connections\r\n\t\tConnManagerParams.setMaxTotalConnections(httpParameters, 100);\r\n\t\t\r\n\t\t // Create and initialize scheme registry \r\n SchemeRegistry schemeRegistry = new SchemeRegistry();\r\n schemeRegistry.register(new Scheme(\"http\", PlainSocketFactory.getSocketFactory(), 80));\r\n schemeRegistry.register(new Scheme(\"https\", createAdditionalCertsSSLSocketFactory(), 443));\r\n // Create an HttpClient with the ThreadSafeClientConnManager.\r\n // This connection manager must be used if more than one thread will\r\n // be using the HttpClient.\r\n ClientConnectionManager cm = new ThreadSafeClientConnManager(httpParameters, schemeRegistry);\r\n\t\tclient = new DefaultHttpClient(cm, httpParameters);\r\n\t\tmBinder = new LocalBinder();\t\t\r\n\t}", "title": "" } ]
[ { "docid": "c69fb646a321ca622e2690e2ec79ed00", "score": "0.68918717", "text": "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n searchResultHttpService = retrofit.create(GetSearchResultService.SearchResultHttpService.class);\n }", "title": "" }, { "docid": "d41f13cb503d8aedd7499c405362b67a", "score": "0.64522773", "text": "public ServiceGenerator() {\n this.retrofit = new Retrofit.Builder()\n .baseUrl(AppConstants.SERVER_URL)\n //.client(getUnsafeOkHttpClient())\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n }", "title": "" }, { "docid": "dfd6c6913bfcc0c004947b434191e53d", "score": "0.6441216", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.json_request);\n ButterKnife.bind(this);\n Timber.plant(new Timber.DebugTree());\n apiInterface = ApiClient.getClient().create(ApiInterface.class);\n }", "title": "" }, { "docid": "6c515fc930eeacddb13af16d85ad4412", "score": "0.64325607", "text": "public HttpClientSingleton(){}", "title": "" }, { "docid": "90e867cb2e61067845f66144f13d0289", "score": "0.6392282", "text": "private MyRequestClient() {\n init();\n }", "title": "" }, { "docid": "4a24e12425a0c59e731a706fbf93d0e5", "score": "0.62911826", "text": "@Override\n public void onCreate() {\n super.onCreate();\n if (binder == null) {\n binder = new MyBinder();\n }\n conn = new MyServiceConnection();\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n SystemClock.sleep(Constants.INTERVAL);\n startRequest();\n }\n\n }\n }).start();\n }", "title": "" }, { "docid": "003ff9a0cc53af4dba21e36a3961b11b", "score": "0.6265439", "text": "public HttpClientHelper() {\n PoolingClientConnectionManager poolingClientConnectionManager = new PoolingClientConnectionManager();\n client = new DefaultHttpClient(poolingClientConnectionManager);\n }", "title": "" }, { "docid": "9b4c3ea5791fc3b5fabf61e138a7064f", "score": "0.62563205", "text": "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG,\"onCreate\");\n\t\tmReqMessenger = new Messenger(new RequestHandler());\n\t\tserverApi = createSrv();\n\t}", "title": "" }, { "docid": "945ba38e6f6292151d4e2fa36711c2f8", "score": "0.62095934", "text": "public RestClientService()\n {\n \n }", "title": "" }, { "docid": "b53b4e99fc7cd4decd1f556d8620b802", "score": "0.61609", "text": "private void initService() {\n Log.i(TAG, \"initService()\" );\n connection = new RemoteServiceConnection();\n Intent i = new Intent();\n i.setClassName(\"com.japp.aidlexample\", \"com.japp.aidlexample.RemoteService\");\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.i(TAG, \"initService() bound value: \" + ret);\n }", "title": "" }, { "docid": "778fe821f902e5cdb87bbdab69f19a06", "score": "0.6156894", "text": "public void initialize() throws PolicyApiException {\n LOGGER.debug(\"Policy api starting as a service . . .\");\n startApiRestServer();\n registerToParameterService(apiParameterGroup);\n ApiActivator.setAlive(true);\n LOGGER.debug(\"Policy api started as a service\");\n }", "title": "" }, { "docid": "ebdad14349379989001c843a11fb2b68", "score": "0.6116518", "text": "private void initHttpClient() {\n\n okHttpClient = new OkHttpClient.Builder()\n .connectTimeout(1000, TimeUnit.MILLISECONDS)\n .readTimeout(1000, TimeUnit.MILLISECONDS)\n .build();\n }", "title": "" }, { "docid": "36546d58f78fec34a41de3f6ca1e8191", "score": "0.6106865", "text": "private static void initRetrofit() {\n OkHttpClient.Builder builder = new OkHttpClient.Builder();\n builder.interceptors().add(new Interceptor() {\n @Override\n public okhttp3.Response intercept(Chain chain) throws IOException {\n Request newRequest = chain.request().newBuilder().addHeader(\"Accept\", \"application/json\").build();\n return chain.proceed(newRequest);\n }\n });\n OkHttpClient client = builder.build();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(XWorldsApi.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n xWorldsApi = retrofit.create(XWorldsApi.class);\n }", "title": "" }, { "docid": "67abee8a904b97f21b6e2ec8d816cb7a", "score": "0.61048543", "text": "public void initApacheHttpClient() {\n RequestConfig defaultRequestConfig = RequestConfig.custom().setSocketTimeout(TIMEOUT_SECONDS * 1000)\n .setConnectTimeout(TIMEOUT_SECONDS * 1000).build();\n\n // Create an HttpClient with the given custom dependencies and\n // configuration.\n httpclient = HttpClients.custom().setUserAgent(USER_AGENT).setMaxConnTotal(POOL_SIZE)\n .setMaxConnPerRoute(POOL_SIZE).setDefaultRequestConfig(defaultRequestConfig).build();\n }", "title": "" }, { "docid": "b4d9b9c9ad5b15c4dbaeca14b2f4374c", "score": "0.6070886", "text": "JDKHttpLoader() {\n // this.webClient = webClient;\n }", "title": "" }, { "docid": "2152abc003c39b23ebdd8eedf1a3f3f2", "score": "0.6061382", "text": "public void init() {\n ServletContext context = getServletContext();\n String appId = context.getInitParameter(\"AppID\");\n String findingServerAddress = context.getInitParameter(\"FindingServerAddress\");\n \t\n // initialize service end-point configuration\n \tClientConfig clientConfig = new ClientConfig();\n \tclientConfig.setEndPointAddress(findingServerAddress);\n \tclientConfig.setApplicationId(appId);\n \t\n \t// initialize finding service client\n \tserviceClient = FindingServiceClientFactory.getServiceClient(clientConfig); \t\n }", "title": "" }, { "docid": "9a0b393d54df1bffcd80d6f9870d09d2", "score": "0.6034885", "text": "HttpTask() {\n // Create the runnables\n mHttpRunnable = new HttpRunnable(this);\n sHttpManager = HttpManager.getInstance();\n }", "title": "" }, { "docid": "7c3c344a43e3d975e0c0170b9bd85504", "score": "0.6029105", "text": "private BoTService() {}", "title": "" }, { "docid": "903df1de75720ddd40c137b8c9934d74", "score": "0.60214156", "text": "public Services() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "155f3803e2151b6c5a326e3dd9d5b2b7", "score": "0.5998408", "text": "private OkHttpClient createOkHttpClient() {\n // get token and token type\n final String tokenType = elvisEmpty(token.type, \"Bearer\");\n final String token = this.token.token;\n if (nullOrEmpty(token))\n return null;\n\n // prepare interceptors\n final AuthInterceptor authInterceptor = new AuthInterceptor(tokenType, token);\n final CacheInterceptor cacheInterceptor = new CacheInterceptor(getApplicationContext());\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(BuildConfig.DEBUG ? HttpLoggingInterceptor.Level.BODY : HttpLoggingInterceptor.Level.NONE);\n\n // create MAL error interceptor to give info on api errors\n final MALErrorInterceptor errorInterceptor = new MALErrorInterceptor(\n err -> Log.e(\"Tenshi\", fmt(\"error in MAL request: %s %s (hint: %s)\", err.error, err.message, err.hint)));\n\n // create OkHttp client\n return new OkHttpClient.Builder()\n .cache(getCache())\n .addInterceptor(authInterceptor)\n .addInterceptor(cacheInterceptor)\n .addInterceptor(loggingInterceptor)\n .addInterceptor(errorInterceptor)\n .build();\n }", "title": "" }, { "docid": "4c84a580c8fb5c7fbab9719e3c23e1b5", "score": "0.59953517", "text": "@Override\n public void initialize() {\n // Already open\n if (isOpen()) {\n return;\n }\n\t\t\n // Hook into custom message parser / writer to tailor the way HTTP\n // messages are parsed from and written out to the data stream.\n HttpMessageParserFactory<HttpResponse> responseParserFactory = new DefaultHttpResponseParserFactory() {\n @Override\n public HttpMessageParser<HttpResponse> create(\n SessionInputBuffer buffer, MessageConstraints constraints) {\n LineParser lineParser = new BasicLineParser() {\n\n @Override\n public Header parseHeader(final CharArrayBuffer buffer) {\n try {\n return super.parseHeader(buffer);\n } catch (ParseException ex) {\n return new BasicHeader(buffer.toString(), null);\n }\n }\n\n };\n \n return new DefaultHttpResponseParser(\n buffer, lineParser, DefaultHttpResponseFactory.INSTANCE, constraints) {\n\n @Override\n protected boolean reject(final CharArrayBuffer line, int count) {\n // try to ignore all garbage preceding a status line infinitely\n return false;\n }\n };\n }\n };\n \n HttpMessageWriterFactory<HttpRequest> requestWriterFactory = new DefaultHttpRequestWriterFactory();\n\n // Use a custom connection factory to customize the process of\n // initialization of outgoing HTTP connections. Beside standard connection\n // configuration parameters HTTP connection factory can define message\n // parser / writer routines to be employed by individual connections.\n HttpConnectionFactory<HttpRoute, ManagedHttpClientConnection> connFactory = new ManagedHttpClientConnectionFactory(\n requestWriterFactory, responseParserFactory);\n\n // SSL context for secure connections can be created either based on\n // system or application specific properties.\n SSLContext sslcontext = SSLContexts.createSystemDefault();\n\n // Create a registry of custom connection socket factories for supported protocol schemes.\n Registry<ConnectionSocketFactory> socketFactoryRegistry = RegistryBuilder.<ConnectionSocketFactory>create()\n .register(\"http\", PlainConnectionSocketFactory.INSTANCE)\n .register(\"https\", new SSLConnectionSocketFactory(sslcontext))\n .build();\n\n // Use custom DNS resolver to override the system DNS resolution.\n DnsResolver dnsResolver = new SystemDefaultDnsResolver() {\n @Override\n public InetAddress[] resolve(final String host) throws UnknownHostException {\n if (host.equalsIgnoreCase(\"localhost\")) {\n return new InetAddress[] { InetAddress.getByAddress(new byte[] {127, 0, 0, 1}) };\n } else {\n return super.resolve(host);\n }\n }\n };\n\n // Create a connection manager with custom configuration.\n PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(\n socketFactoryRegistry, connFactory, dnsResolver);\n\n // Create socket configuration\n SocketConfig socketConfig = SocketConfig.custom()\n .setTcpNoDelay(true)\n .build();\n \n // Configure the connection manager to use socket configuration either\n // by default or for a specific host.\n connManager.setDefaultSocketConfig(socketConfig);\n connManager.setSocketConfig(new HttpHost(getHost(), getPort()), socketConfig);\n \n // Validate connections after 1 sec of inactivity\n connManager.setValidateAfterInactivity(getActivityTimeout());\n\n // Create message constraints\n MessageConstraints messageConstraints = MessageConstraints.custom()\n .setMaxHeaderCount(200)\n .setMaxLineLength(2000)\n .build();\n \n // Create connection configuration\n ConnectionConfig connectionConfig = ConnectionConfig.custom()\n .setMalformedInputAction(CodingErrorAction.IGNORE)\n .setUnmappableInputAction(CodingErrorAction.IGNORE)\n .setCharset(Consts.UTF_8)\n .setMessageConstraints(messageConstraints)\n .build();\n \n // Configure the connection manager to use connection configuration either\n // by default or for a specific host.\n connManager.setDefaultConnectionConfig(connectionConfig);\n connManager.setConnectionConfig(new HttpHost(getHost(), getPort()), ConnectionConfig.DEFAULT);\n\n // Configure total max or per route limits for persistent connections\n // that can be kept in the pool or leased by the connection manager.\n connManager.setMaxTotal(maxConnections);\n connManager.setDefaultMaxPerRoute(maxConnRequests);\n connManager.setMaxPerRoute(new HttpRoute(new HttpHost(getHost(), getPort())), maxConnRequests);\n\n // Create global request configuration\n RequestConfig defaultRequestConfig = RequestConfig.custom()\n .setCookieSpec(CookieSpecs.DEFAULT)\n .setExpectContinueEnabled(true)\n .setSocketTimeout(getSocketTimeout())\n .setConnectTimeout(getConnectTimeout())\n .setConnectionRequestTimeout(getActivityTimeout())\n .setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM, AuthSchemes.DIGEST))\n .setProxyPreferredAuthSchemes(Arrays.asList(AuthSchemes.BASIC))\n .build();\n\n // Create an HttpClient with the given custom dependencies and configuration.\n this.httpClient = HttpClients.custom()\n .setConnectionManager(connManager)\n .setDefaultRequestConfig(defaultRequestConfig)\n .disableRedirectHandling()\n .build(); \n }", "title": "" }, { "docid": "a88ad38ae79aad4540313434e6024832", "score": "0.5988027", "text": "public ServiceHolder() {\n\t\t\n\t}", "title": "" }, { "docid": "27ece47a3bc33b141db289463df18e50", "score": "0.59558576", "text": "private void initAlljoynService() {\n if (_alljoynService == null)\n startService(new Intent(this, AlljoynService.class));\n else\n _alljoynService.init();\n }", "title": "" }, { "docid": "574b6dd1b7f2aede0cfd94ca1b12d2aa", "score": "0.5952886", "text": "public GenericResource() {\n services = new Services();\n }", "title": "" }, { "docid": "a58253d2f041eea5d3b4397faf170377", "score": "0.5941992", "text": "public ServerHttpWrapper(){\n \n }", "title": "" }, { "docid": "d4d3109df73016cbd881ffe7a325c56f", "score": "0.5940407", "text": "public Client() {\n this.httpClient = HttpClients.createDefault();\n this.test = false;\n }", "title": "" }, { "docid": "308917f616b3fe3e363cfef56e29ef89", "score": "0.5910621", "text": "private void initService() {\n connection = new IoioServiceConnection();\n Intent intend = new Intent();\n intend.setAction(\"org.genas.headunit.IoioService.STARTSERVICE\");\n boolean ret = bindService(intend, connection, Context.BIND_AUTO_CREATE);\n Log.d(\"IoioRadioApp\", \"initService() bound with \" + ret);\n }", "title": "" }, { "docid": "481ba7bd3f51550e2d34a80892f94e00", "score": "0.59004074", "text": "public ApiService newApiService() {\n Gson gson = new GsonBuilder()\n .registerTypeAdapter(ZonedDateTime.class, new ZonedDateTimeConverter())\n .create();\n\n RxJava2CallAdapterFactory rxAdapter = RxJava2CallAdapterFactory.createWithScheduler(Schedulers.io());\n\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient okHttpClient = new OkHttpClient.Builder()\n //Hardcoded login just for this test purpose, normally this must be a\n // token retrieval security or kind of another secure auth\n // with a proper login fragment/activity\n .addInterceptor(new BasicAuthInterceptor(\"yat@triplespin.com\", \"yatyatyat27\"))\n .addInterceptor(logging)\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n //.cache(cache) No cache configured for this test purposes, but is possible to have it.\n .build();\n\n\n Retrofit retrofit = new Retrofit.Builder()\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(rxAdapter)\n .baseUrl(ENDPOINT)\n .client(okHttpClient)\n .build();\n\n\n return retrofit.create(ApiService.class);\n\n }", "title": "" }, { "docid": "5597e201187192f4339133ddea3f0004", "score": "0.58954424", "text": "public G52APRClient(){\r\n\t\thttpClient = new DefaultHttpClient();\r\n\t\thttpClient.getParams().setParameter(\r\n\t\t\t\t\"http.protocol.version\", HttpVersion.HTTP_1_0);\r\n\t}", "title": "" }, { "docid": "09ab00c9ac410a8d5bd4ff7f1db61a08", "score": "0.58914936", "text": "private ClientManagerImpl() {\n \n }", "title": "" }, { "docid": "481ff3b6a240e3514b230d9d49367a8d", "score": "0.58903384", "text": "public void init() throws ServiceException;", "title": "" }, { "docid": "770db0cf748083e20e490fafee3b3eda", "score": "0.58820516", "text": "public void init() {\n logger.info(\"Starting \" + this.getName());\n Dictionary servProps = new Properties();\n servProps.put(Constants.SERVICE_PID, configurationPid);\n registration = bundleContext.registerService(ManagedServiceFactory.class.getName(), this, servProps);\n tracker = new ServiceTracker(bundleContext, ConfigurationAdmin.class.getName(), null);\n tracker.open();\n logger.info(\"Started \" + this.getName());\n }", "title": "" }, { "docid": "ffe330c297604767eab07c4db7718fcf", "score": "0.58737135", "text": "private DefaultService() {}", "title": "" }, { "docid": "e6b1dc04237155890cdc2f493f855215", "score": "0.5850978", "text": "@Override\n\tpublic void init() {\n\t\tdownloadService = (DownloadService) WebApplicationContextUtils.getWebApplicationContext(getServletContext()).\n\t\t\t\tgetBean(\"downloadService\", DownloadService.class);\n\t\tmediaService = (ExtendedMediaService) WebApplicationContextUtils.getWebApplicationContext(getServletContext()).\n\t\t\t\tgetBean(\"mediaService\", MediaService.class);\n\t\tuserService = (UserService) WebApplicationContextUtils.getWebApplicationContext(getServletContext()).\n\t\t\t\tgetBean(\"userService\", UserService.class);\n\t}", "title": "" }, { "docid": "fceb8394293fc7e5f2feebf7cf9f00e3", "score": "0.5850265", "text": "@PostConstruct\n public void init() {\n client = RestClientUtil.get(new ConfigKey(true, false, false));\n }", "title": "" }, { "docid": "ad4b8f29c42a0129296dd741d24c6995", "score": "0.5836186", "text": "public void initializeAuthentificatedCommunication() {\n retrofit = RetrofitBuilder.getAuthenticatedClient(context);\n trajetWebService = retrofit.create(TrajetWebService.class);\n }", "title": "" }, { "docid": "58db10e0eeb8c5a2203d8e93c51f89d7", "score": "0.58239084", "text": "public void initService();", "title": "" }, { "docid": "de31bbbd013d918c26e826fd7bdcd983", "score": "0.581949", "text": "public DataProcessorEngine() {\r\n\t\tthis.client = new ApiRestClientBuilder()\r\n\t .setHost(this.getHostFromConfig())\r\n\t .build();\r\n\t}", "title": "" }, { "docid": "db504b165b21a484b2d038f26db81b63", "score": "0.58177274", "text": "private static void initialize() {\n try {\n final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();\n service = new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))\n .setApplicationName(APPLICATION_NAME)\n .build();\n } catch (Exception e) {throw new RuntimeException(e);}\n }", "title": "" }, { "docid": "8dfbf6f7ff20bb5aa8da6c4854434215", "score": "0.58117604", "text": "private DefaultHttpClient createHttpClient() {\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n // http scheme\n schemeRegistry.register(new Scheme(\"http\", PlainSocketFactory\n .getSocketFactory(), 80));\n // https scheme\n schemeRegistry.register(new Scheme(\"https\", new EasySSLSocketFactory(),\n 443));\n HttpParams params = new BasicHttpParams();\n params.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, CONNECTION_TIMEOUT);\n HttpProtocolParams.setContentCharset(params, UNICODE);\n HttpProtocolParams.setHttpElementCharset(params, UNICODE);\n ClientConnectionManager cm = new ThreadSafeClientConnManager(params, schemeRegistry);\n return new DefaultHttpClient(cm, params);\n }", "title": "" }, { "docid": "51504dd6bf99102499d6fde44e2b344c", "score": "0.5808734", "text": "public App() {\n genClient = new GenericClient<App>(this);\n }", "title": "" }, { "docid": "8874fda26f50a1645f2744dd973d29ff", "score": "0.5808323", "text": "public MotionRestService() {\n }", "title": "" }, { "docid": "e71601d49f3093587e1f4d9881cbcace", "score": "0.58004385", "text": "public void init() {\n log.info(\"Starting \" + this.getName());\n Dictionary<String, String> servProps = new Hashtable<String, String>();\n servProps.put(Constants.SERVICE_PID, configurationPid);\n registration = bundleContext.registerService(ManagedServiceFactory.class.getName(), this, servProps);\n tracker = new ServiceTracker(bundleContext, ConfigurationAdmin.class.getName(), null);\n tracker.open();\n log.info(\"Started \" + this.getName());\n }", "title": "" }, { "docid": "882f4e09798bcde5a22f7eba32f4892c", "score": "0.57878274", "text": "public httphandler() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "453c1058b6a66718a7608b75481bb61d", "score": "0.57776403", "text": "private ServiceLocator() {\r\n\t}", "title": "" }, { "docid": "92c5f2d11eb2757e8a6bb792c6609dfd", "score": "0.5769219", "text": "public EnstoNetworker() {\n httpClient = new OkHttpClient();\n }", "title": "" }, { "docid": "2f93f66f994d62320cef9161a98e313e", "score": "0.57689494", "text": "public RestApplication() {\n this.singletons.add(Instance.get(ScheduleRESTService.class));\n this.singletons.add(Instance.get(DailyReportEndpoint.class));\n this.singletons.add(Instance.get(DownloadCsvFileEndPoint.class));\n }", "title": "" }, { "docid": "08be88b35cad95f0aaedb1f896dca2d7", "score": "0.57475775", "text": "protected ServiceProviderImpl() {\n }", "title": "" }, { "docid": "66b20571821dbd6faefb5b55f4093b0b", "score": "0.5743138", "text": "public PlacesAPI() {\n\n\t\tthis.httpRequest = new HttpRequest();\n\t}", "title": "" }, { "docid": "4a0813532602e1b9654d538d67b959a7", "score": "0.5742252", "text": "public DeteteDataService() {\n//\t\tsuper(\"LocalServiceConstructor\");\n\t\t\n\t\tLog.d(\"LocalIntentService\", \"ConstructorCalled\");\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "7f278ae68ceeb34a5a2bfa80215468a3", "score": "0.5735406", "text": "@Override\n\tpublic void onCreate()\n\t{\n\t\tHandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\n\t\t\t\tProcess.THREAD_PRIORITY_BACKGROUND);\n\t\tthread.start();\n\n\t\t// Get the HandlerThread's Looper and use it for our Handler\n\t\tmServiceLooper = thread.getLooper();\n\t\tmServiceHandler = new ServiceHandler(mServiceLooper);\n\t}", "title": "" }, { "docid": "f2ab04ebefc15ff65775e4630744619e", "score": "0.57332826", "text": "public void initializeAndroidNetworkingLibrary() {\n OkHttpClient okHttpClient = new OkHttpClient() .newBuilder()\n .addNetworkInterceptor(new StethoInterceptor())\n .build();\n AndroidNetworking.initialize(getApplicationContext());\n }", "title": "" }, { "docid": "3c3ede0d5f05abdcf8f8779cc9f8bfe3", "score": "0.5731618", "text": "public HttpCache()\n {\n _client = HttpClientFactory.getInstance(\n _defaultOptions.getMaxRedirects(),\n Boolean.TRUE,\n _defaultOptions.getSocketTimeout(),\n _defaultOptions.getConnTimeout(),\n CookiePolicy.IGNORE_COOKIES);\n }", "title": "" }, { "docid": "f7de3f01ae783a8a07f7a89fd1ad8334", "score": "0.571937", "text": "public ComapnyServiceImpl() {\r\n\t}", "title": "" }, { "docid": "d49f8f7916b42b87f2c9dd927f2823c8", "score": "0.57126766", "text": "public DocumentLocalSvcCallbacks()\r\n {\r\n Looper mainLooper = Looper.getMainLooper(); // reference to the main threads looper in\r\n // MainThread's Thread Local Storage.\r\n mhandle = new Handler(mainLooper);\r\n }", "title": "" }, { "docid": "24980fb0964aef032c11b149c14d2d0a", "score": "0.57098436", "text": "public HttpAuthenticator() {\n this.register();\n }", "title": "" }, { "docid": "148878627a19c4f9892917e581844ac4", "score": "0.569113", "text": "public Binder(CoronaService service) {\n \t\tfService = service;\n \t}", "title": "" }, { "docid": "fc5e1543f940f1ceed7e100ee19c2b5a", "score": "0.5690316", "text": "private void initserviceconnection() {\n\t Bundle args = new Bundle();\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(\"com.zounikeji.service.HelprService\");\n\t\t\tintent.putExtras(args);\n\t\t\tbindService(intent, mConnection, Context.BIND_AUTO_CREATE);\n\t\t\tstartService(intent);\n\t}", "title": "" }, { "docid": "084aa3c16f943c701f95f715c4c8503d", "score": "0.56613207", "text": "private AzkabanFactory(){\n client = ClientBuilder.newClient();\n }", "title": "" }, { "docid": "48e8c7faeb925343a3370a10a3315fdf", "score": "0.56609887", "text": "@Override\n public void init() {\n logger.init();\n configurator = new XmlConfigurator();\n serviceLoader = new ThreadedServiceLoader();\n serviceCreator = new ServiceCreator();\n controllerCreator = new ControllerCreator();\n moduleHandlerRepository = new ModuleHandlerRepository();\n }", "title": "" }, { "docid": "8ef57a3ebd343da41189589633ce0b22", "score": "0.5652012", "text": "@Override\r\n\tpublic void onCreate() {\n\r\n\t\tHandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\r\n\t\t\t\tProcess.THREAD_PRIORITY_BACKGROUND);\r\n\t\tthread.start();\r\n\r\n\t\t// Get the HandlerThread's Looper and use it for our Handler\r\n\t\tmServiceLooper = thread.getLooper();\r\n\t\tmServiceHandler = new ServiceHandler(mServiceLooper);\r\n\t}", "title": "" }, { "docid": "3f3d601e2f47bb7a5a2169e756924593", "score": "0.56348497", "text": "public Service() {\n\n\t}", "title": "" }, { "docid": "5cf779d856311734c2c14d6e99417714", "score": "0.5632827", "text": "@AfterViews\n\t@SuppressLint(\"NewApi\")\n\tpublic void init() {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t restTemplate.getMessageConverters().add(new GsonHttpMessageConverter());\n\t\tbookingRestApi.setRestTemplate(restTemplate);\n\n\t\t// get hotels list\n\t\thotelList.setEmptyView(findViewById(R.id.hotels_empty));\n\t\thotelList.setAdapter(null);\n\t\tgetHotels();\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\tActionBar actionBar = getActionBar();\n\t\t\tactionBar.setDisplayHomeAsUpEnabled(true);\n\t\t}\n\t}", "title": "" }, { "docid": "b653ef2839b2769f88f105dda83f6e91", "score": "0.56328267", "text": "private ServiceManager () {\n\t\t\tcomputerService = new ComputerServiceImpl(); \n\t\t\tcompanyService = new CompanyServiceImpl(); \n\t\t}", "title": "" }, { "docid": "5c62376e6dc323765158c89c19a19acb", "score": "0.5632102", "text": "@Override\n public void onCreate() {\n //set up proxy receiver and set up filter\n mProxyReceiver = new ProxyReceiver();\n IntentFilter filter = new IntentFilter();\n filter.addAction(\"tap\");\n getApplicationContext().registerReceiver(mProxyReceiver, filter);\n\n // Start up the thread running the servers. Note that we create a separate thread because\n // the service normally runs in the process's main thread, which we don't want to block.\n\n // create server sockets\n try {\n mSocketHTTP = new ServerSocket();\n mSocketHTTPS = getSSLSocket(getResources().openRawResource(R.raw.evil_ap));\n } catch (Exception e) {\n e.printStackTrace();\n }\n //start the HTTP proxy socket thread\n Thread proxyHTTP = new Thread(new ProxyHTTPMainLoop(mSocketHTTP));\n proxyHTTP.start();\n //start the HTTPS proxy socket thread\n Thread proxyHTTPS = new Thread(new ProxyHTTPSMainLoop(mSocketHTTPS));\n proxyHTTPS.start();\n\n setupNotification();\n }", "title": "" }, { "docid": "4a49799c79b50d16121cfefb1b35665d", "score": "0.5628212", "text": "protected void serviceInit() {\n\t\t/* do nothing. */\n\t}", "title": "" }, { "docid": "f38c548a9603f0716e71ae7038596b08", "score": "0.5625282", "text": "private RemoteUtil() {\n if(retrofit == null){\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n\n if(apiClient == null){\n apiClient = retrofit.create(ApiClient.class);\n }\n }", "title": "" }, { "docid": "7b3a99c4897f81049dabc42dc362a3c0", "score": "0.56244737", "text": "private void initRefit() {\n\n\n mRetrofit = new Retrofit.Builder()\n .baseUrl(\"http://v.juhe.cn\")\n .addConverterFactory(StringConverterFactory.create())\n .build();\n\n }", "title": "" }, { "docid": "eb374f6c25d76ada6089b70d8f516d2f", "score": "0.5615297", "text": "@Override\n public void onCreate() {\n super.onCreate();\n Log.d(TAG, \"onCreate\");\n CoreApplication.context = getApplicationContext();\n\n // Initialize the Otto Event Bus\n sBus = new Bus(ThreadEnforcer.ANY);\n\n// initializeRestClient(this);\n\n // Build server http address\n// serverAddress = context.getResources().getString(R.string.http)\n// + context.getResources().getString(R.string.IP)\n// +\":\"+context.getResources().getString(R.string.httpport) + \"/\";\n\n //Initialize Database DAOs, etc\n// initializeDatabase(this);\n }", "title": "" }, { "docid": "258cb5521bf2f94e130ceedd73f15eda", "score": "0.56059706", "text": "private synchronized void init() {\n // Base free service\n tokenService = new Service();\n tokenService.setBindable(true);\n tokenService.setDescription(\"A JWT token generator service\");\n tokenService.setId(UUID.randomUUID().toString());\n tokenService.setName(\"jwt-token-service\");\n tokenService.setTags(Collections.singletonList(\"JWT\"));\n tokenService.setRequires(Collections.singletonList(\"volume_mount\"));\n tokenService.setPlanUpdateable(false);\n // The metadata used by the console view of the catalog\n HashMap<String, String> metadata = new HashMap<>();\n metadata.put(\"displayName\", \"JWT TokenService\");\n metadata.put(\"documentationUrl\", \"https://github.com/starksm64/wildfly-swarm-service-broker\");\n metadata.put(\"longDescription\", \"The JWT TokenService \");\n metadata.put(\"providerDisplayName\", \"Red Hat, Inc.\");\n metadata.put(\"supportUrl\", \"http://wildfly-swarm.io/\");\n metadata.put(\"imageUrl\", \"https://avatars0.githubusercontent.com/u/7501379?s=200&v=4\");\n tokenService.setMetadata(metadata);\n Plan basePlan = new Plan();\n basePlan.setId(UUID.randomUUID().toString());\n basePlan.setFree(true);\n basePlan.setName(\"base-free-plan\");\n basePlan.setDescription(\"Basic JWT generation support\");\n Schemas schemas = new Schemas();\n ObjectMapper mapper = new ObjectMapper();\n\n ServiceInstance serviceInstance = new ServiceInstance();\n // Read the schema in from the INSTANCE_SCHEMA_PATH resource\n try(InputStream is = getClass().getResourceAsStream(INSTANCE_SCHEMA_PATH)) {\n JsonNode schema = mapper.readTree(is);\n serviceInstance.setCreate(schema);\n } catch (IOException e) {\n e.printStackTrace();\n }\n schemas.setServiceInstance(serviceInstance);\n\n ServiceBinding serviceBinding = new ServiceBinding();\n // Read the schema in from the BINDING_SCHEMA_PATH resource\n try(InputStream is = getClass().getResourceAsStream(BINDING_SCHEMA_PATH)) {\n JsonNode schema = mapper.readTree(is);\n serviceBinding.setCreate(schema);\n } catch (IOException e) {\n e.printStackTrace();\n }\n schemas.setServiceBinding(serviceBinding);\n\n basePlan.setSchemas(schemas);\n tokenService.setPlans(Collections.singletonList(basePlan));\n }", "title": "" }, { "docid": "5499893ef7c4a8f1dedbdc74cb04382d", "score": "0.55879694", "text": "public void init(ServiceInfo serviceInfo);", "title": "" }, { "docid": "7ae5a286e382a38a8ebe88da7d5fe876", "score": "0.55790424", "text": "private void initialize() {\n // auth client\n twitterAuthClient = new TwitterAuthClient();\n }", "title": "" }, { "docid": "998415c8d54998ac67c8cb25a1c0a73a", "score": "0.5578939", "text": "private ServiceInvocationManager(){\r\n\t\t// No instanciable\r\n\t}", "title": "" }, { "docid": "f039720d354f57be361b107c733afffa", "score": "0.55681896", "text": "@PostConstruct\n public void init() {\n ApiContextInitializer.init();\n }", "title": "" }, { "docid": "e9be899a458172a169e5476c7b90682e", "score": "0.5567948", "text": "@Override\n protected void onStart() {\n super.onStart();\n\n Intent intent = new Intent(this, MyBoundService.class);\n bindService(intent, mConnection, BIND_AUTO_CREATE);\n }", "title": "" }, { "docid": "80101e35b618a4f134da07531fce0a5d", "score": "0.5563537", "text": "public GenericService() {\n\t\tsuper(mSticky);\n\t}", "title": "" }, { "docid": "e622eb35f86a991efd8549097e6e6c10", "score": "0.55539596", "text": "private void initGoogleAPIClient() {\n if (mGoogleApiClient == null) {\n mGoogleApiClient = new GoogleApiClient.Builder(getActivity())\n .addConnectionCallbacks(AgentFilterFragment.this)\n .addOnConnectionFailedListener(AgentFilterFragment.this)\n .addApi(LocationServices.API)\n .build();\n }\n mGoogleApiClient.connect();\n }", "title": "" }, { "docid": "9fe75d47bbf11aa6b2f50b34823c4e66", "score": "0.55517703", "text": "public BookService() {\n super();\n }", "title": "" }, { "docid": "28547cb5265f9881c0a237a29c75ca1b", "score": "0.55500877", "text": "private ServiceContainer() {\n super();\n }", "title": "" }, { "docid": "2990ae8ae05f1cc2a4923c07b115dcfb", "score": "0.554817", "text": "public ServiceRequest() {\n initComponents();\n \n }", "title": "" }, { "docid": "3a840a888b26651f4242c96c0ab78841", "score": "0.5546049", "text": "@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tcomSer = new commonServiceimpl();\n\t}", "title": "" }, { "docid": "09089fc20b4542de3ba9a68a37c3013d", "score": "0.553832", "text": "public RegistryBinder() {\n this.cache = new ConcurrentCache<Class>();\n this.factory = new ConverterFactory();\n }", "title": "" }, { "docid": "90b7238ad4dd341bc990c637eb9e803d", "score": "0.553014", "text": "private HumanService() {\n throw new AssertionError();\n }", "title": "" }, { "docid": "6d6edebc754d3a45a0196453e7f384a6", "score": "0.55292046", "text": "public CreServiceImpl() {\r\n }", "title": "" }, { "docid": "dd63694db6f208df5d4672ab48e20a45", "score": "0.5524315", "text": "public FlickrPhotoService() {\r\n }", "title": "" }, { "docid": "ddca7ae32ec487d838229c6be5626801", "score": "0.5522056", "text": "private void prepareServices() {\n Intent startIntent = new Intent();\n startIntent.setClass(getContext(), VehicleManager.class);\n service = ((VehicleManager.VehicleBinder)\n bindService(startIntent)).getService();\n try {\n service.waitUntilBound();\n } catch(VehicleServiceException e) {\n fail(\"Never bound to remote VehicleService\");\n }\n service.addSource(source);\n }", "title": "" }, { "docid": "8b88dd2d4c1cd85d7b233edd74ecc5f9", "score": "0.5521473", "text": "public void init() {\n\t\tget(\"/employees\", \"application/json\", (request, response) -> { \n\t\t\treturn this.employeeDao.getEmployees();\n\t\t}, new JsonTransformer());\n\t\t\n\t\t// Retrieve employee(s) using employee id\n\t\tget(\"/employees/:id\", (request, response) -> {\n\t\t\tString id = request.params(\":id\");\n\t\t\treturn this.employeeDao.getEmployee(id);\n\t\t}, new JsonTransformer());\n\n\t\t// Add a new employee\n\t\tpost(\"/employees\", (request, response) -> {\n\n\t\t\t//Employee emp = new Employee (request.queryParams(\"id\"), request.queryParams(\"name\"));\n\t\t\tfinal Employee emp = new Gson().fromJson(request.body(), Employee.class);\n\t\t\tthis.employeeDao.addEmployee(emp);\n\t\t\treturn \"Successfully added employee: \" + emp.getName();\n\t\t});\n\t\t\n\t\t//Handling unexpected requests/scenarios\n\t\texception(Exception.class, (e, request, response) ->{\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\tresponse.status(500);\n\t\t\tresponse.body(\"Server Error: \" + e.getMessage());\n\t\t}) ;\n\n\t}", "title": "" }, { "docid": "f17bb8de6662acf837ad1e0984f64614", "score": "0.55183357", "text": "public Service() {\n }", "title": "" }, { "docid": "9fee7c47158d04d1f541c40ddbba91f3", "score": "0.5516421", "text": "private WebServiceAsync() {\r\n\t\tLog.i(TAG, \"Instance Created\");\r\n\t}", "title": "" }, { "docid": "2ba8546b6fc8fc59345aa331abb7429c", "score": "0.55082387", "text": "@PostConstruct\r\n\tprivate void init() {\n\t\tLOGGER.info(\"Instance of CityService is created. Class is: {}\", getClass().getName());\r\n\t}", "title": "" }, { "docid": "cf8e1f4a4d4d85ce3702809cb7854c6e", "score": "0.5507213", "text": "public DownloadCompleteDictionaryService () {\n }", "title": "" }, { "docid": "afb56e10b081ab621950c7d17f87caf4", "score": "0.55042934", "text": "public AutoRestHttpInfrastructureTestServiceImpl() {\n this(\"http://localhost\");\n }", "title": "" }, { "docid": "2c70cfa607de5b7566f1b12fe929acaa", "score": "0.5499211", "text": "public MyService() {\n }", "title": "" }, { "docid": "aeb2f6fca27bbef75412a871b280f3a2", "score": "0.54984635", "text": "Service() {}", "title": "" }, { "docid": "5a60b9c51ccb0e0058641507d2b33c47", "score": "0.54952586", "text": "public ForecastService() {\n super(\"DownloadForecast\");\n }", "title": "" }, { "docid": "a660f85360e93a3bf93d241f210f744b", "score": "0.54926276", "text": "@Override\n public void init() {\n tripPlaceService=new TripPlaceServiceImpl();\n placeService=new PlaceServiceImpl();\n }", "title": "" }, { "docid": "aa1c81fa32f1e17ed7f37aa0e4bc4234", "score": "0.54877585", "text": "public SmartClient()\n\t{\n\t\t// nothing to do\n\t}", "title": "" }, { "docid": "121425897dcf199982b0054c5eb3ae9e", "score": "0.54867405", "text": "public void init() {\n try {\n log.info(\"Starting Service Endpoint\");\n this.server.start();\n log.info(String.format(\"Server listening on TCP port: %s\", this.serviceConfig.getServiceEndpointListeningPort()));\n } catch (IOException e) {\n log.error(e.getMessage());\n this.shutdown();\n }\n }", "title": "" }, { "docid": "b26d6b2f53645f466d6e0d7b7fff780c", "score": "0.54850286", "text": "public AncillaryServiceImpl() {\r\n }", "title": "" }, { "docid": "677b4f672f7137b576664b49533faae0", "score": "0.5483455", "text": "@Override\n\tpublic void onInitializeClient() {\n\t}", "title": "" } ]
7583073fb7e4a3ab718219f8908eb247
Converts a string in camel case to a humanreadable format, i.e., putting spaces between case changes.
[ { "docid": "2ec45c1bd77a8279bb0abf0b0f91a6e4", "score": "0.0", "text": "public String toLabel(final CharSequence s) {\n return this.toLabel(s.toString());\n }", "title": "" } ]
[ { "docid": "3f3481627f0c5a1f054fbe18772e116e", "score": "0.74415034", "text": "static String toCamelCase(String s) {\n String[] words = s.split(\"-|_\");\n String camelCased = words[0];\n for (int i = 1; i <= words.length - 1; i++) {\n String first = words[i].substring(0, 1);\n String next = words[i].substring(1);\n camelCased = camelCased + first.toUpperCase() + next;\n }\n return camelCased;\n }", "title": "" }, { "docid": "059d9fa05908d5c0539dc0d753ba98f3", "score": "0.741561", "text": "private String camelCase(String inputString) {\n String strippedString = stripNonAlphas(inputString);\n String firstLetter = (strippedString.substring(0, 1)).toUpperCase();\n String remainingPart =\n (strippedString.substring(1, strippedString.length())).toLowerCase();\n return firstLetter + remainingPart;\n }", "title": "" }, { "docid": "ebd009e41b21b4d144920bfe30b1dfd2", "score": "0.70292544", "text": "private String splitCamelCase(String s) {\n return s.replaceAll(String.format(\"%s|%s|%s\",\n \"(?<=[A-Z])(?=[A-Z][a-z])\", \"(?<=[^A-Z])(?=[A-Z])\",\n \"(?<=[A-Za-z])(?=[^A-Za-z])\"), \" \");\n }", "title": "" }, { "docid": "99137bba51d8a3b4e122a582bb3fbc28", "score": "0.69757646", "text": "public String toTitleCase(String s){\n StringBuilder word = new StringBuilder();\n for(String str : s.toLowerCase().split(\" \")){\n word.append(str.substring(0,1).toUpperCase()).append(str.substring(1));\n word.append(\" \");\n }\n return word.toString();\n }", "title": "" }, { "docid": "bafdd1a9e60e645fe3ef43643c53adf0", "score": "0.6945577", "text": "private static String getFormattedString(String input) {\n\n String s = input.toLowerCase();\n s = s.replace(\"_\", \" \");\n return (s.substring(0, 1).toUpperCase() + s.substring(1, s.length()));\n }", "title": "" }, { "docid": "67d868f73da20e7068540fadeb37b40c", "score": "0.6851907", "text": "public static String toCamelCase(String str) {\n if (str == null || str.isEmpty()) {\n return str;\n }\n StringBuilder stringBuilder = new StringBuilder();\n boolean foundFirstLowercase = false;\n for (char cur : str.toCharArray()) {\n if (Character.isUpperCase(cur) && !foundFirstLowercase) {\n stringBuilder.append(Character.toLowerCase(cur));\n } else {\n foundFirstLowercase = true;\n stringBuilder.append(cur);\n }\n }\n return stringBuilder.toString();\n }", "title": "" }, { "docid": "cc74ebc4b06ca14d0911969f53e526df", "score": "0.6790538", "text": "public static String toTitleCase(String input) {\r\n\r\n\t\tStringBuilder titleCase = new StringBuilder();\r\n\t\tboolean nextTitleCase = true;\r\n\r\n\t\tfor (char c : input.toCharArray()) {\r\n\t\t\tif (Character.isSpaceChar(c)) {\r\n\t\t\t\tnextTitleCase = true;\r\n\t\t\t} else if (nextTitleCase) {\r\n\t\t\t\tc = Character.toTitleCase(c);\r\n\t\t\t\tnextTitleCase = false;\r\n\t\t\t}\r\n\t\t\ttitleCase.append(c);\r\n\t\t}\r\n\t\treturn titleCase.toString();\r\n\t}", "title": "" }, { "docid": "c947925f635a93a4adde8c722a9c6eae", "score": "0.67669004", "text": "public static final String toTitleCase(final String string)\n\t{\n\t\tString[] arr = string.toLowerCase().split(\" \");\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\tfor (int i = 0; i < arr.length; i++)\n\t\t\tsb.append(Character.toUpperCase(arr[i].charAt(0))).append(arr[i].substring(1)).append(\" \");\n\t\treturn sb.toString().trim();\n\t}", "title": "" }, { "docid": "a5a0bbf656104bb378766916e51de7af", "score": "0.6765472", "text": "private static String capitalize(String str) {\n return str.substring(0, 1).toUpperCase() + str.substring(1);\n }", "title": "" }, { "docid": "97bbbb1d1f460c05c060b5bcd9486600", "score": "0.67618984", "text": "public static String toCapitalizeCamelCase(String s) {\n if (s == null) {\n return null;\n }\n s = toCamelCase(s);\n return s.substring(0, 1).toUpperCase() + s.substring(1);\n }", "title": "" }, { "docid": "1f514b294d97e608f61159b1f0982093", "score": "0.67472965", "text": "private String capitalizeString(String input) {\n return WordUtils.capitalizeFully(input);\n }", "title": "" }, { "docid": "99e2cb4c5b4170a282dad6c01a14090c", "score": "0.67196864", "text": "public static String toCamelCase(String inputString) {\n String result = \"\";\n if (inputString.length() == 0) {\n return result;\n }\n char firstChar = inputString.charAt(0);\n char firstCharToUpperCase = Character.toUpperCase(firstChar);\n result = result + firstCharToUpperCase;\n for (int i = 1; i < inputString.length(); i++) {\n char currentChar = inputString.charAt(i);\n char previousChar = inputString.charAt(i - 1);\n if (previousChar == ' ') {\n char currentCharToUpperCase = Character.toUpperCase(currentChar);\n result = result + currentCharToUpperCase;\n } else {\n char currentCharToLowerCase = Character.toLowerCase(currentChar);\n result = result + currentCharToLowerCase;\n }\n }\n return result;\n }", "title": "" }, { "docid": "e633bd2f4d3a8acc4f6b230a65c6f1e6", "score": "0.6647704", "text": "public String fromCamelCase(String camelCasedData){\n StringBuilder sb = new StringBuilder();\n Pattern pattern = Pattern.compile(\"[A-Z]\");\n String [] data = camelCasedData.split(\"\");\n for(String d: data){\n Matcher mat = pattern.matcher(d);\n if(mat.find()){\n sb.append(\"_\");\n sb.append(d.toLowerCase());\n continue;\n }\n sb.append(d);\n }\n\n if(sb.toString().startsWith(\"_\"))sb.deleteCharAt(0);\n return sb.toString();\n }", "title": "" }, { "docid": "c8f86d9ec69aaca05824003ba5e182ab", "score": "0.66150653", "text": "public static String toCamelCase(String text){\n String[] parts = text.split(\" \");\n String camelCaseString = \"\";\n for (String part : parts){\n if(camelCaseString.equals(\"\")){\n camelCaseString = camelCaseString + toProperCase(part);\n }else{\n camelCaseString = camelCaseString + \" \" + toProperCase(part);\n }\n\n }\n return camelCaseString;\n }", "title": "" }, { "docid": "a78e96da085b5d31a6cbc168e5d676d6", "score": "0.66049975", "text": "public static String convertStringToTitleCase(String inputString) {\n String[] wordsArray = inputString.split(\" \");\n for (int i = 0; i < wordsArray.length; i++) {\n wordsArray[i] = convertStringToFirstCapital(wordsArray[i]);\n }\n\n return TextUtils.join(\" \", wordsArray);\n }", "title": "" }, { "docid": "424962eb3fe901e9b282d6bafefe82c5", "score": "0.65734446", "text": "public static String convertCamelToUpperCase(String _str) {\n if (isEmpty(_str) || isAllUpperCase(_str)) {\n return _str;\n }\n StringBuffer sb = new StringBuffer(String.valueOf(_str.charAt(0)).toUpperCase());\n for (int i = 1; i < _str.length(); i++) {\n char c = _str.charAt(i);\n if (c >= 'A' && c <= 'Z') {\n sb.append('_');\n }\n sb.append(c);\n }\n return sb.toString().toUpperCase();\n }", "title": "" }, { "docid": "4fa70f346e6fc16e2348f5509e95e8cd", "score": "0.6528507", "text": "public static String convertUpperToCamelCase(String _str) {\n if (_str == null || isBlank(_str)) {\n return _str;\n } else if (!_str.contains(\"_\")) {\n return (_str.charAt(0) + \"\").toUpperCase() + _str.substring(1);\n }\n\n StringBuffer sb = new StringBuffer(String.valueOf(_str.charAt(0)).toUpperCase());\n for (int i = 1; i < _str.length(); i++) {\n char c = _str.charAt(i);\n if (c == '_') {\n i++; // get next character and convert to upper case\n c = String.valueOf(_str.charAt(i)).toUpperCase().charAt(0);\n } else {\n c = String.valueOf(c).toLowerCase().charAt(0);\n }\n sb.append(c);\n }\n return sb.toString();\n }", "title": "" }, { "docid": "0365adef35b6c213172ab6bc02ecef47", "score": "0.65174526", "text": "String makeCapital(String name)\n\t{\n\t\treturn name.toUpperCase();\n\t}", "title": "" }, { "docid": "9391b1d4263ccf8dcd05244600d7abf4", "score": "0.65103793", "text": "public static String toTitleCase( String val ) {\n return Character.toTitleCase( val.charAt( 0 ) )\n + val.substring( 1, val.length() );\n }", "title": "" }, { "docid": "7271b08db4a7cd4404db34edb25c3d8d", "score": "0.6477839", "text": "@ToString\n @Override\n public String toString() {\n return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name());\n }", "title": "" }, { "docid": "cdf3b7ceaf0015d3ff6d7ebbe9dd7259", "score": "0.64570403", "text": "private String stringFormatter (String string) {\n string = string.replaceAll(\"[^A-Za-z0-9 ]\", \"\");\n string = string.toUpperCase();\n return string;\n }", "title": "" }, { "docid": "507bdc242104d6a973aeb937df6e60a8", "score": "0.6450176", "text": "public static String toTitleCase(String string)\n {\n if(string == null) {\n return null;\n }\n if(string.isEmpty()) {\n return \"\";\n }\n\n StringBuilder title = new StringBuilder();\n int index = 0;\n for(String word : split(string, '-', '_', ' ', '/', '\\\\')) {\n if(index++ > 0) {\n title.append(' ');\n }\n title.append(Character.toUpperCase(word.charAt(0)) + word.substring(1).toLowerCase());\n }\n return title.toString();\n }", "title": "" }, { "docid": "03b80739bb885c4fcb1e815da22c013c", "score": "0.64412874", "text": "public static void main(String[] args) {\n Solution myS= new Solution();\n String s = myS.toCamelCase(\"trevor_hhh\");\n System.out.println(\"string - \" + s);\n\n }", "title": "" }, { "docid": "50756e9863fdbdb26a5e8e85f9d6ef30", "score": "0.64348894", "text": "public String ej2(String s) {\r\n\t\tboolean nextMayus = false;\r\n\t\tString result = \"\";\r\n\t\tfor(int i = 0; i<s.length();i++) {\r\n\t\t\tif(Character.toString(s.charAt(i)).equals(\".\")) {\r\n\t\t\t\tresult+=Character.toString(s.charAt(i));\r\n\t\t\t\tnextMayus = true;\r\n\t\t\t}else if(nextMayus && Character.isAlphabetic(s.charAt(i))) {\r\n\t\t\t\tresult+=Character.toString(s.charAt(i)).toUpperCase();\r\n\t\t\t\tnextMayus = false;\r\n\t\t\t}else if(i!=0){\r\n\t\t\t\tresult+=Character.toString(s.charAt(i));\r\n\t\t\t}\r\n\t\t\tif(i==0) {\r\n\t\t\t\tresult+=Character.toString(s.charAt(i)).toUpperCase();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "882db02271c3113b1740096a7ea0ef27", "score": "0.6412288", "text": "public static String toProperCase(String string) {\n \tString[] words = string.split(\" \");\n \tString finalTitle = \"\";\n \tfor (String word : words) {\n \t\tif (word.matches(\"[\\\\-(,].*\")) {\n \t\t\tfinalTitle = finalTitle + word.substring(0,1);\n \t\t\tword = word.substring(1);\n \t\t}\n \t\tif (word.length() == 0) {\n \t\t\tcontinue;\n \t\t}\n \t\tif (word.length() == 1) {\n \t\t\tfinalTitle = finalTitle + word.toUpperCase() + \" \";\n \t\t} else if( word.length() > 1) {\n \t\t\tfinalTitle = finalTitle + word.substring(0,1).toUpperCase() + word.substring(1).toLowerCase() + \" \";\n \t\t}\n \t}\n \tfinalTitle = finalTitle.substring(0,finalTitle.length()-1);\n \twords = finalTitle.split(\",\");\n \tfinalTitle = \"\";\n \tfor (String word : words) {\n \t\tif (word.matches(\"[\\\\-(].*\")) {\n \t\t\tfinalTitle = finalTitle + word.substring(0,1);\n \t\t\tword = word.substring(1);\n \t\t}\n \t\tif (word.length() == 0) {\n \t\t\tcontinue;\n \t\t}\n \t\tif (word.length() == 1) {\n \t\t\tfinalTitle = finalTitle + word.toUpperCase() + \",\";\n \t\t} else if( word.length() > 1) {\n \t\t\tfinalTitle = finalTitle + word.substring(0,1).toUpperCase() + word.substring(1) + \",\";\n \t\t}\n \t}\n \tfinalTitle = finalTitle.substring(0,finalTitle.length()-1); \t\n \twords = finalTitle.split(\"'\");\n \tfinalTitle = \"\";\n \tfor (String word : words) {\n \t\tif (word.length() == 1) {\n \t\t\tfinalTitle = finalTitle + word.toUpperCase() + \"'\";\n \t\t} else if( word.length() > 1) {\n \t\t\tfinalTitle = finalTitle + word.substring(0,1).toUpperCase() + word.substring(1) + \"'\";\n \t\t}\n \t}\n \tfinalTitle = finalTitle.substring(0,finalTitle.length()-1); \t\n \treturn finalTitle;\n }", "title": "" }, { "docid": "dc102e6a73acd45a6980025ae5068e53", "score": "0.63851535", "text": "private static String capitalizeFirstLetter(String strToCaps) {\n return strToCaps.substring(0, 1).toUpperCase() + strToCaps.substring(1);\n }", "title": "" }, { "docid": "69ce80f2d815ff1866093ea18d44f9d0", "score": "0.6358255", "text": "public String getCapitalized(Object... args) {\n try {\n var msg = getUnchecked(args);\n\n if (msg.length() > 0) {\n msg = Character.toUpperCase(msg.charAt(0)) + msg.substring(1);\n }\n\n return msg;\n } catch (MissingResourceException ex) {\n LOG.warning(ex.toString());\n\n return name();\n }\n }", "title": "" }, { "docid": "6d3806ba6d9d86337c62a0ba115626b4", "score": "0.635103", "text": "public static String capitalize(String name) {\n \tname = name.substring(0,1).toUpperCase() + name.substring(1);\r\n \treturn name;\r\n }", "title": "" }, { "docid": "bfc28bce44fed26896b7a4a16e4bef58", "score": "0.6350394", "text": "private static String getCapitalizedWord(String word) {\n char tmp = word.charAt(0);\n if (tmp >= 'A' && tmp <= 'Z') return word;\n Character oldChar = tmp;\n tmp -= 32;\n Character newChar = tmp;\n return word.replaceFirst(oldChar.toString(), newChar.toString());\n }", "title": "" }, { "docid": "9710b37a536724d9d56ef0773abed480", "score": "0.633106", "text": "public static String titleCase(String word) {\n if (word.length() < 1) return word;\n if (!Character.isLetter(word.charAt(0))) return word;\n return Character.toUpperCase(word.charAt(0))\n + word.substring(1);\n }", "title": "" }, { "docid": "0f11ef60c71d1de8165e56b33e990d19", "score": "0.63263184", "text": "protected abstract String uncamelCase(String camelCaseText);", "title": "" }, { "docid": "667cb13b219e59b55e453212c0274889", "score": "0.63173777", "text": "public String toLabel(final String s) {\n return StringExtensions.toFirstUpper(s).replaceAll(\"([a-z])([A-Z])\", \"$1 $2\");\n }", "title": "" }, { "docid": "489c5a92def51635cfbb9fffc1f026ec", "score": "0.6298386", "text": "public String titleCase()\n {\n return WordUtils.capitalize(myWord);\n }", "title": "" }, { "docid": "e478737744deb71bbc68be8ad4d4fa34", "score": "0.6296404", "text": "static String toText(String constName) {\n StringBuilder sb = new StringBuilder(constName.toLowerCase());\n boolean upper = true; // first character is upper\n for (int i = 0; i < sb.length(); i++) {\n if (upper) {\n sb.setCharAt(i, Character.toUpperCase(sb.charAt(i)));\n upper = false;\n }\n if (sb.charAt(i) == '_') {\n sb.setCharAt(i, ' ');\n upper = true; // character after space is upper\n }\n }\n return sb.toString();\n }", "title": "" }, { "docid": "6e8e0aaed3fe9a82667f8b68fac6ecc5", "score": "0.62800795", "text": "private String capitalize(String string)\n\t{\n\t\tif (string == null)\n\t throw new NullPointerException(\"no string \");\n\t\tif(string == \"\" || string == \" \")\n\t\t\treturn string;\n\t return Character.toUpperCase(string.charAt(0)) + string.substring(1);\n\t}", "title": "" }, { "docid": "39bb92786d273e0e4f51140d52116c26", "score": "0.62653214", "text": "public static String capitalize(final String value) {\n return StringUtils.capitalize(value);\n }", "title": "" }, { "docid": "3b109fda24d5c2b215293d4db977ae7c", "score": "0.62460345", "text": "@Override\n\tpublic String transforma(String original) {\n\t\tvalidacao(original);\n\t\treturn original.toUpperCase();\n\t}", "title": "" }, { "docid": "cb048a4a31ab732a5fa62d537781c62b", "score": "0.6241708", "text": "public static String capitalize(String str){\r\n \r\n\t\t\tif(str == null || str.length() == 0)\r\n\t\t\t\treturn \"\";\r\n \r\n\t\t\tif(str.length() == 1)\r\n\t\t\t\treturn str.toUpperCase();\r\n \r\n\t\t\treturn str.substring(0, 1).toUpperCase() + str.substring(1);\r\n \r\n\t\t}", "title": "" }, { "docid": "7c61fc59a52c008c511d50be2b5a2a60", "score": "0.6230192", "text": "public static String capitalize(String word){\n\t\t\treturn word.substring(0,1).toUpperCase()+word.substring(1);\n\t\t}", "title": "" }, { "docid": "65df056aac8d569b92e48314e3366e1a", "score": "0.62215436", "text": "public static String convertStringToFirstCapital(String word) {\n return word.toUpperCase().charAt(0) + word.substring(1).toLowerCase();\n }", "title": "" }, { "docid": "986446456fd78f7709b838cc41d6c571", "score": "0.62092155", "text": "public String toXMLName(final String name) {\r\n if (name == null) {\r\n return null;\r\n }\r\n if (name.length() == 0) {\r\n return name;\r\n }\r\n if (name.length() == 1) {\r\n return name.toLowerCase();\r\n }\r\n\r\n //-- Follow the Java beans Introspector::decapitalize\r\n //-- convention by leaving alone String that start with\r\n //-- 2 uppercase characters.\r\n if (Character.isUpperCase(name.charAt(0)) && Character.isUpperCase(name.charAt(1))) {\r\n return name;\r\n }\r\n\r\n //-- process each character\r\n StringBuffer cbuff = new StringBuffer(name);\r\n cbuff.setCharAt(0, Character.toLowerCase(cbuff.charAt(0)));\r\n\r\n boolean ucPrev = false;\r\n for (int i = 1; i < cbuff.length(); i++) {\r\n char ch = cbuff.charAt(i);\r\n if (Character.isUpperCase(ch)) {\r\n if (ucPrev) {\r\n continue;\r\n }\r\n ucPrev = true;\r\n if (_style == LOWER_CASE_STYLE) {\r\n cbuff.insert(i,'-');\r\n ++i;\r\n cbuff.setCharAt(i, Character.toLowerCase(ch));\r\n } else {\r\n ++i;\r\n }\r\n } else if (ch == '.') {\r\n //-- do not add '-' if preceeded by '.'\r\n ucPrev = true;\r\n } else {\r\n ucPrev = false;\r\n }\r\n }\r\n return cbuff.toString();\r\n }", "title": "" }, { "docid": "4d0b991567e4e287eaeb5df71160e4c7", "score": "0.6206188", "text": "private String pascalCaseFromSnakeCase(String tablename) {\n String[] names = tablename.split(\"_\");\n ArrayList<String> englishnames = new ArrayList<>();\n for (String name: names) {\n char[] namechars = name.toCharArray();\n namechars[0] = Character.toUpperCase(namechars[0]);\n englishnames.add(String.valueOf(namechars));\n }\n return String.join(\"\", englishnames);\n }", "title": "" }, { "docid": "48ae944c4af70da345b759a82b9ca692", "score": "0.6206137", "text": "public static String accum(String s) {\n StringBuilder strb = new StringBuilder(\"\");\n for(int i=0; i < s.length();i++)\n {\n int appendNum = i;\n strb.append(Character.toUpperCase(s.charAt(i)));\n while(appendNum > 0){ \n strb.append(Character.toLowerCase(s.charAt(i)));\n appendNum--;\n }\n strb.append('-');\n \n \n \n }\n strb.deleteCharAt(strb.length()-1);\n return strb.toString();\n }", "title": "" }, { "docid": "2575d947a5aa97844f34726e9fe96cee", "score": "0.6194757", "text": "public static String firstLetterToUpperCase(String str) {\n\t\treturn str.substring(0, 1).toUpperCase() + str.substring(1);\n\t}", "title": "" }, { "docid": "45353b395e7b904c7ab18712806f3ce7", "score": "0.6170124", "text": "public static String implementJavaNaming(String in) {\n\n in = in.trim().replaceAll(\"-\", \"_\");\n\n if (in.matches(\"\\\\S+\")) {\n return org.apache.commons.lang3.StringUtils.uncapitalize(in);\n }\n\n in = in.toLowerCase(Locale.ROOT);\n String[] words = in.split(\"\\\\s+\");\n StringBuilder sb = new StringBuilder(in.length());\n sb.append(words[0]);\n for (int i = 1; i < words.length; i++) {\n sb.append(org.apache.commons.lang3.StringUtils.capitalize(words[i]));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "1f361e7a3d27a7b93397ad1006a60907", "score": "0.61661386", "text": "public static String capitalize (String str) {\r\n if (str == null || str.length() == 0)\r\n return str;\r\n else\r\n return str.substring(0, 1).toUpperCase() + str.substring(1);\r\n }", "title": "" }, { "docid": "1c29caffac6e7096f49e59177143bf70", "score": "0.6164714", "text": "public static String toTitleCase(String s) throws Exception{\n if(s != null && !s.isEmpty()) {\n int length = s.length();\n String str = \"\";\n String strTemp = \"\";\n for (int i = 0; i < length; i++) {\n char ch = s.charAt(i);\n if (ch == ' ') {\n strTemp += ch;\n str = str.concat(toSentenceCase(strTemp));\n strTemp = \"\";\n } else {\n strTemp += ch;\n }\n }\n str = str.concat(toSentenceCase(strTemp));\n return str;\n }else\n return \"\";\n }", "title": "" }, { "docid": "b07262896576e2ed5c1e846f4d71339e", "score": "0.6159719", "text": "public static String capitalize(String content) {\n if (content.length() < 2) {\n return content;\n }\n return content.substring(0, 1).toUpperCase() + content.substring(1);\n }", "title": "" }, { "docid": "849dffc99b34cc30e7039d3b1e8d5ada", "score": "0.6142939", "text": "private String firstLetterToUpperCase(String capitalizeString)\n {\n String firstLetter;\n\n if (capitalizeString.length() >= 1)\n {\n firstLetter = capitalizeString.substring(0, 1);\n firstLetter = firstLetter.toUpperCase();\n return firstLetter + capitalizeString.substring(1);\n }\n else\n return capitalizeString;\n }", "title": "" }, { "docid": "8139c25890bb9a44e427aa71c0f68a78", "score": "0.6140381", "text": "public static String firstToUpperCase(String str)\r\n {\r\n if (StringUtils.isBlank(str) == true) {\r\n return str;\r\n }\r\n return StringUtils.capitalize(str.trim());\r\n }", "title": "" }, { "docid": "4aee8082c2ba6fc3c74695588734ae3d", "score": "0.61353034", "text": "private static String toUpperCase(String givenString) {\n String[] arr = givenString.split(\" \");\n StringBuffer sb = new StringBuffer();\n\n for (String anArr : arr) {\n sb.append(Character.toUpperCase(anArr.charAt(0)))\n .append(anArr.substring(1)).append(\" \");\n }\n return sb.toString().trim();\n }", "title": "" }, { "docid": "6eb194f38cf41a955679427e76fb4f66", "score": "0.6129438", "text": "private String firstLetterToUpperCase(String capitalizeString)\n {\n String firstLetter;\n\n if (capitalizeString.length() != 0)\n {\n firstLetter = capitalizeString.substring(0, 1);\n firstLetter = firstLetter.toUpperCase();\n return firstLetter + capitalizeString.substring(1);\n }\n else\n return capitalizeString;\n }", "title": "" }, { "docid": "47dac1d785614a1de02e3e870da0110c", "score": "0.6128235", "text": "private String normalizeName(String name) {\n\t\t\n\t\tString normalName = \"\" ; \n\t\tchar firstLetter ; \n\t\t\n\t\tfirstLetter = toCapital(name . charAt(0)) ; \n\t\t\n\t\tnormalName += firstLetter ; \n\t\t\n\t\tfor (int i = 1 ; i < name . length() ; i++) {\n\t\t\n\t\t\tnormalName += toLowerCase ( name . charAt(i) ) ; \n\t\t\t\n\t\t}\n\t\t\n\t\treturn normalName ; \n\t\t\n\t}", "title": "" }, { "docid": "c889e5773627359f5bfecec8b0a18a37", "score": "0.61239445", "text": "public static String decapitalizeFirstLetter(final String str) {\n return Character.toLowerCase(str.charAt(0))\n + (str.length() > 1 ? str.substring(1) : \"\");\n }", "title": "" }, { "docid": "c9c35913c41ec24bc623f86626b4e8fe", "score": "0.6111175", "text": "public String transform(String s) {\n\t\treturn s.toLowerCase();\n\t}", "title": "" }, { "docid": "644b96da6c15c9baab68fbbe9edd1992", "score": "0.60885876", "text": "public static String snakeToCamelCase(String _input) {\n if (isBlank(_input)) {\n return _input;\n }\n\n Pattern compile = Pattern.compile(\"_[a-zA-Z]\");\n Matcher matcher = compile.matcher(_input);\n\n String result = _input;\n\n while (matcher.find()) {\n String match = matcher.group();\n String replacement = match.replace(\"_\", \"\");\n replacement = replacement.toUpperCase();\n\n result = result.replaceFirst(match, replacement);\n\n }\n\n return result;\n }", "title": "" }, { "docid": "9bb495e6419cb17e2b166b1d55e65770", "score": "0.608127", "text": "public static final String upperFirstLetter(String originalStr) {\r\n\t\tif (originalStr == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\t\r\n\t\tif (Constants.EMPTY_STRING.equals(originalStr)) {\r\n\t\t\treturn Constants.EMPTY_STRING;\r\n\t\t}\r\n\t\t\r\n\t\treturn setFirstLetterAsUpperForTitle(originalStr);\r\n\t}", "title": "" }, { "docid": "a150aed7398a4c845cc003a6af77e8be", "score": "0.60803694", "text": "public static final String pretty(String s) {\n\n\tif (s == null) {\n\t return null;\n\t}\n\n\treturn StringUtil.capitalize(s).replace('_', ' ');\n }", "title": "" }, { "docid": "6349b5e6fd062a32b2b5a14bea41d6b1", "score": "0.6075849", "text": "public static String changeCase(String input) {\n char[] chars = input.toCharArray();\n for (int i = 0; i < input.length(); i++) {\n char c = chars[i];\n if (Character.isUpperCase(c))\n {\n chars[i] = Character.toLowerCase(c);\n }\n else if (Character.isLowerCase(c))\n {\n chars[i] = Character.toUpperCase(c);\n }\n }\n return new String(chars);\n }", "title": "" }, { "docid": "ae716cbb63489d234651563b2c967c02", "score": "0.60552144", "text": "private String capitalizeString(String string) {\n char[] chars = string.toLowerCase().toCharArray();\n boolean found = false;\n for (int i = 0; i < chars.length; i++) {\n if (!found && Character.isLetter(chars[i])) {\n chars[i] = Character.toUpperCase(chars[i]);\n found = true;\n } else if (Character.isWhitespace(chars[i]) || chars[i]=='.' || chars[i]=='\\'') { // You can add other chars here\n found = false;\n }\n }\n return String.valueOf(chars);\n}", "title": "" }, { "docid": "f0648972b52cd1eb711ba9134daf4ecd", "score": "0.6054286", "text": "@Override\n public String call(String s) {\n return s.toUpperCase();\n }", "title": "" }, { "docid": "5f70df61074ceb2618bd51dbe57d5485", "score": "0.60276806", "text": "private String pascalCase(String s) {\r\n\t\tString pascalCase = null;\r\n\t\tString[] pascal = s.split(\" \");\r\n\t\tfor (int i = 0; i < pascal.length; i++) {\r\n\t\t\tchar[] array = pascal[i].toCharArray();\r\n\t\t\tarray[0] = Character.toUpperCase(array[0]);\r\n\t\t\tfor (int a = 0; a < array.length; a++) {\r\n\t\t\t\tpascal[i] = pascal[i] + array[a];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int b = 0; b < pascal.length; b++) {\r\n\t\t\tpascalCase = pascal[b] + \" \";\r\n\t\t}\r\n\t\treturn pascalCase;\r\n\t}", "title": "" }, { "docid": "27bf6da659d3f534239c2041bb50272a", "score": "0.6026877", "text": "public static String capitalize(String str) {\n if (str == null || str.isEmpty()) {\n return str;\n }\n\n return str.substring(0, 1).toUpperCase() + str.substring(1);\n }", "title": "" }, { "docid": "0b4aca8ea72d1cc6062f1e30322bd941", "score": "0.60020256", "text": "public static String capitalize(String word){\n return Character.toUpperCase(word.charAt(0)) + word.substring(1);\n }", "title": "" }, { "docid": "4ab3465293788b644efdc171b7689646", "score": "0.600054", "text": "static int camelcase(String s) {\r\n \t\tint wordCount=0;\r\n \t\t for(Character c:s.toCharArray()){\r\n \t\t if(Character.isUpperCase(c)){\r\n \t\t wordCount++;\r\n \t\t }\r\n \t\t }\r\n\r\n \t\treturn wordCount+1;\r\n\r\n \t\t }", "title": "" }, { "docid": "77c594a5420dd9bd310387e92bd615f7", "score": "0.600026", "text": "public String formatFoodName(String foodName) {\n String[] foodNameSubStrings = foodName.split(\" \");\n String formattedFoodName = \"\";\n for (String n : foodNameSubStrings) {\n n = n.substring(0, 1).toUpperCase() + n.substring(1).toLowerCase();\n formattedFoodName += (n + \" \");\n }\n return formattedFoodName.trim();\n }", "title": "" }, { "docid": "4c476658cd098f049273a8baa190d906", "score": "0.59988946", "text": "public static String capitalize(String s) {\n\tif (isEmpty(s)) {\n\t return s;\n\t}\n\tif (s.length() == 1) {\n\t return \"\" + Character.toUpperCase(s.charAt(0));\n\t}\n\treturn \"\" + Character.toUpperCase(s.charAt(0)) + s.substring(1);\n }", "title": "" }, { "docid": "f55d6645d3967c2f908c769b48ddacc7", "score": "0.5994146", "text": "public static String capitalize(String campo) {\n\t\tchar char0 = campo.trim().toUpperCase().charAt(0);\n\t\tcampo = campo.trim().substring(1).toLowerCase();\n\t\treturn char0+campo;\n\t}", "title": "" }, { "docid": "59f4fab175ff9c8aa825fd5481e80b0d", "score": "0.5977885", "text": "public static String toMemberName(String string)\n {\n if(string == null) {\n return null;\n }\n if(string.isEmpty()) {\n return \"\";\n }\n\n StringBuilder sb = new StringBuilder();\n\n boolean first = true;\n for(String word : split(string, '-', ' ', '/', '\\\\')) {\n if(first) {\n first = false;\n sb.append(word);\n continue;\n }\n\n sb.append(Character.toUpperCase(word.charAt(0)));\n sb.append(word.substring(1).toLowerCase());\n }\n return sb.toString();\n }", "title": "" }, { "docid": "3e59c9de4c4ba4fe9ef852b860501aec", "score": "0.5970793", "text": "protected String getCapsWord(String capString) {\n StringBuffer capBuffer = new StringBuffer();\n Matcher capMatcher = Pattern.compile(\"([a-z])([a-z]*)\", Pattern.CASE_INSENSITIVE).matcher(capString);\n while (capMatcher.find()) {\n capMatcher.appendReplacement(capBuffer, capMatcher.group(1).toUpperCase() + capMatcher.group(2).toLowerCase());\n }\n return capMatcher.appendTail(capBuffer).toString();\n }", "title": "" }, { "docid": "f7b7bad15c2bd686c7379660c7077341", "score": "0.5953519", "text": "public static String capitalize(String word) {\n\t\treturn Character.toString(Character.toTitleCase(word.charAt(0))) + word.substring(1);\n\t}", "title": "" }, { "docid": "6d322463ae3e0f1869835a8a7d6fdb7a", "score": "0.59480083", "text": "public static String convertName(String name)\r\n\t{\r\n\t\tif(!name.isEmpty())\r\n\t\t\treturn name.substring(0, 1).toUpperCase() + name.toLowerCase().substring(1);\r\n\t\telse\r\n\t\t\treturn \"\";\r\n\t}", "title": "" }, { "docid": "3e6ab36ea898ced17a51005352834d80", "score": "0.5936087", "text": "public static String toUpperCase(String string) {\n\t}", "title": "" }, { "docid": "b15ef7b164df7a6862da2da12e4254ea", "score": "0.59271467", "text": "public static String titleCaseSentence(String sentence) {\n sentence = sentence.trim();\n String[] sentenceArray = sentence.split(\"\\\\s+\");\n String sentenceTitle = \"\";\n for (int i = 0; i < sentenceArray.length; i++) {\n sentenceTitle += sentenceArray[i].substring(0, 1).toUpperCase() + sentenceArray[i].substring(1).toLowerCase()+\" \";\n }\n sentenceTitle = sentenceTitle.trim();\n return \"Result: \" + sentenceTitle + \".\";\n }", "title": "" }, { "docid": "0286a7662a697ed623bb41df7fbd8608", "score": "0.59213626", "text": "@Nullable private String capitalFirst(@Nullable String str) {\n return str == null ? null :\n str.isEmpty() ? \"\" : Character.toUpperCase(str.charAt(0)) + str.substring(1);\n }", "title": "" }, { "docid": "c76fed5f1cc86db07183ff447fd90ab5", "score": "0.5916134", "text": "public String firstUppercase(String string){\n return string.substring(0,1).toUpperCase() + string.substring(1);\n }", "title": "" }, { "docid": "93c1bbf6ee14cb6c0dd878b195043011", "score": "0.59095734", "text": "protected String upperFirstLetter(String string) {\n return string.replaceFirst(string.substring(0,1), string.substring(0,1).toUpperCase());\n }", "title": "" }, { "docid": "b97a61ffca6239a0c508afca5cd0b770", "score": "0.59029776", "text": "public static String toUpperCase(String str) {\n String[] arr = str.split(\" \");\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < arr.length; i++) {\n sb.append(Character.toUpperCase(arr[i].charAt(0)))\n .append(arr[i].substring(1)).append(\" \");\n }\n return sb.toString().trim();\n }", "title": "" }, { "docid": "7dc9b5c0b11e796fef3e50f2ac3053ea", "score": "0.5893734", "text": "public static String firstLetterCapital(String pString) {\r\n\r\n\t\tif (!isSet(pString)) {\r\n\r\n\t\t\treturn pString;\r\n\t\t}\r\n\r\n\t\tString formattedString = \"\";\r\n\t\t// get the first letter\r\n\t\tString firstLetter = pString.substring(0, 1);\r\n\t\t// set the first letter to upper case\r\n\t\tfirstLetter = firstLetter.toUpperCase();\r\n\t\tif (pString.length() > 1) {\r\n\t\t\t// set the rest of the city to lower case\r\n\t\t\tString remainderOfString = pString.substring(1, pString.length());\r\n\t\t\tif (!((remainderOfString.substring(0, 1)).equals(\".\")))\r\n\t\t\t\tremainderOfString = remainderOfString.toLowerCase();\r\n\t\t\tformattedString = firstLetter + remainderOfString;\r\n\t\t} else {\r\n\t\t\tformattedString = firstLetter;\r\n\t\t}\r\n\t\treturn formattedString;\r\n\r\n\t}", "title": "" }, { "docid": "79422b568986af2ad4b676a24cd52061", "score": "0.5889811", "text": "private static String prettyName(String xml_name) {\n char c[] = xml_name.toCharArray();\n if (c.length > 0) {\n c[0] = Character.toUpperCase(c[0]);\n }\n return new String(c).replace(\"-\", \" \"); //$NON-NLS-1$ //$NON-NLS-2$\n }", "title": "" }, { "docid": "9efce37af813c4821c8c8edc399b6d55", "score": "0.58832073", "text": "public static String capitalize(String capString) {\n StringBuffer capBuffer = new StringBuffer();\n Matcher capMatcher = Pattern.compile(\"([a-z])([a-z]*)\", Pattern.CASE_INSENSITIVE).matcher(capString);\n while (capMatcher.find()) {\n capMatcher.appendReplacement(capBuffer, capMatcher.group(1).toUpperCase() + capMatcher.group(2).toLowerCase());\n }\n\n return capMatcher.appendTail(capBuffer).toString();\n }", "title": "" }, { "docid": "6ee091cc7de55c00c27aab8bfacbf006", "score": "0.58808523", "text": "static String capitalizeFirstLetter( String str ) {\n if ( str == null || str.length() <= 0 )\n return str;\n\n char chars[] = str.toCharArray();\n chars[0] = Character.toUpperCase(chars[0]);\n return new String(chars);\n }", "title": "" }, { "docid": "63e57584c0dbeb93ca3091c50305c435", "score": "0.5867405", "text": "public String toUserFriendlyString() {\n return this.toString().substring(0, 1).concat(this.toString().substring(1).toLowerCase());\n }", "title": "" }, { "docid": "ff5d16fc1d3542882c90b0cafd43d886", "score": "0.58537495", "text": "public static String computeEnumName(String description) {\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < description.length(); i++) {\n char c = description.charAt(i);\n if (Character.isLetterOrDigit(c) || c == ' ' || c == '_') {\n sb.append(c);\n } else {\n //Just throw away junk before we get our first good character.\n if (sb.length() != 0) {\n //Will accept '-' if not preceeded by a space.\n if (c == '-') {\n if (description.charAt(i - 1) == ' ') {\n break;\n }\n sb.append(c);\n } else {\n break;\n }\n }\n }\n }\n\n String enumName = sb.toString().trim();\n\n //Now convert to camel case word, removing any non alphanumeric characters\n //Replace any '_'or '-' by space\n enumName = enumName.replace('_', ' ');\n enumName = enumName.replace('-', ' ');\n\n //Convert to camel case.\n enumName = RepoUtil.camelCase(enumName);\n\n return enumName;\n }", "title": "" }, { "docid": "23bdb1d190478ac00368e62125851575", "score": "0.58513", "text": "public static String canonifyNamePreserveCase(String input)\r\n {\r\n if (input == null) {\r\n return null;\r\n }\r\n\r\n String result = input;\r\n result = result.replaceAll(\"Ä\", \"Ae\");\r\n result = result.replaceAll(\"Ö\", \"Oe\");\r\n result = result.replaceAll(\"Ü\", \"Ue\");\r\n result = result.replaceAll(\"ß\", \"ss\");\r\n result = result.replaceAll(\"Ñ\", \"N\");\r\n // result = result.replaceAll(\"?\", \"Z\"); //in iso8859-1 nicht codierbar\r\n // result = result.replaceAll(\"[???]\", \"R\");//in iso8859-1 nicht codierbar\r\n // result = result.replaceAll(\"[????]\", \"S\");//in iso8859-1 nicht codierbar\r\n result = result.replaceAll(\"[Ç]\", \"C\");\r\n result = result.replaceAll(\"[ÁÀÂÃ]\", \"A\");\r\n result = result.replaceAll(\"[ÉÈÊË]\", \"E\");\r\n result = result.replaceAll(\"[ÍÌÎÏ]\", \"I\");\r\n result = result.replaceAll(\"[ÓÒÔÕ]\", \"O\");\r\n result = result.replaceAll(\"[ÚÙÛ]\", \"U\");\r\n\r\n result = result.replaceAll(\"ä\", \"ae\");\r\n result = result.replaceAll(\"ö\", \"oe\");\r\n result = result.replaceAll(\"ü\", \"ue\");\r\n result = result.replaceAll(\"ñ\", \"n\");\r\n result = result.replaceAll(\"[ç]\", \"c\");\r\n result = result.replaceAll(\"[áàâã]\", \"a\");\r\n result = result.replaceAll(\"[éèêë]\", \"e\");\r\n result = result.replaceAll(\"[íìîï]\", \"i\");\r\n result = result.replaceAll(\"[óòôõ]\", \"o\");\r\n result = result.replaceAll(\"[úùû]\", \"u\");\r\n result = result.replaceAll(\" \", \"_\");\r\n\r\n result = result.replaceAll(\"[^A-Za-z0-9\\\\-_]\", \"\");\r\n return result;\r\n }", "title": "" }, { "docid": "e9b7584b03aef28edd136c1cd8a2c48f", "score": "0.5844554", "text": "public static String letterSwitch(String s){\r\n\t\tString newString = \"\";\r\n\t\t//Switch the letters\r\n\t\tnewString += s.substring(1, s.length()); //the middle letters\r\n\t\tnewString += s.substring(0,1); //add the first letter to the end of the word\r\n\r\n\t\treturn newString;\r\n\t}", "title": "" }, { "docid": "76b0cff1267cec43125f6b9cdd5f1e56", "score": "0.58438295", "text": "public String getFirstLetter(String str) {\n return str.substring(0, 1).toUpperCase();\n }", "title": "" }, { "docid": "c8c9ea365333453da3999a66904af8fe", "score": "0.58427763", "text": "public static String toUpperCase(String input) {\n return input.toUpperCase();\n }", "title": "" }, { "docid": "71c47ac6124c506708f1f2aa362c1c3e", "score": "0.5832557", "text": "public SentenceToCamelCaseTest( String testName )\n {\n super( testName );\n }", "title": "" }, { "docid": "e4ba96761a3b842c0b41d9988b5d309c", "score": "0.58212936", "text": "public static String capitalizeFirst(String str) {\n\n\t\tif (str.isEmpty()) {\n\t\t\treturn str;\n\t\t}\n\t\treturn str.substring(0, 1).toUpperCase() + str.substring(1);\n\t}", "title": "" }, { "docid": "d6f550b97b63817b8742f6515d3dd04d", "score": "0.58183783", "text": "public static String upperCamel(String string, char seperator) {\n\t\tif(null == string){\n\t\t\treturn EMPTY;\n\t\t}\n\t\t\n\t\tString[] parts = split(string,seperator);\n if(parts.length == 1) {\n return parts[0].substring(0, 1).toUpperCase() + parts[0].substring(1);\n }\n\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (String part : parts) {\n if(part.length() == 0) {\n continue;\n }\n\t\t\tout.append(part.substring(0, 1).toUpperCase() + part.substring(1).toLowerCase());\n\t\t}\n\t\treturn out.toString();\n\t}", "title": "" }, { "docid": "e4d8df36f409573e82470f56ec6348ec", "score": "0.57965046", "text": "static String removeDashesAndUpperCaseAllFirstChars(String source, boolean capitalizeFirst) {\n String [] parts = source.split(\"[-_]\");\n StringBuilder sb = new StringBuilder();\n for (String s : parts) {\n sb.append(s.substring(0, 1).toUpperCase()).append(s.substring(1));\n }\n String result = sb.toString();\n if (!capitalizeFirst) {\n result = result.substring(0,1).toLowerCase() + result.substring(1);\n }\n return result;\n }", "title": "" }, { "docid": "02e0829cb2c36ffb4a126a9343f8c615", "score": "0.57877886", "text": "public static String getUpperCaseString(String str) {\n String result = \"\";\n\n for (int i = 0; i < str.length(); i++) {\n char c = str.charAt(i);\n\n if (c >= 'A' && c <= 'Z') {\n result += c;\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "bda998fa27e6035ad7c259d4f2bb38e6", "score": "0.577757", "text": "public String acronym(String phrase) {\n\t\tString[] stringArray;\n\t\tString result = \"\";\n\n\t\tstringArray = phrase.split(\"[^a-zA-Z]+\");\n\t\t// System.out.println(Arrays.toString(stringArray));\n\t\tfor (String e : stringArray) {\n\t\t\tresult += e.charAt(0);\n\t\t}\n\t\tresult = result.toUpperCase();\n\t\t// System.out.println(result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c6418da30de3f08cb46c81d7bb3cfc7b", "score": "0.5776261", "text": "public NormalizedString toLowerCase();", "title": "" }, { "docid": "cfcf29cc850e33674ac122b64a645301", "score": "0.576547", "text": "public static void main(String[] args) {\n String str = \"oneTwoThree\";\n System.out.println(\"No of words \" + camelcase(str));\n }", "title": "" }, { "docid": "8a6a96809d18f4e6e6c5b97483a31f26", "score": "0.5761002", "text": "private static String getInitCaps(String str) {\n\t\treturn str.substring(0, 1).toUpperCase() + str.substring(1);\n\t}", "title": "" }, { "docid": "b84f3d2fbb24d050e0d99320500a3c1d", "score": "0.5760941", "text": "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\r\n System.out.print(LetterCapitalize(s.nextLine())); \r\n }", "title": "" }, { "docid": "e19e73f9830b7d50cc7ea1b59952d147", "score": "0.57505506", "text": "public static String lowerCamel(String string, char seperator) {\n\t\tif(null == string){\n\t\t\treturn EMPTY;\n\t\t}\n\t\t\n\t\tString[] parts = split(string,seperator);\n if(parts.length == 1) {\n return parts[0].substring(0, 1).toLowerCase() + parts[0].substring(1);\n }\n\n\t\tStringBuilder out = new StringBuilder(string.length());\n\t\tfor (String part : parts) {\n\t\t\tif (out.length() == 0) {\n\t\t\t\tout.append(part.substring(0, 1).toLowerCase() + part.substring(1).toLowerCase());\n\t\t\t}else{\n\t\t\t\tout.append(part.substring(0, 1).toUpperCase() + part.substring(1).toLowerCase());\n\t\t\t}\n\t\t}\n\t\treturn out.toString();\n\t}", "title": "" }, { "docid": "22d9edca73c9afd56bd030f3a9749a3f", "score": "0.57440287", "text": "public static String capsWords(String words) throws IndexOutOfBoundsException {\n String[] wordsSplit = words.split(\" \");\n StringBuilder rebuildWords = new StringBuilder();\n for (String wd : wordsSplit) {\n rebuildWords.append(String.valueOf(wd.substring(0, 1).toUpperCase() + wd.substring(1) + \" \"));\n }\n return rebuildWords.toString();\n }", "title": "" }, { "docid": "f028046e81f86ef3ccb08e05c5b10f65", "score": "0.572716", "text": "private static String formatFieldName(String name) {\n return name.substring(0, 1).toUpperCase(Locale.US) + name.substring(1).replace('_', ' ').trim();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "10f473498f3eb89a8bd05b1b03774039", "score": "0.0", "text": "@Override\n\tpublic List<Vacante> buscarDestacada() {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037399", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6869287", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6840622", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65292907", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.64823484", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.64467317", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.64126825", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.6389566", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.63474625", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6304485", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.6270301", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.62561363", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6252776", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.62387824", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.61685234", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6155392", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.61477494", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6142013", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.61416274", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.6102585", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.6073492", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.6070278", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.60624325", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059708", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6056336", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60446644", "text": "protected void method_3848() {}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.60158736", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.601364", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5964039", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5962345", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5962345", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "90e62de5f767b081d1ecd30f250f7e27", "score": "0.5956225", "text": "@Override\n\t\tpublic void ll() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.59255856", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.59160185", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.5904648", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.58859384", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.58859384", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.58742195", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.5870847", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.58510834", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5832401", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58321035", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5811589", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.58105356", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.58046514", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.5792312", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.5790152", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "eaf44b0db9fccdd4e25d11d08215adc0", "score": "0.5787597", "text": "@Override\n\tpublic void zufallsKanteEinfuegen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cdfd4f491038656c3a88e9465c6ba0e6", "score": "0.5773877", "text": "@Override\n\tpublic void reculer() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.57595617", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "24b32615866ab9d1bd9b2e291b95a1c6", "score": "0.57590127", "text": "public void getPheromone() \n {\n\t \n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.57396996", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.5737553", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.57324994", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18ea513e33a6ccd2005fa08437bc8da3", "score": "0.57308185", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "8887ffca90e3cb4fff0262bd3dd5bd82", "score": "0.57279575", "text": "@Override\r\n\tpublic void Y() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.57274157", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5723073", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47b0ce2a4738b951bd3c2a4491ec7cd6", "score": "0.57209194", "text": "@Override\n \tpublic String toString() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.57184887", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.57184887", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5716718", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5713254", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.57076555", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.57029665", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "5e4bdac9e86e82025f9be7b708955d73", "score": "0.56992924", "text": "@Override\n\tprotected void startOfIteration() {\n\n\t}", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.56874985", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.5687016", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "1614b26591fe3a156f284f7d7d0238ab", "score": "0.5686299", "text": "public void mo3894c() {\n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5683184", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677751", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.56765044", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.56712747", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5667732", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.5659445", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
fb0b848e96295ad0b5f96afa6221dd30
/ patchClass Method : Method that do the work
[ { "docid": "42a12de18729045b8692c0c8d285a62a", "score": "0.6551058", "text": "public void patchClass(String classFile) throws ClassFormatException, IOException\n \t{\n \t\n \t\t/***************************************\n \t\t * Vars\n \t\t **************************************/\n \t\t// Class vars\n \t\tString className = \"\";\n \t\tString classFileName = \"\";\n \t\t\n \t\t// Interface vars\n \t\tString IclassName = \"\";\n \t\tString IsuperClassName = \"\";\n \t\tString IsuperClassFileName = \"\";\n \t\tString IclassFileName = \"\";\n \t\t\n \t\t// Others\n \t\tint i = 0;\n \n \t\t\n \t\t/***************************************\n \t\t * STEP 1 : Loading class file\n \t\t **************************************/\n \t\tJavaClass javaClass = new ClassParser(classFile).parse();\n \t\t// update vars\n \t\tclassName = javaClass.getClassName();\n \t\tclassFileName = javaClass.getFileName();\n \t\n \t\t// Break if it's an interface (we won't meta-interface)\n \t\tif(javaClass.isInterface())\n \t\t\treturn;\n \t\t\n \t\t// Registering class in Patcher patchedClasses\n \t\tthis.patchedClasses.put(className, classFileName);\n \t\t\n \t\t\n \t\t/***************************************\n \t\t * STEP 2 : Generate the interface\n \t\t **************************************/\n \t\t// Initializing interface vars, name of interface is the name of the class prefixed by 'I'\n \t\tIclassName = \"I\"+className;\n \t\tIsuperClassName = javaClass.getSuperclassName();\n \t\tIclassFileName = classFileName.replace(className+\".class\" , \"I\"+className+\".class\");\n \t\t// TODO Handle super class\n \t\t\n \t\t// Creating the interface\n \t\tClassGen ic = new ClassGen(IclassName, IsuperClassName,IclassFileName, Constants.ACC_PUBLIC | Constants.ACC_INTERFACE | Constants.ACC_ABSTRACT ,null);\n \t\tConstantPoolGen icp = ic.getConstantPool();\n \t\n \t\t// Generating methods\n \t\tMethod[] methods = javaClass.getMethods();\n \t\t\n \t\tfor(i=0; i<methods.length; i++)\n \t\t{\n \t\t\t// Check if we should patch the method or not\n \t\t\tif(patchMethod(methods[i]))\n \t\t\t{\n \t\t\t\t// Creating method\n \t\t\t\tMethodGen methodGen = new MethodGen(methods[i].getAccessFlags() | Constants.ACC_ABSTRACT, methods[i].getName(),\n \t\t\t\t\t\tmethods[i].getSignature(), javaClass.getClassName(),new InstructionList(),icp);\n \t\t\t\t\n \t\t\t\t/* -------------------------- */\n \t\t\t\t// Think that it's not necessary because there are no instructions in the method\n \t\t\t\tmethodGen.removeLocalVariables();\n \t\t\t\tmethodGen.setMaxLocals();\n \t\t\t\tmethodGen.setMaxStack();\n \t\t\t\t/* -------------------------- */\n \t\t\t\t\n \t\t\t\t// Adding method to interface\n \t\t\t\tic.addMethod(methodGen.getMethod());\n \t\t\t}\n \t\t}\n \t\t\n \t\t// Update interface constant pool\n \t\tic.getJavaClass().setConstantPool(icp.getFinalConstantPool());\n \t\t\n \t\t// Dump interface in class file\n \t\tic.getJavaClass().dump(IclassFileName);\n \t\t \n \t\n \t\t/***************************************\n \t\t * STEP 3 : Patching class\n \t\t **************************************/\n \t\t//***************************\n \t\t// Adding interface to class\n \t\t//***************************\n \t\tConstantPool constants = javaClass.getConstantPool();\n \t\tConstantPoolGen cpg = new ConstantPoolGen(constants);\n \t\tint ref = cpg.addClass(IclassName);\n \t\tint[] interfaces = javaClass.getInterfaceIndices();\n \t\n \t\tint[] newInterfaces = new int[interfaces.length + 1];\n \t\tfor (i = 0; i < interfaces.length; i++)\n \t\t\tnewInterfaces[i] = interfaces[i];\n \t\t\n \t\tnewInterfaces[interfaces.length] = ref;\n \t\n \t\tjavaClass.setConstantPool(cpg.getFinalConstantPool());\n \t\tjavaClass.setInterfaces(newInterfaces);\n \t\t\n \t\t\n \t\t//*********************\n \t\t // Patching Methodref\n \t\t//*********************\n \t\tint interfaceIndex = javaClass.getInterfaceIndices()[newInterfaces.length-1];\n \t\t\n \t\tfor(i=0; i<javaClass.getConstantPool().getLength(); i++)\n \t\t{\n \t\t\tConstant ct = javaClass.getConstantPool().getConstant(i);\n \t\t\t//System.out.println(ct);\n \t\t\t\n \t\t\t// If constant is a methodref\n \t\t\tif(ct != null && ct.toString().startsWith(\"CONSTANT_Methodref\"))\n \t\t\t{\t\n \t\t\t\t// Checking if we should replace this constant\n \t\t\t\tif(patchMethoref((ConstantMethodref)ct, javaClass))\n \t\t\t\t{\n \t\t\t\t\t// Creating the InterfaceMethodref constant\n \t\t\t\t\tConstant Icons = new ConstantInterfaceMethodref(interfaceIndex,((ConstantMethodref) ct).getNameAndTypeIndex());\n \t\t\t\t\t\n \t\t\t\t\t// replacing the constant Methodref wth InterfaceMethodref\n \t\t\t\t\tjavaClass.getConstantPool().setConstant(i, Icons);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//*********************************************************************\n \t\t// Patching call sites (Replacing invokevirtual by invokeinterface)\n \t\t// Searching in code of all methods\n \t\t//*********************************************************************\n \t\tint k,l;\n \t\tfor(i=0; i<methods.length; i++)\n \t\t{\n \t\t\tSystem.out.println(\"Mthod : \"+methods[i].getName()+\"******\");\n \t\t\t\n \t\t\t// Getting constantpool and method generator (we create a method generator based on our method and use it to get instructions)\n \t\t\tConstantPoolGen cpgm = new ConstantPoolGen(javaClass.getConstantPool());\n \t\t\tMethodGen mth = new MethodGen(methods[i], javaClass.getClassName(),cpgm);\n \t\t\t\n \t\t\t// Getting all instructions in the method\n \t\t\tInstruction[] ins = mth.getInstructionList().getInstructions();\n \t\t\t\n \t\t\t// The new patched method's instructions List\n \t\t\tInstructionList il = new InstructionList();\n \t\t\t\n \t\t\t// Search invokevirtual in the instructions of the method\n \t\t\tfor(k=0;k<ins.length; k++)\n \t\t\t{\n \t\t\t\t// If we find an invokevirtual\n \t\t\t\tif(ins[k].toString().startsWith(\"invokevirtual\"))\n \t\t\t\t{\n \t\t\t\t\t// Spliting instruction to get class index and arguments number of the invokevirtual\n \t\t\t\t\tString[] insPart = ins[k].toString().split(\" \");\n \t\t\t\t\t\n \t\t\t\t\t// Check if we should patch the invokevirtual\n \t\t\t\t\tif(patchInvokevirtual(Integer.parseInt(insPart[1]), javaClass.getConstantPool()))\n \t\t\t\t\t{\n\t\t\t\t\t\t// Patch the invoke : INVOKEINTERFACE( class Index, the number of arguments for stack (+1 for this))\n\t\t\t\t\t\tins[k] = new INVOKEINTERFACE(Integer.parseInt(insPart[1]),methods[i].getArgumentTypes().length + 1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t// Add instruction to the new instruction List\n \t\t\t\til.append(ins[k]);\n \t\t\t}\n \t\t\t\n \t\t\t// Patch the method instructionsList\n \t\t\tmth.setInstructionList(il);\n \t\t\tmth.setMaxStack();\n \t\t\t\n \t\t\t// Generate the new method without changing constantpool\n \t\t\tmethods[i] = mth.getMethodNoChangeCTP(methods[i].getNameIndex(), methods[i].getSignatureIndex(),\n \t\t\t\t\tmethods[i].getAttributes()[0].getNameIndex());\n \t\t}\n \t\t\n \t\t\n \t\t// Patch class methods\n \t\tjavaClass.setMethods(methods);\n \t\t\n \t\t// Dumping Class File\n \t\tjavaClass.dump(classFileName);\n \t\t\n \t}", "title": "" } ]
[ { "docid": "b9f00df978e4d03fed3280365fca580d", "score": "0.5868037", "text": "private boolean patchMethoref(ConstantMethodref r, JavaClass jc)\n \t{\n \t\tboolean result = true;\n \t\t\n \t\t// Name and type constant of method\n \t\tConstantNameAndType ctt = (ConstantNameAndType) jc.getConstantPool().getConstant(r.getNameAndTypeIndex());\n \t\t\n \t\t// Getting method Class name from constant pool\n \t\tString className = r.getClass(jc.getConstantPool());\n \t\t\n \t\t// Check if the class of the method is patched, if okey then we can patch the methodref\n \t\tif(this.patchedClasses.get(className) == null)\n \t\t\tresult = false;\n \t\t\n \t\tSystem.out.println(ctt.getName(jc.getConstantPool()));\n \t\t// We must not patch it if it's a constructor method \n \t\tif(ctt.getName(jc.getConstantPool()).equals(\"<init>\"))\n \t\t\tresult = false;\n \t\t\n \t\treturn result;\n \t}", "title": "" }, { "docid": "5c527176b67a50b1f3860268fdc01825", "score": "0.5832369", "text": "public void classModified()\n {\n discardWorld();\n }", "title": "" }, { "docid": "f6684dec99d8548a0e44ceb6c14e2874", "score": "0.5824264", "text": "@Test\n public void testModifiedClassIsRun() throws Exception {\n\n UnitTest test = new UnitTest(testClassNameTriangle, \"testInvalidTriangles\");\n UnitTest test1 = new UnitTest(testClassNameTriangle, \"testEqualateralTriangles\");\n UnitTest test2 = new UnitTest(testClassNameTriangle, \"testIsocelesTriangles\");\n UnitTest test3 = new UnitTest(testClassNameTriangle, \"testScaleneTriangles\");\n LinkedList<UnitTest> tests = new LinkedList<>();\n tests.add(test);\n tests.add(test1);\n tests.add(test2);\n tests.add(test3);\n\n\n // Package name is null. TODO: why do we require the package name?\n // Surely a fully qualified classname makes more sense.\n File file = new File(\"/Users/annarasburn/Documents/gin/AnnaGin/test-runner/examples/unittests/TriangleTest.class\");\n TestRunner testRunner = new TestRunner(new File(TestConfiguration.TEST_RESOURCES_DIR), \"TriangleTest\",\n TestConfiguration.TEST_RESOURCES_DIR, tests);\n System.out.println(file.getCanonicalPath());\n\n LinkedList<String> methods = new LinkedList<>();\n methods.add(\"returnTen:7\");\n\n AnnaPath annaPath = AnnaPath.getBuilder().setClassName(\"Triangle\").build();\n Source sourceFromAnnaPath = sourceFactory.getSourceFromAnnaPath(annaPath);\n\n\n Patch patch = new Patch(sourceFromAnnaPath, Collections.emptyList());\n\n String joinedLines = patch.getOutputSource().getAnnaClasses().get(0).getJoinedLines();\n\n CompiledCode triangle = InMemoryJavaCompiler.newInstance().compileToRawBytes(\"Triangle\", joinedLines);\n //System.out.println(joinedLines);\n\n //Can't find the classes\n UnitTestResultSet resultSet = testRunner.test(patch, 1);\n LinkedList<UnitTestResult> results = resultSet.getResults();\n UnitTestResult result = results.get(0);\n\n assertTrue(resultSet.allTestsSuccessful());\n\n //assertFalse(result.getPassed());\n assertTrue(results.get(1).getPassed());\n assertTrue(results.get(2).getPassed());\n assertTrue(results.get(3).getPassed());\n\n Edit edit = new RemoveLineEdit(12 ,annaPath); // deletes result=10 hence introducing a bug\n Patch deletePatch = new Patch(sourceFromAnnaPath, Collections.singletonList(edit));\n\n UnitTestResultSet modifiedResultSet = testRunner.test(deletePatch, 1);\n assertTrue(modifiedResultSet.getValidPatch());\n assertTrue(modifiedResultSet.getCleanCompile());\n assertFalse(modifiedResultSet.allTestsSuccessful());\n\n\n UnitTestResult modifiedResult = modifiedResultSet.getResults().get(0);\n assertFalse(modifiedResult.getPassed());\n\n }", "title": "" }, { "docid": "b84d89c5d116cdf2a41e4edda3fe8db2", "score": "0.576319", "text": "@Override\n public void xyz() {\n normalClassField = 1;\n }", "title": "" }, { "docid": "31950b78ffc3483ce0623aa4fadcd89f", "score": "0.559952", "text": "protected abstract UnitTestResultSet initFitness(String className, List<UnitTest> tests, Patch origPatch);", "title": "" }, { "docid": "7d80e188129211db19a237f08754867f", "score": "0.5579954", "text": "@Override\n\tpublic void patch(Product entity) {\n\t\t\n\t}", "title": "" }, { "docid": "e6f081e530ad37197459eed8cb014b03", "score": "0.5571456", "text": "private boolean patchMethod(Method m){\n \t\treturn ( !m.isStatic() & !m.isAbstract() );\n \t}", "title": "" }, { "docid": "6a4714a697c27bc03cbac68121c554e9", "score": "0.54737663", "text": "static void modify() {\n }", "title": "" }, { "docid": "b6af7ef36ac4c75bf14868bb7c981fb4", "score": "0.5452103", "text": "@Override\n \tpublic void service() {\n \t\tLOGGER.info(\"Servicing a class update request.\");\n \t\t\n \t\tif(! authenticate(AllowNewAccount.NEW_ACCOUNT_DISALLOWED)) {\n \t\t\treturn;\n \t\t}\n \t\t\n\t\ttry {\t\n\t\t\tLOGGER.info(\"Checking that the user is privileged in the class or is an admin.\");\n\t\t\tUserClassServices.instance().userIsAdminOrPrivileged(classId, getUser().getUsername());\n\t\t\t\n \t\t\tLOGGER.info(\"Checking that the class exists.\");\n \t\t\tClassServices.instance().checkClassExistence(classId, true);\n \t\t\t\n\t\t\tif((usersToAdd != null) && (usersToAdd.size() != 0)) {\n\t\t\t\tUserServices.instance().verifyUsersExist(usersToAdd.keySet(), true);\n\t\t\t}\n \t\t\t\n \t\t\tLOGGER.info(\"Updating the class.\");\n \t\t\tClassServices.instance().updateClass(classId, className, classDescription, usersToAdd, usersToRemove);\n \t\t}\n \t\tcatch(ServiceException e) {\n \t\t\te.failRequest(this);\n \t\t\te.logException(LOGGER);\n \t\t}\n \t}", "title": "" }, { "docid": "1c0e318092ac234fd03080c52f722ace", "score": "0.54347855", "text": "@Override\n\tpublic void changeMagic() {\n\t\t\n\t}", "title": "" }, { "docid": "387026dd75d0ec25bd246a9946b05b08", "score": "0.542757", "text": "void updateClasses(Classes newCls);", "title": "" }, { "docid": "540e5669ed36de9f44d3773cca72b306", "score": "0.533585", "text": "private static void retransformClasses(Set<Class<?>> modifiableClasses) {\r\n\r\n\t\tInstrumentation instrumentation = InstrumentationUtil\r\n\t\t\t\t.getInstrumentation();\r\n\r\n\t\tif (modifiableClasses.size() > 0) {\r\n\t\t\tNotificationUtil.sendProgressNotification(String.format(\r\n\t\t\t\t\t\"Retransforming %d classes\", modifiableClasses.size()), 0,\r\n\t\t\t\t\tmodifiableClasses.size());\r\n\t\t\tJRLog.debug(String.format(\"Retransforming %d classes.\",\r\n\t\t\t\t\tmodifiableClasses.size()));\r\n\t\t\tint i = 0;\r\n\t\t\tlong last = System.currentTimeMillis();\r\n\t\t\tSet<Class<?>> remaining = new HashSet<Class<?>>();\r\n\t\t\tremaining.addAll(modifiableClasses);\r\n\t\t\tfor (Class<?> m : modifiableClasses) {\r\n\t\t\t\ti++;\r\n\t\t\t\tif (checkAborted()) {\r\n\t\t\t\t\tsynchronized (lock) {\r\n\t\t\t\t\t\tfor (Class<?> remainingClass : remaining) {\r\n\t\t\t\t\t\t\tsetTransformed(remainingClass);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tinstrumentation.retransformClasses(m);\r\n\t\t\t\t\tremaining.remove(m);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * just a try to use redefine instead of retransform / but\r\n\t\t\t\t\t * doesn't improve the behaviour byte[] classBytes =\r\n\t\t\t\t\t * ClassByteUtil.getBytes(m); if (classBytes == null )\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * { JRLog.debug(\r\n\t\t\t\t\t * \"It was not possible to get the class byte[] for class \"\r\n\t\t\t\t\t * + m.getName() +\r\n\t\t\t\t\t * \". Only retransforming. Existing class instances will not be instrumented\"\r\n\t\t\t\t\t * );\r\n\t\t\t\t\t * \r\n\t\t\t\t\t * } else { ClassDefinition def = new ClassDefinition(m,\r\n\t\t\t\t\t * classBytes); instrumentation.redefineClasses(def); }\r\n\t\t\t\t\t */\r\n\r\n\t\t\t\t} catch (Throwable e) {\r\n\t\t\t\t\t// just print an error on the console for now about not\r\n\t\t\t\t\t// being instrumented\r\n\t\t\t\t\tJRLog.error(\"Error during retransformation of \"\r\n\t\t\t\t\t\t\t+ m.toString() + \". Instrumentation failed.\");\r\n\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tNotificationUtil.sendProgressNotification(\"\", i,\r\n\t\t\t\t\t\tmodifiableClasses.size());\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (System.currentTimeMillis() > last + 250) {\r\n\t\t\t\tNotificationUtil.sendProgressNotification(\"\",\r\n\t\t\t\t\t\tmodifiableClasses.size(), modifiableClasses.size());\r\n\t\t\t\tlast = System.currentTimeMillis();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43e2c15d29bd3773dfb0012de163898b", "score": "0.5327538", "text": "protected void afterMethodCall(CtClass clas, String mname, String code)\n throws Exception {\n clas.defrost();\n CtMethod mold = clas.getDeclaredMethod(mname);\n int idx = 0;\n String nname = null;\n while (true) {\n nname = mname + \"$impl\" + (idx++);\n try {\n clas.getDeclaredMethod(nname);\n } catch (NotFoundException ee) {\n break;\n }\n }\n mold.setName(nname);\n CtMethod mnew = CtNewMethod.copy(mold, mname, clas, null);\n String type = mold.getReturnType().getName();\n\n StringBuffer body = new StringBuffer();\n body.append(\"{\\n\");\n if (!\"void\".equals(type))\n body.append(type +\" result=null;\\n\");\n body.append(\" try{\\n\");\n if (!\"void\".equals(type)) {\n body.append(\" result= \");\n }\n body.append(nname + \"($$);\\n\");\n body.append(\" }finally{\\n\");\n body.append(code);\n body.append(\" }\\n\");\n if (!\"void\".equals(type))\n body.append(\"return result;\\n\");\n body.append(\"}\");\n\n mnew.setBody(body.toString());\n clas.addMethod(mnew);\n }", "title": "" }, { "docid": "40a83a9f4cd76f591e199f716f111565", "score": "0.53238714", "text": "private static void shakeClass() {\n\r\n\t}", "title": "" }, { "docid": "8f8a1c1dfa100614be8cac1247e068d5", "score": "0.53096324", "text": "@Override\r\n\t\t\tpublic void work() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "8cab028a3ca81d3a57ab46cd94d2ba1b", "score": "0.53055173", "text": "private Quest mock(Class<Quest> class1) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "095777e88a6e9e830c420e06d756c7a8", "score": "0.53041583", "text": "private void process()\n{\n patch_worker = new CinderManager();\n CinderManager.setClassPath(base_path,class_path);\n\n try {\n Class<?> c = Class.forName(patch_class);\n CinderInstrumenter ci = (CinderInstrumenter) c.getDeclaredConstructor().newInstance();\n if (patch_args != null) ci.setArguments(patch_args);\n patch_type.setInstrumenter(ci);\n }\n catch (Exception e) {\n System.err.println(\"CINDER: Problem loading instrumenter: \" + e.getMessage());\n System.exit(1);\n }\n\n patch_worker.setPatchType(patch_type);\n\n if (server_data == null) patch_worker.processFile(input_file,output_file);\n else runServer(server_data);\n}", "title": "" }, { "docid": "e927da924e7306f05c57a9ad65f4beb3", "score": "0.524689", "text": "private static void lowerClass(ClassType cls) {\n for (int m = 0; m < cls.getNMembers(); /* nothing */ ) {\n Entity member = cls.getMember(m);\n Type type = member.getType();\n if (!(type instanceof MethodType)) {\n ++m;\n continue;\n }\n\n /* methods get implemented outside the class, move the entity */\n member.setOwner(Program.getGlobalType());\n }\n }", "title": "" }, { "docid": "9199256855451f4b87fbf00f1d7303a0", "score": "0.5243935", "text": "public byte[] patchClassInJar(String name, byte[] bytes) \n\t{\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"********* INSIDE \"+name+\" TRANSFORMER ABOUT TO PATCH: \");\n\t\t//open the jar as zip\n\t\tZipFile zip = new ZipFile(location);\n\t\t//find the file inside the zip that is called te.class or net.minecraft.entity.monster.EntityCreeper.class\n\t\t//replacing the . to / so it would look for net/minecraft/entity/monster/EntityCreeper.class\n\t\tZipEntry entry = zip.getEntry(name.replace('.', '/') + \".class\");\n\t\n\t\tif (entry == null) \n\t\t{\n\t\t\tSystem.out.println(name + \" not found in \" + location.getName());\n\t\t} else\n\t\t{\n\t\t//serialize the class file into the bytes array\n\t\t\tInputStream zin = zip.getInputStream(entry);\n\t\t\tint size = (int) entry.getSize();\n\t\t\tbytes = new byte[size];\n\t\t\tint pos = 0;\n\t\t\twhile (pos < size) {\n\t\t\t int len = zin.read(bytes,pos,size-pos);\n\t\t\t if (len == 0)\n\t\t\t throw new IOException();\n\t\t\t pos += len;\n\t\t\t}\n\t\t\tzin.close();\n\t\t\t\n//\t\t\tInputStream zin = zip.getInputStream(entry);\n//\t bytes = new byte[(int)entry.getSize()];\n//\t zin.read(bytes);\n//\t zin.close();\n\n\n\t\tSystem.out.println(\"[RideAbleSpider]: Class \" + name + \" patched!\");\n\t\t}\n\t\tzip.close();\n\t\t} catch (Exception e) {\n\t\tthrow new RuntimeException(\"Error overriding \" + name + \" from \" + location.getName(), e);\n\t\t}\n\t\n\t\t//return the new bytes\n\t\treturn bytes;\n\t}", "title": "" }, { "docid": "b4c2b87a637cb84b58ba1f0e8018fc8d", "score": "0.5229132", "text": "@Override\r\n\tpublic void updateBehaviour() {\n\r\n\t}", "title": "" }, { "docid": "dc9a607715a9acf0891d0bd1602daa0b", "score": "0.5227505", "text": "protected abstract void search(TargetMethod method, Patch origPatch);", "title": "" }, { "docid": "4eb8c6b1cf2d03d52b163433084db376", "score": "0.52219856", "text": "protected void update() {}", "title": "" }, { "docid": "911156bdad26f76b525228667dfc5c2f", "score": "0.5206641", "text": "@Override\n\tpublic void regularClassInfo() {\n\t\tsuper.regularClassInfo();\n\t}", "title": "" }, { "docid": "7eff00c8b7e839d2e35cd694db01e9d3", "score": "0.5149355", "text": "@Test\n public void relocateModifiesClassname() {\n ClassName bar = ClassName.fromString(\"bar\");\n ClassLines underTest = new ClassLines(ClassName.fromString(\"foo\"), Collections.emptySet());\n assertThat(underTest.relocate(bar)).isEqualTo(new ClassLines(bar, Collections.emptySet()));\n }", "title": "" }, { "docid": "b286de59df966cd32288ee808fe8c3ab", "score": "0.51436734", "text": "@Override\n\tpublic int update(tb_Class tb_Class) {\n\t\treturn tb_classdao.update(tb_Class);\n\t}", "title": "" }, { "docid": "b732cc5f6fab43453ba8e68041a7ccbe", "score": "0.5135828", "text": "private static void patchClassLoader(ClassLoader cl, App app) throws ReflectiveOperationException {\n\n Object pathList = FieldUtils.readField(cl, \"pathList\", true);\n String dexPath = app.getApkPath();\n File optimizedDirectory = app.getOptimizedDirectory();\n MethodUtils.invokeMethod(pathList, true, \"addDexPath\", dexPath, optimizedDirectory);\n\n Log.i(TAG, \"ClassLoader patched.\");\n }", "title": "" }, { "docid": "369a5c81fa43a3a4ac15ae04101c7415", "score": "0.5094255", "text": "private void reifyInherited(List<byte[]> bytes, HashMap<String, Integer> targetVersion, CxxClassInfo classInfo) {\n final CxxDeclCollection declCollection = analyzer.getDeclCollection(classInfo, null);\n final Type implClass = declCollection.getImplClass();\n System.out.println(\" Generating \" + implClass.getClassName());\n\n // Compute super class\n final Type superCls = Type.getObjectType(\"java/lang/Object\");\n\n // Pragma mark\n source.pragmaMark(\"- \" + classInfo.mapperType.getClassName() + \" - \" +\n classInfo.cxxClassName).nl();\n\n // Create class writers\n final ClassWriter implWriter = newClassWriter(classInfo, targetVersion, implClass, superCls);\n\n // Create constructors\n BCGen.pointerConstructor(implWriter, superCls);\n\n // Create destructors\n if (classInfo.isDestructorUnavailable()) {\n BCGen.unavailableDeleteOp(implWriter);\n } else {\n reifyDeleteOp(implWriter, implClass, classInfo, false);\n }\n\n // Reify non-members\n for (DeclInfo declInfo : declCollection.getDeclInfos()) {\n reifyToNativeBridge(implWriter, declInfo, implClass, classInfo, false, null);\n }\n\n // Reify members\n for (CxxMemberImplInfo implInfo : classInfo.getImplementedMethods()) {\n final DeclInfo declInfo = implInfo.declInfo;\n if ((declInfo.getAccess() & ACC_NATIVE) == 0) continue;\n\n // Generate impl interface binding\n reifyInheritedMethod(implWriter, declInfo, implClass, classInfo, false, implInfo.classInfo);\n }\n\n // Reify inherited direct only members\n for (CxxMemberImplInfo implInfo : classInfo.getInheritedDirectOnlyMethods()) {\n BCGen.toNativeBridgeInvocationOfDirectOnlyMethod(implWriter, implInfo.declInfo);\n }\n\n // Create classes\n implWriter.visitEnd();\n bytes.add(implWriter.toByteArray());\n }", "title": "" }, { "docid": "fb29ee57f6a1ba27ea4cc0bf960686b4", "score": "0.5078495", "text": "@Override\r\n\tpublic void undoClass() {\n\t\t\r\n\t}", "title": "" }, { "docid": "77bd6247c293f95e539e9961b7d44176", "score": "0.505766", "text": "public void callingNewMethodRefInfo() {\n\tnewMethodRefInfo();\n }", "title": "" }, { "docid": "c3bbc25bbf419fc71915be576458292d", "score": "0.5054607", "text": "public void doLegacyBusinessMethodOne();", "title": "" }, { "docid": "b93cc4e8daef97ef28c0ca56ce966459", "score": "0.50400007", "text": "@Override\n public void Work() {\n\n }", "title": "" }, { "docid": "b93cc4e8daef97ef28c0ca56ce966459", "score": "0.50400007", "text": "@Override\n public void Work() {\n\n }", "title": "" }, { "docid": "b93cc4e8daef97ef28c0ca56ce966459", "score": "0.50400007", "text": "@Override\n public void Work() {\n\n }", "title": "" }, { "docid": "0e945d6505a2195b8338de9fa119bfb4", "score": "0.5027226", "text": "public void registerPatch(Patch patch);", "title": "" }, { "docid": "0ef4f66d4ea14a62626049f69727f278", "score": "0.500871", "text": "public abstract void replaceUsingInstantiation();", "title": "" }, { "docid": "de028cfa56d24159ee24be7fc5bc72c5", "score": "0.5003459", "text": "public void augment()\n {\n affirm(analyzer.isAugmentable() && !env.noAugment());\n env.message(\"augmenting class \" + userClassName);\n\n this.builder = control.getClassFileBuilder();\n affirm(builder != null);\n \n if (analyzer.isAugmentableAsRoot()) {\n augmentGenericJDOFields();\n augmentGenericJDOMethods();\n }\n augmentClassInterface(JDO_PersistenceCapable_Path);\n augmentSpecificJDOFields();\n augmentSpecificJDOMethods();\n augmentJDOAccessorMutatorMethods();\n augmentSerializableSupportMethods();\n }", "title": "" }, { "docid": "b49c8be58c58f5fda1241afb6187da8f", "score": "0.4996011", "text": "private void reifyNativeClass(CxxClassInfo classInfo) {\n if (!classInfo.isInherited) {\n return;\n }\n System.out.println(\" Generating <native class> \" + classInfo.cxxClassName);\n\n // Pragma mark\n source.writeSource();\n source.pragmaMark(\"- \" + classInfo.mapperType.getClassName() + \" - \" +\n classInfo.cxxClassName).nl();\n\n // Create inherited class\n final List<CxxMemberImplInfo> membersToImpl = classInfo.getImplementedMethods();\n\n // Collect methods to implement\n final ArrayList<InvokableInfo> methods = new ArrayList<>();\n for (CxxMemberImplInfo implInfo : membersToImpl) {\n if (implInfo.classInfo != classInfo) continue;\n if (!CxxUtils.isInheritedNativeMethod(implInfo)) continue;\n methods.add((InvokableInfo) implInfo.declInfo);\n }\n\n // Write to source code only\n source.writeSource();\n\n // Prepare class\n final CxxSource.Clazz clazz = source.clazz().setName(classInfo.cxxClassName);\n final Set<CxxClassInfo> cxxSupers = classInfo.getCxxSupers();\n if (classInfo.getCxxSupers().size() > 1) {\n source.w(\"#error Class \").w(classInfo.cxxClassName).w(\" cannot be created, multiple supers are not \" +\n \"supported!\").nl().nl();\n return;\n }\n cxxSupers.forEach(info -> clazz.addSuper(info.cxxClassName));\n clazz.setAfterClass(src -> {\n // After the class' block, create the method table\n src.writeSource();\n src.w(\"jmethodID \").w(src.topClass().getSimpleName()).w(\"::__java_method_table[] = { \");\n methods.stream().forEach(m -> src.w(\"0, \"));\n src.w(\"0 };\").nl();\n });\n\n // Write class body\n clazz.write(src -> {\n // Make everything public\n src.w(\"public:\").nl();\n\n // Generate Java class name\n final String __java_class_name = classInfo.mapperType.getInternalName();\n src.w(\"static constexpr const char* __java_class_name = \\\"\").w(__java_class_name).w(\"\\\";\").nl();\n\n // Generate method table\n src.inheritedClassMethodTable()\n .setClassName(src.topClass().getSimpleName())\n .setMethods(methods)\n .write();\n\n // Generate forwarding constructor\n src.inheritedClassForwardingConstructor().write();\n\n // Delete implicit copy/move constructors and assignment operators\n src.disabledConstructors().write();\n\n // Generate methods\n methods.forEach(method -> {\n source.writeSource();\n final CxxSource.Function function = src.function();\n function.setConst(method.isConst());\n switch (method.getVirtuality()) {\n case INAPPLICABLE:\n throw new IllegalStateException();\n case NON_VIRTUAL:\n function.setVirtual(false);\n break;\n case VIRTUAL:\n function.setVirtual(true);\n break;\n case PURE_VIRTUAL:\n throw new RuntimeException(\"Pure virtual methods are not supported in inherited classes\");\n }\n\n // Set name\n final InvokableKind kind = method.getKind();\n if (kind == InvokableKind.OPERATOR) {\n if (!(method instanceof OperatorInfo)) {\n throw new IllegalStateException();\n }\n OperatorInfo invInfo = (OperatorInfo) method;\n function.setName(\"operator\" + invInfo.getOperatorKind().getName());\n if (invInfo.getOperatorKind() == OperatorKind.POST_INCREMENT\n || invInfo.getOperatorKind() == OperatorKind.POST_DECREMENT) {\n function.setPostIncOrDecOperator(true);\n\n } else if (invInfo.getOperatorKind().isExtAssignable()) {\n throw new RuntimeException(\"Overriding \" + OperatorKind.EXT_SUBSCRIPT_ASSIGN.name() +\n \" operator in inherited classes is not supported\");\n\n }\n\n } else if (kind == InvokableKind.CAST_OPERATOR) {\n function.setName(\"operator \" + method.getType().getNativeType());\n function.setOmitReturnType(true);\n\n } else if (kind == InvokableKind.INSTANCE_METHOD) {\n function.setName(method.getNativeIdentifier());\n\n } else {\n throw new IllegalStateException();\n }\n\n // Set types\n function.setType(method.getType());\n method.getParams().forEach(param -> function.addArg(param.getType()));\n function.write();\n src.block().write(src1 -> {\n // Cast parameters on demand\n final List<String> paramNames = function.getParamNames();\n int paramIndex = 0;\n for (ParamInfo paramInfo : method.getParams()) {\n CxxType type = paramInfo.getType();\n String castMethod = type.getJNIToNativeCast();\n if (castMethod != null) {\n String name = paramNames.get(paramIndex);\n src1.w(\"auto casted_\")\n .w(name)\n .w(\" = \")\n .w(castMethod)\n .w(\"<\").w(type.getNativeJNIType()).w(\">(\");\n if (type.isByValueCxxObjectKind() || type.isByReferenceCxxObjectKind()) {\n src1.w(\"&\");\n }\n src1.w(name);\n src1.w(\");\").nl();\n paramNames.set(paramIndex, \"casted_\" + name);\n }\n ++paramIndex;\n }\n\n // Prepare place for return value\n if (!method.getType().isVoid()) {\n src1.w(\"auto result = \");\n }\n\n // Invoke C++ method\n src1.w(\"::natj::\").w(method.getType().getNatJInvokeFn())\n .w(\"(this, \").w(method.getJavaStaticBridgeStubMethodName());\n for (String paramName : paramNames) {\n src1.w(\", \").w(paramName);\n }\n src1.w(\");\").nl();\n\n // Return result (cast on demand)\n if (!method.getType().isVoid()) {\n src1.w(\"return \");\n if (method.getType().isByValueCxxObjectKind() || method.getType().isByReferenceCxxObjectKind()) {\n src1.w(\"*(\");\n }\n final String castMethod = method.getType().getJNIToNativeCast();\n if (castMethod != null) {\n src1.w(castMethod).w(\"<\").w(method.getType().getJNICompatibleNativeType()).w(\">(\");\n }\n src1.w(\"result\");\n if (castMethod != null) {\n src1.w(\")\");\n }\n if (method.getType().isByValueCxxObjectKind() || method.getType().isByReferenceCxxObjectKind()) {\n src1.w(\")\");\n }\n src1.w(\";\").nl();\n }\n });\n });\n }).nl();\n }", "title": "" }, { "docid": "22ad717dcc35ad9a127809e85441877d", "score": "0.49948385", "text": "@Override\n\tpublic void diff() {\n\t}", "title": "" }, { "docid": "96adca6546d5532ba74c77faf90bb97c", "score": "0.4992842", "text": "private static byte[] patchBeforeMcMethod(\n ClassNode classNode,\n MethodNode method,\n InsnList toAdd,\n String srgName,\n String mcpName,\n int occurrence\n ) {\n return patchBeforeInsn(classNode, method, toAdd, occurrence, node -> {\n String actualName = isObfuscated ? srgName : mcpName;\n\n if (node instanceof MethodInsnNode) {\n MethodInsnNode methodNode = ((MethodInsnNode) node);\n\n return methodNode.name.equals(actualName);\n } else {\n return false;\n }\n });\n }", "title": "" }, { "docid": "7ffbcc7c5a5fd2efca7e77b940aba5fd", "score": "0.49918294", "text": "public void bugWorkaround() {\n }", "title": "" }, { "docid": "1143ad4e5ebd5ab598b5e73b88f94323", "score": "0.49866283", "text": "public interface IPatchManager {\n\n void patch(Context context, String path);\n\n void cleanPatch(Context context);\n}", "title": "" }, { "docid": "75d7228911d6676d91458aa9ac66a8c7", "score": "0.4976223", "text": "@Override\r\n\tpublic void alterar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7e7bab52659f925f2ca1c1eb5083bb77", "score": "0.49597904", "text": "public void touch() {\n ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.persistence.core.VersionablePublicMethods\")).touch();\n }", "title": "" }, { "docid": "7e7bab52659f925f2ca1c1eb5083bb77", "score": "0.49597904", "text": "public void touch() {\n ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.persistence.core.VersionablePublicMethods\")).touch();\n }", "title": "" }, { "docid": "9a6c6ba3af48cc36b2ab3b6a8ecd9f33", "score": "0.49584198", "text": "@Test\n \t// TODO activate this test\n \tpublic void _testJavaMethodSynchronizationThroughExternalContentReference() throws IOException {\n \t\t// Step 1: import a java project\n \t\tWorkspaceUtils.importJavaProject(\"data/unit/java/java.example01.zip\");\n \n \t\t// Step 2: reference a java class inside the intent document\n \t\tString javaMethodURIAsString = \"ExampleJavaClass.java#//@methods[name='protectedMethodWithParameters(ExampleJavaClass,Object)']\";\n \t\tString javaFilePath = JAVA_EXAMPLE_PACKAGE_PATH + javaMethodURIAsString;\n \t\tURI javaMethodURI = URI.createURI(javaFilePath);\n \t\tString modelFileReference = \"@ref \\\"\" + javaFilePath + \"\\\"\";\n \t\taddExternalContentReference(modelFileReference, FIRST_LOCATION);\n \t\twaitForSynchronizer();\n \n \t\t// the compiler should have created a copy of this model file, accessible through an Intent URI\n \t\tEObject intentRepositoryModel = new ResourceSetImpl()\n \t\t\t\t.getResource(URI.createURI(\"intent:/intentProject/\" + javaMethodURIAsString), true)\n \t\t\t\t.getContents().iterator().next();\n \t\tEObject javaClassAsEobject = new ResourceSetImpl().getResource(javaMethodURI.trimFragment(), true)\n \t\t\t\t.getEObject(javaMethodURI.fragment());\n \t\tassertEquals(WORKING_COPY_AND_REPOSITORY_MODEL_SHOULD_BE_EQUALS, 0,\n \t\t\t\tEMFCompareUtils.compare(javaClassAsEobject, intentRepositoryModel).getDifferences().size());\n \n \t\t// Step 3: modify the java method\n \t\trepositoryListener.clearPreviousEntries();\n \t\tString regexp = \"return privateMethodWithReturnType();\";\n \t\tString replacement = \"// MODIFICATION\\n\" + regexp;\n \t\tmodifyJavaClass(JAVA_EXAMPLE_PACKAGE_PATH + EXAMPLE_JAVA_CLASS_NAME, regexp, replacement);\n \t\twaitForSynchronizer();\n \t\twaitForAllOperationsInUIThread();\n \t\tString expectedSyncError = JAVA_SYNC_ISSUE_PART1 + regexp + JAVA_SYNC_ISSUE_PART2 + replacement;\n \t\tassertTrue(\"Synchronizer should have detected that the java class has changed\",\n \t\t\t\tAnnotationUtils.hasIntentAnnotation(editor, IntentAnnotationMessageType.SYNC_WARNING,\n \t\t\t\t\t\texpectedSyncError, true));\n \n \t\t// Step 4: apply quick-fix to fix this sync issue\n \t\trepositoryListener.clearPreviousEntries();\n \t\tfixIssueUsingQuickFix(editor, document, expectedSyncError);\n \t\twaitForAllOperationsInUIThread();\n \t\tassertEquals(SYNCHRONIZER_SHOULD_NOT_DETECT_CHANGE_QUICKFIX_MESSAGE, 0, AnnotationUtils\n \t\t\t\t.getIntentAnnotations(editor, IntentAnnotationMessageType.SYNC_WARNING).size());\n \n \t\t// Step 5: modify another method : there should be no synchronization issue\n \t\trepositoryListener.clearPreviousEntries();\n \t\tregexp = \"// This void method does not return anything\";\n \t\treplacement = \"\";\n \t\tmodifyJavaClass(JAVA_EXAMPLE_PACKAGE_PATH + EXAMPLE_JAVA_CLASS_NAME, regexp, replacement);\n \t\twaitForSynchronizer();\n \t\twaitForAllOperationsInUIThread();\n \t\texpectedSyncError = JAVA_SYNC_ISSUE_PART1 + regexp + JAVA_SYNC_ISSUE_PART2 + replacement;\n \t\tassertEquals(\n \t\t\t\t\"Synchronizer should not have detected any sync. issue as the modified java method is not referenced in the Intent document\",\n \t\t\t\t0, AnnotationUtils.getIntentAnnotations(editor, IntentAnnotationMessageType.SYNC_WARNING)\n \t\t\t\t\t\t.size());\n \t}", "title": "" }, { "docid": "9ec21f667ca217769451843e0d665c44", "score": "0.49573356", "text": "protected void onModified() throws Exception {\n }", "title": "" }, { "docid": "7f5695bbddfa686cf0d267de72be956f", "score": "0.49488163", "text": "public void performWrap(Class<? extends Parent> wrappingClass) {\n assert canPerformWrap(wrappingClass);\n final AbstractWrapInJob job = AbstractWrapInJob.getWrapInJob(this, wrappingClass);\n jobManager.push(job);\n }", "title": "" }, { "docid": "5c4509e2df45e7dc69f4a6380d4da619", "score": "0.49457777", "text": "private boolean transformClass(ClassGen cg) throws IllegalClassFormatException, IOException {\n // Have we modified this class?\n boolean transformed = false;\n InstructionFactory ifact = new InstructionFactory(cg);\n boolean save_debug = debugInstrument.enabled;\n\n // Loop through each method in the class\n for (Method method : cg.getMethods()) {\n\n try {\n // The class data in StackMapUtils is not thread safe,\n // allow only one method at a time to be instrumented.\n synchronized (this) {\n new_inst_stack.clear();\n pool = cg.getConstantPool();\n MethodGen mg = new MethodGen(method, cg.getClassName(), pool);\n\n debug_transform.log(\"%ntransform method: ENTER %s%n\", mg.getName());\n\n // Skip method if it's synthetic. (default constructors and <clinit> are not synthetic)\n if ((Const.ACC_SYNTHETIC & mg.getAccessFlags()) > 0) {\n continue;\n }\n\n // Get the instruction list and skip methods with no instructions\n InstructionList il = mg.getInstructionList();\n if (il == null) {\n continue;\n }\n\n debugInstrument.enabled = false;\n\n // Prepare method for instrumentation.\n setCurrentStackMapTable(mg, cg.getMajor());\n buildUninitializedNewMap(il);\n fixLocalVariableTable(mg);\n debugInstrument.enabled = save_debug;\n\n if (transformMethod(cg, mg, ifact)) {\n transformed = true;\n } else {\n continue;\n }\n\n // Clean up method after instrumentation.\n updateUninitializedNewOffsets(il);\n createNewStackMapAttribute(mg);\n remove_local_variable_type_table(mg);\n\n // Update the instruction list\n mg.setInstructionList(il);\n mg.update();\n\n // Update the max stack and max locals.\n mg.setMaxLocals();\n mg.setMaxStack();\n mg.update();\n\n // Update the method in the class\n try {\n cg.replaceMethod(method, mg.getMethod());\n } catch (Exception e) {\n if (e.getMessage().startsWith(\"Branch target offset too large\")) {\n System.out.printf(\n \"ReplaceCall warning: ClassFile: %s - method %s is too large to instrument and\"\n + \" is being skipped.%n\",\n cg.getClassName(), mg.getName());\n continue;\n } else {\n throw e;\n }\n }\n\n debugInstrument.log(\n \"%n%s.%s modified code: %s%n%n\",\n mg.getClassName(), mg.getName(), mg.getMethod().getCode());\n cg.update();\n }\n } catch (Exception e) {\n System.out.printf(\"Unexpected exception processing method %s%n\", method.getName());\n debugInstrument.enabled = save_debug;\n throw e;\n }\n }\n\n return transformed;\n }", "title": "" }, { "docid": "601ab7109205f573a4ce62518c5c4b3d", "score": "0.49422562", "text": "protected void sequence_ModifyClass(EObject context, ModifyClass semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "f8f2ac77ca1205054df0a365a1b10537", "score": "0.493881", "text": "private void processNewlyInstantiatedClass(DexClass clazz, com.debughelper.tools.r8.shaking.KeepReason reason) {\n if (!instantiatedTypes.add(clazz.type, reason)) {\n return;\n }\n\n collectProguardCompatibilityRule(reason);\n if (Log.ENABLED) {\n Log.verbose(getClass(), \"Class `%s` is instantiated, processing...\", clazz);\n }\n // This class becomes live, so it and all its supertypes become live types.\n markTypeAsLive(clazz.type);\n // For all methods of the class, if we have seen a call, mark the method live.\n // We only do this for virtual calls, as the other ones will be done directly.\n transitionMethodsForInstantiatedClass(clazz.type);\n // For all instance fields visible from the class, mark them live if we have seen a read.\n transitionFieldsForInstantiatedClass(clazz.type);\n // Add all dependent members to the workqueue.\n enqueueRootItems(rootSet.getDependentItems(clazz.type));\n }", "title": "" }, { "docid": "f9e88c47f0b20624fe78c2c5c3e9ad5a", "score": "0.49324077", "text": "@Override\r\n\tpublic void proxy() {\n\r\n\t}", "title": "" }, { "docid": "66584bf8c351de9432fdea0ccc4f400d", "score": "0.49305487", "text": "@Override\n public void updateTest() {\n updateGeneric();\n }", "title": "" }, { "docid": "76c9c07d0860ee7af4e826a03b0a3cf1", "score": "0.49267414", "text": "@Modified\n protected synchronized void modified ( ComponentContext ctx ) {\n }", "title": "" }, { "docid": "f4ab25957b2440fd7e36be5b80911485", "score": "0.49244535", "text": "private MonoHooks() {\n // AspectJ will make instances of this class available through an injected factory method.\n // Users should never interact with this class directly.\n }", "title": "" }, { "docid": "7e92b5a0b3fda5371c0f595dadee651d", "score": "0.49241787", "text": "public final void rule__ModifyClass__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:2063:1: ( rule__ModifyClass__Group__6__Impl )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:2064:2: rule__ModifyClass__Group__6__Impl\n {\n pushFollow(FOLLOW_rule__ModifyClass__Group__6__Impl_in_rule__ModifyClass__Group__64188);\n rule__ModifyClass__Group__6__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 }", "title": "" }, { "docid": "6d6030702d15e56221609a5a001b477d", "score": "0.49157923", "text": "@Test\n public void testExistingMethods() throws Exception {\n AbstractDependencyBuilder<SimpleDependency, ExistingExtendedBuilder> builder =\n new ExistingExtendedBuilder()\n .setId(\"abc\")\n // Ensure we get the proper cast object back from the superclass mutator\n .setFoo(\"foo\");\n }", "title": "" }, { "docid": "483ae2cb94563f8e11864a532e44b464", "score": "0.49124828", "text": "@Override\r\n public void perturb() {\n \r\n }", "title": "" }, { "docid": "dc318d68ebf58974774dc548ceb2bea0", "score": "0.49121714", "text": "public void touch() {\n ((com.guidewire.pl.domain.persistence.core.VersionablePublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.persistence.core.VersionablePublicMethods\")).touch();\n }", "title": "" }, { "docid": "2b0d94e072636247c02a2b63713e3f0b", "score": "0.49036413", "text": "@Override\n protected void sync() throws Exception {\n super.sync();\n }", "title": "" }, { "docid": "2ec561ce712e2c2b637c060280a6ec91", "score": "0.49021232", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "d74e8025420779cecd12abf93d9ac06a", "score": "0.48906055", "text": "@Override\r\n\tpublic void redciveCall() {\n\r\n\t}", "title": "" }, { "docid": "e291aff76c05742fcc8d54c2278e079f", "score": "0.48816976", "text": "@Override\r\n \tprotected void checkSubclass() {\n \t}", "title": "" }, { "docid": "1248d269479e802fb5817f4342958291", "score": "0.48806664", "text": "@Override\n public void doBase() {\n super.doBase();\n }", "title": "" }, { "docid": "ad04293e5844090f789cf8f6fdbb9268", "score": "0.48759365", "text": "@Override\n public void processing_method() {\n\n }", "title": "" }, { "docid": "3570b08f1fc670f1e1eda80a8d4ac71e", "score": "0.48723787", "text": "public void visitClassContext(ClassContext classContext) {\n try {\n JavaClass cls = classContext.getJavaClass();\n if (cls.implementationOf(CLONE_CLASS)) {\n clsName = cls.getClassName();\n cls.accept(this);\n }\n } catch (ClassNotFoundException cnfe) {\n bugReporter.reportMissingClass(cnfe);\n }\n }", "title": "" }, { "docid": "f365ed73ccbd6fcb0edefc1c4ad34e62", "score": "0.48695758", "text": "public byte[] patchClassASM(String arg0, boolean creative, byte[] bytes, String methodename1, String methodparsret1, String methodename2, String methodparsret2, boolean obfuescated) \n\t\t{\n\t\t\tClassNode classNode = new ClassNode();\n\t\t\tClassReader classReader = new ClassReader(bytes);\n\t\t\tclassReader.accept(classNode, 0);\n\t\n\t\t\t//Now we loop over all of the methods declared inside the Explosion class until we get to the targetMethodName \"doExplosionB\"\n\t\n\t\t\tIterator<MethodNode> methods = classNode.methods.iterator();\n\t\t\t\t\t\t\n\t\t\twhile(methods.hasNext())\n\t\t\t{\n\t\t\t\tMethodNode m = methods.next();\n\t\t\t\t\n\t\t\t\tif(methodename2 != null)\n\t\t\t\t{\n\t\t\t\t\t//Check if this is doExplosionB and it's method signature is (Z)V which means that it accepts a boolean (Z) and returns a void (V)\n\t\t\t\t\tif ((m.name.equals(methodename1) && m.desc.equals(methodparsret1)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"********* Inside target method!1\");\n\t\t\t\t\t\tthis.guinv(arg0, m, obfuescated, creative);\n\t\t\t\t\t}\n\t\t\t\t\telse if ((m.name.equals(methodename2) && m.desc.equals(methodparsret2)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"********* Inside target method!2\");\n\t\t\t\t\t\tthis.gui2(m, obfuescated, creative, arg0);\n\t\t\t\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\tif ((m.name.equals(methodename1) && m.desc.equals(methodparsret1)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"********* Inside target method!3\");\n\t\t\t\t\t\tthis.netservh(m, obfuescated, arg0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t//ASM specific for cleaning up and returning the final bytes for JVM processing.\n\t\t\t\tClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);\n\t\t\t\tclassNode.accept(writer);\n\t\t\t\treturn writer.toByteArray();\n\t\t}", "title": "" }, { "docid": "7625603e91959862152db371841f9bbf", "score": "0.48649123", "text": "public interface PatchService\n{\n /**\n * Registers a patch with the service that executes them.\n * \n * @param patch\n * the patch to register\n */\n public void registerPatch(Patch patch);\n\n /**\n * Does some up-front validation on the patches, specifically to see if they all apply to the current server version\n * and not some future version. This is to prevent tampering with versioning information attached to a license.\n * \n * @return true if validation is successful. Outputs errors and returns false otherwise.\n */\n public boolean validatePatches();\n\n /**\n * Apply all outstanding patches that are relevant to the repo. If there is a failure, then the patches that were\n * applied will remain so, but the process will not attempt to apply any further patches.\n * \n * @return Returns true if all outstanding patches were applied, or false if the process was termintated before all\n * patches could be applied.\n */\n public boolean applyOutstandingPatches();\n\n /**\n * Retrieves all applied patches between two specific times.\n * \n * @param from\n * the start date of the search, or null to get all patches from the start\n * @param to\n * the end date of the search, or null to g\n * @return Returns all applied patches (successful or not)\n */\n public List<AppliedPatch> getPatches(Date fromDate, Date toDate);\n}", "title": "" }, { "docid": "d4392b0ca121c7e57c31cfcbe275cb0a", "score": "0.48619354", "text": "@Override\n public void visitPhpClass(PhpClass clazz) {\n final PsiElement nameNode = NamedElementUtil.getNameIdentifier(clazz);\n if (null == nameNode) {\n return;\n }\n\n /* check if the class inherited from yii\\base\\Object */\n boolean supportsPropertyFeature = false;\n final Set<PhpClass> parents = InheritanceChainExtractUtil.collect(clazz);\n if (!parents.isEmpty()) {\n for (final PhpClass parent : parents) {\n if (baseObjectClasses.contains(parent.getFQN())) {\n supportsPropertyFeature = true;\n break;\n }\n }\n\n parents.clear();\n }\n if (!supportsPropertyFeature) {\n return;\n }\n\n /* iterate get methods, find matching set methods */\n final Pair<Map<String, String>, Map<String, Integer>> pair = this.findPropertyCandidates(clazz);\n final Map<String, String> properties = pair.getFirst();\n if (properties.size() > 0) {\n final List<String> names = new ArrayList<>(properties.keySet()); Collections.sort(names);\n holder.registerProblem(\n nameNode,\n MessagesPresentationUtil.prefixWithYii(String.format(messagePattern, String.join(\"', '\", names))),\n ProblemHighlightType.WEAK_WARNING,\n new TheLocalFix(properties, pair.getSecond())\n );\n }\n }", "title": "" }, { "docid": "a832e55a09002dae73a1762583aa87ba", "score": "0.48385668", "text": "@Override\n \tprotected Classifier getShadowedClassifier(Classifier shadow) {\n if (shadow instanceof Class) {\n return OCLStandardLibraryImpl.getRealClassifier((Class) shadow);\n }\n \n return null;\n \t}", "title": "" }, { "docid": "326613bb6e7c8d9366a616f7f4c07009", "score": "0.4833327", "text": "@Override\n protected void checkSubclass() {\n }", "title": "" }, { "docid": "df3ef51de9f5dad697cdbff337c56453", "score": "0.48331133", "text": "@Test\n public void calculateSolution() throws Exception {\n TransportSolutionCalculator transportSolutionCalculator = new TransportSolutionCalculator(TimeRequest.ARRIVAL);\n\n Class targeClass = TransportSolutionCalculator.class;\n Method methodOrderSegments = targeClass.getDeclaredMethod(\"orderSegments\") ;\n Method methodInsertSegments = targeClass.getDeclaredMethod(\"insertTransportSegments\", GoogleResponseMappedObject.class, MeanOfTransportLogic.class) ;\n Method methodCalculateSegments = targeClass.getDeclaredMethod(\"calculateSegment\", Coordinates.class, Coordinates.class, Timestamp.class, Timestamp.class, List.class);\n Field field = targeClass.getDeclaredField(\"transportSegments\");\n field.setAccessible(true);\n methodOrderSegments.setAccessible(true);\n methodInsertSegments.setAccessible(true);\n methodCalculateSegments.setAccessible(true);\n\n\n }", "title": "" }, { "docid": "27f3b1b4bdebd45bf97d04b31525e3fa", "score": "0.48328578", "text": "private void rewireListView(SootClass sootClass){\n\t\tList<SootMethod> methods = sootClass.getMethods();\n\t\tfor (SootMethod method : methods){\n\t\t\ttry {\n\t\t\t\tfinal Body body = method.retrieveActiveBody();\n\t\t\t\t\n\t\t\t\tfinal PatchingChain<Unit> units = body.getUnits();\n\t\t\t\tfor(Iterator<Unit> iter = units.snapshotIterator(); iter.hasNext();) {\n\t\t\t\t\tfinal Unit u = iter.next();\n\t\t\t\t\tu.apply(new AbstractStmtSwitch() {\n\t\t\t\t\t public void caseInvokeStmt(InvokeStmt stmt)\n\t\t\t\t\t {\n\t\t\t\t\t \tValue value = stmt.getInvokeExprBox().getValue();\n\t\t\t\t\t \tif (value instanceof JVirtualInvokeExpr){\n\t\t\t\t\t \t\tJVirtualInvokeExpr expr = (JVirtualInvokeExpr)value;\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\t//Create the arguments for the method call\n\t\n\t\t\t\t\t \t\tList<Value> getViewArgs = new ArrayList<Value>();\n\t\t\t\t\t \t\tgetViewArgs.add(IntConstant.v(0));\n\t\t\t\t\t \t\tgetViewArgs.add(NullConstant.v());\n\t\t\t\t\t \t\tgetViewArgs.add(NullConstant.v());\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tList<Value> instantiateItemArgs = new ArrayList<Value>();\n\t\t\t\t\t \t\tinstantiateItemArgs.add(NullConstant.v());\n\t\t\t\t\t \t\tinstantiateItemArgs.add(IntConstant.v(0));\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\t//Get method we want to call, need to a local reference so need to wait to create expression\n\t\t\t\t\t \t\tSootClass adapter = Scene.v().getSootClassUnsafe(\"android.widget.Adapter\");\n\t\t\t\t\t \t\tSootMethod getViewMethod = adapter.getMethodUnsafe(\"android.view.View getView(int,android.view.View,android.view.ViewGroup)\");\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tSootClass pageViewAdapter = Scene.v().getSootClassUnsafe(\"android.support.v4.view.PagerAdapter\");\n\t\t\t\t\t \t\tSootMethod instantiateItemMethod = pageViewAdapter.getMethodUnsafe(\"java.lang.Object instantiateItem(android.view.ViewGroup,int)\");\n\t\t\t\t\t \t\tSootMethod instantiateItemMethod2 = pageViewAdapter.getMethodUnsafe(\"java.lang.Object instantiateItem(android.view.View,int)\");\n\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\t//Look for when adapter is set\n\t\t\t\t\t \t\tif (expr.getMethodRef().getSignature().equals(LISTVIEW_SETADAPTER_SIGNATURE)){\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tValue argValue = expr.getArgBox(0).getValue();\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t//Create the call to view\n\t\t\t\t\t\t \t\tInterfaceInvokeExpr getViewStmt = Jimple.v().newInterfaceInvokeExpr((Local)argValue, getViewMethod.makeRef(), getViewArgs);\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t//Patch\n\t\t\t\t\t\t \t\tunits.insertAfter(Jimple.v().newInvokeStmt(getViewStmt), stmt);\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t//There is a notifydatasetchange for the PagerAdapter and BaseAdapter classes\n\t\t\t\t\t \t\t} else if (expr.getMethodRef().getSubSignature().getString().equals(NOTIFYCHANGE_SUBSIGNATURE)){\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\t//TODO should make sure this is of BaseAdapter\n\t\t\t\t\t \t\t\t//expr.getMethodRef().declaringClass()\n\t\t\t\t\t \t\t\tValue refValu = expr.getBaseBox().getValue();\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tInterfaceInvokeExpr getViewStmt;\n\t\t\t\t\t \t\t\t//Look to find out what the callee is\n\t\t\t\t\t \t\t\tif (hasSuperClass(expr.getMethodRef().declaringClass(), Collections.singletonList(\"android.support.v4.view.PagerAdapter\"))){\n\t\t\t\t\t \t\t\t\tList<Unit> chain = new ArrayList<Unit>();\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t\tif (instantiateItemMethod != null){\n\t\t\t\t\t \t\t\t\tchain.add(Jimple.v().newInvokeStmt(\n\t\t\t\t\t \t\t\t\t\t\tJimple.v().newVirtualInvokeExpr((Local)refValu, instantiateItemMethod.makeRef(), instantiateItemArgs)));\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\ttry {\n\t\t\t\t\t\t \t\t\t\tif (instantiateItemMethod2 != null){\n\t\t\t\t\t\t\t \t\t\t\tchain.add(Jimple.v().newInvokeStmt(\n\t\t\t\t\t\t\t \t\t\t\t\t\tJimple.v().newVirtualInvokeExpr((Local)refValu, instantiateItemMethod2.makeRef(), instantiateItemArgs)));\n\t\t\t\t\t\t\t \t\t\t}\n\t\t\t\t\t \t\t\t\t} catch(Exception e){\n\t\t\t\t\t \t\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t \t\tunits.insertAfter(chain, stmt);\n\n\t\t\t\t\t \t\t\t} else {\n\t\t\t\t\t \t\t\t\t//Create the call to view\n\t\t\t\t\t \t\t\t\tgetViewStmt = Jimple.v().newInterfaceInvokeExpr((Local)refValu, getViewMethod.makeRef(), getViewArgs);\n\t\t\t\t\t \t\t\t\t//Patch\n\t\t\t\t\t\t\t \t\tunits.insertAfter(Jimple.v().newInvokeStmt(getViewStmt), stmt);\n\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t \t\t} else if (expr.getMethodRef().getSignature().equals(PAGEVIEW_SETADAPTER_SIGNATURE)){\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\ttry{\n\t\t\t\t\t\t \t\t\tValue argValue = expr.getArgBox(0).getValue();\t\n\t\t\t\t\t\t\t \t\t//Create the call to view\n\t\t\t\t\t\t \t\t\tVirtualInvokeExpr invokeExpr = null;//Jimple.v().newVirtualInvokeExpr((Local)argValue, instantiateItemMethod.makeRef(), instantiateItemArgs);\n\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\tif (instantiateItemMethod != null){\n\t\t\t\t\t\t \t\t\t\tinvokeExpr =\n\t\t\t\t\t\t \t\t\t\t\t\tJimple.v().newVirtualInvokeExpr((Local)argValue, instantiateItemMethod.makeRef(), instantiateItemArgs);\n\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t\t \t\t\t} else {\n\t\t\t\t\t\t \t\t\t\tinvokeExpr =\n\t\t\t\t\t\t\t\t \t\t\t\tJimple.v().newVirtualInvokeExpr((Local)argValue, instantiateItemMethod2.makeRef(), instantiateItemArgs);\n\t\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t \t\t//Patch\n\t\t\t\t\t\t\t \t\tunits.insertAfter(Jimple.v().newInvokeStmt(invokeExpr), stmt);\n\t\t\t\t\t \t\t\t} catch(Exception e){\n\t\t\t\t \t\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t}\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t}\n\t\t\t\t\t \t\n\t\t\t\t\t }\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t//logger.debug(\"{}\", method.retrieveActiveBody());\n\t\t\t} catch (Exception e){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9ec582a674f0785e1ad331d4c23b0c17", "score": "0.4830797", "text": "@Override\n\t\tpublic void update() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "a89dc2bcd3947095590f49d7b152a74b", "score": "0.4830423", "text": "@Override\n\t\t\t\tpublic void inconsistencyTest() throws Exception {\n\t\t\t\t}", "title": "" }, { "docid": "c00e8a4181a730527edd7fefaaa45b98", "score": "0.482322", "text": "@Test\n\tpublic void testJavaClassSynchronizationThroughExternalContentReference() throws IOException {\n \t\t// Step 1: import a java project\n \t\tWorkspaceUtils.importJavaProject(\"data/unit/java/java.example01.zip\");\n \n \t\t// Step 2: reference a java class inside the intent document\n \t\tString javaFilePath = JAVA_EXAMPLE_PACKAGE_PATH + EXAMPLE_JAVA_CLASS_NAME;\n \t\tString modelFileReference = \"@ref \\\"\" + javaFilePath + \"\\\"\";\n \t\taddExternalContentReference(modelFileReference, FIRST_LOCATION);\n \t\twaitForSynchronizer();\n \n \t\t// the compiler should have created a copy of this model file, accessible through an Intent URI\n \t\tEObject intentRepositoryModel = new ResourceSetImpl()\n \t\t\t\t.getResource(URI.createURI(\"intent:/intentProject/ExampleJavaClass.java\"), true)\n \t\t\t\t.getContents().iterator().next();\n \t\tEObject javaClassAsEobject = new ResourceSetImpl().getResource(URI.createURI(javaFilePath), true)\n \t\t\t\t.getContents().iterator().next();\n \t\tassertEquals(WORKING_COPY_AND_REPOSITORY_MODEL_SHOULD_BE_EQUALS, 0,\n \t\t\t\tEMFCompareUtils.compare(javaClassAsEobject, intentRepositoryModel).getDifferences().size());\n \n \t\t// Step 3: modify the java class\n \t\trepositoryListener.clearPreviousEntries();\n \t\tString regexp = \"return privateMethodWithReturnType();\";\n \t\tString replacement = \"// MODIFICATION\\n\" + regexp;\n \t\tmodifyJavaClass(javaFilePath, regexp, replacement);\n \t\twaitForSynchronizer();\n \t\twaitForAllOperationsInUIThread();\n \t\tString expectedSyncError = JAVA_SYNC_ISSUE_PART1 + regexp + JAVA_SYNC_ISSUE_PART2 + replacement;\n \t\tassertTrue(\"Synchronizer should have detected that the java class has changed\",\n \t\t\t\tAnnotationUtils.hasIntentAnnotation(editor, IntentAnnotationMessageType.SYNC_WARNING,\n \t\t\t\t\t\texpectedSyncError, true));\n \n \t\t// Step 4: apply quick-fix to fix this sync issue\n \t\trepositoryListener.clearPreviousEntries();\n \t\tfixIssueUsingQuickFix(editor, document, expectedSyncError);\n \t\twaitForAllOperationsInUIThread();\n \t\tassertEquals(SYNCHRONIZER_SHOULD_NOT_DETECT_CHANGE_QUICKFIX_MESSAGE, 0, AnnotationUtils\n \t\t\t\t.getIntentAnnotations(editor, IntentAnnotationMessageType.SYNC_WARNING).size());\n \t}", "title": "" }, { "docid": "48257aa0226844fd0b46787616891670", "score": "0.482228", "text": "public void doLegacyBusinessMethodTwo();", "title": "" }, { "docid": "c8cba565a1553ca1d1d5e5ef5296e05d", "score": "0.48200065", "text": "private static byte[] patchEntityRenderer(byte[] basicClass) {\n if (Compat.checkVivecraft()) return basicClass;\n\n ClassNode classNode = createClassNode(basicClass);\n MethodNode method = findMethod(classNode, \"func_175068_a\", \"renderWorldPass\", null);\n MethodInsnNode target = findMethodInsn(method, \"func_70055_a\", \"isInsideOfMaterial\", null);\n\n method.instructions.remove(target.getPrevious().getPrevious());\n method.instructions.remove(target.getPrevious());\n method.instructions.remove(method.instructions.get(method.instructions.indexOf(target) + 1));\n method.instructions.remove(target);\n\n return compile(classNode);\n }", "title": "" }, { "docid": "bafce2e94d56e61baeadcb37047f6035", "score": "0.48133296", "text": "@Override\n\tprotected void postprocess() {\n\t}", "title": "" }, { "docid": "4590ef278c0f01a3cf6ffdb552cd69fc", "score": "0.48003155", "text": "private void modifyJavaClass(String javaFilePath, String regexp, String replacement) {\n \t\t// Step 1: read original content\n \t\tIFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(javaFilePath));\n \t\ttry {\n \t\t\tStringBuilder buffer = new StringBuilder();\n \t\t\tReader reader = new FileReader(new File(file.getLocation().toString()));\n \t\t\tBufferedReader bufferedReader = new BufferedReader(reader);\n \t\t\ttry {\n \n \t\t\t\tString line = bufferedReader.readLine();\n \t\t\t\twhile (line != null) {\n \t\t\t\t\tbuffer.append(line + \"\\n\");\n \t\t\t\t\tline = bufferedReader.readLine();\n \t\t\t\t}\n \t\t\t} finally {\n \t\t\t\tif (bufferedReader != null) {\n \t\t\t\t\tbufferedReader.close();\n \t\t\t\t}\n \t\t\t\tif (reader != null) {\n \t\t\t\t\treader.close();\n \t\t\t\t}\n \t\t\t}\n \t\t\tString originalFileContent = buffer.toString();\n \n \t\t\t// Step 2: replace code\n \t\t\tString modifiedContent = originalFileContent.replace(regexp, replacement);\n \t\t\tfile.setContents(new ByteArrayInputStream(modifiedContent.getBytes()), true, true,\n \t\t\t\t\tnew NullProgressMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tAssertionFailedError assertionFailedError = new AssertionFailedError(\"Could not modify java code\");\n \t\t\tassertionFailedError.setStackTrace(e.getStackTrace());\n \t\t\tthrow assertionFailedError;\n \t\t} catch (IOException e) {\n \t\t\tAssertionFailedError assertionFailedError = new AssertionFailedError(\"Could not modify java code\");\n \t\t\tassertionFailedError.setStackTrace(e.getStackTrace());\n \t\t\tthrow assertionFailedError;\n \t\t}\n \t}", "title": "" }, { "docid": "dbe74e6006bb3d658ab8aee2113aecd7", "score": "0.47956428", "text": "@Override\n\tpublic void visit(ClassFileWrapper classFile) {\n\t}", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.47909516", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.47909516", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.47909516", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "405999032810a245a89243778c428dcd", "score": "0.47909516", "text": "@Override\n public void update() {\n }", "title": "" }, { "docid": "41253dcb0d85c07b0ad842ec2c76e5aa", "score": "0.4789793", "text": "@Override\n \tprotected void checkSubclass() {\n \t}", "title": "" }, { "docid": "b476a5e813736a3599d09fd3e9548045", "score": "0.4787633", "text": "@Override\r\n public void update() {\r\n }", "title": "" }, { "docid": "29ce82124f1e0a2578991e37e389158d", "score": "0.4783736", "text": "@Override\n\tpublic void work() {\n\t\t\n\t}", "title": "" }, { "docid": "c33dfc0bf9bee6e6fe07d47515a40a35", "score": "0.47792786", "text": "@Test\r\n public void testCopyClasses() {\r\n System.out.println(\"copyClasses\");\r\n Model m = new Model();\r\n Classes c1 = new Classes(\"C000123\", \"class 1\", \"\", null, null, 2, 60);\r\n m.getClassList().add(c1);\r\n\r\n int expResult = 2;\r\n m.copyClasses(c1);\r\n int result = m.getClassList().size();\r\n assertEquals(expResult, result);\r\n\r\n }", "title": "" }, { "docid": "3391c9180282e3691ed7de6e7f4099c9", "score": "0.47731325", "text": "@Override\n public void updated() {\n }", "title": "" }, { "docid": "8131833911ad9596b596363935debcdc", "score": "0.4770258", "text": "@Override\r\n public void update() {\n }", "title": "" }, { "docid": "097d1d5b76f95748dbbee8d5c00f063e", "score": "0.47673205", "text": "public void setMethodClass(Class newMethodClass) {\r\n methodClass = newMethodClass;\r\n }", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5fbf9badd992b6f4523b2cce0f147055", "score": "0.47665426", "text": "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c323a0cd01c1d686ece87326d27bfbc7", "score": "0.47658068", "text": "public final void ruleModifyClass() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:269:2: ( ( ( rule__ModifyClass__Group__0 ) ) )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:270:1: ( ( rule__ModifyClass__Group__0 ) )\n {\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:270:1: ( ( rule__ModifyClass__Group__0 ) )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:271:1: ( rule__ModifyClass__Group__0 )\n {\n before(grammarAccess.getModifyClassAccess().getGroup()); \n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:272:1: ( rule__ModifyClass__Group__0 )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:272:2: rule__ModifyClass__Group__0\n {\n pushFollow(FOLLOW_rule__ModifyClass__Group__0_in_ruleModifyClass514);\n rule__ModifyClass__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getModifyClassAccess().getGroup()); \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 }", "title": "" }, { "docid": "6125f21e1e32be92112f7089dec47521", "score": "0.47653162", "text": "public final void rule__ModifyClass__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:1895:1: ( ( 'modify class' ) )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:1896:1: ( 'modify class' )\n {\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:1896:1: ( 'modify class' )\n // ../monoge.dsl.ui/src-gen/monoge/dsl/ui/contentassist/antlr/internal/InternalExtension.g:1897:1: 'modify class'\n {\n before(grammarAccess.getModifyClassAccess().getModifyClassKeyword_0()); \n match(input,29,FOLLOW_29_in_rule__ModifyClass__Group__0__Impl3852); \n after(grammarAccess.getModifyClassAccess().getModifyClassKeyword_0()); \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 }", "title": "" } ]
588f1a5665a347b91075fcd88ebc1754
Can light travel through object?
[ { "docid": "44256164aeef4dee89fc097c45349534", "score": "0.0", "text": "public boolean isTransparent() {\n return transparent;\n }", "title": "" } ]
[ { "docid": "74762162d7888779da8a6ae83ee064b3", "score": "0.73852354", "text": "public void turnLightOn();", "title": "" }, { "docid": "9d7b92315b7aded7446ec12bc43b8bf3", "score": "0.7023802", "text": "Light createLight();", "title": "" }, { "docid": "4819c43f74502be827212f5038ddaf47", "score": "0.70169985", "text": "public void lookThrough()\r\n {\r\n //roatate the pitch around the X axis\r\n glRotatef(pitch, 1.0f, 0.0f, 0.0f);\r\n //roatate the yaw around the Y axis\r\n glRotatef(yaw, 0.0f, 1.0f, 0.0f);\r\n //translate to the position vector's location\r\n glTranslatef(position.x, position.y, position.z);\r\n \r\n FloatBuffer lightPosition = BufferUtils.createFloatBuffer(4);\r\n lightPosition.put(lPosition.x).put(lPosition.y).put(lPosition.z)\r\n .put(1.0f).flip();\r\n glLight(GL_LIGHT0, GL_POSITION, lightPosition);\r\n }", "title": "" }, { "docid": "3a899f3b20f97ca55e41df9fac6ee39a", "score": "0.688435", "text": "public abstract void turnFridgeLightOn();", "title": "" }, { "docid": "17c6be8825d4a5f661c9f84e60b12d4a", "score": "0.66956884", "text": "public void getLight() {\n\t\t\n\t}", "title": "" }, { "docid": "f52e2cea947b5221c8fb959f9ffb34fb", "score": "0.6637115", "text": "protected void activateLight(){\n\t\tif(instructionCounter == 1){\n\t\t\tif(light.getPosition() == targetPosition){\t\n\t\t\t\ttargetPosition--;\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tsuper.activateLight();\n\t\t\t}\n\t\t}\n\t\t//3: If the player tries to target a different tile, nothing happens. \n\t\t//\tIf they target the correct tile and click, the pumpkin is revealed.\n\t\t//\tThere is a green hint on one side of the pumpkin and a red hint on \n\t\t//\tthe other side.\n\t\telse if(instructionCounter == 2){\n\t\t\tif(light.getPosition() == targetPosition){\n\t\t\t\tobjectGrid.getObjectGrid()[1][targetPosition].setHighlight(false);\t\n\t\t\t\ttargetPosition = 0;\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tsuper.activateLight();\n\t\t\t\tobjectGrid.getObjectGrid()[2][targetPosition].setHighlight(true);\n\t\t\t}\n\t\t}\n\t\t//4: When the player clicks the pumpkin and removes it, another popup \n\t\t//\tappears to explain the hints.\n\t\telse if(instructionCounter == 3){\n\t\t\tif(light.getPosition() == targetPosition){\n\t\t\t\ttargetPosition++;\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tsuper.activateLight();\n\t\t\t}\n\t\t}\n\t\t//6 An arrow points to the green health bar under the ghost.\n\t\telse if(instructionCounter == 5){\n\t\t\tif(light.getPosition() == targetPosition){\n\t\t\t\tobjectGrid.getObjectGrid()[2][targetPosition].setHighlight(false);\n\t\t\t\ttargetPosition--;\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tsuper.activateLight();\n\t\t\t\tobjectGrid.getObjectGrid()[2][targetPosition].setHighlight(true);\n\t\t\t}\n\t\t}\n\t\t//7: When the player clicks on the ghost, another popup appears.\n\t\telse if(instructionCounter == 6){\n\t\t\tif(light.getPosition() == targetPosition){\t\n\t\t\t\ttargetPosition++;\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tsuper.activateLight();\n\t\t\t}\n\t\t}\n\t\t//8: When the player clicks on the green hint, they reveal another\n\t\t//\tpumpkin, worth 5 points.\n\t\telse if(instructionCounter == 7){\n\t\t\tif(light.getPosition() == targetPosition){\t\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\tobjectGrid.getObjectGrid()[2][targetPosition].setHighlight(false);\n\t\t\t\ttargetPosition += 3;\n\t\t\t\tsuper.activateLight();\n\t\t\t}\n\t\t}\n\t\t//10: When the player clicks on the pumpkin, the ghost begins to transform \n\t\t//\tinto an angry ghost and regenerates its lost health, so it now has 3 \n\t\t//\thealth again. (Player score: 15)\n\t\telse if(instructionCounter == 9){\n\t\t\tif(light.getPosition() == targetPosition){\n\t\t\t\tif(objectGrid.getObjectGrid()[2][targetPosition].getHealth() == 1){\n\t\t\t\t\tautoClosePopUp = 2;\n\t\t\t\t\tclickableButtons.setButtonActivity(ScreenButton.WIDEBUTTON, true);\n\t\t\t\t\tclickableButtons.highlightButton(ScreenButton.WIDEBUTTON);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(objectGrid.getObjectGrid()[2][targetPosition].getHealth());\n\t\t\t\t}\n\t\t\t\tsuper.activateLight();\n\t\t\t\ttargetPosition++;\n\t\t\t}\n\t\t}\n\t\t//11: After the player has removed the angry ghost, another popup appears, \n\t\t//\talong with a target on the wide beam button. (Player score: 65)\n\t\telse if(instructionCounter == 10){\n\t\t\tsuper.activateLight();\n\t\t}\n\t\t//12: The wide beam is now activated. When the wide beam is selected,\n\t\t//\tthe leftmost five tiles are highlighted and a popup appears:\n\t\telse if(instructionCounter == 11){\n\t\t\tif(light.getPosition() == targetPosition && light.getLightType() == lightType.WIDE){\n\t\t\t\tautoClosePopUp = 3;\n\t\t\t\tclickableButtons.highlightButton(ScreenButton.MEDIUMBUTTON);\n\t\t\t\tobjectGrid.getObjectGrid()[2][0].setHighlight(false);\n\t\t\t\tobjectGrid.getObjectGrid()[2][1].setHighlight(false);\n\t\t\t\tobjectGrid.getObjectGrid()[2][2].setHighlight(false);\n\t\t\t\tobjectGrid.getObjectGrid()[2][3].setHighlight(false);\n\t\t\t\ttargetPosition = 5;\n\t\t\t\tsuper.activateLight();\n\t\t\t}\n\t\t}\n\t\t//13: Two of the tiles are red, three green. At least one of the red \n\t\t//\ttiles should be situated so that there are two tiles in the vertical\n\t\t//\tcolumn above it; this tile is highlighted.\n\t\telse if(instructionCounter == 12){\n\t\t\tif(light.getPosition() == targetPosition && light.getLightType() == lightType.MEDIUM){\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\ttargetPosition++;\n\t\t\t\tsuper.activateLight();\n\t\t\t\tobjectGrid.getObjectGrid()[2][targetPosition].setHighlight(false);\n\t\t\t\tclickableButtons.setButtonActivity(ScreenButton.LASERBUTTON, true);\n\t\t\t\tclickableButtons.highlightButton(ScreenButton.LASERBUTTON);\n\t\t\t}\n\t\t}\n\t\t//15: When player clicks the red tile, a ghost is revealed. The laser beam\n\t\t//\tbutton is highlighted.\n\t\telse if(instructionCounter == 14){\n\t\t\tif(light.getPosition() == targetPosition && light.getLightType() == lightType.LASER){\n\t\t\t\tobjectGrid.getObjectGrid()[0][targetPosition].setObjectType(ObjectType.ANGRY, true);\n\t\t\t\tobjectGrid.getObjectGrid()[0][targetPosition].setGhostTimer((short)3);\n\t\t\t\tobjectGrid.getObjectGrid()[1][targetPosition].setObjectType(ObjectType.ANGRY, true);\n\t\t\t\tobjectGrid.getObjectGrid()[1][targetPosition].setGhostTimer((short)3);\n\t\t\t\tsuper.activateLight();\n\t\t\t\tsuper.gameState.setLightPower(0.25f);\n\t\t\t\tautoClosePopUp = 1;\n\t\t\t\ttempCounter = 1;\n\t\t\t}\n\t\t}\n\t\t//16: One of the ghosts revealed last turn becomes an angry ghost about\n\t\t//\tto explode. An arrow points to the red bar underneath the health bar.\n\t\telse if(instructionCounter == 15){\n\t\t\tSystem.out.print(\"Test \");\n\t\t\tsuper.activateLight();\n\t\t\ttempCounter++;\n\t\t\ttargetPosition += tempCounter;\n\t\t\tautoClosePopUp = 1;\n\t\t}\n\t\t//17: One of the ghosts revealed last turn becomes an angry ghost about\n\t\t//\tto explode. An arrow points to the red bar underneath the health bar.\n\t\telse if(instructionCounter == 16){\n\t\t\tsuper.activateLight();\n\t\t\tautoClosePopUp = 1;\n\t\t\tgameState.setHealthHighLight(true);\n\t\t}\n\t\telse{\n\t\t\tsuper.activateLight();\n\t\t}\n\t}", "title": "" }, { "docid": "32ebec87a6ddfb4beec049672c9f01a2", "score": "0.6390936", "text": "private void paintLight(Airplane plane, Graphics2D g2d) {\n\n /* grab light reference from plane */\n Light light = plane.getLight();\n\n /* paint the navigation (weak red and green wingtip light) effect at the proper location */\n if (light.nav_on) {\n g2d.drawImage(ImageResource.red_nav,\n (int) (plane.getX() - light.wingtip_nav_offset_x + light.plane_median - ImageResource.red_nav.getWidth() * 0.2 / 2),\n (int) (plane.getY() - light.wingtip_nav_offset_y - ImageResource.red_nav.getHeight() * 0.2 / 2),\n (int) (ImageResource.red_nav.getWidth() * 0.2), (int) (ImageResource.red_nav.getHeight() * 0.2), this);\n g2d.drawImage(ImageResource.green_nav,\n (int) (plane.getX() + light.wingtip_nav_offset_x + light.plane_median - ImageResource.green_nav.getWidth() * 0.2 / 2),\n (int) (plane.getY() - light.wingtip_nav_offset_y - ImageResource.green_nav.getHeight() * 0.2 / 2),\n (int) (ImageResource.green_nav.getWidth() * 0.2), (int) (ImageResource.green_nav.getHeight() * 0.2), this);\n }\n\n /* paint the wingtip strobe light effect at the proper location */\n if (light.strobe_on) {\n g2d.drawImage(ImageResource.white_nav,\n (int) (plane.getX() - light.wingtip_strobe_offset_x + light.plane_median - ImageResource.white_nav.getWidth() * 0.3 / 2),\n (int) (plane.getY() - light.wingtip_strobe_offset_y - ImageResource.white_nav.getHeight() * 0.3 / 2),\n (int) (ImageResource.white_nav.getWidth() * 0.3), (int) (ImageResource.white_nav.getHeight() * 0.3), this);\n g2d.drawImage(ImageResource.white_nav,\n (int) (plane.getX() + light.wingtip_strobe_offset_x + light.plane_median - ImageResource.white_nav.getWidth() * 0.3 / 2),\n (int) (plane.getY() - light.wingtip_strobe_offset_y - ImageResource.white_nav.getWidth() * 0.3 / 2),\n (int) (ImageResource.white_nav.getWidth() * 0.3), (int) (ImageResource.white_nav.getHeight() * 0.3), this);\n }\n\n /* paint the tail strobe light effect at the proper location */\n if (light.tail_strobe_on) {\n g2d.drawImage(ImageResource.white_nav,\n (int) (plane.getX() - light.tail_strobe_offset_x + light.plane_median - ImageResource.white_nav.getWidth() * 0.4 / 2),\n (int) (plane.getY() - light.tail_strobe_offset_y - ImageResource.white_nav.getHeight() * 0.4 / 2),\n (int) (ImageResource.white_nav.getWidth() * 0.4), (int) (ImageResource.white_nav.getHeight() * 0.4), this);\n }\n\n /* paint the anti-collision warning strobe light effect at the proper location */\n if (light.acl_on) {\n g2d.drawImage(ImageResource.red_nav,\n (int) (plane.getX() - light.top_acl_offset_x + light.plane_median - ImageResource.red_nav.getWidth() * 0.2 / 2),\n (int) (plane.getY() - light.top_acl_offset_y - ImageResource.red_nav.getHeight() * 0.2 / 2),\n (int) (ImageResource.red_nav.getWidth() * 0.2), (int) (ImageResource.red_nav.getHeight() * 0.2), this);\n }\n\n }", "title": "" }, { "docid": "96234805d578727ec987c8681ad9b362", "score": "0.63161945", "text": "@Override\n\tpublic void on() {\n\t\tSystem.out.println(\"-- Hall light turned on ---\");\n\t\t\n\t}", "title": "" }, { "docid": "11e2543b7821e23e12df482f151058db", "score": "0.6236132", "text": "private void setupLight() {\n\n DirectionalLight dl = new DirectionalLight();\n dl.setDirection(new Vector3f(-0.1f, -0.7f, -1).normalizeLocal());\n dl.setColor(new ColorRGBA(1f, 1f, 1f, 1.0f));\n rootNode.addLight(dl);\n }", "title": "" }, { "docid": "4990a1e755c87c013923964bd9aa2353", "score": "0.6163799", "text": "public interface LightSource {\n\n\t/**\n\t * intensity of specific point effected with light source\n\t * @param p\n\t * @return\n\t */\n\tpublic Color getIntensity(Point3D p);\n\t\n\t/**\n\t * Vector l is the vector from light source location to point\n\t * @param p - point\n\t * @return - Vector l\n\t */\n\tpublic Vector getL(Point3D p);\n\t\n\t/**\n\t * Calculates the distance between the light source and the point\n\t * @param p - point\n\t * @return - distance to point (double)\n\t */\n\tpublic double getDistance(Point3D p);\n\n}", "title": "" }, { "docid": "86f6ffd8613679d6ebf601ae628d4f22", "score": "0.6148147", "text": "private void createLight() {\n Vector3f direction = new Vector3f(-0.1f, -0.7f, -1).normalizeLocal();\n dl = new DirectionalLight();\n dl.setDirection(direction);\n dl.setColor(new ColorRGBA(1f, 1f, 1f, 1.0f));\n rootNode.addLight(dl);\n }", "title": "" }, { "docid": "7e7c9dec0b27895ff2cfd9cbc44b84c6", "score": "0.61387825", "text": "public void lookThrough() {\n loadProjectionMatrix();\n loadModelViewMatrix();\n\n if (_reflected) {\n glTranslatef(0.0f, 2f * ((float) -_position.y + 32f), 0.0f);\n glScalef(1.0f, -1.0f, 1.0f);\n }\n }", "title": "" }, { "docid": "e03df95d9b631154b59fac6fd6e62207", "score": "0.61331785", "text": "private float[] lightAndShadowRGBEffect(Vector3D p, Vector3D n, Vector3D v, List<Object> lights, List<Object> objects, float r, float g, float b) {\r\n for (Object lightSources : lights) {\r\n Light light = (Light) lightSources;\r\n if (light.getLightType() == Light.LightType.AMBIENT) {\r\n r += ka * ir * light.ir;\r\n g += ka * ig * light.ig;\r\n b += ka * ib * light.ib;\r\n } else {\r\n Vector3D l;\r\n if (light.getLightType() == Light.LightType.POINT) {\r\n l = new Vector3D(light.getX() - p.x, light.getY() - p.y, light.getZ() - p.z);\r\n l = l.normalize();\r\n } else {\r\n l = new Vector3D(-light.getX(), -light.getY(), -light.getZ());\r\n }\r\n\r\n // Check if the surface point is in shadow\r\n Vector3D poffset = new Vector3D(p.x + TINY * l.x, p.y + TINY * l.y, p.z + TINY * l.z);\r\n Ray shadowRay = new Ray(poffset, l);\r\n if (shadowRay.trace(objects))\r\n break;\r\n\r\n float lambert = Vector3D.dot(n, l);\r\n if (lambert > 0) {\r\n if (kd > 0) {\r\n float diffuse = kd * lambert;\r\n r += diffuse * ir * light.ir;\r\n g += diffuse * ig * light.ig;\r\n b += diffuse * ib * light.ib;\r\n }\r\n if (ks > 0) {\r\n lambert *= 2;\r\n float spec = v.dot(lambert * n.x - l.x, lambert * n.y - l.y, lambert * n.z - l.z);\r\n if (spec > 0) {\r\n spec = ks * ((float) Math.pow(spec, ns));\r\n r += spec * light.ir;\r\n g += spec * light.ig;\r\n b += spec * light.ib;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return new float[]{r, g, b};\r\n }", "title": "" }, { "docid": "48c496148126bf19cfcb1de1d3cd8efc", "score": "0.61214185", "text": "public TrafficLight()\n {\n state=RED;\n }", "title": "" }, { "docid": "44554481d60274b9bb62b5b3cad503e2", "score": "0.61180806", "text": "public void lightTurnedOn( LightEvent lightEvent )\n {\n lightListener.lightTurnedOn( lightEvent );\n }", "title": "" }, { "docid": "1fe7006f6332081325f57d12e35a679d", "score": "0.6114112", "text": "private void turnDarkToLight() {\r\n if (robot.onDark()) {\r\n robot.makeLight();\r\n }\r\n }", "title": "" }, { "docid": "5bd262ad42d3be6dc379455d407c8476", "score": "0.6113012", "text": "public void changeLight()\n {\n boolean flag=true;\n if(state==RED && flag==true)\n {\n state=GREEN;\n flag=false;\n }\n else if (state==YELLOW && flag==true)\n {\n state= RED;\n flag=false;\n }\n else if(state==GREEN && flag==true)\n {\n state=YELLOW;\n flag=false;\n }\n }", "title": "" }, { "docid": "9ee2face6642e4e3be650cbf1105c063", "score": "0.6096063", "text": "@Override\n \tpublic boolean canInteractWithLight() {\n \t\treturn substrate.canInteractWithLight();\n \t}", "title": "" }, { "docid": "662fca8bfe24898e355ad5c73bf9b8c9", "score": "0.6090561", "text": "private void setupLights() {\r\n\r\n // default number is 8, can be any positive value\r\n PointLight lightArray[] = new PointLight[8];\r\n for (int i = 0; i < 8; i++) {\r\n lightArray[i] = new PointLight();\r\n lightArray[i].setCapability(Light.ALLOW_COLOR_READ);\r\n lightArray[i].setCapability(Light.ALLOW_COLOR_WRITE);\r\n lightArray[i].setCapability(Light.ALLOW_STATE_READ);\r\n lightArray[i].setCapability(Light.ALLOW_STATE_WRITE);\r\n lightArray[i].setCapability(PointLight.ALLOW_POSITION_READ);\r\n lightArray[i].setCapability(PointLight.ALLOW_POSITION_WRITE);\r\n lightArray[i].setCapability(PointLight.ALLOW_ATTENUATION_READ);\r\n lightArray[i].setCapability(PointLight.ALLOW_ATTENUATION_WRITE);\r\n\r\n // default color is white\r\n lightArray[i].setColor(new Color3f(1.0f, 1.0f, 1.0f));\r\n\r\n // illuminate everything in voxel space\r\n lightArray[i].setInfluencingBounds(frame.bounds);\r\n\r\n // position at a vertex of voxel space [-maxBox,maxBox]^3\r\n float fX = ( (i & 1) > 0 ? xBox : -xBox);\r\n float fY = ( (i & 2) > 0 ? yBox : -yBox);\r\n float fZ = ( (i & 4) > 0 ? zBox : -zBox);\r\n ( (PointLight) lightArray[i]).setPosition(new Point3f(fX, fY, fZ));\r\n\r\n // use the constant term to control intensity\r\n ( (PointLight) lightArray[i]).setAttenuation(2.0f, 0.0f, 0.0f);\r\n\r\n lightArray[i].setEnable(true);\r\n\r\n frame.getSceneRootTG().addChild(lightArray[i]);\r\n }\r\n }", "title": "" }, { "docid": "3dc699a78124202ed1d0100d950dccab", "score": "0.6044547", "text": "private void flashLightOn() {\n CameraManager cameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n\n try {\n String cameraId = cameraManager.getCameraIdList()[0];\n cameraManager.setTorchMode(cameraId, true);\n flashLightStatus = true;\n // imageFlashlight.setImageResource(R.drawable.btn_switch_on);\n } catch (CameraAccessException e) {\n // TODO: error message\n }\n }", "title": "" }, { "docid": "51314f6a3047c575089499fbffb1ea00", "score": "0.6016809", "text": "public void createLights() {\n\t\t\n\t}", "title": "" }, { "docid": "4c0a35513ec619ed5da3d4443ed25e30", "score": "0.60082483", "text": "public void turnOnLight() {\n\t\tSystem.out.println(\"Lights turned on\");\n\t\tthis.state.switchState();\n\t}", "title": "" }, { "docid": "6af8271f501be9457e757901fc7a7519", "score": "0.59794575", "text": "public void lookThrough()\n {\n //roatate the pitch around the X axis\n GL11.glRotatef(pitch, 1.0f, 0.0f, 0.0f);\n //roatate the yaw around the Y axis\n GL11.glRotatef(yaw, 0.0f, 1.0f, 0.0f);\n \n //translate to the position vector's location\n GL11.glTranslatef(position.x, position.y, position.z);\n }", "title": "" }, { "docid": "e0678466fb8317f4833581dcc7d52c44", "score": "0.59332705", "text": "public void display(GLAutoDrawable arg0) {\n final GL2 gl = arg0.getGL().getGL2();//get the GL object\n gl.glLoadIdentity(); //init the matrix\n gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); //clear the depth buffer and the color buffer\n //gl.glMatrixMode(GL2.GL_MODELVIEW); //switch to model matrix\n player.setLookAtCoordinate();\n\n//\t\t\tglu.gluLookAt(eyeX,eyeY,eyeZ,cX,cY,cZ,upX,upY,upZ)); //set the camera view\n //glu.gluLookAt(1.0, 0.0, 0.0, 0.0, 0.0, -0.0, 0.0, 1.0, 0.0); //set the camera view\n glu.gluLookAt(player.position[0],player.position[1],player.position[2],\n player.lookAt[0], player.lookAt[1], player.lookAt[2],\n player.camera_y[0],player.camera_y[1],player.camera_y[2]);\n\n // set light position\n // since ligth follows the model when mousing\n // spotlight as it moves with the scene\n float spot1_position[] = {1f,29f,-10.0f,1.0f};\n float spot1_direction[] = {0.0f,-1.0f,0.0f};\n float spot2_direction[] = {0.0f,-1.0f,0.0f};\n\n float spot_angle1=22.0f;\n float spot_angle2=22.0f;\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_POSITION, spot1_position,0);\n gl.glLightfv(GL2.GL_LIGHT0, GL2.GL_SPOT_DIRECTION,spot1_direction,0);\n gl.glLightf(GL2.GL_LIGHT0, GL2.GL_SPOT_CUTOFF,(float)spot_angle1);\n // \"smoothing\" the border of the lightcone\n // change this for effect\n gl.glLighti(GL2.GL_LIGHT0, GL2.GL_SPOT_EXPONENT, 10);\n // set light position\n // since ligth follows the model when mousing\n // spotlight as it moves with the scene\n float spot2_position[] = {-2.5f,29,-10.0f,1.0f};\n gl.glLightfv(GL2.GL_LIGHT1, GL2.GL_POSITION, spot2_position,0);\n gl.glLightfv(GL2.GL_LIGHT1, GL2.GL_SPOT_DIRECTION,spot2_direction,0);\n gl.glLightf(GL2.GL_LIGHT1, GL2.GL_SPOT_CUTOFF,(float)spot_angle2);\n // \"smoothing\" the border of the lightcone\n // change this for effect\n gl.glLighti(GL2.GL_LIGHT1, GL2.GL_SPOT_EXPONENT, 10);\n\n\n //draw things using openGL\n //draw first chair\n gl.glPushMatrix();\n gl.glTranslatef(0.0f, -16.0f, -17.0f);\n gl.glScalef(0.09f, 0.09f, 0.09f);\n chairModel.opengldraw(gl);\n gl.glPopMatrix();\n //draw second chair\n gl.glPushMatrix();\n gl.glTranslatef(0.0f, -16.0f, -5.0f);\n gl.glScalef(0.09f, 0.09f, 0.09f);\n gl.glRotatef(180, 0, 1, 0);\n chairModel.opengldraw(gl);\n gl.glPopMatrix();\n //draw lamp\n gl.glPushMatrix();\n gl.glTranslatef(0.0f, 30.0f, -10.0f);\n gl.glScalef(.008f, .008f, .008f); //here\n lampModel.opengldraw(gl);\n gl.glPopMatrix();\n\n //draw table\n gl.glPushMatrix();\n gl.glTranslatef(0.0f, -15.0f, -12.0f);\n gl.glScalef(6.0f, 0.6f, 3.0f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n deskTexture.bind(gl);\n deskTexture.enable(gl);\n\n //loader.drawModel(gl);\n\n //gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0);\n gl.glBegin(GL2.GL_QUADS);\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n gl.glPopMatrix();\n\n //1th leg\n gl.glPushMatrix();\n gl.glTranslatef(-5.4f, -17.2f, -9.6f);\n gl.glScalef(0.6f, 2.5f, 0.6f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n deskTexture.bind(gl);\n\n //gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0);\n gl.glBegin(GL2.GL_QUADS);\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n gl.glPopMatrix();\n\n //2th leg\n gl.glPushMatrix();\n gl.glTranslatef(5.4f, -17.2f, -9.6f);\n gl.glScalef(0.6f, 2.5f, 0.6f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n deskTexture.bind(gl);\n //gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0);\n gl.glBegin(GL2.GL_QUADS);\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n gl.glPopMatrix();\n //3th leg\n gl.glPushMatrix();\n gl.glTranslatef(5.4f, -17.2f, -14.4f);\n gl.glScalef(0.6f, 2.5f, 0.6f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n deskTexture.bind(gl);\n //gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0);\n gl.glBegin(GL2.GL_QUADS);\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n gl.glPopMatrix();\n //4th leg\n gl.glPushMatrix();\n gl.glTranslatef(-5.4f, -17.2f, -14.4f);\n gl.glScalef(0.6f, 2.5f, 0.6f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n deskTexture.bind(gl);\n //gl.glMaterialfv(GL2.GL_FRONT_AND_BACK, GL2.GL_AMBIENT_AND_DIFFUSE, material, 0);\n gl.glBegin(GL2.GL_QUADS);\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n gl.glPopMatrix();\n deskTexture.disable(gl);\n\n\n //gl.glClear(GL.GL_COLOR_BUFFER_BIT);\n //draw rooom\n gl.glPushMatrix();\n\n gl.glTranslatef(0.0f, 10.0f, -60.0f);\n gl.glScalef(60.0f, 30.0f, 80.0f);\n gl.glTexParameteri ( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_T, GL.GL_REPEAT );\n gl.glTexParameteri( GL.GL_TEXTURE_2D,GL.GL_TEXTURE_WRAP_S, GL.GL_REPEAT );\n roomTexture.bind(gl);\n roomTexture.enable(gl);\n\n gl.glBegin(GL2.GL_QUADS);\n gl.glClearColor(1,1,0,0);\n\n // Front Face\n gl.glNormal3f(0,0,1);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n // Back Face\n gl.glNormal3f(0,0,-1);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n // Top Face\n gl.glNormal3f(0,1,0);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n // Bottom Face\n gl.glNormal3f(0,-1,0);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n // Right face\n gl.glNormal3f(1,0,0);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, -1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(1.0f, -1.0f, 1.0f);\n // Left Face\n gl.glNormal3f(-1,0,0);\n gl.glTexCoord2f(0.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, -1.0f);\n gl.glTexCoord2f(1.0f, 0.0f);\n gl.glVertex3f(-1.0f, -1.0f, 1.0f);\n gl.glTexCoord2f(1.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, 1.0f);\n gl.glTexCoord2f(0.0f, 1.0f);\n gl.glVertex3f(-1.0f, 1.0f, -1.0f);\n gl.glEnd();\n roomTexture.disable(gl);\n\n gl.glPopMatrix();\n\n gl.glPushMatrix();\n // gl.glColor3f(0.0f, 1.0f, 1.0f);\n gl.glPopMatrix();\n gl.glEnd();\n gl.glFlush();\n\n }", "title": "" }, { "docid": "bb83c46956f0c166a296f612445f945f", "score": "0.5927061", "text": "boolean hasAlight();", "title": "" }, { "docid": "6c77f2e6695e6cd905ec0f1ad1e46e51", "score": "0.5917311", "text": "public void limelightTrackForDriveSteerValues()\n {\n // These numbers must be tuned for your Robot! Be careful!\n final double STEER_K = 0.010;//0.015 0.025; // how hard to turn toward the target\n final double DRIVE_K = 0.66;//0.26; // how hard to drive fwd toward the target\n final double SLOW_DRIVE_K = 0.26; // used if starting from close at slow speed\n final double SLOW_VELOCITY = 10;\n final double DESIRED_TARGET_AREA_SLOW = 20.0; //25.0; //29.0; //% Area* of the target when the robot reaches the wall\n final double DESIRED_TARGET_AREA_AUTON = 6.9; //6.8; //10.60; //29.0; //% Area* of the target when the robot reaches the wall\n final double DESIRED_TARGET_AREA_TELEOP = 5.11;//7.5; //29.0; //% Area* of the target when the robot reaches the wall\n //*Need to account for Speed and Overshoot ie if going fast, cutoff at 7 to stop at 29 \n final double SLOW_DRIVE = 0.19; \n final double MAX_DRIVE = 0.4; // Simple speed limit so we don't drive too fast\n final double SLOWDOWN_FOR_3D_READING_DRIVE = 0.23; //.0.15;\n /*\n\n * ROLL - Basically 3D only works in a stable manner when you are 1.0 meters from target.\n * We can, however get a reasonably helpful ROLL indication (and length camtranZ), a lot earlier.\n * We can take an early camtranRoll reading, say at 2m, and decide if we are going to have to do a shift.\n * If so, we can slow down mid tracking, get to MAX_ROLL_FOR_FINAL_TRACKING and take an accurate 3D reading\n * Then do the shift from 1meter away.\n */\n final double MAX_ROLL_FOR_FINAL_TRACKING = 3.0; //I accept this camtranRoll value (or under) to go ahead and do basic tracking\n final double MAX_TA_TOO_LATE_TO_START_SHIFT = 5.33; //ta=5.33 0.92m //need some room for the manouver\n final double MAX_TA_ACCURATE_3D_READING = 4.5; //ta=4.5 at 1.0m //% Area of the target when robot is 1.0m away (3D good numbers range)\n final double MAX_TA_EARLY_ROLL_READING = 1.47; //ta=1.47 at 1.9m //Check camtranRoll earlyvalue (or under) to go ahead and do basic tracking\n final double MAX_TX_ANGLE_BEFORE_READING_ROLL = 6.0; //3.0; //tx needs to be close, before looking at camtranRoll \n //final double MIN_DISTANCE_FOR_TRACKING = 0.5;\n //final double MIN_DISTANCE_FOR_SHIFT_TRACKING = 1.2;\n final double SHIFT_STEER_PER_20MS_K = 0.25; \n final double SHIFT_DRIVE_PER_20MS_K = 0.25;\n final double ROTATE_OVERSHOOT_FACTOR_K = 0.82; //Change this is you change SHIFT STEER rate\n final double DISTANCE_OVERSHOOT_FACTOR_K = 0.54; //Change this is you change SHIFT DRIVE rate\n \n \n double heading=0;\n double distance=0;\n \n m_last_ta = ta;\n tv = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0);\n tx = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tx\").getDouble(0);\n ty = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n ta = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ta\").getDouble(0);\n\n Number[] camtran;\n Number[] defaultNumbers = {0,0,0,0,0,0};\n camtran = NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"camtran\").getNumberArray(defaultNumbers);\n\t\t //double camtranZaw = (double)camtran[4];\n //double camtranX = (double)camtran[0];\n double camtranX = (double)camtran[0];\n\t\t\t\tdouble camtranZ = (double)camtran[2];\n double camtranRoll = (double)camtran[5];\n\n /*\n if (m_ShiftingRightRotateRight) {\n heading = Robot.drivetrain.getNavAngle();\n if (heading > m_ShiftHeading) {\n m_LimelightSteerCommand = SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"Right Right Heading: %s current heading: %s\\r\",m_ShiftHeading, heading); \n return;\n } else {\n m_ShiftingRightRotateRight = false;\n m_ShiftingRightStraightAhead = true;\n m_ShiftingRightRotateLeft = false;\n distance = Robot.drivetrain.getDistance();\n m_ShiftStraightAhead = distance + m_ShiftDistance;\n }\n }\n\n if (m_ShiftingRightStraightAhead) {\n distance = Robot.drivetrain.getDistance();\n if (distance < m_ShiftStraightAhead) {\n m_LimelightSteerCommand = 0;\n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"Right Straight Ahead: %s current position: %s\\r\",m_ShiftStraightAhead, distance); \n return; \n } else {\n m_ShiftingRightRotateRight = false;\n m_ShiftingRightStraightAhead = false;\n m_ShiftingRightRotateLeft = true;\n heading = Robot.drivetrain.getNavAngle();\n m_ShiftHeading = heading + (ROTATE_OVERSHOOT_FACTOR_K * 90);\n }\n }\n\n if (m_ShiftingRightRotateLeft) {\n heading = Robot.drivetrain.getNavAngle();\n if (heading < m_ShiftHeading) {\n m_LimelightSteerCommand = -1 * SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"Right Left Heading: %s current heading: %s\\r\",m_ShiftHeading, heading); \n return; \n } else {\n m_ShiftingRightRotateRight = false;\n m_ShiftingRightStraightAhead = false;\n m_ShiftingRightRotateLeft = false;\n m_ShiftCompleted = true;\n }\n }\n\n if (m_ShiftingLeftRotateLeft) {\n heading = Robot.drivetrain.getNavAngle();\n if (heading < m_ShiftHeading) {\n m_LimelightSteerCommand = -1 * SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K;\n System.out.printf(\"Left Left Heading: %s current heading: %s\\r\",m_ShiftHeading, heading); \n return;\n } else {\n m_ShiftingLeftRotateLeft = false;\n m_ShiftingLeftStraightAhead = true;\n m_ShiftingLeftRotateRight = false; \n distance = Robot.drivetrain.getDistance();\n m_ShiftStraightAhead = distance + m_ShiftDistance;\n }\n }\n\n if (m_ShiftingLeftStraightAhead) {\n distance = Robot.drivetrain.getDistance();\n if (distance < m_ShiftStraightAhead) {\n m_LimelightSteerCommand = 0;\n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"Left Straight Ahead: %s current position: %s\\r\",m_ShiftStraightAhead, distance); \n return; \n } else {\n m_ShiftingLeftRotateLeft = false;\n m_ShiftingLeftStraightAhead = false;\n m_ShiftingLeftRotateRight = true;\n heading = Robot.drivetrain.getNavAngle();\n m_ShiftHeading = heading + (ROTATE_OVERSHOOT_FACTOR_K * -90);\n }\n }\n\n if (m_ShiftingLeftRotateRight) {\n heading = Robot.drivetrain.getNavAngle();\n if (heading > m_ShiftHeading) {\n m_LimelightSteerCommand = SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"Left Right Heading: %s current heading: %s\\r\",m_ShiftHeading, heading); \n return;\n } else {\n m_ShiftingLeftRotateLeft = false;\n m_ShiftingLeftStraightAhead = false;\n m_ShiftingLeftRotateRight = false;\n m_ShiftCompleted = true;\n }\n }\n */\n\n if (tv < 1.0)\n {\n m_LimelightHasValidTarget = false;\n m_LimelightDriveCommand = 0.0;\n m_LimelightSteerCommand = 0.0;\n return;\n }\n\n m_LimelightHasValidTarget = true;\n \n //System.out.printf(\"camtranRoll:%s\\r\",camtranRoll);\n \n /*\n * Let's see if we need to do a Shift (hard right, forward, hard left, track to target)\n */\n /**** SHIFT - not good enough for production, get back to this another time ....\n * \n if (ta > MAX_TA_ACCURATE_3D_READING && \n !m_ShiftCompleted && \n (Math.abs(tx) < MAX_TX_ANGLE_BEFORE_READING_ROLL) && \n (Math.abs(camtranRoll) > MAX_ROLL_FOR_FINAL_TRACKING)\n && ta < MAX_TA_TOO_LATE_TO_START_SHIFT) {\n System.out.printf(\"camtranRoll:%s\\r\",camtranRoll);\n m_LimelightHasValidTarget = false;\n m_IsQuickTurn = true;\n if (camtranRoll < 0) { \n m_ShiftingRightRotateRight = true;\n heading = Robot.drivetrain.getNavAngle();\n m_ShiftHeading = heading - ROTATE_OVERSHOOT_FACTOR_K*(tx + Math.toDegrees(Math.atan(camtranZ/camtranX)));\n m_ShiftDistance = DISTANCE_OVERSHOOT_FACTOR_K*Math.abs(camtranX) * RobotMap.inches2MetersFactor * RobotMap.SensorUnitsPerMeter;\n m_LimelightSteerCommand = SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K; \n System.out.printf(\"m_ShiftHeading[%s] = heading[%s] - ROTATE_OVERSHOOT_FACTOR_K[%s]*(tx[%s] + Math.toDegrees[%s](Math.atan[%s](camtranZ([%s]/camtranX[%s])))\\r\",m_ShiftHeading,heading, ROTATE_OVERSHOOT_FACTOR_K,tx,Math.toDegrees(Math.atan(camtranZ/camtranX)),Math.atan(camtranZ/camtranX),camtranZ,camtranX);\n System.out.printf(\"m_ShiftDistance[%s] = DISTANCE_OVERSHOOT_FACTOR_K[%s]*[%s]Math.abs[%s]([%s]camtranX) * RobotMap.inches2MetersFactor[%s] * RobotMap.SensorUnitsPerMeter[%s]\\r\",m_ShiftDistance,DISTANCE_OVERSHOOT_FACTOR_K,Math.abs(camtranX) * RobotMap.inches2MetersFactor, Math.abs(camtranX),camtranX,RobotMap.inches2MetersFactor,RobotMap.SensorUnitsPerMeter);\n System.out.printf(\"Face East Heading: %s, current heading:%s followed by distance: %s then head North\\r\",m_ShiftHeading, heading, m_ShiftDistance);\n return;\n } else {\n m_ShiftingLeftRotateLeft = true;\n heading = Robot.drivetrain.getNavAngle();\n m_ShiftHeading = heading - ROTATE_OVERSHOOT_FACTOR_K*(tx + Math.toDegrees(Math.atan(camtranZ/camtranX)));\n m_ShiftDistance = DISTANCE_OVERSHOOT_FACTOR_K*Math.abs(camtranX) * RobotMap.inches2MetersFactor * RobotMap.SensorUnitsPerMeter;\n m_LimelightSteerCommand = -1 * SHIFT_STEER_PER_20MS_K; \n m_LimelightDriveCommand = SHIFT_DRIVE_PER_20MS_K;\n System.out.printf(\"m_ShiftHeading[%s] = heading[%s] - ROTATE_OVERSHOOT_FACTOR_K[%s]*(tx[%s] + Math.toDegrees[%s](Math.atan[%s](camtranZ([%s]/camtranX[%s])))\\r\",m_ShiftHeading,heading, ROTATE_OVERSHOOT_FACTOR_K,tx,Math.toDegrees(Math.atan(camtranZ/camtranX)),Math.atan(camtranZ/camtranX),camtranZ,camtranX);\n System.out.printf(\"m_ShiftDistance[%s] = DISTANCE_OVERSHOOT_FACTOR_K[%s]*[%s]Math.abs[%s]([%s]camtranX) * RobotMap.inches2MetersFactor[%s] * RobotMap.SensorUnitsPerMeter[%s]\\r\",m_ShiftDistance,DISTANCE_OVERSHOOT_FACTOR_K,Math.abs(camtranX) * RobotMap.inches2MetersFactor,Math.abs(camtranX),camtranX,RobotMap.inches2MetersFactor,RobotMap.SensorUnitsPerMeter);\n System.out.printf(\"Face West Heading: %s, current Heading: %s followed by distance: %s then head North\\r\",m_ShiftHeading, heading, m_ShiftDistance);\n\n return;\n }\n } else {\n if (!(ta > MAX_TA_ACCURATE_3D_READING)) {\n System.out.printf(\"NOT: (ta[%s] > MAX_TA_ACCURATE_3D_READING[%s])\\r\",ta,MAX_TA_ACCURATE_3D_READING);\n } else if (m_ShiftCompleted) {\n System.out.printf(\"NOT: (!m_ShiftCompleted[%s])\\r\",m_ShiftCompleted);\n } else if (!(Math.abs(tx) < MAX_TX_ANGLE_BEFORE_READING_ROLL)){\n System.out.printf(\"NOT: (Math.abs(tx[%s]) < MAX_TX_ANGLE_BEFORE_READING_ROLL[%s])\\r\",tx,MAX_TX_ANGLE_BEFORE_READING_ROLL);\n } else if (!(Math.abs(camtranRoll) > MAX_ROLL_FOR_FINAL_TRACKING)) {\n System.out.printf(\"NOT: (Math.abs(camtranRoll[%s]) > MAX_ROLL_FOR_FINAL_TRACKING[%s])\\r\",camtranRoll,MAX_ROLL_FOR_FINAL_TRACKING);\n } else if (!(ta < MAX_TA_TOO_LATE_TO_START_SHIFT)) {\n System.out.printf(\"NOT: (ta[%s] < MAX_TA_TOO_LATE_TO_START_SHIFT[%s])\\r\",ta,MAX_TA_TOO_LATE_TO_START_SHIFT);\n }\n }\n*/\n // Start with proportional steering\n double steer_cmd = tx * STEER_K;\n m_LimelightSteerCommand = steer_cmd;\n\n // try to drive forward until the target area reaches our desired area\n double drive_cmd;\n boolean slowdriveFlag=false;\n\n /*\n * If the robot start quite close, then we canm allow slow tracking to target\n * DESIRED_TARGET AREA can be larger before needing to stop (less momentum if going slow).\n */\n double speed=Math.abs(Robot.drivetrain.getVelocity());\n //System.out.printf(\"VELOCITY: %s u/100ms ta: %s distance: %sm\\r\",speed,ta, (Math.abs(camtranZ) * RobotMap.inches2MetersFactor));\n\n double slowStopDistance=0;\n if (isAutonomous)\n slowStopDistance = 0;\n else \n slowStopDistance = 0.53;\n\n if ((speed < SLOW_VELOCITY) &&\n (ta > MAX_TA_TOO_LATE_TO_START_SHIFT) && \n (Math.abs(camtranZ) * RobotMap.inches2MetersFactor) > slowStopDistance) {\n System.out.printf(\"SLOW MODE: %s u/100ms\\r\",speed);\n drive_cmd = (DESIRED_TARGET_AREA_SLOW - ta) * SLOW_DRIVE_K; \n slowdriveFlag = true;\n if (drive_cmd > SLOW_DRIVE) \n {\n drive_cmd = SLOW_DRIVE; \n } else {\n drive_cmd = 0;\n }\n } else {\n if (isAutonomous) {\n drive_cmd = (DESIRED_TARGET_AREA_AUTON - ta) * DRIVE_K;\n } else {\n drive_cmd = (DESIRED_TARGET_AREA_TELEOP - ta) * DRIVE_K; \n }\n }\n\n // don't let the robot drive too fast into the goal\n if (!slowdriveFlag) {\n if (drive_cmd > MAX_DRIVE) {\n /* Slow down if ROLL indicated we are coming in at an angle that will require a shift. */ \n /*if (!m_ShiftEarlyRollReadingCompleted && (ta > MAX_TA_EARLY_ROLL_READING) && (Math.abs(camtranRoll) > MAX_ROLL_FOR_FINAL_TRACKING)) {\n drive_cmd = SLOWDOWN_FOR_3D_READING_DRIVE;\n } else {*/\n drive_cmd = MAX_DRIVE;\n //}\n } else {\n drive_cmd = 0;\n }\n }\n // System.out.printf(\"Limelight Tracking... ACTIVE: %s Speed: %s Steer: %s Target Area: %s tx: %s camtranZ: %s camtranX: %s camtranZaw: %s\\r\",m_LimelightHasValidTarget,drive_cmd,m_LimelightSteerCommand,ta,tx,camtranZ,camtranX, camtranZaw);\n m_LimelightDriveCommand = drive_cmd;\n\n /* If we have stopped still in slowDrive */\n if (slowdriveFlag && (ta == m_last_ta)) {\n m_LimelightHasValidTarget = false;\n }\n }", "title": "" }, { "docid": "78f46ffce0bae646ef302bb911dd9711", "score": "0.59099406", "text": "public abstract void turnFridgeLightOff();", "title": "" }, { "docid": "a47db95eac0be51db7daa0ad1144be91", "score": "0.58948994", "text": "private void tracer(Scene scene, Ray ray, short[] rgb) {\n\t\t\t\tList<GraphicalObject> graphicalObjects = scene.getObjects();\n\t\t\t\tList<LightSource> lightSources = scene.getLights();\n\n\t\t\t\tRayIntersection closestIntersection = null;\n\n\t\t\t\t// FIND CLOSEST VISIBLE INTERSECTION IN DIRECTION OF RAY\n\t\t\t\tfor (GraphicalObject go : graphicalObjects) {\n\t\t\t\t\tRayIntersection intersection = go\n\t\t\t\t\t\t\t.findClosestRayIntersection(ray);\n\t\t\t\t\tif (intersection == null) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (closestIntersection == null\n\t\t\t\t\t\t\t|| closestIntersection.getDistance() > intersection\n\t\t\t\t\t\t\t\t\t.getDistance() + 0.1) {\n\t\t\t\t\t\tclosestIntersection = intersection;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// NO OBJECTS VISIBLE IN THIS DIRECTION\n\t\t\t\tif (closestIntersection == null) {\n\t\t\t\t\trgb[0] = 0;\n\t\t\t\t\trgb[1] = 0;\n\t\t\t\t\trgb[2] = 0;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// AMBIENT COMPONENT OF THE COLOR\n\t\t\t\trgb[0] = 15;\n\t\t\t\trgb[1] = 15;\n\t\t\t\trgb[2] = 15;\n\n\t\t\t\t// FIND OUT IF ANY LIGHT SOURCE ILLUMINATES THIS INTERSECTION\n\t\t\t\tfor (LightSource ls : lightSources) {\n\t\t\t\t\tRay lightRay = Ray.fromPoints(ls.getPoint(),\n\t\t\t\t\t\t\tclosestIntersection.getPoint());\n\n\t\t\t\t\tRayIntersection closestLightIntersection = null;\n\n\t\t\t\t\tfor (GraphicalObject go : graphicalObjects) {\n\t\t\t\t\t\tRayIntersection intersection = go\n\t\t\t\t\t\t\t\t.findClosestRayIntersection(lightRay);\n\t\t\t\t\t\tif (intersection == null) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (closestLightIntersection == null\n\t\t\t\t\t\t\t\t|| closestLightIntersection.getDistance() > intersection\n\t\t\t\t\t\t\t\t\t\t.getDistance() + 0.1) {\n\t\t\t\t\t\t\tclosestLightIntersection = intersection;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tdouble distance = (ls.getPoint().sub(closestIntersection\n\t\t\t\t\t\t\t.getPoint())).norm();\n\n\t\t\t\t\t// IF THIS LIGHT GETS TO THIS INTERSECTION, COLOR IT\n\t\t\t\t\tif (closestLightIntersection != null\n\t\t\t\t\t\t\t&& Math.abs(closestLightIntersection.getDistance()\n\t\t\t\t\t\t\t\t\t- distance) < 0.001) {\n\n\t\t\t\t\t\t// normal vector of intersection\n\t\t\t\t\t\tPoint3D normalVector = closestIntersection.getNormal();\n\t\t\t\t\t\t// vector from intersection to light source\n\t\t\t\t\t\tPoint3D l = lightRay.direction.negate();\n\n\t\t\t\t\t\t// vector of reflected ray\n\t\t\t\t\t\tPoint3D reflected = normalVector\n\t\t\t\t\t\t\t\t.scalarMultiply(\n\t\t\t\t\t\t\t\t\t\t2 * normalVector.scalarProduct(l))\n\t\t\t\t\t\t\t\t.sub(l).normalize();\n\n\t\t\t\t\t\t// vector from intersection to eye\n\t\t\t\t\t\tPoint3D v = ray.start.sub(\n\t\t\t\t\t\t\t\tclosestIntersection.getPoint()).normalize();\n\n\t\t\t\t\t\t// DIFUSE COMPONENT\n\t\t\t\t\t\trgb[0] += ls.getR() * closestLightIntersection.getKdr()\n\t\t\t\t\t\t\t\t* Math.max(0, normalVector.scalarProduct(l));\n\t\t\t\t\t\trgb[1] += ls.getG() * closestLightIntersection.getKdg()\n\t\t\t\t\t\t\t\t* Math.max(0, normalVector.scalarProduct(l));\n\t\t\t\t\t\trgb[2] += ls.getB() * closestLightIntersection.getKdb()\n\t\t\t\t\t\t\t\t* Math.max(0, normalVector.scalarProduct(l));\n\n\t\t\t\t\t\t// REFLECTED COMPONENT\n\t\t\t\t\t\trgb[0] += ls.getR()\n\t\t\t\t\t\t\t\t* closestLightIntersection.getKrr()\n\t\t\t\t\t\t\t\t* Math.pow(\n\t\t\t\t\t\t\t\t\t\tMath.max(0, reflected.scalarProduct(v)),\n\t\t\t\t\t\t\t\t\t\tclosestLightIntersection.getKrn());\n\t\t\t\t\t\trgb[1] += ls.getG()\n\t\t\t\t\t\t\t\t* closestLightIntersection.getKrg()\n\t\t\t\t\t\t\t\t* Math.pow(\n\t\t\t\t\t\t\t\t\t\tMath.max(0, reflected.scalarProduct(v)),\n\t\t\t\t\t\t\t\t\t\tclosestLightIntersection.getKrn());\n\t\t\t\t\t\trgb[2] += ls.getB()\n\t\t\t\t\t\t\t\t* closestLightIntersection.getKrb()\n\t\t\t\t\t\t\t\t* Math.pow(\n\t\t\t\t\t\t\t\t\t\tMath.max(0, reflected.scalarProduct(v)),\n\t\t\t\t\t\t\t\t\t\tclosestLightIntersection.getKrn());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "59bf4f44c7aea1f05d0403e66484080d", "score": "0.5885332", "text": "public void handleLightSwitch(MouseEvent event) {\r\n \tCircle node = (Circle) event.getSource();\r\n \tString eventType = event.getEventType().getName();\r\n \tswitch(eventType) {\r\n \t\tcase \"MOUSE_ENTERED\":\r\n \t\t\tnode.setFill(Color.YELLOW);\r\n \t\t\tbreak;\r\n \t\tcase \"MOUSE_EXITED\":\r\n \t\t\tnode.setFill(Color.BLACK);\r\n \t\t\tbreak;\r\n \t}\r\n }", "title": "" }, { "docid": "5cafecfcc856eda37d928e8318ed7d6f", "score": "0.58788455", "text": "@Override\n\tpublic void speed() {\n\t\tSystem.out.println(\"light\");\n\t}", "title": "" }, { "docid": "f97019505aa2bf035b7cf13923506679", "score": "0.5865043", "text": "private void nightLight() {\n Vector3f direction = new Vector3f(0.5348667f, -0.6787754f, -0.50317144f).normalizeLocal();\n dl = new DirectionalLight();\n dl.setDirection(direction);\n ColorRGBA nightColor = new ColorRGBA(.04f, .04f, .2f, 1);\n dl.setColor(nightColor);\n rootNode.addLight(dl);\n }", "title": "" }, { "docid": "d71c0feefde939cd9341e5ec60e350d2", "score": "0.5849276", "text": "public void turnLightOff();", "title": "" }, { "docid": "be117f4d5d5621b7fe8903bb69247be7", "score": "0.5827335", "text": "void lightSeeker(Sprite other){\n if(lightSeeker == true){\n //Here the character is transported on top of the enemy and does an animation\n if(System.currentTimeMillis() - lightSeekerTimer < 2000){\n charSora.setImage(lightSeekerImage);\n charSora.moveTo(other.getX()+other.getWidth()/2 - 87, other.getY()+other.getHeight()/2 - 78);\n starExplosion.moveTo(other.getX()+other.getWidth()/2 - 315, other.getY()+other.getHeight()/2 - 180);\n starExplosion.setVisible(true);\n resetBounds();\n }else{\n //When light seeker ends\n lightSeeker = false;\n //The animation stops\n charSora.setImage(downRightStill);\n starExplosion.setVisible(false);\n resetBounds();\n //The damage is dealt. This boolean is turned off after damage is dealt in the main program\n lightSeekerHit = true;\n }\n }\n }", "title": "" }, { "docid": "cf729483403b3deb1f1d3e1cc648aa67", "score": "0.5826293", "text": "@Override\n\tpublic void changeToRed() {\n\t\tResults.storeNewResult(\"Tarffic light at Westside is Red\");\n\t\tstreetLightsContext.setState(streetLightsContext.getStateWestRed());\n\t}", "title": "" }, { "docid": "5af3a61a38a3d5dd53b38925308b5881", "score": "0.58242935", "text": "public void land()\n \t{\n \t\tspeed = 0;\n \t\tlanded = true;\n \t\tcomponent.addLanded();\n \t}", "title": "" }, { "docid": "7cec418f6a2cb60d9692f1d82d789ac3", "score": "0.5824072", "text": "public Light(Vector direction){\n\t\tthis.direction = direction;\n\t}", "title": "" }, { "docid": "586c4ce2ab90a62db223017799fcbf28", "score": "0.5817706", "text": "public Green(TrafficLight trafficLight){\r\n this.trafficLight = trafficLight;\r\n }", "title": "" }, { "docid": "8172d77375d3624f1c475fac09030336", "score": "0.5816366", "text": "public void reflect(GameObject object) {\n\t\t\n\t\t/** Check if object collides with player */\n\t\tif (object.intersects(this.shape)) {\n\t\t\t\n\t\t\t/** Collection of lines that form the object */\n\t\t\tArrayList<Line> shapeLines = new ArrayList<Line>();\n\t\t\t\n\t\t\t/** Making lines of the shape */\n\t\t\tfloat[] linePoints = object.getHitbox().getPoints();\n\t\t\t\n\t\t\tfor (int i = 0; i < linePoints.length; i += 2) {\n\t\t\t\tif (i + 3 > linePoints.length) {\n\t\t\t\t\tshapeLines.add(new Line(linePoints[i], linePoints[i + 1], linePoints[0], linePoints[1]));\n\t\t\t\t} else {\n\t\t\t\t\tshapeLines.add(new Line(linePoints[i], linePoints[i + 1], linePoints[i + 2], linePoints[ i + 3]));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/** Check colliding with line */\n\t\t\tfor (int i = 0; i < shapeLines.size(); i++) {\n\t\t\t\t\n\t\t\t\t/** Gets line from ArrayList */\n\t\t\t\tLine collidingLine = shapeLines.get(i);\n\t\t\t\t\n\t\t\t\t/** Checks if player collides with line */\n\t\t\t\tif (this.hitbox.intersects(collidingLine)) {\n\t\t\t\t\t\n\t\t\t\t\t/** Vector k1 for calculating reflection */\n\t\t\t\t\tVector2f k1 = new Vector2f(collidingLine.getDX(), collidingLine.getDY());\n\t\t\t\t\t\n\t\t\t\t\t/** Vector k1 normal */\n\t\t\t\t\tVector2f normalk1 = k1.getNormal().getPerpendicular();\n\t\t\t\t\t\n\t\t\t\t\t/** scalar product */\n\t\t\t\t\tfloat scalar = this.directionVector.dot(normalk1);\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Check if scalar is negative or positive, if its positive negate normal k1\n\t\t\t\t\t */\n\t\t\t\t\tif (scalar > 0) {\n\t\t\t\t\t\tnormalk1 = normalk1.negate();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/** Negate direction vector */\n\t\t\t\t\tthis.directionVector = this.directionVector.negate();\n\t\t\t\t\t\n\t\t\t\t\t/** Project direction vector onto normalk1 */\n\t\t\t\t\tVector2f p1 = new Vector2f();\n\t\t\t\t\tthis.directionVector.projectOntoUnit(normalk1, p1);\n\t\t\t\t\t\n\t\t\t\t\t/** Calculate vector from v1 to p1 */\n\t\t\t\t\tVector2f vToP = p1.sub(this.directionVector);\n\t\t\t\t\t\n\t\t\t\t\t/** Calculate r1 reflected v1 */\n\t\t\t\t\tthis.directionVector = this.directionVector.add(vToP.scale(2));\n\t\t\t\t\t\n\t\t\t\t\t/** Save last Position */\n\t\t\t\t\tthis.lastPosition.set(this.position);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bdb823e17c6d57e01c0de047a73deadb", "score": "0.57977587", "text": "public void setLightMode() {\n mStartingViewColor = getResources().getColor(R.color.car_title_light);\n mEndingViewColor = getResources().getColor(R.color.car_tint);\n updateViewFaders();\n }", "title": "" }, { "docid": "5fb64e56218f386ccb9acb0c99b0b6eb", "score": "0.5778054", "text": "public Light getLight()\n {\n\t return (Light) this.getSource();\n }", "title": "" }, { "docid": "1bb3e529fb1a4ff16e148c01fea29f61", "score": "0.5772788", "text": "public void onProcessFrame(int elapsedtime)\r\n\t{\n\t\tthis.mRenderer.pointToScreen(mLightSourcePosition.get(0), mLightSourcePosition.get(1), mLightSourcePosition.get(2),lightpos);\r\n\t\tif ((lightpos[0] >= 0f)&&(lightpos[1] >= 0f)&&(lightpos[0] <= this.mRenderer.getScreenWidth())&&(lightpos[1] <= this.mRenderer.getScreenHeight()))\r\n\t\t//if (mRenderer.pointInFrustum(100.f, 0.f, 100.f))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tthis.hasObject = true;\r\n\t\t\tthis.mScreenCenter.set(this.mRenderer.getScreenWidth()*0.5f, this.mRenderer.getScreenHeight()*0.5f);\r\n\t\t\t\r\n//\t\t\tthis.mRenderer.pointToScreen(100.f+mCamera.getPosition()[0], 0.f, 100.f+mCamera.getPosition()[2],lightpos);\r\n\t\t\tthis.mRenderer.pointToScreen(mLightSourcePosition.get(0), mLightSourcePosition.get(1), mLightSourcePosition.get(2),lightpos);\r\n\t\t\t//this.mLightPosition.set(600, 150);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.mLightPosition.set(lightpos[0], lightpos[1]);\r\n\t\t\tthis.mToFlare.set(this.mLightPosition.getX(), this.mLightPosition.getY());\r\n\t\t\tthis.mToFlare.sub(this.mScreenCenter);\r\n\t\t\tfloat length = this.mToFlare.length();\r\n\t\t\tthis.mToFlare.mul(1.f/length);\r\n\t\t\tfor (int i = 0; i < this.mObject.mMesh.length;i++)\r\n\t\t\t{\r\n\t\t\t\tmVector.set(this.mToFlare.getX(), this.mToFlare.getY());\r\n\r\n\t\t\t\tmVector.mul(length * flareCoefList[i]);\r\n\t\t\t\tmVector.add(this.mScreenCenter);\r\n\t\t\t\t\r\n\t\t\t\tthis.mObject.mMesh[i].mMeshPosition[0] = mVector.getX();\r\n\t\t\t\tthis.mObject.mMesh[i].mMeshPosition[1] = mVector.getY();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//Log.d(\"LENS FLARE\",\"NOT IN FRUSTUM !\");\r\n\t\t\tthis.hasObject = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9c8136c5ea3b49a1115ec29838616e0e", "score": "0.57511497", "text": "public void setLightStatus(boolean status){\n\t\tmyTrain.setLights(status);\n\t\n\t}", "title": "" }, { "docid": "ac31e587e7390ea2cc1c6c80a3f34015", "score": "0.5746568", "text": "public static void setLight1(GL2 gl) {\n\t\tfloat[] amb = {0.0f,0.0f,0.0f,1.0f};\n float[] diff = {1.0f,1.0f,1.0f,1.0f};\n gl.glLightfv(GL2.GL_LIGHT1, GL2.GL_AMBIENT, amb,0);\n gl.glLightfv(GL2.GL_LIGHT1, GL2.GL_DIFFUSE, diff,0);\n gl.glLightf(GL2.GL_LIGHT1, GL2.GL_SPOT_CUTOFF, 60); \n \tgl.glLightf(GL2.GL_LIGHT1, GL2.GL_SPOT_EXPONENT, 2);\n\t}", "title": "" }, { "docid": "7d8e187bc8a54be560564e3891e039c9", "score": "0.5730537", "text": "private void createConeOfLight() {\n\t\tBoundingBox box1 = stringObject.getboundingbox();\r\n\t\t\r\n\t\tlaserObject = new VectorObject();\r\n\t\t\r\n\t\t//Just to the bounding box for now\r\n\t\tlaserObject.addLine(box1.minx, box1.miny, box1.maxx, box1.miny, 1);\r\n\t\tlaserObject.addLine(box1.maxx, box1.miny, box1.maxx, box1.maxy, 1);\r\n\t\tlaserObject.addLine(box1.maxx, box1.maxy, box1.minx, box1.maxy, 1);\r\n\t\tlaserObject.addLine(box1.minx, box1.maxy, box1.minx, box1.miny, 1);\r\n\t\tlaserObject.setColor(1.0f, 0.0f, 0.0f, 1.0f);\r\n\r\n\t\t//Should we chaneg this to update when ever it changes\r\n\t\tlaserObject.finish();\r\n\t\t//create cone\r\n\t}", "title": "" }, { "docid": "949552d04fcfe9cfc057e66f73239372", "score": "0.5716813", "text": "public void turnOnFlashLight() {\n\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n flashLight.getCameraManager().setTorchMode(flashLight.getCameraId(), true);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "df1a82b51a165782e4293a6ff85e9853", "score": "0.56943434", "text": "void hitWallSide() { }", "title": "" }, { "docid": "23b9b72d951f214966d835b2a79e8a24", "score": "0.5694278", "text": "public void followLine(){\n robot.lineSensor.enableLed(true);\r\n telemetry.addData(\"Light Level\", robot.lineSensor.getLightDetected());\r\n telemetry.update();\r\n double lastLight = robot.lineSensor.getLightDetected();\r\n double currentLight = robot.lineSensor.getLightDetected();\r\n //while still following line\r\n //ensure WALL_THRESHOLD is accurate\r\n while(robot.wallSensor.getLightDetected() < WAll_THRESHOLD && opModeIsActive() && notAboutToCollide()) {\r\n if(currentLight < lastLight && currentLight < LINE_LIGHT){\r\n robot.leftMotor.setPower(LINE_FOLLOW_SPEED);\r\n robot.rightMotor.setPower(LINE_FOLLOW_SPEED * currentLight/LINE_LIGHT);\r\n }\r\n else if(currentLight > lastLight && currentLight > LINE_LIGHT){\r\n robot.rightMotor.setPower(LINE_FOLLOW_SPEED);\r\n robot.leftMotor.setPower(LINE_FOLLOW_SPEED * LINE_LIGHT/currentLight);\r\n }\r\n else{\r\n robot.rightMotor.setPower(LINE_FOLLOW_SPEED);\r\n robot.leftMotor.setPower(LINE_FOLLOW_SPEED);\r\n }\r\n lastLight = currentLight;\r\n currentLight = robot.lineSensor.getLightDetected();\r\n\r\n }\r\n }", "title": "" }, { "docid": "3bd2172510763ee6bedcbdb10c6d3740", "score": "0.5689753", "text": "private void createPointLight() {\n pl = new PointLight();\n pl.setRadius(30);\n pl.setColor(ColorRGBA.Yellow);\n }", "title": "" }, { "docid": "56f7646a58cd694935c0968825a3267a", "score": "0.565794", "text": "@Override\n protected boolean isValidLightLevel()\n {\n return true;\n }", "title": "" }, { "docid": "8a7b2dcca3dd480a9240a5766ce77b5e", "score": "0.5637394", "text": "public abstract void onFlightEffect(World world, Location location, Vector vector);", "title": "" }, { "docid": "8908a5d186ee5f71644d3356ba634cce", "score": "0.5636281", "text": "private boolean lightning (CommandSender sender, String[] args) {\n if(args.length == 0) return false;\n \n Player target = plugin.getServer().getPlayer(args[0]);\n if (target != null) {\n target.getWorld().strikeLightning(target.getLocation());\n plugin.send(sender, \"Du hast \" + target.getDisplayName() + \" einen Blitzschlag verpasst\");\n } else \n plugin.send(sender, \"Es ist kein Spieler mit dem Namen \" + args[0] + \" online\");\n return true;\n }", "title": "" }, { "docid": "947decd0a33adc07a735c5a167e24d86", "score": "0.56349707", "text": "public void touchedGround();", "title": "" }, { "docid": "393450d592229fc1e32313c7e22cacfc", "score": "0.56343424", "text": "@Override\r\n public boolean canPass(final Terrain theTerrain, final Light theLight) {\n boolean pass = false;\r\n final int value = 3;\r\n// \r\n if (theTerrain == Terrain.STREET || theTerrain == Terrain.CROSSWALK \r\n || theTerrain == Terrain.LIGHT) {\r\n \r\n if (theTerrain == Terrain.LIGHT\r\n && (theLight == Light.RED)) {\r\n pass = false;\r\n } else if (theTerrain == Terrain.CROSSWALK \r\n && theLight == Light.RED) {\r\n myCount++;\r\n if (myCount == value || theLight == Light.GREEN) {\r\n pass = true;\r\n myCount = 0;\r\n } else {\r\n pass = false;\r\n }\r\n \r\n } else { \r\n pass = true;\r\n }\r\n }\r\n return pass;\r\n }", "title": "" }, { "docid": "2eb42094b50e23340b24a4f84b6de37b", "score": "0.5634312", "text": "public void makeGlow() {\n\t\tint r = color >>> 16;\n\t\tint g = (color >>> 8) & 255;\n\t\tint b = color & 255;\n\t\tr /= 4;\n\t\tg /= 4;\n\t\tb /= 4;\n\t\tint light = (r << 16) | (g << 8) | b;\n\t\tsetLight(light);\n\t}", "title": "" }, { "docid": "a72bb5798d5e5fdef46b1614a271dc01", "score": "0.5632495", "text": "public void setLightFor(EnumSkyBlock p_177431_1_, BlockPos pos, int value) {}", "title": "" }, { "docid": "a5841dbf432c607a090ae772c916557c", "score": "0.56306446", "text": "@Override\n\tpublic void walk() {\n\t\tSystem.out.println(\"4 leg thumps the ground\");\n\t}", "title": "" }, { "docid": "c0910713742acff4b123e5b72725ab9a", "score": "0.5626661", "text": "public void render(Camera camera, List<Light> lights){\n\t\t\n\t\tList<Vector3f> position = new ArrayList<Vector3f>();\n\t\tList<Vector3f> color = new ArrayList<Vector3f>();\n\t\tList<Vector3f> att = new ArrayList<Vector3f>();\n\t\tfor(Light light:lights){\n\t\t\tposition.add(light.position);\n\t\t\tcolor.add(light.color);\n\t\t\tatt.add(light.attenuation);\n\t\t}\n\t\t//entities\n\t\tpointEntShader.start();\n\t\t\n\t\tpointEntShader.setUniform(Camera.projection, \"proj\");\n\t\tpointEntShader.setUniform(camera.getViewMatrix(), \"view\");\n\t\tpointEntShader.setUniform(position,8,new Vector3f(0,0,0), \"lightPos\");\n\t\tpointEntShader.setUniform(color,8,new Vector3f(0,0,0), \"lightColor\");\n\t\tpointEntShader.setUniform(att,8,new Vector3f(1,0,0), \"attenuation\");\n\t\tpointEntShader.stop();\n\n\t\tif((mode & WATER_BIT)==WATER_BIT) {\n\n\t\t\tGL11.glEnable(GL30.GL_CLIP_DISTANCE0);\n\n\t\t\treflectFbo.bindMe();\n\n\t\t\tfloat d;\n\t\t\tif (!loader.getWaters().isEmpty()) {\n\t\t\t\tWater w = loader.getWaters().get(0);\n\t\t\t\tclipPlane = new Vector4f(0, 1, 0, -w.position.y + 0.1f);\n\t\t\t\td = 2 * (camera.position.y - w.position.y);\n\t\t\t} else {\n\t\t\t\tclipPlane = new Vector4f(0, 1, 0, 100000f);\n\t\t\t\td = 0;\n\n\t\t\t}\n\t\t\tcamera.position.y -= d;\n\t\t\tcamera.rotation.x = -camera.rotation.x;\n\t\t\tcamera.rotation.z = -camera.rotation.z;\n\n\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\n\t\t\tpointEntShader.start();\n\t\t\tpointEntShader.setUniform(camera.getViewMatrix(), \"view\");\n\t\t\tpointEntShader.stop();\n\n\t\t\tif ((mode & ENT_BIT) == ENT_BIT) {\n\t\t\t\trenderPointEntities(false);\n\t\t\t}\n\t\t\tif ((mode & ENV_BIT) == ENV_BIT) {\n\t\t\t\trenderPolyEntities(camera, position, color, att, false);\n\t\t\t}\n\t\t\tif ((mode & PART_BIT) == PART_BIT) {\n\t\t\t\trenderParticles(camera, false);\n\t\t\t}\n\n\t\t\tcamera.position.y += d;\n\t\t\tcamera.rotation.x = -camera.rotation.x;\n\t\t\tcamera.rotation.z = -camera.rotation.z;\n\t\t\tpointEntShader.start();\n\t\t\tpointEntShader.setUniform(camera.getViewMatrix(), \"view\");\n\t\t\tpointEntShader.stop();\n\n\t\t\tFbo.unbindCurrentFrameBuffer();\n\n\t\t\trefractFbo.bindMe();\n\n\t\t\tif (!loader.getWaters().isEmpty()) {\n\t\t\t\tclipPlane = new Vector4f(0, -1, 0, loader.getWaters().get(0).position.y + 0.1f);\n\t\t\t} else {\n\t\t\t\tclipPlane = new Vector4f(0, 1, 0, 100000f);\n\t\t\t}\n\n\t\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\n\t\t\tif ((mode & ENT_BIT) == ENT_BIT) {\n\t\t\t\trenderPointEntities(false);\n\t\t\t}\n\t\t\tif ((mode & ENV_BIT) == ENV_BIT) {\n\t\t\t\trenderPolyEntities(camera, position, color, att, false);\n\t\t\t}\n\n\t\t\tFbo.unbindCurrentFrameBuffer();\n\n\t\t\tGL11.glDisable(GL30.GL_CLIP_DISTANCE0);\n\t\t}\n\t\tmsFbo.bindMe();\n\t\t\n\t\tclipPlane = new Vector4f(0,-1,0,100000f);\n\t\t\n\t\tGL11.glEnable(GL11.GL_DEPTH_TEST);\n\t\tGL11.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT|GL11.GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\tif((mode & ENT_BIT)==ENT_BIT){ renderPointEntities(true); }\n\t\tif((mode & ENV_BIT)==ENV_BIT){renderPolyEntities(camera, position,color,att,true);}\n\t\tif((mode & PART_BIT)==PART_BIT) {renderParticles(camera,true); }\n\t\tif((mode & WATER_BIT)==WATER_BIT) {renderWater(camera,lights.get(0),true); }\n\t\t\n\t\trenderToScreen(camera);\n\t\t\n\t\tif((mode & GUI_BIT)==GUI_BIT) {renderGUIs(); }\n\t\tif((mode & TEXT_BIT)==TEXT_BIT) {renderFonts(); }\n\t\t\n\t\tloader.clearLists();\n\n\t}", "title": "" }, { "docid": "d90df944a9cbc6ef829a594f1384c4b6", "score": "0.56121594", "text": "private void turnOutdoorLamps(boolean on) {\n }", "title": "" }, { "docid": "58a9538b65fcf4f5b2e0a76194801b85", "score": "0.56118864", "text": "@Override\n\tpublic void changeToGreen() {\n\t\tResults.storeNewResult(\"Tarffic light at Westside turned Green\");\n\t\tif(streetLightsContext.carWest>=2)\n\t\t{\n\t\t\tstreetLightsContext.carWest-=2;\n\t\t\tResults.storeNewResult(\"2 cars left from West side\");\n\t\t}\n\t\telse if(streetLightsContext.carWest== 1)\n\t\t{\n\t\t\tstreetLightsContext.carWest--;\n\t\t\tResults.storeNewResult(\"1 car left from Westside\");\n\t\t}\n\t\tif(streetLightsContext.carWest<=0)\n\t\t{\n\t\t\tResults.storeNewResult(\"No car left at Westside\");\n\t\t}\n\t\tstreetLightsContext.setState(streetLightsContext.getStateWestRed());\n\t}", "title": "" }, { "docid": "f0b79aa0dfd65123c675f31fa0caf6bb", "score": "0.5610983", "text": "@Override\n\tprotected void bindLights(Renderable renderable, Attributes attributes) {\n\t\tDirectionalLightsAttribute dla = attributes.get(DirectionalLightsAttribute.class, DirectionalLightsAttribute.Type);\n\t\tif(dla != null){\n\t\t\tfor(DirectionalLight light : dla.lights){\n\t\t\t\tif(light instanceof DirectionalLightEx){\n\t\t\t\t\t((DirectionalLightEx) light).updateColor();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tsuper.bindLights(renderable, attributes);\n\t\t\t\n\t\t// XXX\n\t\tColorAttribute ambiantLight = attributes.get(ColorAttribute.class, ColorAttribute.AmbientLight);\n\t\tif(ambiantLight != null){\n\t\t\tprogram.setUniformf(u_ambientLight, ambiantLight.color.r, ambiantLight.color.g, ambiantLight.color.b);\n\t\t}\n\t\t\n\t\tCascadeShadowMapAttribute csmAttrib = attributes.get(CascadeShadowMapAttribute.class, CascadeShadowMapAttribute.Type);\n\t\tif(csmAttrib != null && u_csmSamplers >= 0){\n\t\t\tArray<DirectionalShadowLight> lights = csmAttrib.cascadeShadowMap.lights;\n\t\t\tfor(int i=0 ; i<lights.size ; i++){\n\t\t\t\tDirectionalShadowLight light = lights.get(i);\n\t\t\t\tfloat mapSize = light.getDepthMap().texture.getWidth();\n\t\t\t\tfloat pcf = 1.f / (2 * mapSize);\n\t\t\t\tfloat clip = 3.f / (2 * mapSize);\n\t\t\t\t\n\t\t\t\tint unit = context.textureBinder.bind(light.getDepthMap());\n\t\t\t\tprogram.setUniformi(u_csmSamplers + i, unit);\n\t\t\t\tprogram.setUniformMatrix(u_csmTransforms + i, light.getProjViewTrans());\n\t\t\t\tprogram.setUniformf(u_csmPCFClip + i, pcf, clip);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "301ab04c5d8de6576ed8c57e4cc553ec", "score": "0.56106615", "text": "@Override\r\n public void SwitchStateToYellow() {\r\n System.out.println(\"Green State switching with yellow\");\r\n trafficLight_class.setState(trafficLight_class.getYellowLight());\r\n trafficLight_class.setTimeOut(timeout_x);\r\n }", "title": "" }, { "docid": "b0cdab7b55a89e6d6f0e1a0b568c1bf6", "score": "0.55928344", "text": "public void gotoGround(){\r\n\t\tif (Enums.IS_FINAL_ROBOT)\r\n\t\t\t_liftMotor.set(_liftDirection * 0.9);//.9\r\n\t\telse\r\n\t\t\t_liftMotor.set(_liftDirection * 1.1);//.9\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7b54b07ca175e362f537899e8e72c975", "score": "0.55902636", "text": "public void enable(){\n\t\tfloat x = (float) -this.direction.getIHat(); //must invert the vector\n\t\tfloat y = (float) -this.direction.getJHat();\n\t\tfloat z = (float) -this.direction.getKHat();\n\t\tfor(int program : Shaders.SHADER_PROGRAMS){\n\t\t\tGL20.glUseProgram(program);\n\t\t\tint uniformLocation = GL20.glGetUniformLocation(program, \"lightDirection\");\n\t\t\tGL20.glUniform3f(uniformLocation, x, y, z);\n\t\t}\n\t}", "title": "" }, { "docid": "227f0aa5cb94b21b6ed4732c18c84658", "score": "0.55889213", "text": "public static void main(String[] args) {\n\t\tRoom hall = new Room(\"Hall\");\r\n\t\thall.area = 200.0;\r\n\t\thall.paintColor =\"Violet\";\r\n\t\thall.flooring =\"Marble\";\r\n\t\thall.ceilingFan = new Fan(\"Bajaj\");\r\n\t\thall.ceilingFan.speed =5;\r\n\t\thall.tableFan =new Fan(\"Bajaj\");\r\n\t\thall.tableFan.speed =10;\r\n\t\thall.tube = new Light(\"Hall tube light\", \"White\", 40, true);\r\n\t\t//hall.tube.color =\"White\";\r\n\t\t//hall.tube.watts =40;\r\n\t\t//hall.tube.tube =true;\r\n\t\tLight b1 = new Light(\"Yellow bed light\", \"Yellow\", 50, false); // LINE D\r\n\t\thall.bedLight = b1;\r\n\t /*hall.tube = b1;\r\n\t hall.tube.color = \"Yellow\";\r\n\t hall.tube.watts = 50;\r\n\t hall.tube.tube = false;*/\r\n\t \r\n\t System.out.println(\"Light Name : \" + hall.bedLight.name+ \"Light color :\"+hall.bedLight.color+\"Light watts: \" +hall.bedLight.watts+\"Light Tube :\"+hall.bedLight.tube );\r\n\t //System.out.println(\"Bed Light color : \" + hall.bedLight.color); \r\n\r\n\t}", "title": "" }, { "docid": "4345b57684e00dad1118aabf1e8f5764", "score": "0.5588819", "text": "public boolean getLightStatus(){\n\t\treturn myTrain.getLights();\n\t\n\t}", "title": "" }, { "docid": "0794663da6ecbda80017d03fd5bfb29c", "score": "0.5568072", "text": "void setLightSideParticipant(PhysicalCard card);", "title": "" }, { "docid": "d89accbb173322987b033244ba6fff60", "score": "0.5563433", "text": "@Override\n\tpublic boolean takeControl() {\n\t\t// Take control if leftLight < dark and rightLight > dark\n\t\treturn leftLight.readValue() < dark && rightLight.readValue() > dark;\n\t}", "title": "" }, { "docid": "762f3d06ef9f320b35c0aff22b3fa697", "score": "0.5558684", "text": "public boolean isLightingEnabled()\n {\n return useLighting;\n }", "title": "" }, { "docid": "a801bda99b7f15f6d70ef003855120a6", "score": "0.5553982", "text": "public void objectCollide()\n {\n speedXTravel *= -1;\n speedYTravel *= -1;\n }", "title": "" }, { "docid": "1ce06070351b2d30394dfaa51de7010c", "score": "0.5547682", "text": "protected boolean isValidLightLevel()\n {\n return true;\n }", "title": "" }, { "docid": "1ce06070351b2d30394dfaa51de7010c", "score": "0.5547682", "text": "protected boolean isValidLightLevel()\n {\n return true;\n }", "title": "" }, { "docid": "9ccbd1debdba2806f92be76dcd326a95", "score": "0.553819", "text": "public void johnnyBoy(){\n if (HAL.limelight.area() > 2 || hasTargets() == false){\n // HAL.hood.moveto(0);\n }\n\n else if ( HAL.limelight.area() < 1.5 && 1<HAL.limelight.area()){\n // HAL.hood.moveto(1738);\n }\n \n else{\n // HAL.hood.moveto(3765);\n }\n }", "title": "" }, { "docid": "14c839ba5cf50992ac9e62ab2e28507d", "score": "0.55381256", "text": "void pixelTraced(World world, int x, int y, Vector3 color);", "title": "" }, { "docid": "3da8f815d48afad70a5ab54d83adc44d", "score": "0.5529917", "text": "@Test\n public void testOutsideLightsOpposeToIndoorWhenTheyShouldBeOn() {\n LocalDateTime sixAM = LocalDateTime.of(2020, 04, 30, 6, 0, 0);\n\n Home home = new Home(new FixedTimeService(sixAM));\n Light indoor = new Light(LightLocations.INDOOR);\n Light outdoor = new Light(LightLocations.OUTDOOR);\n\n // When:\n home.addLight(indoor);\n home.addLight(outdoor);\n home.update();\n\n Light indoorLight = home.getLights().stream().filter((l) -> l.location() == LightLocations.INDOOR ).findFirst().get();\n Light outdoorLight = home.getLights().stream().filter((l) -> l.location() == LightLocations.OUTDOOR ).findFirst().get();\n\n // Then:\n Assert.assertEquals(2,home.getLights().size());\n Assert.assertNotSame( indoorLight, outdoorLight);\n\n Assert.assertFalse( indoorLight.isOn() );\n Assert.assertTrue( outdoorLight.isOn() );\n\n }", "title": "" }, { "docid": "5f14d8642a034956c4766c0c7f729960", "score": "0.55293274", "text": "@Override\r\n\tpublic void flyAsRocket() {\n\t\t\r\n\t}", "title": "" }, { "docid": "000eef52dc633f4808ba9e9cdc015019", "score": "0.55091727", "text": "public boolean usesLightning() {\r\n ItemStack it = getHeldItem();\r\n return it != null && it.getType() == SentinelTarget.MATERIAL_NETHER_STAR;\r\n }", "title": "" }, { "docid": "bfa102e325c9961c0bc0d04c54d406d0", "score": "0.55051744", "text": "private LightSensor() {\r\n \t\tsensor = new lejos.nxt.LightSensor(SensorPort.S2);\r\n \t}", "title": "" }, { "docid": "548bf31efcc95022f01b1e5752358446", "score": "0.55041236", "text": "public interface ILight {\n\n public void on();\n public void off();\n\n\n void initGL();\n\n void initLightComponents();\n\n void setLight_ambient(float[] light_ambient);\n\n void setLight_diffuse(float[] light_diffuse);\n\n void setLight_position(float[] parameter);\n\n void setLight_specular(float[] parameter);\n\n void setMat_ambient(float[] parameter);\n\n void setMat_diffuse(float[] parameter);\n\n void setMat_specular(float[] parameter);\n\n void setHigh_shininess(FloatBuffer high_shininess);\n\n void setExponent(float exponent);\n\n float getCutoff();\n\n float getExponent();\n\n void setCutoff(float cutoff);\n\n void setSpotDir(float[] parameter);\n\n float getAtenuation();\n\n void setAtenuation(float atenuation);\n\n void setEmission(float[] parameter);\n\n void disableEmission();\n}", "title": "" }, { "docid": "489f210e18ee0c77c868868d4060728b", "score": "0.54907495", "text": "private static void reflection(LightSource ls, Ray ray, short[] color, RayIntersection i) {\n\t\tPoint3D normal = i.getNormal();\n\t\tPoint3D light = ls.getPoint().sub(i.getPoint()).normalize();\n\n\t\tPoint3D r = normal.normalize().scalarMultiply(2 * light.scalarProduct(normal) / normal.norm()).sub(light)\n\t\t\t\t.normalize();\n\t\tPoint3D v = ray.start.sub(i.getPoint()).normalize();\n\n\t\tdouble vec = r.scalarProduct(v);\n\t\tdouble angle2 = Math.pow(vec, i.getKrn()) > 0 ? Math.pow(vec, i.getKrn()) : 0;\n\n\t\tif (vec >= 0) {\n\t\t\tcolor[0] += (short) (ls.getR() * i.getKrr() * angle2);\n\t\t\tcolor[1] += (short) (ls.getG() * i.getKrg() * angle2);\n\t\t\tcolor[2] += (short) (ls.getB() * i.getKrb() * angle2);\n\t\t}\n\t}", "title": "" }, { "docid": "3445151391435a6c5ec891abcca692fc", "score": "0.5488125", "text": "protected void renderObjects() {\n\t\tTouchedCell[] localTouchedCells = tracer.touchedCells;\n\t\tint[][] localPassableMap = state.passableMap;\n\t\tint[][] localTexMap = state.texMap;\n\t\tint[][] localDrawedAutoWalls = state.drawedAutoWalls;\n\n\t\tfor (int i = 0, len = tracer.touchedCellsCount; i < len; i++) {\n\t\t\tTouchedCell tc = localTouchedCells[i];\n\t\t\tint pass = localPassableMap[tc.y][tc.x];\n\t\t\tint tex = localTexMap[tc.y][tc.x];\n\n\t\t\tif ((pass & Level.PASSABLE_MASK_OBJ_OR_DECOR) != 0) {\n\t\t\t\tfloat mx = (float)tc.x + 0.5f;\n\t\t\t\tfloat my = (float)tc.y + 0.5f;\n\n\t\t\t\tfloat fromX = mx + flatObjDy;\n\t\t\t\tfloat toX = mx - flatObjDy;\n\t\t\t\tfloat fromY = my - flatObjDx;\n\t\t\t\tfloat toY = my + flatObjDx;\n\n\t\t\t\trenderer.x1 = fromX; renderer.y1 = -fromY;\n\t\t\t\trenderer.x2 = fromX; renderer.y2 = -fromY;\n\t\t\t\trenderer.x3 = toX; renderer.y3 = -toY;\n\t\t\t\trenderer.x4 = toX; renderer.y4 = -toY;\n\n\t\t\t\tsetObjLighting(mx, my);\n\n\t\t\t\tif ((pass & Level.PASSABLE_IS_OBJECT) != 0) {\n\t\t\t\t\trenderer.drawQuad(state.objectsMap[tc.y][tc.x]);\n\t\t\t\t}\n\n\t\t\t\tif ((pass & Level.PASSABLE_MASK_DECORATION) != 0) {\n\t\t\t\t\trenderer.drawQuad(tex);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ((pass & Level.PASSABLE_IS_TRANSP_WINDOW) != 0) {\n\t\t\t\tfloat fromX, fromY, toX, toY;\n\t\t\t\tboolean vert = ((pass & Level.PASSABLE_IS_TRANSP_WINDOW_VERT) != 0);\n\n\t\t\t\tif (vert) {\n\t\t\t\t\tfromX = (float)tc.x + 0.5f;\n\t\t\t\t\ttoX = fromX;\n\t\t\t\t\tfromY = (float)tc.y;\n\t\t\t\t\ttoY = fromY + 1.0f;\n\t\t\t\t} else {\n\t\t\t\t\tfromX = (float)tc.x;\n\t\t\t\t\ttoX = fromX + 1.0f;\n\t\t\t\t\tfromY = (float)tc.y + 0.5f;\n\t\t\t\t\ttoY = fromY;\n\t\t\t\t}\n\n\t\t\t\tif (((localDrawedAutoWalls[tc.y][tc.x] & AUTO_WALL_MASK_DOOR) == 0) && state.autoWalls.canTake()) {\n\t\t\t\t\tlocalDrawedAutoWalls[tc.y][tc.x] |= AUTO_WALL_MASK_DOOR;\n\t\t\t\t\tAutoWall aw = state.autoWalls.take();\n\n\t\t\t\t\taw.fromX = fromX;\n\t\t\t\t\taw.fromY = fromY;\n\t\t\t\t\taw.toX = toX;\n\t\t\t\t\taw.toY = toY;\n\t\t\t\t\taw.vert = vert;\n\t\t\t\t\taw.type = AUTO_WALL_TYPE_TRANSP;\n\t\t\t\t\taw.doorUid = -1;\n\t\t\t\t\taw.door = null;\n\t\t\t\t}\n\n\t\t\t\trenderer.x1 = fromX; renderer.y1 = -fromY;\n\t\t\t\trenderer.x2 = fromX; renderer.y2 = -fromY;\n\t\t\t\trenderer.x3 = toX; renderer.y3 = -toY;\n\t\t\t\trenderer.x4 = toX; renderer.y4 = -toY;\n\n\t\t\t\tsetWallLighting(fromX, fromY, toX, toY, vert);\n\t\t\t\trenderer.drawQuad(tex);\n\t\t\t} else if (\n\t\t\t\t((pass & Level.PASSABLE_IS_TRANSP) != 0) &&\n\t\t\t\t((pass & Level.PASSABLE_IS_NOTRANS) == 0) &&\n\t\t\t\t(tex != 0)\n\t\t\t) {\n\t\t\t\tfor (int s = 0; s < 4; s++) {\n\t\t\t\t\tif ((\n\t\t\t\t\t\tlocalPassableMap[tc.y + PortalTracer.Y_CELL_ADD[s]][tc.x + PortalTracer.X_CELL_ADD[s]] &\n\t\t\t\t\t\tLevel.PASSABLE_MASK_WALL_N_TRANSP\n\t\t\t\t\t) == 0) {\n\t\t\t\t\t\tint fromX = tc.x + PortalTracer.X_ADD[s];\n\t\t\t\t\t\tint fromY = tc.y + PortalTracer.Y_ADD[s];\n\t\t\t\t\t\tint toX = tc.x + PortalTracer.X_ADD[(s + 1) % 4];\n\t\t\t\t\t\tint toY = tc.y + PortalTracer.Y_ADD[(s + 1) % 4];\n\n\t\t\t\t\t\trenderer.x1 = (float)fromX; renderer.y1 = -(float)fromY;\n\t\t\t\t\t\trenderer.x2 = (float)fromX; renderer.y2 = -(float)fromY;\n\t\t\t\t\t\trenderer.x3 = (float)toX; renderer.y3 = -(float)toY;\n\t\t\t\t\t\trenderer.x4 = (float)toX; renderer.y4 = -(float)toY;\n\n\t\t\t\t\t\tint mx = (fromX < toX ? fromX : toX);\n\t\t\t\t\t\tint my = (fromY < toY ? fromY : toY);\n\t\t\t\t\t\tint autoWallMask = ((s == 1 || s == 3) ? AUTO_WALL_MASK_VERTICAL : AUTO_WALL_MASK_HORIZONTAL);\n\n\t\t\t\t\t\tif (((localDrawedAutoWalls[my][mx] & autoWallMask) == 0) && state.autoWalls.canTake()) {\n\t\t\t\t\t\t\tlocalDrawedAutoWalls[my][mx] |= autoWallMask;\n\t\t\t\t\t\t\tappendAutoWall(fromX, fromY, toX, toY, AUTO_WALL_TYPE_TRANSP);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsetWallLighting((float)fromX, (float)fromY, (float)toX, (float)toY, (s == 1 || s == 3));\n\n\t\t\t\t\t\tif (s == 0 || s == 3) {\n\t\t\t\t\t\t\trenderer.drawQuadFlipLR(tex);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trenderer.drawQuad(tex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "23aebde2518cda5f876f47ac38f15e7a", "score": "0.5484185", "text": "public static void renderLighting(Affine transform, int lightRadius) {//added in lighting fix\n\n GraphicsContext gc = overlay.getGraphicsContext2D();\n\n gc.clearRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);\n gc.setFill(Color.BLACK);\n gc.fillRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);\n\n ArrayList<Point2D> lights = getLightLocations();\n\n Affine old = new Affine(gc.getTransform());\n\n for (Point2D l : lights) {//creates a new radial gradient for every light source\n RadialGradient rg = new RadialGradient(0,\n .1,\n (l.getX() * 32) + 16,\n (l.getY() * 32) + 16,\n lightRadius / 2,\n false,\n CycleMethod.NO_CYCLE,\n new Stop(0, Color.rgb(255, 220, 180)),\n new Stop(1, Color.gray(0, 0)));//smoothens out the lighting\n\n gc.setTransform(transform);\n gc.setFill(rg);\n gc.fillOval(l.getX() * CELL_WIDTH - lightRadius / 2 + 16,\n l.getY() * CELL_WIDTH - lightRadius / 2 + 16, lightRadius, lightRadius);\n\n }\n gc.setTransform(old);\n }", "title": "" }, { "docid": "16278b4e685276cb44b155685f9b0085", "score": "0.54812247", "text": "public boolean gaslight(String target){\n boolean success = rng.nextInt(100) > levelModel.getTarget(target).getSuspicion();\n levelModel.getTarget(target).gaslight(success);\n player.gaslight(levelModel.getTarget(target));\n return success;\n }", "title": "" }, { "docid": "783d36318199470be9c49ac53104434c", "score": "0.5470864", "text": "public void setLightlevel(int lightlevel) {\n this.lightlevel = lightlevel;\n }", "title": "" }, { "docid": "b740e2c97baac7a43ae1a9a657a7ed57", "score": "0.54691464", "text": "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 43: */ {\r\n/* 44: 45 */ TileShapedLamp tsl = (TileShapedLamp)CoreLib.getTileEntity(iba, i, j, k, TileShapedLamp.class);\r\n/* 45: 47 */ if (tsl == null) {\r\n/* 46: 47 */ return;\r\n/* 47: */ }\r\n/* 48: 49 */ boolean lit = tsl.Powered != tsl.Inverted;\r\n/* 49: */ \r\n/* 50: 51 */ this.context.setDefaults();\r\n/* 51: 52 */ this.context.setPos(i, j, k);\r\n/* 52: 53 */ this.context.setOrientation(tsl.Rotation, 0);\r\n/* 53: 54 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 54: 56 */ switch (tsl.Style)\r\n/* 55: */ {\r\n/* 56: */ case 0: \r\n/* 57: 58 */ this.context.bindModelOffset(this.modelLamp1, 0.5D, 0.5D, 0.5D);\r\n/* 58: 59 */ break;\r\n/* 59: */ case 1: \r\n/* 60: 61 */ this.context.bindModelOffset(this.modelLamp2, 0.5D, 0.5D, 0.5D);\r\n/* 61: */ }\r\n/* 62: 65 */ if (MinecraftForgeClient.getRenderPass() != 1)\r\n/* 63: */ {\r\n/* 64: 66 */ int f = this.block.e(iba, i, j, k);\r\n/* 65: 67 */ this.context.bindTexture(\"/eloraam/lighting/lighting1.png\");\r\n/* 66: 68 */ this.context.setBrightness(f);\r\n/* 67: 69 */ this.context.renderModelGroup(0, 0);\r\n/* 68: 70 */ if (lit)\r\n/* 69: */ {\r\n/* 70: 71 */ this.context.setTintHex(this.lightColors[(tsl.Color & 0xF)]);\r\n/* 71: 72 */ this.context.setBrightness(15728880);\r\n/* 72: */ }\r\n/* 73: */ else\r\n/* 74: */ {\r\n/* 75: 74 */ this.context.setTintHex(this.lightColorsOff[(tsl.Color & 0xF)]);\r\n/* 76: */ }\r\n/* 77: 76 */ this.context.renderModelGroup(1, 0);\r\n/* 78: 77 */ this.context.unbindTexture();\r\n/* 79: 78 */ return;\r\n/* 80: */ }\r\n/* 81: 80 */ if (!lit) {\r\n/* 82: 80 */ return;\r\n/* 83: */ }\r\n/* 84: 82 */ RenderLib.bindTexture(\"/eloraam/lighting/lighting1.png\", 1);\r\n/* 85: */ \r\n/* 86: 84 */ int tc = this.lightColors[(tsl.Color & 0xF)];\r\n/* 87: 85 */ this.context.setTint((tc >> 16) / 255.0F, (tc >> 8 & 0xFF) / 255.0F, (tc & 0xFF) / 255.0F);\r\n/* 88: */ \r\n/* 89: 87 */ this.context.setAlpha(0.3F);\r\n/* 90: */ \r\n/* 91: 89 */ this.context.renderModelGroup(2, 0);\r\n/* 92: 90 */ RenderLib.unbindTexture();\r\n/* 93: */ }", "title": "" }, { "docid": "fedcb099dbb026a31b7573dfcc62f808", "score": "0.54590315", "text": "public void change(GeometricalObject object);", "title": "" }, { "docid": "08768758b40b7ffc40e5f8ed5ebeea22", "score": "0.5457787", "text": "protected void initLights()\n {\n lights = new LightBox(NUM_LIGHTS);\n lights.get(0).setDiffuseColor(0.8f, 0.8f, 0.8f);\n lights.get(1).setDiffuseColor(0.6f, 0.6f, 0.6f);\n lights.get(2).setDiffuseColor(0.6f, 0.6f, 0.6f);\n\n lights.get(0).setPosition(2.6777347f, 2.5676637f, 1.46893778f); // The (initial) position of the light\n lights.get(1).setPosition(-0.040819082f, 2.066795f, 2.1057882f); // The (initial) position of the light\n lights.get(2).setPosition(-1.7811359f, 2.6335182f, 1.9070864f); // The (initial) position of the light\n\n // lights.get(0).setLinearAttenuation(1.0f);\n for (int i = 0; i < NUM_LIGHTS; i++)\n {\n lights.get(i).setVisible(true);\n vjLight[i] = new VJoint(\"Light\" + i);\n vjLight[i].setTranslation(lights.get(i).getPosition());\n }\n lights.setControl(glNavControl);\n }", "title": "" }, { "docid": "0eb737eb040c84c478940cce503d9dd0", "score": "0.54538137", "text": "public static void enableLighting() {\n GlStateManager.enableLighting();\n //#else\n //$$ GL11.glEnable(GL11.GL_LIGHTING);\n //#endif\n //#endif\n }", "title": "" }, { "docid": "958222c1e676a0119977da6a15e6beb4", "score": "0.5446658", "text": "public static void setLight1Pos(GL2 gl, double x, double y, double z, double angle) {\n\t\tgl.glPushMatrix();\n\t\tgl.glTranslated(x, y, z);\n\t\tgl.glRotated(-angle,0,1,0);\n\t\tgl.glTranslated(0, 0.5, 0.5);\n\t\t//GLUT glut = new GLUT();\n\t\t//glut.glutSolidSphere(0.05, 8, 8);\n\t\tfloat[] light = {0.0f, 0.5f, 0.5f, 1.0f};\n float[] dir = {0.0f, -1.0f, 0.5f, 1.0f};\n gl.glLightfv(GL2.GL_LIGHT1, GL2.GL_POSITION, light, 0);\n \tgl.glLightfv(GL2.GL_LIGHT1, GL2.GL_SPOT_DIRECTION, dir,0); \n \tgl.glLightModeli(GL2.GL_LIGHT_MODEL_LOCAL_VIEWER, GL2.GL_TRUE); // Enable local viewpoint.\n gl.glPopMatrix();\n\t}", "title": "" }, { "docid": "ba055c1fa135601269b92eaab84cc39b", "score": "0.5443332", "text": "public Lightning(int x, int y) {\r\n\t\tsuper(x, y);\r\n\t\tinitLightning();\r\n\t}", "title": "" }, { "docid": "99330424a617475f8058a362ee1908e3", "score": "0.54318887", "text": "public void atWall()\n {\n Actor wall = getOneIntersectingObject(wallRect.class);\n if (wall != null)\n {\n speed = -speed;\n changeDirection();\n }\n }", "title": "" }, { "docid": "c9456b840c0c6893771aa7efe3e6d1a8", "score": "0.5429393", "text": "Light() {\n\t\tthis.power = \"N/A\";\n\t\tthis.intensity = -1;\n\t\tstatusPredicateMap.put(\"intensity\", \"has_intensity\");\n\t\tstatusPredicateMap.put(\"power\", \"has_power\");\n\t}", "title": "" }, { "docid": "fe513008d82a31e4947c3153431d0293", "score": "0.5427369", "text": "private void loop() {\n\t\tGL.createCapabilities();\n\t\t\n\t\tcursor3D = new Point3Df();\n\t\t\n\t\tcamera = new Camera((float)(Math.toRadians(70)), (float)WINDOW_WIDTH/WINDOW_HEIGHT, .4f, 100);\n\t //camera = new Camera(-250, 250, -250, 250, 0.1f, 100);\n\t\tcamera.setPos(new Point3Df(0,5,5));\n\t camera.getTransform().lookAt(new Point3Df(0,0.0f,0), new Vector3f(0,1,0));\n\t System.out.println(\"Camera Left = \" + camera.getLeft());\n\t System.out.println(\"Camera Right = \" + camera.getRight());\n\t \n\t // create a few bones to test\n\t rootBone = new Bone(new Point3Df(0,0,0), 2, 0, new Vector3f(0,1,0));\n\t rootBone.setName(\"root\");\n\t //rootBone.setAngleConstraint(0,180);\n\t Bone b1 = new Bone(rootBone, 3, 0, new Vector3f(0,1,0));\n\t b1.setName(\"bicep\");\n\t Bone b2 = new Bone(b1, 2, 0, new Vector3f(0,1,0));\n\t b2.setName(\"forearm\");\n\t System.out.println(\"End effector = \" + rootBone.getEndEffector());\n\t \n\t Bone rootPrism = new Bone(new Point3Df(0,0,0), 100, 0, new Vector3f(0,0,1));\n\t \n\t Mesh boneMesh = new Mesh(\"Bone.obj\");\n\t rootBone.setMesh(boneMesh);\n\t \n//\t Mesh testPrism = new Mesh(\"testPyramid.obj\");\n//\t rootBone.setMesh(testPrism);\n\t \n\t JointSystem RobotArm = new JointSystem(rootBone);\n\t \n\t glViewport (0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n\t\t// Set the clear color\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\t\n\t\tglColorMaterial ( GL_FRONT, GL_AMBIENT_AND_DIFFUSE ) ;\n\t\tfloat mat_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n\t\t//float mat_shininess[] = { 50.0f };\n\t\tfloat light_position[] = { 10.0f, 10.0f, 10.0f, 0.0f };\n\t\t\n\t\tglMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);\n\t\t//glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);\n\t\tglLightfv(GL_LIGHT0, GL_POSITION, light_position);\n\t\t\n\t\tglEnable(GL_LIGHTING);\n\t glEnable(GL_LIGHT0);\n\t glEnable(GL_DEPTH_TEST);\n\n\t\t// Run the rendering loop until the user has attempted to close\n\t\t// the window or has pressed the ESCAPE key.\n\t\twhile ( !glfwWindowShouldClose(window) ) {\n\t\t\t\n\t\t\tVector2f centerPosition = new Vector2f(WINDOW_WIDTH/2, WINDOW_HEIGHT/2);\n\t\t\t\n\t\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // clear the framebuffer\n\t\t\t\n\t\t\t// set the color of the quad (R,G,B,A)\n\t\t\tglShadeModel(GL_SMOOTH);\n\t //GL11.glColor3f(0.5f,0.5f,1.0f);\n\t\t\t\n\t\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\t\tGL11.glLoadMatrixf(camera.getProjection().getOpenGlMatrix());\n\t\t \n\t \n\t\t\tGL20.glMatrixMode(GL20.GL_MODELVIEW);\n\t GL11.glLoadMatrixf(camera.getViewMatrix().getOpenGlMatrix());\n\t \n\t drawGrid(10, 10, 10);\n\t \n\t // draw xyz-axis\n\t glLineWidth(3);\n\t GL11.glColor3f(1.0f, 0, 0);\n\t GL11.glBegin(GL_LINES);\n\t GL11.glVertex3f(0, 0, 0);\n\t GL11.glVertex3f(5, 0, 0);\n\t GL11.glEnd();\n\t GL11.glColor3f(0, 1.0f, 0);\n\t GL11.glBegin(GL_LINES);\n\t GL11.glVertex3f(0, 0, 0);\n\t GL11.glVertex3f(0, 5, 0);\n\t GL11.glEnd();\n\t GL11.glColor3f(0, 0, 1.0f);\n\t GL11.glBegin(GL_LINES);\n\t GL11.glVertex3f(0, 0, 0);\n\t GL11.glVertex3f(0, 0, 5);\n\t GL11.glEnd();\n\t glLineWidth(5);\n\t \n\t glDisable(GL_LIGHTING);\n\t glColor3f(0f, 1.0f, 0f);\n\t glPointSize(5);\n\t GL11.glBegin(GL_POINTS);\n\t \t\tGL11.glVertex3f(cursor3D.getX(), cursor3D.getY(), cursor3D.getZ());\n\t GL11.glEnd();\n\t glLineWidth(1);\n\t \n\t glColor3f(1.0f, 0f, 0f);\n\t glPointSize(5);\n\t GL11.glBegin(GL_POINTS);\n\t \t\tGL11.glVertex3f(end_effector_goal.getX(), end_effector_goal.getY(), end_effector_goal.getZ());\n\t GL11.glEnd();\n\t glLineWidth(1);\n\t \n\t glEnable(GL_LIGHTING);\n\t RobotArm.setDesiredEndEffectorPos(end_effector_goal);\n\t if(runSimulation)\n\t \tRobotArm.moveToTarget();\n\t RobotArm.draw(0.01, camera);\n\t //testPrism.draw(camera);\n\t \n\t\t\tglfwSwapBuffers(window); // swap the color buffers\n\n\t\t\t// Poll for window events. The key callback above will only be\n\t\t\t// invoked during this call.\n\t\t\tglfwPollEvents();\n\n\t\t}\n\t}", "title": "" }, { "docid": "da660b8f816d83c3a982bc411ea10889", "score": "0.5423777", "text": "public interface Lightable {\r\n\r\n /** \r\n\t *\tWhen implemented by the cell, this method will be called to set visibility when running the FOV algorithm. \r\n */ \r\n\t \r\n public void setVisible(boolean visible);\r\n\t\r\n\t/**\r\n\t *\tWhen implemented by the cell, this method should return its visibility status.\r\n\t *\t@return true, if the cell is visible, false otherwise.\r\n\t */\r\n\t \r\n\tpublic boolean isVisible();\r\n\r\n}", "title": "" }, { "docid": "d295dd5f4829f5faefb610a5c9858cef", "score": "0.54203844", "text": "public void addLight(Light light) {\r\n\t\tif(mLightHandle != null) {\r\n\t\t\tmLightHandle.invalidate();\r\n\t\t}\r\n\r\n\t\tmLightHandle = new LightHandle(this, light);\r\n\t}", "title": "" }, { "docid": "dd9d070cb72a582382c01a4a0fee866f", "score": "0.5419646", "text": "@Override\n\tpublic void doRender(LaserProjectile laser, double x, double y, double z, float entityYaw, float partialTicks) {\n\t\t double distance = laser.distance;//source.distanceTo(target);\n\t\t int maxTicks = laser.maxTicks;\n\t\t \n\t\t float prog = ((float)laser.ticksExisted)/((float)maxTicks);\n\t\t double width = laserWidth * (Math.sin(Math.sqrt(prog)*Math.PI))*2;\n\t\t \n\t\t \n\t\t double distance_start = Math.min(1.0d, distance);\n\t\t \n\t\t //distance = distance - distance_start;\n\t\t \n\t\t double u = (distance / laserWidth) * 2.0D;\n\t\t \n\t\t \t \n \t this.bindEntityTexture(laser); \n GlStateManager.pushMatrix();\n \t //TGRenderHelper.enableFXLighting();\n \t TGRenderHelper.enableBlendMode(RenderType.ADDITIVE);\n // TGRenderHelper.enableRescaleNormal();\n \t GlStateManager.enableRescaleNormal();\n // TGRenderHelper.disableCulling();\n \t GlStateManager.disableCull();\n //TGRenderHelper.disableDepthTest();\n //TGRenderHelper.disableDepthMask();\n GlStateManager.depthMask(false);\n \n //GlStateManager.disableCull();\n //GlStateManager.depthMask(false);\n \t \n GlStateManager.translate(x, y, z);\n GlStateManager.rotate(laser.laserYaw-90F, 0.0F, 1.0F, 0.0F); \n GlStateManager.rotate(laser.laserPitch, 0.0F, 0.0F, 1.0F);\n \n Tessellator tessellator = Tessellator.getInstance();\n BufferBuilder bufferbuilder = tessellator.getBuffer();\n float f10 = 0.0125F;\n \n \n distance*=80.0D;\n distance_start*=80.0D;\n \n float rot_x = 45f+(prog*180f);\n \n GlStateManager.rotate(rot_x+90f , 1.0F, 0.0F, 0.0F);\n GlStateManager.scale(f10, f10, f10);\n\n float brightness = (float) Math.sin(Math.sqrt(prog)*Math.PI);\n \t\t\n if (distance > distance_start) { //Beam Segment\n\t GlStateManager.pushMatrix();\n\t for (int i = 0; i < 2; ++i)\n\t {\n\t GlStateManager.rotate(90.0F, 1.0F, 0.0F, 0.0F);\n\t GlStateManager.glNormal3f(0.0F, 0.0F, f10); //????\n\t \n\t bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);\n\t \n\t bufferbuilder.pos(distance, -width, 0.0D).tex(u+prog, 0).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n\t bufferbuilder.pos(distance_start, -width, 0.0D).tex(prog, 0).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n\t bufferbuilder.pos(distance_start, width, 0.0D).tex( prog, 1).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n\t bufferbuilder.pos(distance, width, 0.0D).tex(u+prog, 1).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n\t tessellator.draw();\n\t }\n\t GlStateManager.popMatrix();\n }\n GlStateManager.pushMatrix();\n renderManager.renderEngine.bindTexture(textureStart);\n for (int i = 0; i < 2; ++i) //Beam start segment\n {\n GlStateManager.rotate(90.0F, 1.0F, 0.0F, 0.0F);\n GlStateManager.glNormal3f(0.0F, 0.0F, f10); //????\n \n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);\n \n bufferbuilder.pos(distance_start, -width, 0.0D).tex(1, 0).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n bufferbuilder.pos(0, -width, 0.0D).tex(0, 0).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n bufferbuilder.pos(0, width, 0.0D).tex(0, 1).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n bufferbuilder.pos(distance_start, width, 0.0D).tex( 1, 1).color(1.0f, 1.0f, 1.0f, brightness).endVertex();\n tessellator.draw();\n }\n GlStateManager.popMatrix();\n\n GlStateManager.depthMask(true);\n //GlStateManager.enableCull();\n // TGRenderHelper.undoDisableDepthMask();\n //TGRenderHelper.undoDisableDepthTest();\n // GlStateManager.depthMask(true);\n // TGRenderHelper.undoDisableCulling();\n // TGRenderHelper.undoEnableRescaleNormal();\n GlStateManager.enableCull();\n GlStateManager.disableRescaleNormal();\t \n TGRenderHelper.disableBlendMode(RenderType.ADDITIVE);\n //TGRenderHelper.disableFXLighting(); //pops a matrix\n GlStateManager.popMatrix();\n\t}", "title": "" }, { "docid": "c41860119bd66633128bea78af89c468", "score": "0.5417611", "text": "private void afternoonLight() {\n Vector3f direction = new Vector3f(0.5348667f, -0.6787754f, -0.50317144f).normalizeLocal();\n dl = new DirectionalLight();\n dl.setDirection(direction);\n ColorRGBA nightColor = new ColorRGBA(.06f, .06f, .2f, 1);\n dl.setColor(new ColorRGBA(1f, 1f, 1f, 1.0f).multLocal(0.6f));\n rootNode.addLight(dl);\n }", "title": "" }, { "docid": "f9acbc84bd335ae539596b38bd51b113", "score": "0.5417356", "text": "public abstract void turnFreezerLightOn();", "title": "" }, { "docid": "686163fa90e104db706a505e0d4a0590", "score": "0.5412684", "text": "public void act() \n {\n move();\n killCrabs();\n if (atWorldEdge() == true) {\n \n }\n }", "title": "" }, { "docid": "bfc9af9d9242f7578c205f9656ea009a", "score": "0.5405985", "text": "public boolean hasTouchedGround();", "title": "" }, { "docid": "6758339a9066da396a803f9b3480753d", "score": "0.54041004", "text": "public void redON(){\n r = true;\n blueSolenoid.set(false);\n greenSolenoid.set(false);\n redSolenoid.set(true);\n }", "title": "" }, { "docid": "dfb3c5a17706b72f1035a3e46e8be29c", "score": "0.5399739", "text": "void changeHitStatus(boolean bool);", "title": "" } ]
014b56908c3f46d48f79694291b7cac1
This will shift down a square based on the given x value (column) and the current row to shift down onto.
[ { "docid": "684d624fd68bd87104754be11e380332", "score": "0.71744436", "text": "private void shiftSquare(int x, int current)\r\n\t{\r\n\t\tint above = current - 1;\r\n\t\tSquare belowSq = grid[current][x];\r\n\t\tSquare aboveSq = grid[above][x];\r\n\t\t\r\n\t\t// If both are null then return\r\n\t\tif (belowSq == null && aboveSq == null)\r\n\t\t\treturn;\r\n\t\t// If there was a below square but nothing\r\n\t\t// above it then the below square is nothing\r\n\t\telse if (belowSq != null && aboveSq == null)\r\n\t\t\tgrid[current][x] = null;\r\n\t\t// If there was a below and above square\r\n\t\t// set the below squares new type.\r\n\t\telse if (belowSq != null && aboveSq != null)\r\n\t\t\tgrid[current][x].setType(aboveSq);\r\n\t\t// If there was no below square but there\r\n\t\t// is an above square dropping.\r\n\t\telse\r\n\t\t{\r\n\t\t\tgrid[current][x] = grid[above][x];\r\n\t\t\tgrid[current][x].setY(current);\r\n\t\t\tgrid[above][x] = null;\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "1477227eba150d6b4fd53b6899e0180a", "score": "0.63861215", "text": "private void shiftCellsDownwards()\n\t{\n\t\t/*Iterates through each row on the board*/\n\t\tfor(int rowIter = tileBoard.length - 2; rowIter >= 0; rowIter--)\n\t\t{\n\t\t\t/*Iterates through each column on the board*/\n\t\t\tfor(int colIter = 0; colIter < tileBoard[0].length; colIter++)\n\t\t\t{\n\t\t\t\t//If the current position is not empty and has an empty spot\n\t\t\t\t//below it, then slide the tile down to correct position\n\t\t\t\tif(tileBoard[rowIter][colIter] != CollapsePiece.empty &&\n\t\t\t\t\t\ttileBoard[rowIter + 1][colIter] == CollapsePiece.empty)\n\t\t\t\t{\n\t\t\t\t\tint curSpot = rowIter + 1;\n\n\t\t\t\t\t/*Slides the tile down until it is above the tile or on the bottom*/\n\t\t\t\t\twhile(curSpot < tileBoard.length - 1 && tileBoard\n\t\t\t\t\t\t\t[curSpot + 1][colIter] == CollapsePiece.empty)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurSpot++;\n\t\t\t\t\t}\n\n\t\t\t\t\ttileBoard[curSpot][colIter] = tileBoard[rowIter][colIter];\n\t\t\t\t\ttileBoard[rowIter][colIter] = CollapsePiece.empty;\n\n\t\t\t\t\tcharacterBoard[curSpot][colIter] = characterBoard[rowIter][colIter];\n\t\t\t\t\tcharacterBoard[rowIter][colIter] = ' ';\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d1e2b0bfa35fc1c8765143da6ae8b8d7", "score": "0.6262092", "text": "private void shiftCellUp()\n\t{\n\t\tfor(int rowIter = tileBoard.length - 2; rowIter >= 0; rowIter--)\n\t\t{\n\t\t\t/*Iterates through each column on the board*/\n\t\t\tfor(int colIter = 0; colIter < tileBoard[0].length; colIter++)\n\t\t\t{\n\t\t\t\t//If the current position is not empty and has an empty spot\n\t\t\t\t//below it, then slide the tile down to correct position\n\t\t\t\tif(tileBoard[rowIter][colIter] != CollapsePiece.empty &&\n\t\t\t\t\t\ttileBoard[rowIter + 1][colIter] == CollapsePiece.empty)\n\t\t\t\t{\n\t\t\t\t\tint curSpot = rowIter - 1;\n\n\t\t\t\t\t/*Slides the tile down until it is above the tile or on the bottom*/\n\t\t\t\t\twhile(curSpot < tileBoard.length - 1 && tileBoard\n\t\t\t\t\t\t\t[curSpot + 1][colIter] == CollapsePiece.empty)\n\t\t\t\t\t{\n\t\t\t\t\t\tcurSpot--;\n\t\t\t\t\t}\n\n\t\t\t\t\ttileBoard[curSpot][colIter] = tileBoard[rowIter][colIter];\n\t\t\t\t\ttileBoard[rowIter][colIter] = CollapsePiece.empty;\n\n\t\t\t\t\tcharacterBoard[curSpot][colIter] = characterBoard[rowIter][colIter];\n\t\t\t\t\tcharacterBoard[rowIter][colIter] = ' ';\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ad6bb2fd5fda2a7df723c51536f82725", "score": "0.6120899", "text": "public void shiftRow(int row) {\r\n\t\tswitch (row) {\r\n\t\tcase 1:\r\n\t\t\treturn;\r\n\t\tcase 2:\r\n\t\t\treturn;\r\n\t\tcase 3:\r\n\t\t\treturn;\r\n\t\tcase 4:\r\n\t\t\treturn;\r\n\t\tcase 5:\r\n\t\t\treturn;\r\n\t\tcase 6:\r\n\t\t\treturn;\r\n\t\tcase 7:\r\n\t\t\treturn;\r\n\t\tcase 8:\r\n\t\t\treturn;\r\n\t\tcase 9:\r\n\t\t\treturn;\r\n\t\tcase 10:\r\n\t\t\treturn;\r\n\t\tcase 11:\r\n\t\t\treturn;\r\n\t\tcase 12:\r\n\t\t\treturn;\r\n\t\tdefault:\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "820d5dd74da675488abe1df748154a79", "score": "0.60521275", "text": "public java.util.ArrayList<GridPosition> shiftColumnDown(int col)\n\t{\t// temp array to hold col values\n\t\tJewel[] temp = new Jewel[grid.length];\n\t\tfor(int i = 0; i < grid.length; i++)\n\t\t{\t// fills temp array with given col\n\t\t\ttemp[i] = grid[i][col];\n\t\t}\n\t\t// arraylist to hold shifted elements from temp array\n\t\tArrayList<Integer> list = Util.shiftNonNullElements(temp);\n\t\tfor(int i = 0; i < grid.length; i++)\n\t\t{\t// fills grid with shifted temp array\n\t\t\tgrid[i][col] = temp[i];\n\t\t}\n\t\t// arraylist to hold new gridpositions\n\t\tArrayList<GridPosition> r = new ArrayList<GridPosition>();\n\t\tfor(int i = 0; i < list.size(); i++)\n\t\t{\t// holds indicies of list array\n\t\t\tint index = list.get(i);\n\t\t\t// creates new grid based off index\n\t\t\tGridPosition g = new GridPosition(index, col, grid[index][col]);\n\t\t\t// adds new gridpositions to arraylist r\n\t\t\tr.add(g);\n\t\t}\n\t\treturn r;\n\t}", "title": "" }, { "docid": "116fa50bf13e2a6d1724ef1e6c34f376", "score": "0.59112006", "text": "abstract public int makeMove(int lastCol);", "title": "" }, { "docid": "2c6fbb70a62d71329cf137a3745c6ce6", "score": "0.5905729", "text": "public void shiftCols(int row, int col)\n\t\t{\n\t\t\tif(deletedCol == true)\n\t\t\t{\n\t\t\t\tint clickedRow = row;\n\t\t\t\tint change = 1;\n\t\t\t\tif(row > 3)\n\t\t\t\t{\n\t\t\t\t\tfor(int i = row - 2; i >= 0; i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tString str = buttons[i][col].getText();\n\t\t\t\t\t\tbuttons[clickedRow + change][col].setText(str);\n\t\t\t\t\t\tbuttons[i][col].setText(genStr());\n\t\t\t\t\t\trandColBounds(row,col);\n\t\t\t\t\t\tchange--;\n\t\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\trandColBounds(row,col);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "3121fdae5e3992af2cc2f953af192266", "score": "0.5864364", "text": "private void shift(int ndx, int dir)\n\t{\n\t\t/*Determines if current column is empty*/\n\t\tif(columnIsEmpty(ndx))\n\t\t{\n\t\t\tint curCol = ndx + dir;\n\n\t\t\t/*Searches for closes non-empty row to center*/\n\t\t\twhile(curCol >= 0 && curCol < boardSize && columnIsEmpty(curCol))\n\t\t\t{\n\t\t\t\tcurCol = curCol + dir;\n\t\t\t}\n\n\t\t\t/*If there is a non-empty row, shift it*/ \n\t\t\tif(curCol >= 0 && curCol < boardSize)\n\t\t\t{\n\t\t\t\t/*Shifts the column and makes the old spot empty*/\n\t\t\t\tfor(int rowIter = 0; rowIter < tileBoard.length; rowIter++)\n\t\t\t\t{\n\t\t\t\t\ttileBoard[rowIter][ndx] = tileBoard[rowIter][curCol];\n\t\t\t\t\ttileBoard[rowIter][curCol] = CollapsePiece.empty;\n\n\t\t\t\t\tcharacterBoard[rowIter][ndx] = characterBoard[rowIter][curCol];\n\t\t\t\t\tcharacterBoard[rowIter][curCol] = ' ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fe12b6c3153453e58e1861de861168f3", "score": "0.58136874", "text": "protected void Shift(int x, int y){\r\n if(this.Background.x_coor == x && this.Background.y_coor == y){}\r\n else{\r\n //this.tileSet.clear();\r\n int oldx,oldy,newx,newy;\r\n oldx = this.Background.x_coor;\r\n oldy = this.Background.y_coor;\r\n this.Background.changeCoordinates(x, y);\r\n \r\n if(x%40==0){\r\n if(oldx > x)\r\n Game.hero.tileX++;\r\n else if(oldx < x)\r\n Game.hero.tileX--;\r\n }\r\n if(y%28 ==0){\r\n if(oldy > y)\r\n Game.hero.tileY++;\r\n else if(oldy < y)\r\n Game.hero.tileY--;\r\n }\r\n \r\n //Walls.changeCoordinates(x, y);\r\n try{\r\n for(int i = 0; i < this.drawList.size(); i++){\r\n newx = this.drawList.get(i).x_coor - oldx + x;\r\n newy = this.drawList.get(i).y_coor - oldy + y;\r\n this.drawList.get(i).changeCoordinates(newx, newy);\r\n //this.tileSet.block(newx, newy, \r\n // this.drawList.get(i).shadow.frameWidth, \r\n // this.drawList.get(i).shadow.frameHeight);\r\n }\r\n }catch(NullPointerException ex){}\r\n }\r\n }", "title": "" }, { "docid": "dfbb175da5f6ce96d5d1d4f3ebb5afaa", "score": "0.5757206", "text": "private Board moveDown() {\n int N = squares.length;\n int zeroRow = getZeroRow();\n if (zeroRow < N-1) {\n int zeroCol = getZeroCol();\n Board newBoard = new Board(squares);\n newBoard.exch(zeroRow, zeroCol, zeroRow + 1, zeroCol);\n //newBoard.zeroRow = this.zeroRow + 1;\n //newBoard.zeroCol = this.zeroCol;\n //newBoard.moveNum = this.moveNum + 1;\n return newBoard;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4e10f406f4faab7baf1bf52ff6ba2ac0", "score": "0.5731466", "text": "public void shiftUpperLeftBy(int deltaX, int deltaY){\n x += deltaX;\n y += deltaY;\n }", "title": "" }, { "docid": "7be51a1339e6ced064abbd71b83e23b1", "score": "0.5726272", "text": "int makeShiftRight(int x) {\n x = x >> 1;\n return x;\n }", "title": "" }, { "docid": "f648f3177dd666e2f319fd8474602127", "score": "0.57139665", "text": "public void moveQueen(int row, int col) {\n this.previousRow = super.row;\n this.previousCol = super.col;\n super.row = row;\n super.col = col;\n }", "title": "" }, { "docid": "f30962580745c88004df69544603cdf0", "score": "0.569917", "text": "@Override\n\tpublic void move(int toRow, int toCol) {\n\t\trow = toRow;\n\t\tcol = toCol;\n\t\t\n\t}", "title": "" }, { "docid": "44e4111a8ab25c8bef5bf74d83f06694", "score": "0.5676349", "text": "public int checkForShifting(int score, int x)\n {\n x += 2;\n if(x > R-2)\n x = R-2;\n int flag = 0;\n int temp = 1; \n for(int i = x; i > 0 ; i--)\n {\n if(colsOccupied[i] == C-2)\n {\n score += 2;\n temp = i;\n flag = 1;\n break;\n }\n }\n if(flag == 1)\n {\n for(int j = temp-1; j > 0; j--)\n {\n if(colsOccupied[j] == 0)\n break;\n if(colsOccupied[j] != C-2)\n {\n for(int k = 1; k < C-1; k++)\n mat[temp][k] = mat[j][k];\n colsOccupied[temp] = colsOccupied[j];\n temp--;\n }\n else\n {\n score += 2;\n }\n }\n for(int j = temp; j > 0; j--)\n {\n if(colsOccupied[j] > 0)\n {\n for(int k = 1; k < C-1; k++)\n mat[j][k] = ' ';\n colsOccupied[j] = 0;\n } \n }\n //System.out.println(\"Shifting Completed\");\n }\n return score;\n }", "title": "" }, { "docid": "2fe16c39a47fd35bf41d70793466f874", "score": "0.5669134", "text": "public void moveDown() {\n\n if (getRow() < grid.getRows()) {\n//getRow() !=\n getCell().translate(0, CELL_SIZE);\n setRow(getRow() + 1);\n\n }\n }", "title": "" }, { "docid": "13d206ba39195465aa9ab5ce82f2a6cc", "score": "0.5639127", "text": "public void moveUpperLeftTo(int newX, int newY){\n x = newX;\n y = newY;\n }", "title": "" }, { "docid": "be850b272b3b52648be2dd287061b76a", "score": "0.56237686", "text": "private int xyTo1D(int row, int col){\n return (row-1) * side + (col-1);\n }", "title": "" }, { "docid": "31aacd9df26e0315e55fbe6a1d753826", "score": "0.56089854", "text": "public void moveQueenAtCol(int col, int row) {\n\t\tcols[col] = row;\r\n\t}", "title": "" }, { "docid": "cc8dd47caa9f57558d3c7ecd85b69382", "score": "0.5558747", "text": "private void rook(int row, int col)\n\t\t{\n\t\t\t// horizontal moves to the right\n\t\t\tfor (int i=col+1; i<8; i++)\n\t\t\t{\n\t\t\t\tif (!checkmove(row, i)) break;\n\t\t\t}\n\t\t\t// horizontal moves to the left\n\t\t\tfor (int i=col-1; i>=0; i--)\n\t\t\t{\n\t\t\t\tif (!checkmove(row, i)) break;\n\t\t\t}\n\t\t\t// vertical moves up\n\t\t\tfor (int i=row-1; i>=0; i--)\n\t\t\t{\n\t\t\t\tif (!checkmove(i, col)) break;\n\t\t\t}\n\t\t\tfor (int i=row+1; i<8; i++)\n\t\t\t{\n\t\t\t\tif (!checkmove(i, col)) break;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7e66836a850b215bcd2536a102881630", "score": "0.55347586", "text": "public void moveDown(int y){\n\twhile(y>0){\n\t for(int x=0; x<10; x++){\n\t\tcoordTable[y][x] = coordTable[y-1][x];\n\t }\n\t y--;\n\t}\n }", "title": "" }, { "docid": "1f724b4f1a09abeef7de3a8f5594fc55", "score": "0.5525308", "text": "void shift(char direction) {\r\n\r\n if (direction == 'r' || direction == 'l') {\r\n // Need some way to go through rows or columns\r\n\r\n // I HATE DEBUGGING -> THE ISSUE WAS THE FOR LOOP THE ENTIRE TIME, it was counting up instead of down.\r\n for(int i = 0; i <= 0; i++) {\r\n boardIndexCheck = 3;\r\n\r\n if (boardIndexCheck >= 0) {\r\n // Issue is when boardIndexCheck is zero. Easiest thing to do is to add a conditional\r\n //if(boardIndexCheck != 0) {\r\n // Could add some tricks to make it so that I would only need one loop for both left and right.\r\n System.out.println(boardIndexCheck);\r\n BoardPoint pointOne = myBoard.getBoardPointFromIndex(i, boardIndexCheck);\r\n BoardPoint pointTwo = myBoard.getBoardPointFromIndex(i, boardIndexCheck - 1);\r\n int[] shiftCheckValue = ShiftCheck.shiftCheck(pointOne, pointTwo, direction);\r\n\r\n // Finally, the new value is set to what the shiftCheck method returns.\r\n pointOne.setValue(shiftCheckValue[0]);\r\n\r\n pointTwo.setValue(shiftCheckValue[1]);\r\n PrintBoard.printBoard(myBoard);\r\n\r\n //}\r\n /*\r\n else{\r\n if(myBoard.getBoardPointFromIndex(i, boardIndexCheck).value == 0){\r\n boardIndexCheck-=1;\r\n }\r\n\r\n }\r\n*/\r\n\r\n }\r\n }\r\n } else if (direction == 'd' || direction == 'u') {\r\n\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "bf402e21de2d32ce33fa6e9f25c91fe2", "score": "0.54639775", "text": "public void removeRow(int y) {\n if (y < 0 || y >= HEIGHT) {\n return;\n }\n for (int z = y; z > 0; z--) {\n for (int x = 0; x < WIDTH; x++) {\n this.board[z][x] = this.board[z - 1][x];\n }\n }\n for (int x = 0; x < WIDTH; x++) {\n this.board[0][x] = 0;\n }\n }", "title": "" }, { "docid": "3ca50833ff4888fd4347903d355445a7", "score": "0.5436707", "text": "private void pawn(int row, int col)\n\t\t{\n\t\t\tint direction = ('b'==color ? 1 : -1);\n\t\t\tif (!orientation) direction = direction * -1;\n\t\t\tboolean startrow = (direction==1 ? 1==row : 6==row);\n\t\t\t// if the board is flipped, we flip orientation\n\n\t\t\t// move forward one\n\t\t\tif (row+direction>=0 && row+direction<8 && board[row+direction][col].type==' ')\n\t\t\t{\n\t\t\t\taddmove(row+direction, col, 0);\n\t\t\t}\n\n\t\t\t// special case move by two from the start row\n\t\t\tif (startrow)\n\t\t\t{\n\t\t\t\t// legal move only if there if the space we're skipping is empty\n\t\t\t\t// and the destination square is empty\n\t\t\t\tif (board[row+direction][col].type==' ' && board[row+direction+direction][col].type==' ')\n\t\t\t\t{\n\t\t\t\t\taddmove(row+2*direction, col, 0);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check on taking pieces\n\t\t\tif (col<7 && board[row+direction][col+1].type!=' ' && this.color!=board[row+direction][col+1].color)\n\t\t\t{\n\t\t\t\t// take piece\n\t\t\t\taddmove(row+direction, col+1, 1);\n\t\t\t}\n\n\t\t\tif (col>0 && board[row+direction][col-1].type!=' ' && this.color!=board[row+direction][col-1].color)\n\t\t\t{\n\t\t\t\taddmove(row+direction, col-1, 1);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5d6149d0342a936037b6d4f5000f8c5e", "score": "0.5426299", "text": "public void shiftRows(int row, int col)\n\t\t{\n\t\t\tif(deletedRow == true)\n\t\t\t{\n\t\t\t\tint actualRow = row;\n\t\t\t\tfor(int i = row - 1; i >= 0 ; i--)\n\t\t\t\t{\n\t\t\t\t\tString str = buttons[i][col].getText();\n\t\t\t\t\tbuttons[actualRow][col].setText(str);\n\t\t\t\t\tString str2 = buttons[i][col + 1].getText();\n\t\t\t\t\tbuttons[actualRow][col + 1].setText(str2);\n\t\t\t\t\tString str3 = buttons[i][col - 1].getText();\n\t\t\t\t\tbuttons[actualRow][col - 1].setText(str3);\n\t\t\t\t\tactualRow--;\n\t\t\t\t\tif(i == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\trandRow(col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bbd86f33c69f32e81f3ef6e8fe4a5376", "score": "0.5410863", "text": "public int getColumn(int x_in)\n\t{\n\t\treturn (x_in - this.x)/square_size;\n\t}", "title": "" }, { "docid": "9d7321e16926b7910384c1996c5d569d", "score": "0.5405079", "text": "public int getMove(int square)\r\n {\r\n int x = square / 3;\r\n int y = 0;\r\n if (square <= 3)\r\n {\r\n x = square - 1;\r\n y = 0;\r\n }\r\n else if (square > 3 && square <= 6)\r\n {\r\n x = square - 4;\r\n y = 1;\r\n }\r\n else if (square > 6)\r\n {\r\n x = square - 7;\r\n y = 2;\r\n }\r\n return board[y][x];\r\n }", "title": "" }, { "docid": "c0557178870a054c31d0bf5ad3a3b807", "score": "0.5396954", "text": "@Override\r\n\t/** Move vacuum to a new row and column*/\r\n\tpublic void moveTo(int row, int column) {\n\t\tthis.row = row;\r\n\t\tthis.column = column;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d469683c9dcdcaafefef98d25e3b572b", "score": "0.53763294", "text": "public void shiftDown()\r\n\t{\n\t}", "title": "" }, { "docid": "ae5d634c4e5c41232b101753aabc2a67", "score": "0.5373978", "text": "public int moveUpRight()\n\t{\n\t\tint returnval = checkmove(x+1, y-1);\n\t\tif (returnval==0)\n\t\t{\n\t\t\tx++;\n\t\t\ty--;\n\t\t\tparentboard.move(x-1, y+1, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "db325304d208ace138bd999938f15d49", "score": "0.53410435", "text": "public void expand(Cell[][] cell, int row, int col) {\r\n\t\t//TODO works mostly, but there are a few corner cases that it is missing.\r\n\t\tthis.stack = new LinkedStack<Integer>();\r\n\t\tthis.x = row;\r\n\t\tthis.down = true;\r\n\t\tthis.right = true;\r\n\t\twhile(this.x!=-1) {\r\n\t\t\tthis.y = col;\r\n\t\t\twhile(this.y!=-1) {\r\n\t\t\t\tstack.push(this.x);\r\n\t\t\t\tstack.push(this.y);\r\n\t\t\t\tif(this.right) {\r\n\t\t\t\t\tif(this.y == this.gb_size-1) {\r\n\t\t\t\t\t\tthis.right = false;\r\n\t\t\t\t\t}else if(Character.compare(cell[x][y].getAdjCount(), this.zero)>0) {\r\n\t\t\t\t\t\tthis.right=false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\tif(this.y == 0) {\r\n\t\t\t\t\t\tthis.y=-2;\r\n\t\t\t\t\t\tthis.right = true;\r\n\t\t\t\t\t}else if(Character.compare(cell[x][y].getAdjCount(), this.zero)>0) {\r\n\t\t\t\t\t\tthis.right=true;\r\n\t\t\t\t\t\tthis.y=-2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(this.right) {\r\n\t\t\t\t\tthis.y++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tthis.y--;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.y=col;\r\n\t\t\tif(this.down) {\r\n\t\t\t\tif(this.x == this.gb_size-1) {\r\n\t\t\t\t\tthis.down = false;\r\n\t\t\t\t}else if(Character.compare(cell[x][y].getAdjCount(), this.zero)>0) {\r\n\t\t\t\t\tthis.down=false;\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\tif(this.x == 0) {\r\n\t\t\t\t\tthis.x=-2;\r\n\t\t\t\t\tthis.down = true;\r\n\t\t\t\t}else if(Character.compare(cell[x][y].getAdjCount(), this.zero)>0) {\r\n\t\t\t\t\tthis.down=true;\r\n\t\t\t\t\tthis.x=-2;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(this.down) {\r\n\t\t\t\tthis.x++;\r\n\t\t\t}else {\r\n\t\t\t\tthis.x--;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b9485267101194d560d4fea76b112b59", "score": "0.53388435", "text": "private void checkUpRight(int column, int row) {\n int oneUp;\n int right;\n boolean oppositeIsWhite;\n\n if (white) {\n oneUp = 1;\n right = 1;\n oppositeIsWhite = false;\n } else {\n oneUp = -1;\n right = -1;\n oppositeIsWhite = true;\n }\n\n if (column < 8 && white || column > 1 && !white) {\n Square aheadRight = board.getSquare(column + right, row + oneUp);\n\n if (aheadRight.isOccupied() && aheadRight.getOccupier().white == oppositeIsWhite) {\n legalNextSquares.add(aheadRight);\n }\n }\n }", "title": "" }, { "docid": "698bb868d488fb34d450527d1b10be14", "score": "0.5298533", "text": "public void moveToBoard(int block[][], int offx, int offy)\n {\n int x, y;\n for(int i = 0; i < 4; i++){\n x = block[i][0] + offx;\n y = block[i][1] + offy;\n mat[x][y] = '+';\n }\n }", "title": "" }, { "docid": "16718b1527ae59c02969cb47c528ea80", "score": "0.5277736", "text": "public static StarlarkInt shiftRight(StarlarkInt x, StarlarkInt y) throws EvalException {\n int yi = y.toInt(\"shift count\");\n if (yi < 0) {\n throw Starlark.errorf(\"negative shift count: %d\", yi);\n }\n try {\n long xl = x.toLongFast();\n if (yi >= Long.SIZE) {\n return xl < 0 ? StarlarkInt.of(-1) : ZERO;\n }\n return StarlarkInt.of(xl >> yi);\n } catch (Overflow unused) {\n /* fall through */\n }\n\n BigInteger xbig = x.toBigInteger();\n BigInteger zbig = xbig.shiftRight(yi);\n return StarlarkInt.of(zbig);\n }", "title": "" }, { "docid": "b7ee4a4377401ee8985712358bed29e0", "score": "0.5277343", "text": "private int getPositionByRowCol(int row, int col) {\n return (row - 1) * n + col + 1;\n }", "title": "" }, { "docid": "0d8392201e1ce7537785242d50d619ef", "score": "0.527437", "text": "public void shift(MazeField mf){\n if ((mf.row() == 1) && ((mf.col() > 0) && (mf.col() < size)) && (mf.col() % 2 == 0)){\n // Prvni radek [1, mf.col()]\n MazeField[] tmpfield = new MazeField[size + 1];\n for (int r = 1; r <= size; r++){\n tmpfield[r] = new MazeField(0,0);\n tmpfield[r].putCard(field[r][mf.col()].getCard());\n }\n field[1][mf.col()].putCard(freeCard);\n freeCard = tmpfield[size].getCard();\n for (int r = 1; r < size; r++){\n field[r + 1][mf.col()].putCard(tmpfield[r].getCard());\n }\n //System.out.println(\"Shifting done!\");\n }\n else if ((mf.row() == size) && ((mf.col() > 0) && (mf.col() < size)) && (mf.col() % 2 == 0)){\n // Posledni radek [size, mf.col()]\n MazeField[] tmpfield = new MazeField[size + 1];\n for (int r = size; r >= 1; r--){\n tmpfield[r] = new MazeField(0,0);\n tmpfield[r].putCard(field[r][mf.col()].getCard());\n }\n field[size][mf.col()].putCard(freeCard);\n freeCard = tmpfield[1].getCard();\n for (int r = size; r > 1; r--){\n field[r - 1][mf.col()].putCard(tmpfield[r].getCard());\n }\n //System.out.println(\"Shifting done!\");\n }\n else if ((mf.col() == 1) && ((mf.row() > 0) && (mf.row() < size)) && (mf.row() % 2 == 0)){\n // Prvni sloupec [mf.row(), 1]\n MazeField[] tmpfield = new MazeField[size + 1];\n for (int c = 1; c <= size; c++){\n tmpfield[c] = new MazeField(0,0);\n tmpfield[c].putCard(field[mf.row()][c].getCard());\n }\n field[mf.row()][1].putCard(freeCard);\n freeCard = tmpfield[size].getCard();\n for (int c = 1; c < size; c++){\n field[mf.row()][c + 1].putCard(tmpfield[c].getCard());\n }\n //System.out.println(\"Shifting done!\");\n }\n else if ((mf.col() == size) && ((mf.row() > 0) && (mf.row() < size)) && (mf.row() % 2 == 0)){\n // Posledni sloupec [mf.row(), size]\n MazeField[] tmpfield = new MazeField[size + 1];\n for (int c = size; c >= 1; c--){\n tmpfield[c] = new MazeField(0,0);\n tmpfield[c].putCard(field[mf.row()][c].getCard());\n }\n field[mf.row()][size].putCard(freeCard);\n freeCard = tmpfield[1].getCard();\n for (int c = size; c > 1; c--){\n field[mf.row()][c - 1].putCard(tmpfield[c].getCard());\n }\n //System.out.println(\"Shifting done!\");\n }\n }", "title": "" }, { "docid": "1622a961f2661f98bf6a089c9f0dc098", "score": "0.5271909", "text": "public static int getCurrSquare(int row, int col) {\r\n\r\n\t\tif((row >= 0 && row <= 2) && (col >= 0 && col <= 2)) { return 1; }\r\n\r\n\t\tif((row >= 0 && row <= 2) && (col >= 3 && col <= 5)) { return 2; }\r\n\r\n\t\tif((row >= 0 && row <= 2) && (col >= 6 && col <= 8)) { return 3; }\r\n\r\n\t\tif((row >= 3 && row <= 5) && (col >= 0 && col <= 2)) { return 4; }\r\n\r\n\t\tif((row >= 3 && row <= 5) && (col >= 3 && col <= 5)) { return 5; }\r\n\r\n\t\tif((row >= 3 && row <= 5) && (col >= 6 && col <= 8)) { return 6; }\r\n\r\n\t\tif((row >= 6 && row <= 8) && (col >= 0 && col <= 2)) { return 7; }\r\n\r\n\t\tif((row >= 6 && row <= 8) && (col >= 3 && col <= 5)) { return 8; }\r\n\r\n\t\tif((row >= 6 && row <= 8) && (col >= 6 && col <= 8)) { return 9; }\r\n\r\n\t\treturn 0; // Shouldn't happen but just in case\r\n\t}", "title": "" }, { "docid": "c8865af18a82f47c1116b13d11a902c5", "score": "0.5234713", "text": "private void shift() {\n\t\tif (i_dir == DIR_RIGHT) {\n\t\t\tshiftRight();\n\t\t\ti_beta = d_tree.nextPredicateId(i_beta);\n\t\t}\n\n\t\ti_dir *= -1;\n\t\ti_lambda = i_beta + i_dir;\n\t}", "title": "" }, { "docid": "f48c81443ab612fdc53ac748ad6904c6", "score": "0.5226549", "text": "public int moveDown()\n\t{\n\t\tint returnval = checkmove(x, y+1);\n\t\tif (returnval==0)\n\t\t{\n\t\t\ty++;\n\t\t\tparentboard.move(x, y-1, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "efbc6b683d5969717c43e6a62c7771b4", "score": "0.522065", "text": "public void flipPuzzleColumn2(){\n for(int r = 0; r < 3; r++){ //iterates through 3 columns\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each column\n int start = puzzle[r+9*c]; //determines start value\n int x = (r+9*c)+ 6; //adds 6 to start position to get the end position\n int y = r+9*c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "79819fb90abaea796dbe7f2f94a6bb42", "score": "0.5220099", "text": "private static byte[][] ShiftRowsReverse(byte[][] stateMatrix) {\n\t\tint matrixLength = stateMatrix.length;\n\t\tfor (int row = 0; row < matrixLength; row++) {\n\t\t\t//Will shift the row i times right\n\t\t\tfor (int i = 0; i < row; i++) {\n\t\t\t\tHelper.shiftRight(stateMatrix[row]);\n\t\t\t}\n\t\t}\n\t\treturn stateMatrix;\n\t}", "title": "" }, { "docid": "7deabc5268d36b70c73f0f9854ab8236", "score": "0.5205107", "text": "public void down() {\n tiles = rotate(90);\n left();\n tiles = rotate(270);\n }", "title": "" }, { "docid": "e045f05b5351032f642b84091776d235", "score": "0.5203019", "text": "private void moveRight(){\r\n\t\tthis.x+=FactoryGtris.SIZE_FIGURE;\r\n\t}", "title": "" }, { "docid": "07e78ef363f2183391ee5a2541e554e2", "score": "0.5184036", "text": "@Test\n void slideRightOffBoard() {\n Coordinate originalHead = new Coordinate(0,0);\n Coordinate originalTail = new Coordinate(0, 1);\n Fox slidingFox = new Fox(Pair.pair(originalHead, originalTail));\n Board board = new Board(1, 4);\n board = board.setItem(slidingFox);\n\n Coordinate expectedHead = new Coordinate(0, 2);\n Coordinate expectedTail = new Coordinate(0, 3);\n\n int moveSpaces = 2;\n try {\n Fox newFox = slidingFox.slide(board.getRowSlice(0), moveSpaces,\n Direction.RIGHT);\n assertEquals(expectedTail, newFox.getTail(), \"the tail should be at \" +\n \"the expected coordinate\");\n assertEquals(expectedHead, newFox.getHead(),\n \"The head should have moved here\");\n } catch (Exception e) {\n logger.debug(e);\n fail();\n }\n\n // Test that the old fox head did not change\n assertEquals(originalHead, slidingFox.getHead());\n\n //Test that the old fox tail did not change\n assertEquals(originalTail, slidingFox.getTail());\n }", "title": "" }, { "docid": "21b04c147731e631662c2c8becfb1a40", "score": "0.51792985", "text": "private static byte[][] ShiftRows(byte[][] stateMatrix) {\n\t\tint matrixLength = stateMatrix.length;\n\t\tfor (int row = 0; row < matrixLength; row++) {\n\t\t\t//Will shift the row i times left\n\t\t\tfor (int i = 0; i < row; i++) {\n\t\t\t\tHelper.shiftLeft(stateMatrix[row]);\n\t\t\t}\n\t\t}\n\t\treturn stateMatrix;\n\t}", "title": "" }, { "docid": "1e6d81d71aa9529446c55c4cb7041fef", "score": "0.51728815", "text": "private Token getSquare(int x, int y)\n\t{\n\t\treturn board[x - 1][y - 1];\n\t}", "title": "" }, { "docid": "d145b7e3b0b59fc0a82104553032d8f8", "score": "0.5169235", "text": "public int moveDownRight()\n\t{\n\t\tint returnval = checkmove(x+1, y+1);\n\t\tif (returnval==0)\n\t\t{\n\t\t\tx++;\n\t\t\ty++;\n\t\t\tparentboard.move(x-1, y-1, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "b378d3548c5ff3d626258b5655fa4ef7", "score": "0.51473165", "text": "public void retreat(int[] board) {\n\t\tcol--;\n\t\trow = board[col] + 1;\n\t}", "title": "" }, { "docid": "264b029d7f565043cd36bcaeb8348655", "score": "0.51469177", "text": "public int moveRight()\n\t{\n\t\tint returnval = checkmove(x+1, y);\n\t\tif (returnval==0)\n\t\t{\n\t\t\tx++;\n\t\t\tparentboard.move(x-1, y, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "bedee50faf58838b236b4cd42039df96", "score": "0.5138443", "text": "public static void drawReverseSquare(Graphics g, int x, int y, int length)\n {\n //Checks that it hasn't reached the left edge,and the square isn't too small\n if(x-length > 0 && length >= 4){\n g.fillRect(x, y, length, length);\n //Shrinks length before doing x position calculation\n length*=.75;\n //Using the smaller value for length,it calculates the new x position\n x-=(length+10);\n drawReverseSquare(g,x,y,length);\n }\n }", "title": "" }, { "docid": "687dd573725a35f02c94b7749a029909", "score": "0.51127523", "text": "public void rowReduceUp() // completed: helper method for \"rREF\"\r\n\t{\n\t\tdouble[][] output = this.matrixArray.clone();\r\n\t\tdouble scaleFactor;\r\n\t\tfor(int bottomRow = output[0].length - 1; bottomRow >= 0; bottomRow--)\r\n\t\t{\r\n\t\t\tfor(int leftColumn = 0; leftColumn < output.length; leftColumn++)\r\n\t\t\t{\r\n\t\t\t\tif(output[leftColumn][bottomRow] !=0) // if we found a pivot\r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int row = bottomRow - 1; row >= 0; row--) // row-replace up\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tscaleFactor = -1*output[leftColumn][row];\r\n\r\n\t\t\t\t\t\tfor(int col = 0; col < output.length; col++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutput[col][row] += scaleFactor*output[col][bottomRow];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\tleftColumn = output.length; // stop searching for pivot\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.matrixArray = output;\r\n\t}", "title": "" }, { "docid": "e2dc62450bc4c3824a91e27bed4f0ea0", "score": "0.5110658", "text": "public void moveDown(int cells){\r\n\t\tthis.row = this.row+cells;\r\n\t\t\r\n\t\t//bound check/reset\r\n\t\tif(row>7 && row%7!=0){\r\n\t\t\trow=(row%7)-1;\r\n\t\t}\r\n\t\telse if(row>7 && row%7==0){\r\n\t\t\trow=7;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2be9a4142cafd83138e322022fbf5f91", "score": "0.5105269", "text": "public void moveRight()\n {\n if(myX < 476)\n {\n myX += dX;\n }\n }", "title": "" }, { "docid": "8d55526725fb9da278dcb4e043ebc1a3", "score": "0.510131", "text": "private void move(){\n x -= 1.5;\n }", "title": "" }, { "docid": "7d06cb28bf62e02d4eb102fdbc72813e", "score": "0.50970477", "text": "private void shiftUp(int pos) {\n\t\t\n\t\tint parent =(int) Math.ceil((double)(pos-1)/2);\n\t\tif(parent<1)return;\n\t\tif(arr[parent] > arr[pos])\n\t\t{\n\t\t\tswap(parent , pos);\n\t\t\tshiftUp(parent);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "af28327e42ec533a30a1f5939bd3ac32", "score": "0.5094893", "text": "public void moveToCell(Cell aCell){\n this.moveTo(aCell.getX()*40+20, aCell.getY()*40+20); \n }", "title": "" }, { "docid": "f1ad40165bf2aa6ae570b9179db1a4e8", "score": "0.5094201", "text": "public int moveUpLeft()\n\t{\n\t\tint returnval = checkmove(x-1, y-1);\n\t\tif (returnval==0)\n\t\t{\n\t\t\tx--;\n\t\t\ty--;\n\t\t\tparentboard.move(x+1, y+1, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "774cb25db8cdd38b7e5aef1219608f1c", "score": "0.5092334", "text": "public Column shift_with(double value, int position){\r\n\t\tint direction = position<1?-1:1;\r\n\t\tint pos = Math.abs(position);\r\n\t\tint index = pos+direction;\r\n\t\twhile(index >= 0 && index < cells.length){\r\n\t\t\tCell cell_prev = cells[index-direction];\r\n\t\t\tcells[index].set_value(cell_prev.get_value());\r\n\t\t\tindex += direction;\r\n\t\t}\r\n\t\tcells[pos].set_value(value);\r\n\t\t\r\n\t\treturn this;\r\n\t}", "title": "" }, { "docid": "c2d50e06f1e5c4635b00c5f21db755ef", "score": "0.50844055", "text": "public static void nextMove(int[][] brd)\n {\n if (row-2 >= 0 && col+1 <= 7)\n {\n if (checkVisit(brd,row-2,col+1))\n {\n row-=2; col+=1;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row-2 >= 0 && col-1 >= 0)\n {\n if (checkVisit(brd,row-2,col-1))\n {\n row-=2; col-=1;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row-1 >= 0 && col+2 <= 7)\n {\n if (checkVisit(brd,row-1,col+2))\n {\n row-=1; col+=2;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row+1 <= 7 && col+2 <= 7)\n {\n if (checkVisit(brd,row+1,col+2))\n {\n row+=1; col+=2;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row+2 <= 7 && col+1 <= 7)\n {\n if (checkVisit(brd,row+2,col+1))\n {\n row+=2; col+=1;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row+2 <= 7 && col-1 >= 0)\n {\n if (checkVisit(brd,row+2,col-1))\n {\n row+=2; col-=1;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row+1 <= 7 && col-2 >= 0)\n {\n if (checkVisit(brd,row+1,col-2))\n {\n row+=1; col-=2;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n if (row-1 >= 0 && col-2 >= 0)\n {\n if (checkVisit(brd,row-1,col-2))\n {\n row-=1; col-=2;\n moves++;\n brd[row][col] = moves;\n return;\n } \n }\n }", "title": "" }, { "docid": "2eb13b867c2719e3228996e64d59f19f", "score": "0.50837183", "text": "private int transform(int x) {\n if (mUserColor == Constants.BLACK_COLOR) {\n return Constants.SIZE - 1 - x;\n } else {\n return x;\n }\n }", "title": "" }, { "docid": "402b9fc1d6672a0246b3a576eb02f20c", "score": "0.50803363", "text": "public void move(){\r\n if (x + xa > 0 && x + xa < game.getWidth()-WIDTH)\r\n x = x + xa;\r\n }", "title": "" }, { "docid": "b548f9c3ff8d159df23e9615486e5960", "score": "0.5079686", "text": "public int moveUp()\n\t{\n\t\tint returnval = checkmove(x, y-1);\n\t\tif (returnval==0)\n\t\t{\n\t\t\ty--;\n\t\t\tparentboard.move(x, y+1, this);\n\t\t}\n\t\treturn returnval;\n\t}", "title": "" }, { "docid": "baba8706e53015ace8b38e198304e570", "score": "0.50748324", "text": "private void makeMove() {\n numMoves++;\n undoLimit++;\n if (row != this.level - 1 && (slidingTile.getTile(row + 1, col)).getId() ==\n blankId) {\n slidingTile.swapTiles(row, col, row + 1, col);\n addPosition((row + 1) * this.level + col);\n }\n if (row != 0 && (slidingTile.getTile(row - 1, col)).getId() == blankId) {\n slidingTile.swapTiles(row, col, row - 1, col);\n addPosition((row - 1) * this.level + col);\n }\n if (col != 0 && (slidingTile.getTile(row, col - 1)).getId() == blankId) {\n slidingTile.swapTiles(row, col, row, col - 1);\n addPosition((row) * this.level + col - 1);\n }\n if (col != this.level - 1 && (slidingTile.getTile(row, col + 1)).getId() ==\n blankId) {\n slidingTile.swapTiles(row, col, row, col + 1);\n addPosition((row) * this.level + col + 1);\n }\n }", "title": "" }, { "docid": "d7bf6ae2b98488da94afe4e10b38c4ae", "score": "0.5074034", "text": "public void flipPuzzleHorizontal(){\n for(int r = 0; r < 9; r++){ //goes through 9 rows\n for(int c = 0; c < 4; c++){ //goes through first 4 positions in each row\n int start = puzzle[9*r+c]; //determines value at start of the row\n int x = (9*r+8)-c; //determines position of the end of the row\n int y = 9*r+c; //determines position of the start\n int end = puzzle[x]; //determines value in end position\n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "f4a40ae163bf46282d37088b7fbb7035", "score": "0.5068311", "text": "public void moveAllRowsDown(int NumRowFull) \n {\n for (int r = NumRowFull; r > 0; r--) \n {\n for (int c = 0; c < board[0].length; c++) \n {\n board[r][c] = board[r - 1][c];\n }\n }\n }", "title": "" }, { "docid": "553fa75bccbfb24fdde5b092be362770", "score": "0.5065591", "text": "public void flipPuzzleColumn1(){ \n for(int r = 0; r < 3; r++){ //iterates through 3 columns\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each column\n int start = puzzle[r+9*c]; //determines start value\n int x = (r+9*c)+ 3; //adds 3 to start position to get the end position\n int y = r+9*c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "8e6a1ac7f44fc1193befe1b4e092d05c", "score": "0.5049251", "text": "public void flipPuzzleColumn3(){ \n for(int r = 3; r < 6; r++){ //iterates through middle 3 columns\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each column\n int start = puzzle[r+9*c]; //determines start value\n int x = (r+9*c)+ 3; //adds 3 to start position to get the end position\n int y = r+9*c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "1bf76b3f2cd33b345d64525565ce6e08", "score": "0.50464594", "text": "public void moveTile(int newRowIndex, int newColIndex){\n\trIndex = newRowIndex;\n\tcIndex = newColIndex;\n }", "title": "" }, { "docid": "cc7f5054db2811968aa1549e7d9d693c", "score": "0.50464386", "text": "public void swap(int leftColumn, int topRow) // completed: a helper for \"rREF\" \r\n\t{\n\t\tdouble[][] output = this.matrixArray.clone();\r\n\t\tdouble temp;\r\n\t\tif(output[leftColumn][topRow] == 0)\r\n\t\t{\r\n\t\t\tfor(int row = topRow; row < output[0].length; row++)\r\n\t\t\t{\r\n\t\t\t\tif(output[leftColumn][row] != 0) \r\n\t\t\t\t{\r\n\t\t\t\t\tfor(int col = 0; col < output.length; col++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttemp = output[col][topRow];\r\n\t\t\t\t\t\toutput[col][topRow] = output[col][row];\r\n\t\t\t\t\t\toutput[col][row] = temp;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.matrixArray = output;\r\n\t}", "title": "" }, { "docid": "032b86d00efce52f3b61ef2f268be09e", "score": "0.50461894", "text": "int makeLongShiftRight(int x) {\n x = x >>> 1;\n return x;\n }", "title": "" }, { "docid": "2ad8e68b1476b372acdc266ad700f9de", "score": "0.5043813", "text": "public int TouchPieceColumn(int Column_Current, int Column_Dest, int Row_Current) {\n int index = 0;\n if (Column_Current > Column_Dest) {\n for (int i = Column_Current; i > Column_Dest; i--) {\n if (index >=2)\n return index;\n if (Board.GetPiece(Row_Current, i) != null)\n index++;\n }\n } else if (Column_Current < Column_Dest) {\n for (int i = Column_Current; i < Column_Dest; i++) {\n if (index >=2)\n return index;\n if (Board.GetPiece(Row_Current, i) != null)\n index++;\n }\n }\n return index;\n }", "title": "" }, { "docid": "b2dac54251e94c4015b02fabf49ae9f4", "score": "0.50430024", "text": "public void setSquare(int row, int col, int value) {\n Pair<Integer, Integer> pos = new Pair<Integer, Integer>(row, col);\n Square s = getSquare(pos);\n s.update(value);\n }", "title": "" }, { "docid": "2642a48e3ec26091bef005b740656098", "score": "0.50371325", "text": "private void shiftDown(int pos)\n\t{\n\t\tint left = getLeft(pos);\n\t\tint right = getRight(pos);\n\t\tif(left <0 || right < 0)return;\n\t\tint min = right;\n\t\tif(arr[left]<arr[right])\n\t\t\tmin= left;\n\t\t\n\t\tif(arr[min] < arr[pos])\n\t\t{\n\t\t\tswap(min ,pos);\n\t\t\tshiftDown(min);\n\t\t}\n\t}", "title": "" }, { "docid": "0a0082d3dcf27cffffdf481aa595adec", "score": "0.5029913", "text": "public void shiftplane(int xdir,int ydir){\n\n }", "title": "" }, { "docid": "089d2f6fc66ac3f417eb52bd6f69f475", "score": "0.5021336", "text": "public void flipPuzzleRows1(){\n for(int r = 0; r < 6; r++){ //iterates through 6 rows\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each row\n int start = puzzle[9*r+c]; //determines start value\n int x = (9*r+c)+ 27; //adds 27 to start position to get the end position\n int y = 9*r+c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "84831ae1307b1effc99863826e0bcdce", "score": "0.5018132", "text": "public Piece flipOverX() {\n Piece aligned = this.align();\n Block[] newBlocks = Arrays.stream(aligned.blocks)\n .map(block -> block.flipOverX())\n .toArray(Block[]::new);\n return new Piece(newBlocks).align();\n }", "title": "" }, { "docid": "4f2e29406effca3b6576ff3d87d73fcb", "score": "0.50170696", "text": "public void flipPuzzleRows2(){\n for(int r = 0; r < 3; r++){ //iterates through 3 rows\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each row\n int start = puzzle[9*r+c]; //determines start value\n int x = (9*r+c)+ 27; //adds 27 to start position to get the end position\n int y = 9*r+c; //determines start position\n int end = puzzle[x]; //determines end value \n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "ea54bfae4c277efdb3dbc1532f868879", "score": "0.500599", "text": "public void up() {\n tiles = rotate(270);\n left();\n tiles = rotate(90);\n }", "title": "" }, { "docid": "d891c4e76f2660f036ec3464a84ec6e8", "score": "0.50043917", "text": "public void moveFigure(int srcRow, int srcCol, int dstRow, int dstCol) {\n try {\n checkCell(srcCol, srcRow, dstCol, dstRow);\n Move move = new Move(board, srcRow, srcCol, dstRow, dstCol);\n board[srcRow][srcCol].getFigure().makeMove(move);\n } catch (ChessBoardException cbe) {\n System.out.println(cbe.getMessage());\n }\n }", "title": "" }, { "docid": "d87454ead403be569ccea08bcce99ac9", "score": "0.49995893", "text": "private int middleRight(int x ,int y){\n\t\tx=x+1;\n\t\tx = XValue(x);\n\t\tif (tiles[x][y]> 0){ return 1;} //middle right\n\t\telse return 0;\n\t}", "title": "" }, { "docid": "b0076adc3d7bc2231a9995ffeb1adf87", "score": "0.4994192", "text": "public void setColMove(int col);", "title": "" }, { "docid": "78a407cd7682fdb183dadd9244200812", "score": "0.49909404", "text": "private void moveDown() {\n if(desktop[indexX + 1][indexY] == 3) {\n if(desktop[indexX + 2][indexY] == 0 || desktop[indexX + 2][indexY] == 4) {\n desktop[indexX + 1][indexY] = 0;\n desktop[indexX + 2][indexY] = 3;\n }\n }\n\n\n if(desktop[indexX + 1][indexY] == 0 || desktop[indexX + 1][indexY] == 4) {\n desktop[indexX][indexY] = 0;\n indexX = indexX + 1;\n desktop[indexX][indexY] = 1;\n }\n }", "title": "" }, { "docid": "3923470cf98986e8830d49ef5b4fcb78", "score": "0.4988366", "text": "private void dragShift(double y) {\n double height = this.inputType.getHeight();\n this.anchor.setLayoutY(y);\n this.anchor.setOpacity(1 - (y/(height)));\n this.anchor.setVisible(y < height);\n this.curryArrow.setManaged(y > height*1 || this == BinOpApplyBlock.this.leftInput);\n this.curryArrow.setVisible(y > height*1);\n BinOpApplyBlock.this.dragShiftOuput(y - height*1.5);\n }", "title": "" }, { "docid": "1279048c648ee5c2a429b9fca44f3efa", "score": "0.4979904", "text": "private void checkUpLeft(int column, int row) {\n int oneUp;\n int left;\n boolean oppositeIsWhite;\n\n if (white) {\n oneUp = 1;\n left = -1;\n oppositeIsWhite = false;\n } else {\n oneUp = -1;\n left = 1;\n oppositeIsWhite = true;\n }\n\n if (column > 1 && white || column < 8 && !white) {\n Square aheadLeft = board.getSquare(column + left, row + oneUp);\n\n if (aheadLeft.isOccupied() && aheadLeft.getOccupier().white == oppositeIsWhite) {\n legalNextSquares.add(aheadLeft);\n }\n }\n }", "title": "" }, { "docid": "cc15bf9fffc9113905b9e8d789d0245a", "score": "0.49736547", "text": "public void insertBack(int x) {\n if (size == items.length) {\n resize((int) (items.length * 1.01));\n }\n items[size] = x;\n size += 1;\n }", "title": "" }, { "docid": "72ccbb5a29659fe39292d4c49d19b736", "score": "0.49736163", "text": "public void rotateRight()\r\n\t{\r\n\t\tfloat temp = x;\r\n\t\tthis.x = -y;\r\n\t\tthis.y = temp;\r\n\t}", "title": "" }, { "docid": "eff9382cf7bf3526edd2f32171030ec7", "score": "0.49665824", "text": "int pop(int x) {\n/* 347 */ x -= x >>> 1 & 0x55555555;\n/* 348 */ x = (x & 0x33333333) + (x >>> 2 & 0x33333333);\n/* 349 */ x = x + (x >>> 4) & 0xF0F0F0F;\n/* 350 */ x += x >>> 8;\n/* 351 */ x += x >>> 16;\n/* 352 */ return x & 0x3F;\n/* */ }", "title": "" }, { "docid": "25519f34f393861a2c81b10012f5fe15", "score": "0.4955092", "text": "private int calcX(int j) {\r\n \treturn (j * squareWidth());\r\n \r\n }", "title": "" }, { "docid": "35751dfbfc281b9dc22797ccac23e378", "score": "0.495186", "text": "public static int getRowOffset(int square){\r\n\t\tint rowOffset = 0;\r\n\t\r\n\t\t// Determine column offset \r\n\t\tif(square >= 1 && square <= 3) { rowOffset = 0; } // Row including sq# 1, 2, 3\r\n\t\telse if (square >= 4 && square <= 6) { rowOffset = 3; } // Row including sq# 4, 5, 6\r\n\t\telse if (square >= 7 && square <= 9) { rowOffset = 6; } // Row including sq# 7, 8, 9\r\n\r\n\t\t\r\n\t\treturn rowOffset;\r\n\t}", "title": "" }, { "docid": "20604ed4b84301c740280115556fed9c", "score": "0.49431217", "text": "void decreaseKey(T x) {\n \tpercolateUp(x.getIndex());\n }", "title": "" }, { "docid": "de13ac7dd2b8f71ccf0bde70c97b68de", "score": "0.49366692", "text": "private int rowColToIndex(int row, int col) {\n\t\treturn row * _numCol + col;\n\t}", "title": "" }, { "docid": "e2c8b4862b1372dec4f04b89543cd560", "score": "0.49328497", "text": "public void flipPuzzleVertical(){\n for(int r = 0; r < 9; r++){ //goes through 9 columns\n for(int c = 0; c < 4; c++){ //goes through first 4 positions in each column\n int start = puzzle[r+9*c]; //determines value at start of the column\n int x = ((72 + r)-(9*c)); //determines position of the end of the column\n int y = r+9*c; //determines position of the start\n int end = puzzle[x]; //determines value in end position\n puzzle[y] = end; //stores the end value in the start value\n puzzle[x] = start; //stores the start value in the end value\n }\n }\n printPuzzle();\n }", "title": "" }, { "docid": "3a20220cbe397db1e6681bfa5e5a488f", "score": "0.4931463", "text": "static void moveDown(){\n\n for (int j = 0; j < GRID_SIZE; j++){\n\n //Move tiles\n for(int i = 0; i < GRID_SIZE - 1; i++){\n\n if(grid[i+1][j] == 0) {\n\n grid[i+1][j] = grid[i][j];\n grid[i][j] = 0;\n\n }\n\n }\n\n //Merge tiles\n for(int i = GRID_SIZE - 1; i > 0; i--) {\n\n if(grid[i-1][j] == grid[i][j]) {\n grid[i][j] *= 2;\n grid[i-1][j] = 0;\n currentScore += grid[i][j];\n }\n\n }\n\n //Move tiles again\n for(int i = 0; i < GRID_SIZE - 1; i++){\n\n if(grid[i+1][j] == 0) {\n\n grid[i+1][j] = grid[i][j];\n grid[i][j] = 0;\n\n }\n\n }\n\n }\n }", "title": "" }, { "docid": "3fcc4ff1fb08708580e5f5b3ccfacd14", "score": "0.4922874", "text": "public void squareClicked(int row, int col);", "title": "" }, { "docid": "0eddd27004b1fc00048e14d4de15acee", "score": "0.49175268", "text": "@Test\n void slideRight() {\n Coordinate originalHead = new Coordinate(0,0);\n Coordinate originalTail = new Coordinate(0, 1);\n Fox slidingFox = new Fox(Pair.pair(originalHead, originalTail));\n Board board = new Board(1, 4);\n board = board.setItem(slidingFox);\n\n Coordinate expectedHead = new Coordinate(0, 2);\n Coordinate expectedTail = new Coordinate(0, 3);\n\n int moveSpaces = 2;\n try {\n Fox newFox = slidingFox.slide(board.getRowSlice(0), moveSpaces,\n Direction.RIGHT);\n assertEquals(expectedTail, newFox.getTail(), \"the tail should be at \" +\n \"the expected coordinate\");\n assertEquals(expectedHead, newFox.getHead(),\n \"The head should have moved here\");\n } catch (Exception e) {\n logger.debug(e);\n fail();\n }\n\n // Test that the old fox head did not change\n assertEquals(originalHead, slidingFox.getHead());\n\n //Test that the old fox tail did not change\n assertEquals(originalTail, slidingFox.getTail());\n }", "title": "" }, { "docid": "15e53c14febbef76f9decb2b68454488", "score": "0.49137738", "text": "public static boolean moveKnight(ChessPiece piece, int column, int row){\n \n // \n if(piece.getRow() == row + 1 && piece.getColumn()== column + 2){\n return true;\n }\n \n if (piece.getRow() == row+2 && piece.getColumn()== column+1){\n return true;\n }\n \n else \n return true;\n }", "title": "" }, { "docid": "493fe49570f944de7ad9fa41276a0570", "score": "0.49130327", "text": "private int xyTo1D(int row, int col) {\n\t\treturn n * (row - 1) + col;\n\t}", "title": "" }, { "docid": "28de49531301028c00ca143f1ed41b87", "score": "0.49127302", "text": "private int bottomRight(int x ,int y){\n\t\tx=x+1;\n\t\ty=y+1;\n\t\tx = XValue(x);\n\t\ty = YValue(y);\n\t\tif (tiles[x][y]> 0){return 1;} //bottom right\n\t\telse return 0;\n\t}", "title": "" }, { "docid": "897769839f471397aaae80b3c6fd24ef", "score": "0.49109146", "text": "private int To1D(int row, int col){\n return grid_size * (row - 1) + (col - 1);\n }", "title": "" }, { "docid": "0394ba93c36f85d8387e10af6b27f51f", "score": "0.49082002", "text": "public void rotate(){\n /*\n new block matrix is created with cols of prev. = rows and rows of prev. = cols\n */\n Block[][] blockMatrixNew = new Block[blockMatrix[0].length][blockMatrix.length];\n /*\n loop over block matrix\n i = rows, starting at 0\n k = rows, starting at length -1\n j = cols, starting at 0\n */\n for(\n int i = 0,k=blockMatrix.length - 1;\n i < blockMatrix.length;\n i++,k--\n ){\n for(\n int j = 0;\n j < blockMatrix[i].length;\n j++\n ){\n // get block at the position of the matrix\n Block block = blockMatrix[i][j];\n /*\n set it to new position\n row = col\n col = row,starting at the bottom\n */\n blockMatrixNew[j][k] = block;\n // block gets new coordinates\n //if(block.getType() == Block.PIECE){\n block.setX(k);\n block.setY(j);\n //}\n }\n }\n blockMatrix = blockMatrixNew;\n\n /*\n check if block would be outside\n --> if, move it to the left\n */\n if(position.x + getWidth() > PlayingArea.areaWidth){\n position.x = PlayingArea.areaWidth - getWidth();\n }\n /*\n check if y of the lowest block would be negative\n --> if, move it down\n */\n if(position.y + getHeight() < 0)\n position.y = 0;\n }", "title": "" }, { "docid": "0bb92ef31504f518f34812ac7333ceeb", "score": "0.4906631", "text": "@Override\n\t\tpublic int move(int x, int y) {\n\t\t\treturn 0;\n\t\t}", "title": "" } ]
96fc83a1475f1bea5c4e6b2d5623b997
calculate quantity of c argument.
[ { "docid": "eabca3a47aa1033cfd4300004a4d501c", "score": "0.0", "text": "public static double[] newArray(){\n int count = 0;\n for (double с = -1.5; с <= 6; с+=0.3){\n count++;\n }\n\n //announce new array type double and assign aray lenght = count.\n double[] array = new double[count];\n return array;\n }", "title": "" } ]
[ { "docid": "6e65885871ae49cbae42a81e0228116a", "score": "0.6637041", "text": "long getQuantity();", "title": "" }, { "docid": "6e65885871ae49cbae42a81e0228116a", "score": "0.6637041", "text": "long getQuantity();", "title": "" }, { "docid": "6e65885871ae49cbae42a81e0228116a", "score": "0.6637041", "text": "long getQuantity();", "title": "" }, { "docid": "99f33fbf8699a7afc05cc90a7aabb1d5", "score": "0.6497582", "text": "Integer getQuantity();", "title": "" }, { "docid": "c322938e4f339ea685c105abed1e6f23", "score": "0.64474213", "text": "int getQuantity();", "title": "" }, { "docid": "3b4518c37c41c6336d71bbaa44830d4e", "score": "0.64398944", "text": "int getAllocatedQuantity();", "title": "" }, { "docid": "a880d3aae20b65312fc8fdf3486b1010", "score": "0.6434958", "text": "int getOwnQuantity();", "title": "" }, { "docid": "90c8833bb14a96016ee93ce471066098", "score": "0.6432537", "text": "UnsignedInt getQuantity();", "title": "" }, { "docid": "f4d31a978fd9b253e20933233f0c0805", "score": "0.62941325", "text": "@Generated\n @Selector(\"quantity\")\n @NUInt\n public native long quantity();", "title": "" }, { "docid": "2db4ee4fa2a3a3c558fa36263bf997cd", "score": "0.624914", "text": "int getQtyCup();", "title": "" }, { "docid": "79aa48ab105b686a79adc9bc6de57899", "score": "0.6216914", "text": "public BigDecimal getItemQuantity();", "title": "" }, { "docid": "b89a81c817ea8118c46ad2f5722d8aa8", "score": "0.6116349", "text": "public int getQuantity() {\n\t\tquantity = checkQuantity(this);\n\t\treturn quantity;// inefficient ;\n\t}", "title": "" }, { "docid": "c6779b8620533d20a90a54b93f3dcfc4", "score": "0.6079938", "text": "BigDecimal totalReservedQuantity();", "title": "" }, { "docid": "fac73ee3a1448c8e13fa6cb9c50d9560", "score": "0.60535836", "text": "private int quantity()\n\t\t{\n\t\t\t// If there is no multiplier, assume that an infinite\n\t\t\t// number is available.\n\n\t\t\tif ( this.multiplier == 0 )\n\t\t\t\treturn Integer.MAX_VALUE;\n\n\t\t\t// The maximum value is equivalent to the total, plus\n\t\t\t// the modifier, divided by the multiplier, if the\n\t\t\t// multiplier exists.\n\n\t\t\tint quantity = (this.total + this.modifier) / this.multiplier;\n\n\t\t\t// Avoid mutual recursion.\n\n\t\t\tif ( mixingMethod == ItemCreationRequest.ROLLING_PIN || mixingMethod == ItemCreationRequest.CLOVER || !isPermittedMethod( mixingMethod ) )\n\t\t\t\treturn quantity;\n\n\t\t\t// The true value is affected by the maximum value for\n\t\t\t// the ingredients. Therefore, calculate the quantity\n\t\t\t// for all other ingredients to complete the solution\n\t\t\t// of the linear inequality.\n\n\t\t\tfor ( int i = 0; quantity > 0 && i < ingredientArray.length; ++i )\n\t\t\t\tquantity = Math.min( quantity, concoctions.get( ingredientArray[i].getItemID() ).quantity() );\n\n\t\t\t// Adventures are also considered an ingredient; if\n\t\t\t// no adventures are necessary, the multiplier should\n\t\t\t// be zero and the infinite number available will have\n\t\t\t// no effect on the calculation.\n\n\t\t\tif ( quantity > 0 && this != concoctions.get(0) )\n\t\t\t\tquantity = Math.min( quantity, concoctions.get(0).quantity() );\n\n\t\t\t// The true value is now calculated. Return this\n\t\t\t// value to the requesting method.\n\n\t\t\treturn quantity;\n\t\t}", "title": "" }, { "docid": "ed267ce20fa4b80064119653383b4295", "score": "0.6010627", "text": "int getQty();", "title": "" }, { "docid": "145927fa64bfb4b6edb5cb56c392285f", "score": "0.5972852", "text": "public void updateQuantity(int arg)\n\t{\n\t\tsetUpdValue(_Prefix + ReStoring.QUANTITY.toString(), arg);\n\t}", "title": "" }, { "docid": "33450d59be53df62e1e2ae0f61d50a54", "score": "0.59226334", "text": "public int getQuantity(){\n\t\treturn(quota);\n\t}", "title": "" }, { "docid": "a0fe6d80196199b39b62510fd841a29a", "score": "0.5907646", "text": "public int retQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "a4ac9cd6e6a44c67e6384d8e553be843", "score": "0.590417", "text": "int getStockQuantity();", "title": "" }, { "docid": "f44d7606c6d6a10c47190a8f0ca30a37", "score": "0.58898747", "text": "int getAuctionQuantity();", "title": "" }, { "docid": "d5b4d570d8cfe2096f4faf5f58683601", "score": "0.5882196", "text": "Uom getQuantityUom();", "title": "" }, { "docid": "04d914319ec2dd0c71e36d37a7307f3c", "score": "0.5831948", "text": "public int getProjectilesQuantity();", "title": "" }, { "docid": "33cb0b331743b3f3253a372fa77c532c", "score": "0.5818868", "text": "private int sumQuantity(Iterable<ItemRequest> requests){\n\t\tint quantity = 0;\n\t\tif(requests != null){\n\t\t\tfor (ItemRequest itemRequest : requests) {\n\t\t\t\tquantity += itemRequest.getAmount();\n\t\t\t}\n\t\t}\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "b058772a6c9af12cd9cc6f4bc614bc6f", "score": "0.57989955", "text": "void updateQuantity(int delta) {\n quantity += delta;\n }", "title": "" }, { "docid": "188a92d091ea15d02893b4561628ffee", "score": "0.5729547", "text": "int add(int qty);", "title": "" }, { "docid": "f3f086c4e21dc833c885b67e3541a0f0", "score": "0.5727708", "text": "public void incrementQuantity()\n {\n ++quantity;\n }", "title": "" }, { "docid": "98b49227b127e83e48fa6a80d071932f", "score": "0.5698243", "text": "@Override\r\n\t\t\tpublic Integer call(Object... args) {\n\t\t\t\tint temp = 0 ;\r\n\t\t\t\tfor(Object i : args){\r\n\t\t\t\t\ttemp += (Integer)i;\r\n\t\t\t\t}\r\n\t\t\t\treturn temp;\r\n\t\t\t}", "title": "" }, { "docid": "2219fefb218a832e26802582f72ee9ea", "score": "0.56681705", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "2219fefb218a832e26802582f72ee9ea", "score": "0.56681705", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "2219fefb218a832e26802582f72ee9ea", "score": "0.56681705", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "171d42f8bc4606682c13de5068a5493f", "score": "0.5656244", "text": "@Override\n\tpublic int getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "c8b83e4f9dc577f588a3c7b09d013a57", "score": "0.56458473", "text": "public int getQuantity(){\n\t\treturn this.quantity;\n\t}", "title": "" }, { "docid": "93b43e77c403fbc253b8387f75e64787", "score": "0.5628697", "text": "public int getQuantity()\r\n {\r\n return quantity;\r\n }", "title": "" }, { "docid": "deec65ab493b26997e46e18d3d80c6a1", "score": "0.5624499", "text": "public double getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "70a4a3c903ff7f8d37efc9fa83cf2e37", "score": "0.5621543", "text": "int getQuantity() {\n\t\treturn _quantity;\n\t}", "title": "" }, { "docid": "ba385ba5d0782c724cfd6be728acf6b1", "score": "0.5591845", "text": "public double getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "d88ff6c4ac2cd5bbe652ca52f3f0fe7a", "score": "0.5591658", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "d88ff6c4ac2cd5bbe652ca52f3f0fe7a", "score": "0.5591658", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "d88ff6c4ac2cd5bbe652ca52f3f0fe7a", "score": "0.5591658", "text": "public long getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "2fff3a3e845ef56d980c3625fa1fd4f5", "score": "0.55771357", "text": "public float getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "555e8a51d6859ef08140cc64202dbfcd", "score": "0.5575474", "text": "public int getTotalQuantity() {\r\n\t\tint sumOfQuantity = 0;\r\n\t\tfor (int i = 0; i < order.length; i++) {\r\n\t\t\tsumOfQuantity += order[i].getQuantity();\r\n\t\t}\r\n\t\treturn sumOfQuantity;\r\n\t}", "title": "" }, { "docid": "dd4b7b166fd5763f611b07ba6c609c55", "score": "0.55744433", "text": "public int getQuantity() {\r\n return quantity;\r\n }", "title": "" }, { "docid": "107e51c6f926027be6f9ee8c234d4851", "score": "0.5571692", "text": "public Quantity getQuantity();", "title": "" }, { "docid": "0ef2f195c2ca2d11d18e5d1a90ac8c51", "score": "0.55660254", "text": "public Integer getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "0ef2f195c2ca2d11d18e5d1a90ac8c51", "score": "0.55660254", "text": "public Integer getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "fcf882619ffe32441b0c83e858e93df8", "score": "0.55429935", "text": "private int calculatePrice(){\n return quantity*(price+wipped_price+choco_price);\n }", "title": "" }, { "docid": "ed78b63116019507ad5dc2d5e7d0349d", "score": "0.5535557", "text": "public double getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "5f7c31efa50bed92094530289e86f004", "score": "0.5535028", "text": "public int getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "bb0fcb4d15c82880cd8572c08b18ca62", "score": "0.55342954", "text": "public int getQuantity(){\n\t\treturn qty;}", "title": "" }, { "docid": "9941cdb5b2cace4890b32b39bb173ff0", "score": "0.5534075", "text": "public int getQuantity() {\n\t\treturn _quantity;\n\t}", "title": "" }, { "docid": "79eaec067ad3f86d05e73c3a3b130d5d", "score": "0.55297065", "text": "public int getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "79eaec067ad3f86d05e73c3a3b130d5d", "score": "0.55297065", "text": "public int getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "79eaec067ad3f86d05e73c3a3b130d5d", "score": "0.55297065", "text": "public int getQuantity() {\n\t\treturn quantity;\n\t}", "title": "" }, { "docid": "eeca92599219f27cc56551d74d507e8d", "score": "0.55199075", "text": "public double getTotalQuantity() {\n return totalQuantity;\n }", "title": "" }, { "docid": "dfb00ddcf66d33e670873f76bad5a929", "score": "0.5518573", "text": "double getQuantityNeededForDiscount ();", "title": "" }, { "docid": "540ae528bc9eaa93be022e2632dce54e", "score": "0.5516441", "text": "private double calculatePrice(int quantity) {\n double price = quantity * coffeePrice;\n return price;\n }", "title": "" }, { "docid": "fe0158a0c1f7550516f0dcaf71e7bfb9", "score": "0.5513079", "text": "public int getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "047a30f3b3d4ac50d1380d19fa021d06", "score": "0.55091757", "text": "public Integer getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "081c8ef1467671e871d016a0318011de", "score": "0.55012715", "text": "public int getDeltaQuantity() {\n return deltaQuantity;\n }", "title": "" }, { "docid": "2346041512a4501026c6ef7326144bd9", "score": "0.54941475", "text": "public int totalQuantity()\n {\n int sum = 0;\n \n if(myContents != null)\n for(int i=0; i<myContents.size(); i++)\n sum += myContents.get(i).getQuantity();\n \n return sum;\n }", "title": "" }, { "docid": "a002b0b72de47a2143e54fb9489aa39f", "score": "0.54936457", "text": "public Integer getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "a002b0b72de47a2143e54fb9489aa39f", "score": "0.54936457", "text": "public Integer getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "a002b0b72de47a2143e54fb9489aa39f", "score": "0.54936457", "text": "public Integer getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "374dc3db9269dcb99cd45de59bf7ccfc", "score": "0.548024", "text": "public int getNumberOfQuantPTMs(Comparable proteinId);", "title": "" }, { "docid": "491d0af5a0cb0afedb0ea38e85c36151", "score": "0.54792476", "text": "protected double gradC_q()\r\n {\r\n return COST_MULTIPLIER*q;\r\n }", "title": "" }, { "docid": "663d0c93de1998b450188a8d799d3ac6", "score": "0.5470604", "text": "public void updateQuantity(int q)\n {\n this.quantity = q;\n }", "title": "" }, { "docid": "c4391e0e6c6f4a6c68d2dae752dee9f0", "score": "0.5465774", "text": "public int getNumXYZ() {\r\n\treturn numX*numY*numZ;\r\n}", "title": "" }, { "docid": "22c1819c8f056df8cccc953d0401990b", "score": "0.5459412", "text": "public int getQuantity() {\n return this.quantity;\n }", "title": "" }, { "docid": "247aaba60f247b96c30cf75a55a7939f", "score": "0.54569465", "text": "public void CalculCout(){\n float newCout =0;\n for(int i = 0; this.composition.length>i; i++ ){\n newCout += this.composition[i].getPrix();\n }\n this.cout = newCout;\n }", "title": "" }, { "docid": "2ba47b4bd4c6cd0de6f00f8f682ba2be", "score": "0.5443831", "text": "public int getOptQuantity() {\n return optQuantity;\n }", "title": "" }, { "docid": "7e655deeec249d090955ca8ccb76240f", "score": "0.54390836", "text": "public double getArgument(int n) {\n return 0;\n }", "title": "" }, { "docid": "1befbbe8337d29e49b571729a7ce9c9f", "score": "0.5439048", "text": "public void setQuantity(int arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + ReStoring.QUANTITY.toString(), arg, compcode);\n\t}", "title": "" }, { "docid": "9f1fbeeb1bee4167faa90622d62f17e6", "score": "0.54381365", "text": "public int getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "9f1fbeeb1bee4167faa90622d62f17e6", "score": "0.54381365", "text": "public int getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "9f1fbeeb1bee4167faa90622d62f17e6", "score": "0.54381365", "text": "public int getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "9f1fbeeb1bee4167faa90622d62f17e6", "score": "0.54381365", "text": "public int getQuantity() {\n return quantity;\n }", "title": "" }, { "docid": "870120752cce059dd035649dfe20802e", "score": "0.543519", "text": "public int cumulativeProduct() {\n EquationList tracker = history;\n int product = 1;\n while (tracker != null) {\n product = multiply(product, tracker.result);\n tracker = tracker.next;\n }\n return product;\n }", "title": "" }, { "docid": "a8096ef89883428c69c67453124b3f7a", "score": "0.54341507", "text": "public int getTotalQ()\n\t{\n\t\treturn Q_size;\n\t}", "title": "" }, { "docid": "88cec19843285023fc4a66a2f6a69093", "score": "0.542872", "text": "public int countGlazierCustomerUnits();", "title": "" }, { "docid": "4456aacec3637ff4c62970672bfec343", "score": "0.5424691", "text": "public int getQuantity()\n {\n return this.quantity;\n }", "title": "" }, { "docid": "2c753b632d6942031bb47329a7939049", "score": "0.5418971", "text": "public int getNumberOfQuantPeptides();", "title": "" }, { "docid": "5bbd0fc17e6c7cf0ac7adb9791fcc929", "score": "0.5417157", "text": "public int getQuantity()\n {\n return quantity;\n }", "title": "" }, { "docid": "5bbd0fc17e6c7cf0ac7adb9791fcc929", "score": "0.5417157", "text": "public int getQuantity()\n {\n return quantity;\n }", "title": "" }, { "docid": "a560cc95f8a55695527fa496eb071684", "score": "0.54171383", "text": "public int getQuantity() {\n return quantity_;\n }", "title": "" }, { "docid": "87eafa6949053560061243a040167674", "score": "0.54113346", "text": "public Integer quantity() {\n return this.quantity;\n }", "title": "" }, { "docid": "9f7c054f31fc8c7455f573f436d61f69", "score": "0.5409096", "text": "public int getQuantity() { return quantity; }", "title": "" }, { "docid": "22370540d95e54ad092424793c43c4de", "score": "0.54028755", "text": "public void getCartSize();", "title": "" }, { "docid": "c45d93df40d3f67d698bdbc7788b1e86", "score": "0.540188", "text": "public int getValue(int a,int b,int c,int x){\n return a*x*x+b*x+c;\n }", "title": "" }, { "docid": "bcbeadad3660edf1debefd6dcc7a808d", "score": "0.5391214", "text": "int getBookQuantity(long id);", "title": "" }, { "docid": "f4f6150c578da22ba9849201f00fbb73", "score": "0.53864926", "text": "@Override\n public byte getNrOfBytesInByte()\n {\n int counter;\n int sum = getxValue().length + getzValue().length + getyValue().length;\n \n return (byte) sum ; // { 0, 1 }\n }", "title": "" }, { "docid": "329307d41d0ebecbe903be18456f4229", "score": "0.53754336", "text": "public Integer[] getQuantity() {\n return this.quantity;\n }", "title": "" }, { "docid": "e76618dca33bc35d66387f40ba1c76f0", "score": "0.53695023", "text": "public final long c() {\n long j2 = this.q;\n return j2 == -1 ? j2 : j2 - this.s;\n }", "title": "" }, { "docid": "ec8a8f67d3aae1b9ec56a395801b0c7d", "score": "0.53624225", "text": "public long qC() {\n long j = this.Tg;\n return j == -1 ? 0 : j;\n }", "title": "" }, { "docid": "3e720eab83cd9ed523f0cf17616cccb0", "score": "0.53309697", "text": "public void changeQuantity(int delta) {\r\n quantity += delta;\r\n }", "title": "" }, { "docid": "eeead144da1f4b379570a48f27c42ef4", "score": "0.5328528", "text": "@Override\n public int getQuantity() {\n LOG.debug(\"get Quantity of Advs\");\n return ((Long) sessionFactory.getCurrentSession().createQuery(\"select count(*) from Adv \").uniqueResult()).intValue();\n }", "title": "" }, { "docid": "b4c5b9cfe5337f6ddffd27f95637395d", "score": "0.5328472", "text": "public static void main(String[] args) {\n\t\tint c = 2;\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\tincrement(c);\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\tc = sum(c,2);\r\n\t\tSystem.out.println(c);\r\n\t\t\r\n\t\tSystem.out.println(sum(2.34f,1.22f));\r\n\t}", "title": "" }, { "docid": "25aeca7bee0d50cc099c99bea9389f97", "score": "0.5316059", "text": "public int getQty() {\r\n\treturn qty;\r\n }", "title": "" }, { "docid": "47c7db65fa94399db41900c5f7f77002", "score": "0.5311907", "text": "public int countTotalQuantity() {\n return addToCartList.stream().mapToInt(AddToCart::getQuantity).sum();\n }", "title": "" }, { "docid": "91867ae38eb62377c5d2565f8d596d25", "score": "0.5308903", "text": "double qplength(QuadCurve2D.Double c) {\n double result = Math.sqrt(Math.pow((c.ctrlx-c.x1),2.0)+Math.pow((c.ctrly-c.y1),2.0));\n result += Math.sqrt(Math.pow((c.x2-c.ctrlx),2.0)+Math.pow((c.y2-c.ctrly),2.0));\n return result;\n }", "title": "" }, { "docid": "407a70e8ea16413176ece7fdf645dedc", "score": "0.5301569", "text": "public int cumulativeProduct() {\n EquationList otherHistory = history;\n int product = 1;\n while (otherHistory!=null){\n product*=otherHistory.result;\n otherHistory=otherHistory.next;\n }\n return product;\n }", "title": "" }, { "docid": "318bde97da1a1b8b053dab0d5ef73f9f", "score": "0.53004336", "text": "public Integer getLineQuantity() {\n return lineQuantity;\n }", "title": "" } ]
de325e503d9b9d3d208df543d4effab2
~ Methods ............................................................... Get a local instance of this object in another editing context.
[ { "docid": "4c3a90e20b8b74d7c601ec2cdacd87e6", "score": "0.6223907", "text": "public ScheduleSheet localInstance(EOEditingContext editingContext)\n {\n return (ScheduleSheet)EOUtilities.localInstanceOfObject(\n editingContext, this);\n }", "title": "" } ]
[ { "docid": "f1749e97a8fccaee3b73534b951320e4", "score": "0.7907868", "text": "protected EOEnterpriseObject localInstanceOfObject() {\n \tboolean createNestedContext = ERXValueUtilities.booleanValue(d2wContext().valueForKey(Keys.useNestedEditingContext));\n \treturn ERXEOControlUtilities.editableInstanceOfObject(object(), createNestedContext);\n }", "title": "" }, { "docid": "33278a8a95e3afde8f2cd0b88a5fd4df", "score": "0.6530805", "text": "public RunLocalObject getRunLocalObject() {\n long __key = this.runId;\n if (runLocalObject__resolvedKey == null || !runLocalObject__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n RunLocalObjectDao targetDao = daoSession.getRunLocalObjectDao();\n RunLocalObject runLocalObjectNew = targetDao.load(__key);\n synchronized (this) {\n runLocalObject = runLocalObjectNew;\n \trunLocalObject__resolvedKey = __key;\n }\n }\n return runLocalObject;\n }", "title": "" }, { "docid": "acda070b8fe6bd9d65c949f6c5ddad8f", "score": "0.64030856", "text": "public GeneralItemLocalObject getGeneralItemLocalObject() {\n long __key = this.generalItemId;\n if (generalItemLocalObject__resolvedKey == null || !generalItemLocalObject__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n GeneralItemLocalObjectDao targetDao = daoSession.getGeneralItemLocalObjectDao();\n GeneralItemLocalObject generalItemLocalObjectNew = targetDao.load(__key);\n synchronized (this) {\n generalItemLocalObject = generalItemLocalObjectNew;\n \tgeneralItemLocalObject__resolvedKey = __key;\n }\n }\n return generalItemLocalObject;\n }", "title": "" }, { "docid": "44ea6ae670e2ec2213356882988d4fb0", "score": "0.6041619", "text": "private EJBLocalObjectImpl createEJBLocalObjectImpl\n (SessionContextImpl context) throws Exception {\n if (context.getEJBLocalObjectImpl() != null)\n return context.getEJBLocalObjectImpl();\n\n // create EJBLocalObject\n EJBLocalObjectImpl localObjImpl = instantiateEJBLocalObjectImpl();\n\n // introduce context and EJBLocalObject to each other\n context.setEJBLocalObjectImpl(localObjImpl);\n localObjImpl.setContext(context);\n localObjImpl.setKey(context.getInstanceKey());\n\n if (hasLocalBusinessView) {\n createEJBLocalBusinessObjectImpl(context);\n }\n\n if (hasOptionalLocalBusinessView) {\n createOptionalEJBLocalBusinessObjectImpl(context);\n }\n\n if (hasRemoteHomeView) {\n createEJBObjectImpl(context); // enable remote invocations too\n }\n\n if (hasRemoteBusinessView) {\n createRemoteBusinessObjectImpl(context);\n }\n\n return localObjImpl;\n }", "title": "" }, { "docid": "289aed46fb5999a47702c893c06ec81e", "score": "0.5921504", "text": "private PrismObject<F> getCurrentFocus() {\n if (context.getFocusContext().getObjectCurrent() != null) {\n return context.getFocusContext().getObjectCurrent();\n } else {\n return context.getFocusContext().getObjectNew();\n }\n }", "title": "" }, { "docid": "7346ebf36b3dc012892ba005fde1717d", "score": "0.5910806", "text": "public ViewContext getContext() {\n // try to find a bean with focus\n PropertyBean bean = getFocus();\n if (bean!=null&&bean.getContext()!=null) \n return bean.getContext();\n // currently edited?\n if (currentEntity!=null)\n return new ViewContext(currentEntity);\n // gedcom at least\n return new ViewContext(gedcom);\n }", "title": "" }, { "docid": "5802bf0bef9f382cfd9b5ef6fe0fe246", "score": "0.5849277", "text": "public EditManager getEditManager();", "title": "" }, { "docid": "effe5c03e528156d6a69ca6dd4f387e6", "score": "0.5783287", "text": "protected XGraphicalEditPart getOwner() {\n\t\treturn editpart;\n\t}", "title": "" }, { "docid": "2269ad67a07f3aea49116acdd6e85e98", "score": "0.56810546", "text": "EJBLocalObjectImpl getEJBLocalObjectImpl(Object sessionKey) {\n\n // Create an EJBLocalObject reference which\n // is *not* associated with a SessionContext. That way, the\n // session bean context lookup will be done lazily whenever\n // the reference is actually accessed. This avoids I/O in the\n // case that the reference points to a passivated session bean.\n // It's also consistent with the deserialization approach used\n // throughout the container. e.g. a timer reference is deserialized\n // from its handle without checking it against the timer database.\n\n EJBLocalObjectImpl localObjImpl;\n\n try {\n localObjImpl = instantiateEJBLocalObjectImpl();\n\n localObjImpl.setKey(sessionKey);\n\n } catch (Exception ex) {\n EJBException ejbEx = new EJBException();\n ejbEx.initCause(ex);\n throw ejbEx;\n }\n\n return localObjImpl;\n }", "title": "" }, { "docid": "8b4f2eb84d2d6531500647b47b12f103", "score": "0.5610633", "text": "public IEditorPart getActiveInnerEditor() {\n\t\treturn getActiveEditor();\n\t}", "title": "" }, { "docid": "49aee62b455f25de9842c878593b0a16", "score": "0.55999255", "text": "public java.lang.String getInlineEditing(){\r\n return localInlineEditing;\r\n }", "title": "" }, { "docid": "e63c1f9be3b1d186f51fccca74066b36", "score": "0.5583603", "text": "public Object getSelectedObject() {\n return itsInstance;\n }", "title": "" }, { "docid": "b0f0ae64ca588b30d726a74260102460", "score": "0.55506176", "text": "private void switchToEditingMode(){\n\t\tISelection selection = viewer.getSelection();\n\t\tObject obj = ((IStructuredSelection)selection).getFirstElement();\n\t\tif (obj instanceof TreeObject){\n\t\t\tint loc = ((TreeObject) obj).getStart();\n\t\t\t//showMessage(\"trying to jump to \"+ loc);\n\t\t\t\n\t\t/*String temp = \"\";\t\t\n\t\tif(part != null){\n\t\t\tAbstractTextEditor compEditor = (AbstractTextEditor)part;\n \tIEditorInput input = compEditor.getEditorInput();\n \tIDocumentProvider provider = compEditor.getDocumentProvider();\n \tIDocument document = provider.getDocument(input);\n \ttemp = document.get();\n\t\t}*/\n\t\t\tIEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\n\t\t\tpart.setFocus();\n\t\t\t((ITextEditor)part).selectAndReveal(loc,0);\n\t\t}\n\t}", "title": "" }, { "docid": "356454b140426b007faba159df8275cb", "score": "0.55119693", "text": "public EmailAlertForStudent localInstance(EOEditingContext editingContext)\n {\n return (EmailAlertForStudent)EOUtilities.localInstanceOfObject(\n editingContext, this);\n }", "title": "" }, { "docid": "0dfc675c244013c7cc1cd18d23294341", "score": "0.54639107", "text": "public Local pupolaModeloLocal(){\r\n\r\n local.setLocalizacao(localizacao.getText().toString());\r\n local.setDetalhes(detalhes.getText().toString());\r\n local.setQuadrante(quadrante.getText().toString());\r\n return local;\r\n }", "title": "" }, { "docid": "c5b96d854e5102eaa70d524716bc1492", "score": "0.5456795", "text": "public EditModel getEditModel() { return (EditModel)model; }", "title": "" }, { "docid": "d33858b3381b80cab5dbb0249b1b119c", "score": "0.544837", "text": "public EditWindow getEditWindow() { return wnd; }", "title": "" }, { "docid": "548549713d084f265bbcb0f83fd3851f", "score": "0.5435902", "text": "public VObject makeLocalCopy(int id, ThreeVec position,\r\n\t\t\t ThreeVec lookat, ThreeVec VUP,\r\n\t\t\t double focusRadius, double nimbusRadius,\r\n\t\t\t String type, PolyObject geometry,\r\n\t\t\t VObject remoteOwner)\r\n throws RemoteException\r\n {\r\n // The base object doesn't keep copies of other objects, so this\r\n // just does nothing. This function is just here since it's in\r\n // the VObject interface.\r\n System.out.println(\"Shouldn't be calling this member!\");\r\n return null;\r\n }", "title": "" }, { "docid": "fc79dd0fa2997539e3b7acdab9a3b9fa", "score": "0.5431664", "text": "public EditorPanelable getOneFromDB(int id);", "title": "" }, { "docid": "25ada3f7d6680d16e10d4bd4b7770f37", "score": "0.54308796", "text": "public Object getObject() {\n return formObject;\n }", "title": "" }, { "docid": "39d6b3602d29ceb031b6f5bc1d44fdb9", "score": "0.542972", "text": "public static Article getEditArticle() {\n return editArticle;\n }", "title": "" }, { "docid": "66c1ef24674906670e49326ead46dbcb", "score": "0.54083157", "text": "public boolean getShowEdit(){\r\n return localShowEdit;\r\n }", "title": "" }, { "docid": "62e128039b0e9722496b6a5e284ce60b", "score": "0.5377501", "text": "public FlexiveObjectEntry copy() {\n return new FlexiveNewDocument(context, getContent().copyAsNewInstance(), null);\n }", "title": "" }, { "docid": "d892078ab168d8a9f0fdd2fbcf00a3fe", "score": "0.5362515", "text": "public static ScheduleSheet localInstance(\n EOEditingContext editingContext, ScheduleSheet eo)\n {\n return (eo == null)\n ? null\n : (ScheduleSheet)EOUtilities.localInstanceOfObject(\n editingContext, eo);\n }", "title": "" }, { "docid": "565dcbc5b5db589040e836723a25ab97", "score": "0.53130233", "text": "public com.cosylab.vdct.graphics.ViewState getLocalView() {\n if (localView==null) localView = new ViewState();\n return localView;\n}", "title": "" }, { "docid": "37142456153262a25592345daa73636b", "score": "0.5293359", "text": "public EObject getObjectById(Object originId);", "title": "" }, { "docid": "80322b2bde0e7a3b72dedac5e7b07747", "score": "0.52860314", "text": "public AnchorPane getObjEditor() {\n return objEditor;\n }", "title": "" }, { "docid": "24fab605077924755c2369ca6cd7d412", "score": "0.5259749", "text": "protected EditPart getTargetEditPart() {\n\t\treturn target;\n\t}", "title": "" }, { "docid": "92c2492f00dbe5d40e9c59b6889a3aec", "score": "0.5235753", "text": "Parent getEditorParent() {\n\t\treturn editor.getObject();\n\t}", "title": "" }, { "docid": "45e378e43475fd56f90db2dc3839887a", "score": "0.52328855", "text": "public TextPaneIn getActiveIn()\n\t{\n\t\tJPanel mp = (JPanel) this.tp.getSelectedComponent();\n\t\tJSplitPane sp = (JSplitPane) mp.getComponent(1);\n\t\tJPanel pa = (JPanel) sp.getComponent(1);\n\t\tJScrollPane cp = (JScrollPane) pa.getComponent(1);\n\t\tJViewport vp = (JViewport) cp.getComponent(0);\n\t\tTextPaneIn in = (TextPaneIn) vp.getComponent(0);\n\n\t\treturn in;\n\t}", "title": "" }, { "docid": "ed83f948655a9e2fb8fe0daa1043a51f", "score": "0.52320385", "text": "@Override\n\tpublic Object getEditableValue() {\n\t\treturn mainComposite;\n\t}", "title": "" }, { "docid": "e5f54ae14008d95fdc4132353a3f8275", "score": "0.52317554", "text": "public Object getLocal(String name) {\n return super.get(name);\n }", "title": "" }, { "docid": "59dc1daafb437988d76dfb3c62f08a81", "score": "0.5226592", "text": "Object getOwner();", "title": "" }, { "docid": "cd2d029313b06fba9f0b68b53f556533", "score": "0.5226435", "text": "public ListReviseDTO getListEditDTO(){\r\n return localListEditDTO;\r\n }", "title": "" }, { "docid": "b71c6a7d7b080bf2fcb54c6bfa5f8ea5", "score": "0.5221128", "text": "public Object getOwner();", "title": "" }, { "docid": "dce656436e035cd2042bc2f9c2e15f62", "score": "0.5212981", "text": "public Object getEditableValue() {\n\t\treturn this;\n\t}", "title": "" }, { "docid": "776c2f7210a7084f6d59b20ba54125c1", "score": "0.5210381", "text": "public static TempBl getEditableTempBl(RenderRequest request) {\n\n\t\t//Retrieves tempBl based on PK (composite).\n\t\tTempBl tempBl;\n\t\ttempBl = ActionUtil.getTempBl(request);\n\n\t\t//Returns new story if it could not be found. (with storyType and BorrowerLoanId).\n\t\tif (tempBl == null) {\n\t\t\ttempBl = new TempBlImpl();\n\t\t}\n\n\t\treturn tempBl;\n\t}", "title": "" }, { "docid": "21fde7bb8e9a0a007f31f1116216b817", "score": "0.5208307", "text": "public GhostActionable getSourceObj()\n {\n return sourceObj;\n }", "title": "" }, { "docid": "9fc8b5c7665ba5284ae49d1d8cd4efbe", "score": "0.52027255", "text": "EJBLocalObjectImpl getEJBLocalBusinessObjectImpl(Object sessionKey) {\n\n EJBLocalObjectImpl localBusinessObjImpl;\n\n try {\n localBusinessObjImpl = instantiateEJBLocalBusinessObjectImpl();\n\n localBusinessObjImpl.setKey(sessionKey);\n\n } catch (Exception ex) {\n EJBException ejbEx = new EJBException();\n ejbEx.initCause(ex);\n throw ejbEx;\n }\n\n return localBusinessObjImpl;\n }", "title": "" }, { "docid": "c02c0dc5aadc90a011252eeafb8b781e", "score": "0.517814", "text": "public Room getTheObject() {\n\t\treturn this;\n\t}", "title": "" }, { "docid": "d896b6d4f17ac85a051b584dff73d198", "score": "0.51559865", "text": "public EditPart createEditPart(EditPart context, Object modelElement) {\n\t\tEditPart part = getPartForElement(modelElement);\n\t\t// store model element in EditPart\n\t\tpart.setModel(modelElement);\n\t\treturn part;\n\t}", "title": "" }, { "docid": "ff8042e31d0992a8a1cad96c6133b7ff", "score": "0.51425445", "text": "@Override\n\t\tpublic Object getObject() throws Throwable {\n\t\t\tVariableManagedObjectSource<T> mos = VariableManagedObjectSource.this;\n\n\t\t\t// Enable decoration of the variable\n\t\t\t// (after getting process aware context)\n\t\t\tif (mos.decorator != null) {\n\t\t\t\tmos.decorator.accept(this);\n\t\t\t}\n\n\t\t\t// Return this var\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "c41cfbbea3d84e9296e7cf14628efa39", "score": "0.51340955", "text": "private DataObject getCurrentDataObject() {\n return TopComponent.getRegistry().getActivated().getLookup().lookup(DataObject.class);\n }", "title": "" }, { "docid": "aef5fa7a5e3656ae0c3802c89b8a1a54", "score": "0.51201975", "text": "protected abstract Local newLocal();", "title": "" }, { "docid": "5c5a7d437fd2303695ed6100200f7ebb", "score": "0.51165944", "text": "public static SRModel getModelObject() {\r\n return modObj;\r\n }", "title": "" }, { "docid": "53468ffaeb4b0a7748e6136cdea8317f", "score": "0.51116407", "text": "public Entity getObject()\r\n/* 69: */ {\r\n/* 70: 69 */ return this.object;\r\n/* 71: */ }", "title": "" }, { "docid": "06760e1468b5ef31496e94912d4e283e", "score": "0.510937", "text": "@Override\n public T get() {\n return getModel(owner.getChild(name), type);\n }", "title": "" }, { "docid": "b1815bdfc2c5c11a64139b39092e27c5", "score": "0.5091719", "text": "public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }", "title": "" }, { "docid": "7b697dbbe14c6c28a772dab1a5175b05", "score": "0.50864595", "text": "public Object get() { return getModel().get(); }", "title": "" }, { "docid": "6e4b73d3b45fa72898b5a1f324a42caf", "score": "0.5083979", "text": "private Instruction getlocal ()\n {\n assert (this.isLocalDef) : \"not a local Binding:\" + this;\n if (this.getlocalIns == null)\n {\n this.getlocalIns = InstructionFactory.getDeferredImmediateInstruction(ABCConstants.OP_getlocal);\n if (this.localNumber != null)\n this.getlocalIns.setImmediate(this.localNumber);\n }\n return this.getlocalIns;\n }", "title": "" }, { "docid": "b7b0112004b6af788de7bacf23269deb", "score": "0.5077993", "text": "public static Stock getEditStock() {\n return editStock;\n }", "title": "" }, { "docid": "7ce9374bb0361129e4d55c97c47d9f15", "score": "0.5069862", "text": "public XMLEleObject getObject() {\n return this;\n }", "title": "" }, { "docid": "f7d605fc380fce88e5d10c67c155da4f", "score": "0.50679433", "text": "private Field getCurrentField() {\t\n\t\tfor(Object obj : grid.getObjectsAt(myLocation().getX(), myLocation().getY())) {\n\t\t\tif(obj instanceof Field) {\n\t\t\t\treturn (Field) obj; \n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "60225052f72277f8c7f6ac425e8e1e91", "score": "0.5057955", "text": "public O getObject()\n\t{\n\t\treturn this.object;\n\t}", "title": "" }, { "docid": "26ad36ea74e5f100c1f3a9bd90661583", "score": "0.5052392", "text": "static public LocalSemanticRepository getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new LocalSemanticRepository();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "title": "" }, { "docid": "31e3df2828f66eb11770184442bfea49", "score": "0.50409603", "text": "@Override\n\tpublic Parent getObject() {\n\t\treturn split;\n\t}", "title": "" }, { "docid": "bf8dab4f1f77d67b5822cfa56033795e", "score": "0.5037486", "text": "public EditorEntity getSelectedEntity() {\n\t\treturn selected;\n\t}", "title": "" }, { "docid": "174e2cc4236f13199d2fca8e56399857", "score": "0.5037307", "text": "<T> T getLocalInstance(Class<T> instanceClass);", "title": "" }, { "docid": "994be3234eff73e384183fc41907ddf8", "score": "0.503539", "text": "public Object getObject() {\r\n\t\treturn obj;\r\n\t}", "title": "" }, { "docid": "dd8b940df23a6d113734f8868d87bbd1", "score": "0.5030795", "text": "public synchronized ResourceReference getEditRoot() {\n if (editroot == null) {\n String name = props.getString(EDIT_ROOT_P, null);\n if (name != null) {\n editroot = loadRoot(name);\n }\n if (editroot == null) {\n editroot = getRootReference();\n }\n }\n return editroot;\n }", "title": "" }, { "docid": "f9f9f6516a0b3dbdc068e2081791a345", "score": "0.50299764", "text": "public static Single_object getSingle_object() {\n\t\t\treturn obj;\n\t\t\t\n\t}", "title": "" }, { "docid": "6627a5f7184cacf054f1a0d73e0e46e4", "score": "0.5026441", "text": "public int getId(){\n return localId;\n }", "title": "" }, { "docid": "be2569d25dba431df1f24b20937a15af", "score": "0.50143063", "text": "public Object object()\n {\n if(null == m_obj)\n setObject(m_val);\n return m_obj;\n }", "title": "" }, { "docid": "d39c2c11478fe69b5289923f4090cd41", "score": "0.50103796", "text": "E edit();", "title": "" }, { "docid": "4393656e51b32832b317a19848b2b8b2", "score": "0.50087136", "text": "public T getInstance() {\n if (instance == null) {\n if (getId() != null) {\n instance = loadInstance();\n } else {\n instance = newInstance();\n }\n }\n return instance;\n }", "title": "" }, { "docid": "095ae874eb975d8020481dc233aba5e6", "score": "0.5004238", "text": "public IEditorPartContext getEditorPartContext() {\n\t\treturn myEditorPartContext;\n\t}", "title": "" }, { "docid": "8f528baa46ef91b6c0c415a22fb30b65", "score": "0.50010514", "text": "protected abstract T getNewEditBaseBackingBean();", "title": "" }, { "docid": "caf637753d0dfe50d97d98779b56fa1e", "score": "0.5000135", "text": "public static Lift getInstance() {\n init();\n return currentInstance;\n }", "title": "" }, { "docid": "65eb6eee2bee396c22d15ddf5e7a459c", "score": "0.4988009", "text": "public CTEUser getUser ( ) { return _localUser; }", "title": "" }, { "docid": "91579010ca3554e012f261b17e47a88c", "score": "0.4987048", "text": "EJBLocalObjectImpl createEJBLocalObjectImpl()\n throws CreateException {\n try {\n SessionContextImpl context = createBeanInstance();\n\n EJBLocalObjectImpl localObjImpl =\n createEJBLocalObjectImpl(context);\n\n afterInstanceCreation(context);\n\n return localObjImpl;\n }\n catch (Exception ex) {\n\n _logger.log(Level.WARNING, \"ejb.create_ejblocalobject_exception\",\n ejbDescriptor.getName());\n _logger.log(Level.WARNING, \"create ejblocal object exception\", ex);\n\n if (ex instanceof EJBException)\n throw (EJBException) ex;\n else {\n CreateException ce =\n new CreateException(\"ERROR creating stateful SessionBean\");\n ce.initCause(ex);\n throw ce;\n }\n }\n }", "title": "" }, { "docid": "31cd76cc8f5b646b2720e0afb589cb10", "score": "0.498412", "text": "public T getObject() {\n return object;\n }", "title": "" }, { "docid": "c8affadf506737c9e775a75cfc85fe6b", "score": "0.49763155", "text": "public boolean getSavedEditZone(){\r\n return localSavedEditZone;\r\n }", "title": "" }, { "docid": "d324d7bfb496d4b49f231c76a7e083e7", "score": "0.4965459", "text": "EJBLocalObjectImpl getOptionalEJBLocalBusinessObjectImpl(Object sessionKey) {\n\n EJBLocalObjectImpl localBusinessObjImpl;\n\n try {\n localBusinessObjImpl = instantiateOptionalEJBLocalBusinessObjectImpl();\n\n localBusinessObjImpl.setKey(sessionKey);\n\n } catch (Exception ex) {\n EJBException ejbEx = new EJBException();\n ejbEx.initCause(ex);\n throw ejbEx;\n }\n\n return localBusinessObjImpl;\n }", "title": "" }, { "docid": "745f9136ad63c2be7e6c7cb7c46f1ad1", "score": "0.4961333", "text": "public ViewObjectImpl getEmpTranslatedViewObj1() {\n return (ViewObjectImpl) findViewObject(\"EmpTranslatedViewObj1\");\n }", "title": "" }, { "docid": "ee82298dd4dd79d2a49b9c7db7db7d40", "score": "0.49593985", "text": "public VmInstance getCurrentVmInstance()\n {\n\tif (getVmId() != -1)\n\t return getCurrentRequest().getProvisionedVm(getVmId());\n\telse\n\t return getCurrentRequest().getProvisionedVmFromTaskId(getCloudletId());\n }", "title": "" }, { "docid": "45545441502bc1414ac01d98d2d81922", "score": "0.49590212", "text": "protected EditPageInterface parentEditPage() {\n return (EditPageInterface)enclosingPageOfClass(EditPageInterface.class);\n }", "title": "" }, { "docid": "8932f838d17a706ad94702e7aebf7fb6", "score": "0.49588773", "text": "public Context getModelContext();", "title": "" }, { "docid": "7c4576cf2ec7de2e8cbeb3ca73d91818", "score": "0.49522275", "text": "TransactionalEditingDomain getEditingDomain();", "title": "" }, { "docid": "00950451c9241b8f20464fc6e2215aaf", "score": "0.49464774", "text": "CurrentState getCSObject();", "title": "" }, { "docid": "b5e50bdd6e602e3b61d79e1750cdb8d9", "score": "0.49415252", "text": "EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(boolean localBeanView)\n throws CreateException {\n try {\n\n \n SessionContextImpl context = createBeanInstance();\n\n EJBLocalObjectImpl localBusinessObjImpl = localBeanView ?\n createOptionalEJBLocalBusinessObjectImpl(context) :\n createEJBLocalBusinessObjectImpl(context);\n\n afterInstanceCreation(context);\n\n return localBusinessObjImpl;\n }\n catch (Exception ex) {\n\n _logger.log(Level.WARNING, \"ejb.create_ejblocalobject_exception\",\n ejbDescriptor.getName());\n _logger.log(Level.WARNING, \"create ejblocal object exception\", ex);\n\n if (ex instanceof EJBException)\n throw (EJBException) ex;\n else {\n CreateException ce =\n new CreateException(\"ERROR creating stateful SessionBean\");\n ce.initCause(ex);\n throw ce;\n }\n }\n }", "title": "" }, { "docid": "0b683bdff59ecf80cd052cb6c24e2dbb", "score": "0.49375707", "text": "private TetrisFrame getObjectOfThisClass() {\n return TetrisFrame.this;\n }", "title": "" }, { "docid": "2d1e7d108e95234eb0c8d85470bd3b5f", "score": "0.49345124", "text": "public java.lang.String getOriginRef(){\r\n return localOriginRef;\r\n }", "title": "" }, { "docid": "2d1e7d108e95234eb0c8d85470bd3b5f", "score": "0.49345124", "text": "public java.lang.String getOriginRef(){\r\n return localOriginRef;\r\n }", "title": "" }, { "docid": "2d1e7d108e95234eb0c8d85470bd3b5f", "score": "0.49345124", "text": "public java.lang.String getOriginRef(){\r\n return localOriginRef;\r\n }", "title": "" }, { "docid": "2d1e7d108e95234eb0c8d85470bd3b5f", "score": "0.49345124", "text": "public java.lang.String getOriginRef(){\r\n return localOriginRef;\r\n }", "title": "" }, { "docid": "7ffa714c0451fd9ed54404af6dcd08c3", "score": "0.49343863", "text": "public int getOwnerId(){\r\n return localOwnerId;\r\n }", "title": "" }, { "docid": "7ffa714c0451fd9ed54404af6dcd08c3", "score": "0.49343863", "text": "public int getOwnerId(){\r\n return localOwnerId;\r\n }", "title": "" }, { "docid": "e0e245b0de79ebffff79f92c471c3ab8", "score": "0.49342418", "text": "@Override\n\tpublic GamePiece getObject() {\n\t\treturn this;\n\t}", "title": "" }, { "docid": "75eea48e664a6d7fa35cc74b98845c48", "score": "0.49266717", "text": "public T getObject() {\n return m_object;\n }", "title": "" }, { "docid": "a2b394e33939ad9fc9baf150fb3c70ef", "score": "0.49183163", "text": "public ShopWindow returnThis() {\n\t\treturn this;\n\t}", "title": "" }, { "docid": "34eb255b62d281cdaa2ba1f38959fb43", "score": "0.49152264", "text": "public Context copy() {\n return new Context(this);\n }", "title": "" }, { "docid": "f85d027d407733168912a6cd9c32580a", "score": "0.4914416", "text": "Context getManagedContext();", "title": "" }, { "docid": "090549b16b5b9010d9b6f7f6b050cd3c", "score": "0.4911015", "text": "@Override\n\tpublic AtividadeForCliEntity getModelBean() {\n\t\treturn currentBean;\n\t}", "title": "" }, { "docid": "2b745991f810d507e0a722013a1ef1ed", "score": "0.49008042", "text": "public Storable getInstance()\n\n {\n\n return new Address();\n\n }", "title": "" }, { "docid": "7e6aa907c1e8dd43e4c835378e2cd69e", "score": "0.48982328", "text": "private Instruction setlocal ()\n {\n assert (this.isLocalDef) : \"not a local Binding:\" + this;\n if (this.setlocalIns == null)\n {\n this.setlocalIns = InstructionFactory.getDeferredImmediateInstruction(ABCConstants.OP_setlocal);\n if (this.localNumber != null)\n this.setlocalIns.setImmediate(this.localNumber);\n }\n return this.setlocalIns;\n }", "title": "" }, { "docid": "0ab10e64a032fee72c62c905926204f5", "score": "0.48942524", "text": "public Point3 getPointLocal() {\n return new Point3(_pointLocal);\n }", "title": "" }, { "docid": "43ff39e3af4ce14a8e7aa922dcf2ccd9", "score": "0.48921272", "text": "protected Object copyObject(Object source){\r\n Object result = null;\r\n try{\r\n SerializedObject so = new SerializedObject(source);\r\n result = so.getObject();\r\n setCancelButton(true);\r\n\r\n }\r\n catch (Exception ex){\r\n setCancelButton(false);\r\n System.err.println(\"GenericObjectEditor: Problem making backup object\");\r\n System.err.println(ex);\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "6bd3e6c15f2cce4c24a4dd63e3c7df64", "score": "0.4891222", "text": "public ObjectRep getCurrent() {\n return this.get(this.size() - 1);\n }", "title": "" }, { "docid": "3aa82e5a3e3f4060290b59699472e155", "score": "0.48821545", "text": "public org.openxmlformats.schemas.presentationml.x2006.main.CTOleObject getOleObj()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTOleObject target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTOleObject)get_store().find_element_user(OLEOBJ$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "90f7b7d968567e947eb79fa209d64405", "score": "0.48782066", "text": "public Restaurant getCurrent() {\n return current;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "1b7991d504c6e41f99a460456e2b2099", "score": "0.0", "text": "@Override\r\n\tpublic void addPartner(String name) {\n\t\tprofile.addPartner(name+\" \");\r\n\t}", "title": "" } ]
[ { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6681592", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.65706384", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64830863", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.63142073", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6233861", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.62156105", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.61959624", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.6177264", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.609503", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.60708153", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60667324", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.6050197", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.60484", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.60398114", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.600875", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.599773", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5978821", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5975817", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935147", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.59062445", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5878679", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5865623", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.58643967", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5853753", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5835419", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.5823172", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5779682", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.57708335", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1717024d52ad1ad5517c9f135ea71904", "score": "0.57634485", "text": "@Override\r\n\tprotected void initValue()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.5756299", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5737521", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.57351506", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5717778", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57160354", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.57140064", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5712678", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5709881", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "0694b71fd24e10a480fa3f3dcd28b3ca", "score": "0.570341", "text": "public void mo7243j() {\n }", "title": "" }, { "docid": "9b197585ec90d98a2e41d154a1678e4a", "score": "0.57023877", "text": "@Override\n protected void refreshInit() {\n \n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "a3060192856bd2663b96bd0ef31d99fd", "score": "0.56853366", "text": "@Override\n\t\t\t\tpublic void refresh() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "c13ae19df69e3abfecf963fdcf9a29ee", "score": "0.568208", "text": "@Override\n\tpublic void c12() {\n\t\t\n\t}", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.5679023", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5665557", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "8c203fbc4b35fbc9b64bf6b47d67d29a", "score": "0.56584716", "text": "@Override\n\tpublic void freshStart() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "4dc967945b63b3f9ccc200b50799205b", "score": "0.56479424", "text": "@Override\n\tprotected Item func_149866_i() {\n return null;\n }", "title": "" }, { "docid": "4701bace660096d78c2bf92bfe4b6dd4", "score": "0.5643848", "text": "@Override\n\t\t\t\t\tpublic Sequence sequence() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.56376165", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.5629117", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5628332", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.5621647", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "412e5d9d9ceed77a8c31cb9312e427b3", "score": "0.5617086", "text": "public final void mo63019a() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56150234", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" } ]
25f93fee3cccb7bc3fbc6abc859d82aa
Parses the record id. Tries casting to an integer first.
[ { "docid": "2478959250c00e24e72dcf43b55e8d05", "score": "0.6626955", "text": "public static String parseRecordId(final String recordId) {\n\n String record = \"\";\n\n if (StringUtils.isNotBlank(recordId)) {\n record = recordId;\n try {\n int number = Integer.parseInt(recordId);\n record = String.valueOf(number);\n } catch (NumberFormatException nfe) {\n // Error casting to a number\n }\n }\n return record;\n }", "title": "" } ]
[ { "docid": "f3855166a23affec7640555546c68cb3", "score": "0.65417886", "text": "private int getId(String id) {\n checkNotNull(id);\n try {\n return Integer.parseInt(id);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(e);\n }\n }", "title": "" }, { "docid": "c52b8a6c72c1b084d0a4a51c18de1907", "score": "0.6500747", "text": "public static int getIdFromString(String string) {\r\n \t\tif (!Util.isInteger(string.split(\":\")[0])) return 0;\r\n \t\treturn Integer.parseInt(string.split(\":\")[0]);\r\n \t}", "title": "" }, { "docid": "16851a8a567ef7ac0d921e1c531ae5cc", "score": "0.6377817", "text": "public int getIntId() {\r\n int intId = Integer.parseInt(id.substring(6,8));\r\n return intId;\r\n }", "title": "" }, { "docid": "d3aed169d736c980ac5f535148d60326", "score": "0.63160723", "text": "public static long idFromString(String s) {\n long id = -1;\n Matcher m = _idPattern.matcher(s);\n if (m.find()) {\n s = m.group(1);\n if (s.length()==10) {\n s = s+\"00\";\n } else if (s.length()==11) {\n s = s+\"0\";\n }\n id = Long.parseLong(s);\n if (id%100!=0) // ignore sidetrack wells\n id = -1;\n }\n return id;\n }", "title": "" }, { "docid": "889be5b7b19cbe598ed7bd65d5367e99", "score": "0.6296111", "text": "public static int parseIdFromString(String aString) {\n int id = -1;\n \n Pattern intPattern = Pattern.compile(\"\\\\d++\");\n Matcher intMatcher = intPattern.matcher(aString);\n \n while(intMatcher.find()){\n id = Integer.parseInt(intMatcher.group());\n }\n \n return id;\n }", "title": "" }, { "docid": "c29a4dd43da157229c530df2f7ae685c", "score": "0.62876445", "text": "private int toInternalId(String apiId) {\n try {\n // currently database ID is an int\n return Integer.parseInt(apiId);\n } catch (NumberFormatException exc) {\n throw new NoDraftFoundException(); //NOPMD\n }\n }", "title": "" }, { "docid": "194a405e135690dd08c78e032e40cafd", "score": "0.6136366", "text": "public static int getValidateInt(String strId) {\n int id = -1;\n try {\n id = Integer.valueOf(strId);\n } catch (NumberFormatException e) {\n e.printStackTrace(System.out);\n }\n return id;\n }", "title": "" }, { "docid": "7d0b85935505b67f19ca70021a845a40", "score": "0.6087885", "text": "int getRecordId();", "title": "" }, { "docid": "7d0b85935505b67f19ca70021a845a40", "score": "0.6087885", "text": "int getRecordId();", "title": "" }, { "docid": "7d0b85935505b67f19ca70021a845a40", "score": "0.6087885", "text": "int getRecordId();", "title": "" }, { "docid": "a232ac68e1da27b4b2305d51c3bd81ee", "score": "0.5979595", "text": "protected Integer readIdFromPath(String text) {\n\t\tif ((null != text) && (-1 != text.indexOf('/'))) {\n\t\t\ttext = getFirstSegment(text);\n\t\t}\n\t\tif (null == Strings.emptyToNull(text)) {\n\t\t\treturn null;\n\t\t}\n\t\tint id = NaN;\n\t\tif (Strings.isNumber(text)) {\n\t\t\ttry {\n\t\t\t\tid = Integer.parseInt(text);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "title": "" }, { "docid": "485e05cf232b8d2e40e87d5a882b7b73", "score": "0.5909328", "text": "public static ID parse(String arg) {\n\t\treturn new ID(arg);\r\n\t}", "title": "" }, { "docid": "ffd52ad4a74e732064172f1f062a1201", "score": "0.57960784", "text": "int Get_Id_Value (String id);", "title": "" }, { "docid": "9bf49ee931b4d545a29a35d21a0087b0", "score": "0.5788087", "text": "public static Long stringToKey(String id) throws DatastoreException {\n\t\ttry {\n\t\t\tString decodedId = urlDecode(id);\n\t\t\treturn new Long(decodedId);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new DatastoreException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "be3f0fabf1abd2b1d428b0fa15c31a04", "score": "0.57097894", "text": "int getId(String str);", "title": "" }, { "docid": "b558ed4a2c8560c2ba73fd3899ee466d", "score": "0.5702833", "text": "public Integer getId(String value);", "title": "" }, { "docid": "dccd7d93028c98852d664dc02dfc7d7a", "score": "0.567883", "text": "private String parseId(URI uri) {\n Pattern p = Pattern.compile(\"-?\\\\d+\");\n Matcher m = p.matcher(uri.getRawPath());\n\n if(m.find()) {\n return m.group();\n }\n else {\n return null;\n }\n }", "title": "" }, { "docid": "b80616aed0224788586bf81c9b197ef6", "score": "0.56519043", "text": "Id getId(String id);", "title": "" }, { "docid": "652296444daf6950556768be621fa281", "score": "0.56330997", "text": "private int parserIdPoke(String nom) {\n int index = nom.indexOf(\"Id: \");\n index = index+4;\n String num = \"\";\n int returnIdPoke = 0;\n boolean exit = true;\n String lletra = \"A\";\n while(exit){\n if(index >= nom.length()){\n break;\n }\n lletra = String.valueOf(nom.charAt(index));\n num = num.concat(lletra);\n index++;\n returnIdPoke = Integer.parseInt(num);\n }\n return returnIdPoke;\n }", "title": "" }, { "docid": "5a35262d3e680e1d4d960e3ff95e7bfe", "score": "0.5618398", "text": "private static int getInt(String str) {\n return (int)Integer.decode(str);\n }", "title": "" }, { "docid": "0882ddc062b9a9e9ea73818aa24800f3", "score": "0.56113404", "text": "protected int parseRequestId(HttpServletRequest request) {\n int id = -1;\n String req = \"\";\n if (request != null) {\n try {\n req = request.getParameter(\"id\");\n id = Integer.valueOf(req);\n } catch (NumberFormatException n) {\n return id;\n }\n }\n return id;\n\n }", "title": "" }, { "docid": "9f8a0261f5ea4aaa8270929597347eca", "score": "0.56030357", "text": "private int extractEmployeeID ( String str )\n {\n \n String[] dividedSTR = str.split( \" - \" ) ;\n \n return Integer.parseInt( dividedSTR[ 1 ] ) ;\n \n \n }", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "93f107897ea3b4309be8714637a57564", "score": "0.5601936", "text": "java.lang.String getIdStr();", "title": "" }, { "docid": "3d6ada3d806223bace4b5913a815d20f", "score": "0.55946887", "text": "@Override\n\t\t\tpublic ObjectId deserialize(JsonElement arg0, Type arg1, JsonDeserializationContext arg2)\n\t\t\t\t\tthrows JsonParseException {\n\t\t\t\treturn new ObjectId(arg0.getAsJsonObject().get(\"$oid\").getAsString());\n\t\t\t}", "title": "" }, { "docid": "712b9850e7fca3105fe9146b8bdb64c3", "score": "0.55942094", "text": "public void setId(String tmp) {\n this.id = Integer.parseInt(tmp);\n }", "title": "" }, { "docid": "712b9850e7fca3105fe9146b8bdb64c3", "score": "0.55942094", "text": "public void setId(String tmp) {\n this.id = Integer.parseInt(tmp);\n }", "title": "" }, { "docid": "cdd7e280a8a3a66632f7a50555223609", "score": "0.55859005", "text": "protected Object readID(DataInput input) throws IOException {\n\t\t\tConverter idConverter = VariableLengthBPlusTree.this.container()\n\t\t\t\t\t.objectIdConverter();\n\t\t\treturn idConverter.read(input, null);\n\t\t}", "title": "" }, { "docid": "3fd833f30c9fc00a5c7aa5e3a39a7f22", "score": "0.55743146", "text": "public static String getUserID(String record){\r\n\t\tString [] fields = record.split(ClickThroughAnalyzer.TabSeparator);\r\n\t\tif(6 == fields.length){\r\n\t\t\treturn fields[1];\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"bad line!\");\r\n\t\t\treturn null;\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "fe7016a106e27ab756217494af05ee4f", "score": "0.54826206", "text": "@Override\n protected JavaType _typeFromId(String id, DatabindContext ctxt) throws IOException {\n if (_baseType.isPrimitive()) {\n return _baseType;\n }\n // check if there's a specific type we should be using for this ID\n Class<?> subType = _idTypes.get(id);\n if (subType != null) {\n id = _idFrom(null, subType, _typeFactory);\n }\n try {\n return super._typeFromId(id, ctxt);\n } catch (InvalidTypeIdException | IllegalArgumentException e) {\n // AvroTypeDeserializer expects null if we can't map the type ID to a class; It will throw an appropriate error if we can't\n // find a usable type.\n return null;\n }\n }", "title": "" }, { "docid": "370e3e63d0b414e943a4bc7e60b9c9a8", "score": "0.5476407", "text": "public void setRecordId(long value) {\n this.recordId = value;\n }", "title": "" }, { "docid": "c2fc088512e6d682d9f911b231861209", "score": "0.5456107", "text": "public static long parseIdFromFileName(Path translogFile) {\n final String fileName = translogFile.getFileName().toString();\n final Matcher matcher = PARSE_ID_PATTERN.matcher(fileName);\n if (matcher.matches()) {\n try {\n return Long.parseLong(matcher.group(1));\n } catch (NumberFormatException e) {\n throw new ElasticsearchException(\"number formatting issue in a file that passed PARSE_ID_PATTERN: \" + fileName + \"]\", e);\n }\n }\n return -1;\n }", "title": "" }, { "docid": "87b6a61540b66ef35a3d378d1fbdcceb", "score": "0.5452837", "text": "public int idForString( String localName ) {\r\n Integer result = (Integer)_ids.get( localName );\r\n if (result==null) {\r\n return 0;\r\n }\r\n return result.intValue();\r\n }", "title": "" }, { "docid": "bb03bff0ba9a041b6d7d87b566c5852b", "score": "0.54450464", "text": "private Integer _readInt ()\n {\n\tint i = 0;\n\n\tif (buffer.length () == 0)\n\t return null;\n\n\tchar c = buffer.charAt (i++);\n\twhile ((i < buffer.length ())\n\t && ((c >= '0') && (c <= '9'))\n\t || (c == '-')) {\n\t c = buffer.charAt (i++);\n\t}\n\tif (i < buffer.length ()) i--;\n\tif (i > 0) {\n\t String st = buffer.substring (0, i);\n\t buffer = buffer.substring (i);\n\t try {\n\t\treturn new Integer (st);\n\t } catch (NumberFormatException e) { return null; }\n\t}\n\treturn null;\n }", "title": "" }, { "docid": "988793f2b9a35aad5ec5b038fad5bba7", "score": "0.54320526", "text": "public Object _deserializeFromObjectId(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException {\n Object deserialize = this._objectIdReader.deserializer.deserialize(jsonParser, deserializationContext);\n Object obj = deserializationContext.findObjectId(deserialize, this._objectIdReader.generator).item;\n if (obj != null) {\n return obj;\n }\n throw new IllegalStateException(\"Could not resolve Object Id [\" + deserialize + \"] -- unresolved forward-reference?\");\n }", "title": "" }, { "docid": "47b0a436f0e0952e4165c9e6de3ef0ea", "score": "0.5421435", "text": "io.dstore.values.IntegerValue getItemSetId();", "title": "" }, { "docid": "d90407f9bed586059be128bb0413c671", "score": "0.5418214", "text": "private static int parseMonkeyId(String line) {\r\n if (!line.startsWith(MONKEY_ID_LINE_PREFIX) || !line.endsWith(\":\")) {\r\n throw new IllegalArgumentException(\"Expected start of a new monkey, unexpected input: \" + line);\r\n }\r\n var monkeyIdString = line.substring(MONKEY_ID_LINE_PREFIX.length(), line.length() - 1);\r\n return Integer.parseInt(monkeyIdString);\r\n }", "title": "" }, { "docid": "a57bc983c12b3957e28167ce13c6c5c7", "score": "0.5408026", "text": "public void setRecordID(int value) {\n this.recordID = value;\n }", "title": "" }, { "docid": "cfdac5ce3e80f94d3e526daefe698709", "score": "0.5405078", "text": "public int getIDForObject(Object p_148757_1_) {\n/* 60 */ return this.underlyingIntegerMap.get(p_148757_1_);\n/* */ }", "title": "" }, { "docid": "b6902b0476159bf7d4495adb907e14a1", "score": "0.5388688", "text": "@Test\n\tpublic void testValidateIdWhenValidId() {\n\t\tString idStr = \"123\";\n\t\tInteger result = null;\n\t\ttry {\n\t\t\tresult = DiffService.getInstance().validateId(idStr);\n\t\t} catch (Exception e) {\n\t\t\tresult = -1;\n\t\t}\n\t\tAssertions.assertEquals(new Integer(123), result);\n }", "title": "" }, { "docid": "3766cfa2ca4e911421b8261c49c9dd6d", "score": "0.53746384", "text": "Integer getId();", "title": "" }, { "docid": "f413d5cdf92bb76960ad182b319d49da", "score": "0.53630793", "text": "private static int extractId(String header){\n\t\tif(header.startsWith(\"Max*(\")){\n\t\t\tString tmp = header.substring(5);\n\t\t\tif(tmp.matches(\"[0-9]{6}.*\")){\n\t\t\t\ttmp=tmp.substring(0,6);\n\t\t\t\treturn Integer.parseInt(tmp);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"header does not contain six digit omim id\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"header does not start with Max*(\");\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "1d233e9897db20d3ee16b7c9159efa8a", "score": "0.53571963", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "1d233e9897db20d3ee16b7c9159efa8a", "score": "0.53571963", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "1d233e9897db20d3ee16b7c9159efa8a", "score": "0.53571963", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "7a292006d1c8b69adc97eb1af5f2ee64", "score": "0.5356722", "text": "private int getId(String listItem){\n String[] splitString = listItem.split(\" \");\r\n return Integer.parseInt(splitString[0]);\r\n }", "title": "" }, { "docid": "652f6415bf50f766292e270c20d6d1e6", "score": "0.53560656", "text": "@Override\n public boolean isValidId(String id) {\n return id.matches(\"[0-9]{9}\");\n }", "title": "" }, { "docid": "0dbe014e6f23b1980d94122dd5e137a6", "score": "0.53559095", "text": "public void getID(int idnum) throws IOException;", "title": "" }, { "docid": "d762293b77379280f39cbe83d436c2f1", "score": "0.53499925", "text": "public static String parseItemEntityId(JsonObject snak) {\n String entityId = extractFromMainsnak(snak, \"id\");\n if (entityId != null) return entityId;\n return \"\";\n }", "title": "" }, { "docid": "9fa4c944406ac4670b3d80e4fb3c8b1d", "score": "0.53461725", "text": "static private Object dbReturnID(String[] result){\n return result[0];\n //return Integer.parseInt(result[0]);\n }", "title": "" }, { "docid": "0bafa1857e883199a9ce32cbad5e30ca", "score": "0.5335845", "text": "private static int getInternalNumberFromResourceID(int id)\n\t{\n\t\tswitch (id) {\n\t\tcase R.id.cs: return 3;\n\t\tcase R.id.en: return 4;\n\t\tcase R.id.es: return 5;\n\t\tcase R.id.ca: return 6;\n\t\tcase R.id.localedefault: return 1;\n\t\tcase R.id.sdcard: return 2;\n\t\tdefault: return 1;\n\t\t}\n\t}", "title": "" }, { "docid": "a0a609d26ef425cdafecf8929c5c4f3d", "score": "0.5326105", "text": "int getRecordId(int index);", "title": "" }, { "docid": "3210a97855c038706dbfa7641a6e45f7", "score": "0.53224164", "text": "IDType getID();", "title": "" }, { "docid": "0566a6f2cf6efd6da1b41c59ed3fa645", "score": "0.53190535", "text": "java.lang.String getID();", "title": "" }, { "docid": "34de66221dd346ae7d734413eff077ee", "score": "0.5309578", "text": "protected static String readObjectID(Object obj) {\n if (Model.getFacade().isAUMLElement(obj) \n || (obj instanceof CommentEdge)) {\n return UUIDHelper.getUUID(obj);\n }\n\n\tObject rv;\n\ttry {\n\t Method m = obj.getClass().getMethod(\"getItemUID\", (Class[]) null);\n\t rv = m.invoke(obj, (Object[]) null);\n\t} catch (NoSuchMethodException nsme) {\n\t // Apparently this object had no getItemUID\n\t return null;\n\t} catch (SecurityException se) {\n\t // Apparently it had a getItemUID,\n\t // but we're not allowed to call it\n\t return null;\n\t} catch (InvocationTargetException tie) {\n\t LOG.error(\"getItemUID for \" + obj.getClass() + \" threw: \",\n\t\t tie);\n\t return null;\n\t} catch (IllegalAccessException iace) {\n\t // Apparently it had a getItemUID,\n\t // but we're not allowed to call it\n\t return null;\n\t} catch (IllegalArgumentException iare) {\n\t LOG.error(\"getItemUID for \" + obj.getClass()\n\t\t + \" takes strange parameter: \",\n\t\t iare);\n\t return null;\n\t} catch (ExceptionInInitializerError eiie) {\n\t LOG.error(\"getItemUID for \" + obj.getClass()\n\t\t + \" exception: \",\n\t\t eiie);\n\t return null;\n\t}\n\n\tif (rv == null) {\n\t return null;\n\t}\n\n\tif (!(rv instanceof ItemUID)) {\n\t LOG.error(\"getItemUID for \" + obj.getClass()\n\t\t + \" returns strange value: \" + rv.getClass());\n\t return null;\n\t}\n\n\treturn rv.toString();\n }", "title": "" }, { "docid": "cd99e1eaca677e82581bea032be928c7", "score": "0.5284501", "text": "private int getIdFromEventTitle(String stringToSplit) {\n\t\tString evTitle = stringToSplit;\n String[] splitedString = evTitle.split(\"-\");\n int id = Integer.parseInt(splitedString[0].trim());\n\t\treturn id;\n\t}", "title": "" }, { "docid": "86766e76adfeaa996643acb7ad329d60", "score": "0.5274114", "text": "@Override\n\tpublic Object assignIdValue(Object data, Number val, ObjectCache objectCache) throws SQLException {\n\t\tObject idVal = dataPersister.convertIdNumber(val);\n\t\tif (idVal == null) {\n\t\t\tthrow new SQLException(\"Invalid class \" + dataPersister + \" for sequence-id \" + this);\n\t\t} else {\n\t\t\tassignField(data, idVal, false, objectCache);\n\t\t\treturn idVal;\n\t\t}\n\t}", "title": "" }, { "docid": "1df2ff29a2339014d570deebede9b4de", "score": "0.52635485", "text": "public static int numFromString(String toParse) {\n String intStr = \"\";\n\n //goes through string looking for digits in a cheermote. concatinates digits found into a single number\n for (int i = 0; i < toParse.length(); i++) {\n char currentChar = toParse.charAt(i);\n if (Character.isDigit(currentChar)) {\n intStr = intStr + currentChar;\n }\n }\n\n //empty string no digits so return 0\n if (intStr.equals(\"\")) {\n return 0;\n }\n //non empty string meaning digits were found so return the string as an int\n else {\n return Integer.parseInt(intStr);\n }\n }", "title": "" }, { "docid": "0b44ee8981471122ee993af4ae893432", "score": "0.5251068", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "0b44ee8981471122ee993af4ae893432", "score": "0.5251068", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "0b44ee8981471122ee993af4ae893432", "score": "0.5251068", "text": "public int getRecordId() {\n return recordId_;\n }", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.5240775", "text": "java.lang.String getId();", "title": "" }, { "docid": "2846f9f67c65e03fe05b9d8bf2ba1a76", "score": "0.5235311", "text": "protected Serialization handleId(Element element) {\n\t\treturn handleId(element, new HashMap<String, String>(), false);\n\t}", "title": "" }, { "docid": "534a2f0d981a2fce358d6277aedcf601", "score": "0.5226294", "text": "protected abstract int parseForLatestId(BufferedReader reader) throws ComicLatestException, IOException;", "title": "" }, { "docid": "81ef823956839e7c57773fb63d27da4c", "score": "0.52131987", "text": "io.dstore.values.IntegerValueOrBuilder getItemSetIdOrBuilder();", "title": "" }, { "docid": "5cedd3964e5556d827f3703d9a2c6dc5", "score": "0.5203882", "text": "protected Integer getIntegerValue() throws CoalesceDataFormatException\n {\n if (getDataType() != ECoalesceFieldDataTypes.INTEGER_TYPE\n && getDataType() != ECoalesceFieldDataTypes.ENUMERATION_TYPE)\n {\n throw new ClassCastException(\"Type mismatch\");\n }\n\n try\n {\n\n if (StringHelper.isNullOrEmpty(getBaseValue()))\n return null;\n\n return Integer.parseInt(getBaseValue());\n\n }\n catch (NumberFormatException nfe)\n {\n throw new CoalesceDataFormatException(\"Failed to parse integer value for: \" + getName());\n }\n\n }", "title": "" } ]
0bb2688cdf738efa09095caa7672d729
/ int itemPosition = rvComment.getChildLayoutPosition(v); Post post = commentList.get(itemPosition); Intent intent = new Intent(PostAdapter.this.context, CommentReceiver.class); intent.putExtra(ID_POST_ADAPTER, post.getId()); intent.putExtra(INFO_POST_USER, post.getUser().getName() + " " + post.getUser().getLastname()); intent.putExtra(ID_POST_USER, post.getUser().getId()); intent.putExtra(INFO_POST_CONTENT, post.getContent()); context.startActivity(intent);
[ { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n }", "title": "" } ]
[ { "docid": "934f3088c99e58f3e00c7ae8afd0a2e4", "score": "0.74350727", "text": "@Override\r\n //When the review is clicked in PopulistoListView\r\n //then show that review\r\n public void onClick(View v) {\n Toast.makeText(v.getContext(), position + \" cheers!\", Toast.LENGTH_SHORT).show();\r\n\r\n Review reviewUser = (Review) UPopulistoListAdapter.getItem(position);\r\n\r\n //we want to pass the review_id of the reviewUser being clicked\r\n //to the ViewContact activity, and from there post it and get more\r\n //info for that reviewUser - address, comments etc\r\n Intent i = new Intent(v.getContext(), ViewContact.class);\r\n //pass the review_id to ViewContact class\r\n i.putExtra(\"review_id\", reviewUser.getReviewid());\r\n //pass the PhoneNumberofUserFromDB to ViewContact class\r\n //the key is \"PhoneNumberofUserFromDB\"\r\n i.putExtra(\"PhoneNumberofUserFromDB\", reviewUser.getPhoneNumberofUserFromDB());\r\n v.getContext().startActivity(i);\r\n }", "title": "" }, { "docid": "796c6f0486630d134f49c3ebdbfd0ce2", "score": "0.7359537", "text": "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder holder=null;\n\t\tif(convertView==null) {\n\t\t\tconvertView=LayoutInflater.from(mContext).inflate(R.layout.post_info_comment_item, null);\n\t\t\tholder=new ViewHolder(convertView);\n\t\t\tconvertView.setTag(holder);\n\t\t}else {\n\t\t\tholder=(ViewHolder) convertView.getTag();\n\t\t}\n\t\tfinal Comment com=mListComment.get(position);\n\t\tmImageFetcher.loadImage(com.getHeadUrl(), holder.mPostHeadIv);\n\t\tholder.mPostNameTv.setText(com.getName());\n\t\tholder.mPostTimeTv.setText(com.getTime());\n\t\tString content=com.getContent();\n\t\tholder.mPostContent.setText(content);\n\t\tUtils.addLinks(color,\"\",holder.mPostContent);\n\t\tholder.mPostChat.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent=new Intent(PostInfoActivity.POST_RECEIVED_ACTION);\n\t\t\t\tintent.putExtra(\"uid\", com.getUid());\n\t\t\t\tintent.putExtra(\"name\", com.getName());\n\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t}\n\t\t});\n\t\treturn convertView;\n\t}", "title": "" }, { "docid": "26b00a18da0d53925b9ff65fb31b0955", "score": "0.7294528", "text": "@Override\n public void onItemClick(AdapterView< ? > adapterView, View view, int position, long id) {\n\n Intent i = new Intent(getActivity(), DetailedPostActivity.class);\n // toString instead of sending over the whole DatabaseReference because it's easier\n i.putExtra(\"ID\", currUserId);\n i.putExtra(\"Name\",currUserName);\n i.putExtra(\"Users\", userFriends);\n i.putExtra(\"Friend\", friendPic);\n i.putExtra(\"CurrPic\", currPicture);\n i.putExtra(DetailedPostActivity.EXTRA_POST, Posts.get(position));\n startActivity(i);\n }", "title": "" }, { "docid": "34e121884452a564b12146431d10b186", "score": "0.722279", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tint position = Integer.parseInt(String.valueOf(v.getTag()));\n\t\t\tCourseMaterialsData cmd = alCMList.get(position);\n\t\t\tIntent myIntent = new Intent(myContext,CommentView.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\tmyIntent.putExtra(\"type\",\"Course Materials\");\n\t\t\tmyIntent.putExtra(\"data\",cmd);\n\t\t\tmyContext.startActivity(myIntent);\n\t\t}", "title": "" }, { "docid": "e82e666e7be3d45c741d92dce383184c", "score": "0.7135184", "text": "@Override\r\n public void onItemClick(AdapterView<?> parent, View view,\r\n int position, long id) {\n String username = FirebaseAuth.getInstance().getCurrentUser().getDisplayName();\r\n Comment current_comment = (Comment) ListViewComment.getItemAtPosition(position);\r\n Boolean check = (username.equals(current_comment.getUsername()));\r\n if (!check){\r\n Toast.makeText(ItemViewActivity.this, \"Single Click on Your Comment to Edit\", Toast.LENGTH_SHORT).show();\r\n }\r\n else{\r\n update_comment_firebase();\r\n Intent CommentUpdateIntent= new Intent(ItemViewActivity.this, AddCommentActivity.class);\r\n CommentUpdateIntent.putExtra(\"update\",true);\r\n CommentUpdateIntent.putExtra(\"rate\", current_comment.getRating());\r\n CommentUpdateIntent.putExtra(\"comment\", current_comment.getContent());\r\n current_comment_position = position;\r\n startActivityForResult(CommentUpdateIntent,UPDATE_COMMENT);\r\n ((Activity) ItemViewActivity.this).overridePendingTransition(R.layout.animate_slide_up_enter, R.layout.animate_slide_up_exit);\r\n }\r\n }", "title": "" }, { "docid": "235862c2a91231c13609a9138bf1e933", "score": "0.7084297", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context,JinxuanxiangqingActivity.class);\n// intent.putExtra(\"ShareURL\", list.get(position).getChildList().get(position).getShareURL());\n intent.putExtra(\"description\", list.get(position).getChildList().get(position).getShareURL());\n context.startActivity(intent);\n }", "title": "" }, { "docid": "62c33d6b0b54acbe1ffca4a93857c438", "score": "0.7063221", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tString txt = ((EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.square_comment_edit))\r\n\t\t\t\t\t\t\t\t\t.getText().toString();\r\n\t\t\t\t\t\t\tmyComment = new CommentModel();\r\n\t\t\t\t\t\t\tmyComment.setcId(\"3\");\r\n\t\t\t\t\t\t\tmyComment.setComment(txt);\r\n\t\t\t\t\t\t\tSimpleDateFormat sDateFormat = new SimpleDateFormat(\"yyyy年MM月dd日\");\r\n\t\t\t\t\t\t\tString data = sDateFormat.format(new java.util.Date());\r\n\t\t\t\t\t\t\tmyComment.setData(data);\r\n\t\t\t\t\t\t\tmyComment.setdId(dynamic.getdId());\r\n\t\t\t\t\t\t\tmyComment.setuId(dynamic.getuId());\r\n\t\t\t\t\t\t\tmyComment.setuName(\"jiangshan\");\r\n\t\t\t\t\t\t\tmyComment.setuPic(R.drawable.user_pic7);\r\n\t\t\t\t\t\t\tcommentList.add(myComment);\r\n\t\t\t\t\t\t\tSystem.out.println(\"2、commentList.size() = \"+commentList.size());\r\n\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\r\n\t\t\t\t\t\t\tlistview.setTranscriptMode(ListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);\r\n\t\t\t\t\t\t\tdismiss();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "73018e93ec3b886d30e4e6edbe4a8f74", "score": "0.70358694", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, NoteDetail.class);\n intent.putExtra(\"title\", mNoteList.get(position).getTitle()); // put title data in Intent\n intent.putExtra(\"body\", mNoteList.get(position).getBody()); // put body data in Intent\n intent.putExtra(\"date\", mNoteList.get(position).getDateTime()); // put datetime data in Intent\n mContext.startActivity(intent); // start Intent\n }", "title": "" }, { "docid": "d9035bdb9508813393d8a1adcee791b3", "score": "0.69185734", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (list.getItemAtPosition(position)!= null) {\n // if the item at the given index text isn't \"None\"\n if (!list.getItemAtPosition(position).toString().equals(\"None\")) {\n\n // Alerts the user that there isn't a reason to view it in more detail\n if (userNameOfPost[position].equals(\"None\")&& linkUrl[position].equals(\"None\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n\n builder.setMessage(\"There is only this text content for this item\");\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n builder.show();\n } else {\n Intent itemView = new Intent(context, FeedItemView.class);\n itemView.putExtra(\"msg\", userPosts[position]);\n itemView.putExtra(\"userNameOfPost\", userNameOfPost[position]);\n itemView.putExtra(\"link\", linkUrl[position]);\n\n startActivity(itemView);\n }\n }\n }\n }", "title": "" }, { "docid": "b725b1546d07a3ad628f29bdbc961d20", "score": "0.6912886", "text": "public void onItemClick(AdapterView parent, View v, int position, long id) {\n Long postId = mAdapter.getItem(position).getId();\n Intent intent = new Intent(ChoosePostActivity.this, EditActivity.class);\n intent.putExtra(\"id\", postId);\n startActivity(intent);\n }", "title": "" }, { "docid": "20b45779dbab29c76030c5f9d01f6416", "score": "0.68873006", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent().setClass(context, ReviewDescription.class);\n //intent.putExtra(\"intent_invoker\",\"offer_page\");\n intent.putExtra(\"review_dt\", reviewList.get(position).getReviewDate());\n intent.putExtra(\"review_tit\", reviewList.get(position).getReviewTitle());\n intent.putExtra(\"review_descrip\", reviewList.get(position).getReviewDescription());\n intent.putExtra(\"review_img_url\", reviewList.get(position).getReviewImageurl());\n intent.putExtra(\"reviewer_name\",name);\n context.startActivity(intent);\n }", "title": "" }, { "docid": "353011492e5620f312cc27e843916d01", "score": "0.6840433", "text": "@Override\n public void onClick(View view) {\n postComment();\n\n\n }", "title": "" }, { "docid": "41e01f07c859e08d527e46ab51a085fb", "score": "0.68352205", "text": "void onItemClick(MainComment item);", "title": "" }, { "docid": "8dc7000ff1ca5dccd50a71c993fb4af0", "score": "0.6833423", "text": "@Override\n public void onItemClick(View view, int position) {\n String mTitle = getItem(position).getTitle();\n String mDesc = getItem(position).getDescription();\n\n String mImage = getItem(position).getImage();\n // String postId = getItem(position).getUid();\n\n\n\n\n //passing data to the new activity\n Intent intent = new Intent(view.getContext(), ImageDetailsActivity.class);\n\n intent.putExtra(\"title\", mTitle);//put title\n intent.putExtra(\"description\", mDesc);//put description\n intent.putExtra(\"image\", mImage);//put image url\n // intent.putExtra(\"uid\",postId);//put post id\n startActivity(intent);\n\n\n\n }", "title": "" }, { "docid": "d7b84b928a53e9c126ad6cbb6e270620", "score": "0.68148017", "text": "@Override\n public void onItemClick(View view, int position) {\n String mTitle = getItem(position).getTitle();\n String mDesc = getItem(position).getDescription();\n String mImage = getItem(position).getImage();\n //String postId = getItem(position).getUid();\n\n //passing data to the new activity\n Intent intent = new Intent(view.getContext(), ImageDetailsActivity.class);\n\n intent.putExtra(\"title\", mTitle);//put title\n intent.putExtra(\"description\", mDesc);//put description\n intent.putExtra(\"image\", mImage);//put image url\n // intent.putExtra(\"uid\",postId);//put post id\n startActivity(intent);\n\n\n }", "title": "" }, { "docid": "b75452c17e8b379bd6688ddfcbd37180", "score": "0.68000495", "text": "@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder holder;\r\n\t\tif(convertView==null)\r\n\t\t{\r\n\t\t\tholder=new ViewHolder();\r\n\t\t\tconvertView=View.inflate(context, R.layout.item_comment, null);\r\n\t\t\tholder.ll_comments=(LinearLayout)convertView.findViewById(R.id.ll_comment);\r\n\t\t\tholder.iv_avatar=(ImageView)convertView.findViewById(R.id.iv_avatar);\r\n\t\t\tholder.tv_subhead=(TextView)convertView.findViewById(R.id.tv_subhead);\r\n\t\t\tholder.tv_caption=(TextView)convertView.findViewById(R.id.tv_caption);\r\n\t\t\tholder.tv_comment=(TextView)convertView.findViewById(R.id.tv_comment);\r\n\t\t\tconvertView.setTag(holder);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tholder=(ViewHolder)convertView.getTag();\r\n\t\t}\r\n\t\tComment comment=comments.get(position);\r\n\t\tUser user=comment.getUser();\r\n\t\timageLoader.displayImage(user.getProfile_image_url(), holder.iv_avatar);\r\n\t\tholder.tv_subhead.setText(user.getName());\r\n\t\tholder.tv_caption.setText(DateUtils.getShortTime(comment.getCreated_at()));\r\n\t\tSpannableString content=StringUtils.getWeiboContent(context, holder.tv_comment, comment.getText());\r\n\t\tholder.tv_comment.setText(content);\r\n\t\tholder.ll_comments.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tToastUtils.showToast(context, \"点击了评论\", Toast.LENGTH_SHORT);\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn convertView;\r\n\t}", "title": "" }, { "docid": "0301a312c506baab02d10a44c1ee41a3", "score": "0.67794555", "text": "@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n if (holder instanceof ViewHolder) {\n final ViewHolder vItem = (ViewHolder) holder;\n final CommentObject c = items.get(position);\n\n imgloader.displayImage(c.poster_picture, vItem.person);\n if (!c.poster_id.equals(UserUtil.userId)) {\n vItem.person.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(CommentActivity.this, PersonProfileActivity.class);\n intent.putExtra(PersonProfileActivity.PERSON_ID, \"\" + c.poster_id);\n startActivity(intent);\n }\n });\n } else {\n vItem.person.setOnClickListener(null);\n }\n vItem.name.setText(c.poster_name);\n SimpleDateFormat format = new SimpleDateFormat(PostsUtil.POST_DATA_FORMAT);\n try {\n Date date = format.parse(c.posted_on);\n vItem.date.setReferenceTime(date.getTime());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n vItem.comment.setText(c.comment);\n\n } else {\n ((ProgressViewHolder) holder).progressBar.setIndeterminate(true);\n }\n\n }", "title": "" }, { "docid": "23830870f41d4e2644fe1de352ba49b9", "score": "0.67734087", "text": "@Override\n public void onClick(View v) {\n\n String listid = item.getListID();\n Intent intent = new Intent(getContext(), ListDetailActivity.class);\n intent.putExtra(\"ListID\",listid);\n mContext.startActivity(intent);\n\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "53a2e4abe653f4f22063e3985c09294e", "score": "0.67537373", "text": "@Override\n public void onClick(View v) {\n Log.d(TAG,\"onClick is called\");\n DetailActivity detailActivity = new DetailActivity();\n Intent intent = new Intent(context,detailActivity.getClass());\n intent.putExtra(INTENT_EXTRA_MEDIA_ITEM, (Serializable) mediaItems.get(position));\n context.startActivity(intent);\n }", "title": "" }, { "docid": "c87556b7be38d3aeb26a0c45b61cb230", "score": "0.6745711", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tMSGActivity.getAllComment();\t\n\t\t\t\t\t}", "title": "" }, { "docid": "1872b0477fae3ccb3d2003c8b31fee8a", "score": "0.6741544", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n long arg3) {\n int pos = arg2;\n\n // llamar a la funcion que marca el articulo como leido\n\n marcarLeido(pos);\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"feed\", feed);\n Intent intent = new Intent(MainActivity.this, DetailActivity.class);\n intent.putExtras(bundle);\n intent.putExtra(\"pos\", pos);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "cfbddf2a886694ac25c5b35f5a40e763", "score": "0.67271036", "text": "public void addItems(View v) {\n \n Intent intent = new Intent(this, Add_Comment.class);\n\t\tstartActivity(intent);\n // adapter0.notifyDataSetChanged();\n }", "title": "" }, { "docid": "e991b66aaa741a799a504ff4d72f39b3", "score": "0.67141694", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(this.ctx,Post_Details.class);\n intent.putExtra(\"id\",id);\n this.ctx.startActivity(intent);\n\n\n }", "title": "" }, { "docid": "072cbf388a120b2e3e42c16905e7ceba", "score": "0.6710554", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n News n = newsList.get(position);\n\n Intent intent = new Intent(getActivity(), NewsActivity.class);\n intent.putExtra(\"news_title\", n.getTitle());\n intent.putExtra(\"news_img\", n.getImageId());\n intent.putExtra(\"news_content\", n.getContent());\n startActivity(intent);\n }", "title": "" }, { "docid": "61120a0d5a89e37adc34873bc1de3bb1", "score": "0.6668072", "text": "@SuppressLint({\"CheckResult\", \"UseCompatLoadingForDrawables\"})\n @Override\n public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder holder, final int listPosition) {\n\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(DisplayViewUI.getRandomDrawableColor());\n requestOptions.error(DisplayViewUI.getRandomDrawableColor());\n requestOptions.centerCrop();\n\n Intent commentsIntent = new Intent(context, CommentsActivity.class);\n\n\n AlertItems object = dataSet.get(listPosition);\n if (object != null) {\n\n commentsIntent.putExtra(\"id\", object.getId());\n commentsIntent.putExtra(\"url\", object.getUrl());\n commentsIntent.putExtra(\"address\", object.address);\n commentsIntent.putExtra(\"datePosted\", object.getDateReported());\n\n switch (object.type) {\n case AppConstants.VIDEO_TYPE:\n\n //bind data in xml\n ((VideoTypeViewHolder) holder).videoTypeBinding.setVideoType(object);\n //show time\n ((VideoTypeViewHolder) holder).videoTypeBinding.txtTime.setText(GetTimeAgo.getTimeAgo(object.getTimeStamp()));\n //check if video is seen by police\n ((VideoTypeViewHolder) holder).isCrimeSolved(object.isSolved());\n\n numOfComments(((VideoTypeViewHolder) holder).txtComments, object.getId());\n\n //load users images into views\n Glide.with(((VideoTypeViewHolder) holder).videoTypeBinding.getRoot().getContext())\n .load(object.getUserPhotoUrl())\n .thumbnail(0.5f)\n .error(((VideoTypeViewHolder) holder).videoTypeBinding.getRoot().getResources().getDrawable(R.drawable.photo))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(((VideoTypeViewHolder) holder).videoTypeBinding.imgUserPhoto);\n\n try {\n HttpProxyCacheServer proxy = Dalilu.getProxy(((VideoTypeViewHolder) holder).videoTypeBinding.getRoot().getContext());\n String proxyUrl = proxy.getProxyUrl(object.getUrl());\n\n\n ((VideoTypeViewHolder) holder).videoView.setVideoPath(proxyUrl);\n // ((VideoTypeViewHolder) holder).videoView.requestFocusFromTouch();\n\n MediaController mediaController = new MediaController(((VideoTypeViewHolder) holder).videoTypeBinding.getRoot().getContext());\n ((VideoTypeViewHolder) holder).videoView.setMediaController(mediaController);\n mediaController.setAnchorView(((VideoTypeViewHolder) holder).videoView);\n FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);\n lp.gravity = Gravity.BOTTOM;\n mediaController.setLayoutParams(lp);\n ((ViewGroup) mediaController.getParent()).removeView(mediaController);\n ((VideoTypeViewHolder) holder).frameLayout.addView(mediaController);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n //comment on click\n ((VideoTypeViewHolder) holder).txtComments.setOnClickListener(view -> {\n\n commentsIntent.putExtra(\"type\", AppConstants.VIDEO_EXTENSION);\n view.getContext().startActivity(commentsIntent);\n\n });\n\n ((VideoTypeViewHolder) holder).cardView.setOnClickListener(view -> {\n Intent vid = new Intent(view.getContext(), VideoViewActivity.class);\n vid.putExtra(AppConstants.UID, object.getId());\n vid.putExtra(AppConstants.OBJECT_URL, object.getUrl());\n vid.putExtra(AppConstants.KNOWN_LOCATION, object.address);\n vid.putExtra(AppConstants.IS_SOLVED, object.isSolved);\n vid.putExtra(AppConstants.TIME_STAMP, object.getTimeStamp());\n vid.putExtra(AppConstants.USER_NAME, object.getUserName());\n\n view.getContext().startActivity(vid);\n\n });\n\n\n break;\n case AppConstants.IMAGE_TYPE:\n //bind data in xml\n ((ImageTypeViewHolder) holder).imageTypeBinding.setImageType(object);\n ((ImageTypeViewHolder) holder).imageTypeBinding.txtTime.setText(GetTimeAgo.getTimeAgo(object.getTimeStamp()));\n //load user photo\n Glide.with(((ImageTypeViewHolder) holder).imageTypeBinding.getRoot().getContext())\n .load(object.getUserPhotoUrl())\n .thumbnail(0.5f)\n .error(((ImageTypeViewHolder) holder).imageTypeBinding.getRoot().getResources().getDrawable(R.drawable.photo))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(((ImageTypeViewHolder) holder).imageTypeBinding.imgUserPhoto);\n\n //load images\n Glide.with(((ImageTypeViewHolder) holder).imageTypeBinding.getRoot().getContext())\n .load(object.getUrl())\n .thumbnail(0.5f)\n .apply(requestOptions)\n .listener(new RequestListener<Drawable>() {\n @Override\n public boolean onLoadFailed(@Nullable GlideException e, Object model, Target<Drawable> target, boolean isFirstResource) {\n\n if (isFirstResource) {\n ((ImageTypeViewHolder) holder).imageTypeBinding.progressBar.setVisibility(View.GONE);\n\n }\n ((ImageTypeViewHolder) holder).imageTypeBinding.progressBar.setVisibility(View.VISIBLE);\n\n return false;\n }\n\n @Override\n public boolean onResourceReady(Drawable resource, Object model, Target<Drawable> target, DataSource dataSource, boolean isFirstResource) {\n ((ImageTypeViewHolder) holder).imageTypeBinding.progressBar.setVisibility(View.INVISIBLE);\n return false;\n }\n }).transition(DrawableTransitionOptions.withCrossFade()).optionalCenterCrop()\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into((((ImageTypeViewHolder) holder).imageTypeBinding.imgContentPhoto));\n\n ((ImageTypeViewHolder) holder).isCrimeSolved(object.isSolved());\n\n\n //shows the number of comments on the post\n numOfComments(((ImageTypeViewHolder) holder).txtComments, object.getId());\n\n ((ImageTypeViewHolder) holder).cardView.setOnClickListener(view -> {\n Intent img = new Intent(view.getContext(), ImageViewActivity.class);\n img.putExtra(AppConstants.UID, object.getId());\n img.putExtra(AppConstants.OBJECT_URL, object.getUrl());\n img.putExtra(AppConstants.KNOWN_LOCATION, object.address);\n img.putExtra(AppConstants.IS_SOLVED, object.isSolved);\n img.putExtra(AppConstants.DATE_TIME, object.getDateReported());\n img.putExtra(AppConstants.USER_NAME, object.getUserName());\n\n view.getContext().startActivity(img);\n\n });\n\n ((ImageTypeViewHolder) holder).txtComments.setOnClickListener(view -> {\n commentsIntent.putExtra(\"type\", AppConstants.IMAGE_EXTENSION);\n\n view.getContext().startActivity(commentsIntent);\n\n });\n\n\n break;\n\n }\n }\n\n }", "title": "" }, { "docid": "2acc2377922088e4fa97f83d8c523d5a", "score": "0.6647226", "text": "@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_comment_feed);\n\n String title=getIntent().getStringExtra(\"post_title\");\n // TODO: replace this with the name of the landmark the user chose\n\n setTitle(title + \": Posts\");\n\n // hook up UI elements\n layout = (RelativeLayout) findViewById(R.id.comment_layout);\n commentInputBox = (EditText) layout.findViewById(R.id.comment_input_edit_text);\n sendButton = (Button) layout.findViewById(R.id.send_button);\n\n\n mRecyclerView = (RecyclerView) findViewById(R.id.comment_recycler);\n mRecyclerView.setHasFixedSize(true);\n mRecyclerView.setLayoutManager(new LinearLayoutManager(this));\n\n\n\n DatabaseReference mUsersRef=FirebaseDatabase.getInstance().getReference().child(\"Users\");\n\n mUsersRef.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).addValueEventListener(new ValueEventListener()\n {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot)\n {\n mCurrentUser=dataSnapshot.getValue(Users.class);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError)\n {\n\n }\n });\n\n\n\n // create an onclick for the send button\n setOnClickForSendButton();\n\n addComments();\n\n // use the comments in mComments to create an adapter. This will populate mRecyclerView\n // with a custom cell (with comment_cell_layout) for each comment in mComments\n setAdapterAndUpdateData();\n }", "title": "" }, { "docid": "326da5d3f37d4e08f5e3ffd669462d2c", "score": "0.6621249", "text": "public UserViewHolder(@NonNull ItemUserBinding binding) {\n super(binding.getRoot());\n\n this.binding = binding;\n// name = itemView.findViewById(R.id.name);\n// messageBody = itemView.findViewById(R.id.message_body);\n// messageImage = itemView.findViewById(R.id.message_profile_image);\n\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ChatModel chatModel = list.get(getAdapterPosition());\n\n// Intent intent = new Intent(context, MessageActivity.class);\n Intent intent = new Intent(context, MessageActivity.class);\n intent.putExtra(Constants.KEY_CHAT_ID, chatModel.id);\n context.startActivity(intent);\n }\n });\n\n\n }", "title": "" }, { "docid": "651b3be1c095a29715ac08713e9cc113", "score": "0.66202813", "text": "@Override\n public void onClick(View view) {\n EkePrefUtils ekePost = new EkePrefUtils(getActivity());\n String post = ekePost.loadSelectedPost();\n Intent intent = new Intent(getActivity(), EkeEditPostActivity.class);\n intent.setAction(Intent.ACTION_SEND);\n intent.putExtra(\"myPost\", post);\n startActivity(intent);\n dismiss();\n }", "title": "" }, { "docid": "6517e150b67b9a26f59621a22227db5b", "score": "0.6616275", "text": "@Override\n public void onClick(View v) {\n Intent clickedIntent = new Intent(getContext(), ClickedPostActivity.class);\n //send key to clickedActivity by using putExtra\n clickedIntent.putExtra(\"PostKey\", postKey);\n startActivity(clickedIntent);\n\n }", "title": "" }, { "docid": "d9ae7b65eb83e7815508645d97cbbf56", "score": "0.6613051", "text": "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case 1:\n mAdapter = new CommentListAdapter(DebateCompetitionActivity.this, list);\n lv_comment.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n break;\n default:\n break;\n }\n super.handleMessage(msg);\n }", "title": "" }, { "docid": "e1f54a4f1318fab9a9dd066563b05d21", "score": "0.6610972", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tintent = new Intent(getApplicationContext(),\n\t\t\t\t\t\tCommentsActivity.class);\n\t\t\t\tintent.putExtra(\"serial_num\", serial_num);\n\t\t\t\tintent.putExtra(\"emotion\", emotion);\n\t\t\t\tintent.putExtra(\"title\", title);\n\t\t\t\tintent.putExtra(\"kind\", pageCodename);\n\t\t\t\tintent.putExtra(\"description\", description);\n\t\t\t\tintent.putExtra(\"maleGoodCnt\", maleGoodCnt);\n\t\t\t\tintent.putExtra(\"femaleGoodCnt\", femaleGoodCnt);\n\t\t\t\tintent.putExtra(\"bm\", bm);\n\t\t\t\tstartActivity(intent);\n\t\t\t\toverridePendingTransition(R.anim.push_right_in,R.anim.push_right_out);\n\t\t\t}", "title": "" }, { "docid": "193ad28dc76bfce93e3146d56fd2434b", "score": "0.6580715", "text": "@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tLayoutInflater inflater = (LayoutInflater) context\n\t\t\t\t.getSystemService(context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflater.inflate(R.layout.single_comment, parent, false);\n\t\tcomment = commentsList.get(position);\n\t\tholder = new MyCommentHolder(v, comment.getComment_id(),\n\t\t\t\tcomment.getNmbr_of_logical(), comment.getNmbr_of_ilogical(),\n\t\t\t\tcomment.getNmbr_of_comments());\n\t\tholder.name.setText(comment.getName());\n\t\tholder.comment.setText(comment.getComment());\n\t\tholder.logical.setText(comment.getNmbr_of_logical() + \"\");\n\t\tholder.illogical.setText(comment.nmbr_of_ilogical + \"\");\n\t\tholder.subcomm.setText(comment.getNmbr_of_comments() + \"\");\n\t\t\n\t\t/*\n\t\tholder.uVote.setTag(holder);\n\t\tholder.dVote.setTag(holder);\n\t\tholder.reply.setTag(holder);\n\t\tv.setTag(holder);\n\n\t\tholder.uVote.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMyCommentHolder mch = (MyCommentHolder) v.getTag();\n\t\t\t\tif (v.getAlpha() == 0.5) {\n\t\t\t\t\tv.setAlpha(1);\n\t\t\t\t\tint likes = Integer.parseInt(mch.logical.getText().toString())+ 1;\n\t\t\t\t\tmch.logical.setText(likes + \"\");\n\t\t\t\t} else {\n\t\t\t\t\tv.setAlpha((float) 0.5);\n\t\t\t\t\tint likes = Integer.parseInt(mch.logical.getText().toString())- 1;\n\t\t\t\t\tmch.logical.setText(likes + \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tholder.dVote.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMyCommentHolder mch = (MyCommentHolder) v.getTag();\n\t\t\t\tif (v.getAlpha() == 0.5) {\n\t\t\t\t\tv.setAlpha(1);\n\t\t\t\t\tint unlikes = Integer.parseInt(mch.illogical.getText().toString()) + 1;\n\t\t\t\t\tmch.illogical.setText(unlikes + \"\");\n\n\t\t\t\t} else {\n\t\t\t\t\tv.setAlpha((float) 0.5);\n\t\t\t\t\tint unlikes =Integer.parseInt(mch.illogical.getText().toString())- 1;\n\t\t\t\t\tmch.illogical.setText(unlikes + \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tholder.reply.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tMyCommentHolder mch = (MyCommentHolder) v.getTag();\n\t\t\t\tIntent i = new Intent(context, ReplyComment.class);\n\t\t\t\ti.putExtra(\"comm_id\", mch.com_id);\n\t\t\t\tcontext.startActivity(i);\n\t\t\t}\n\t\t});\n\t\t*/\n\n\t\treturn v;\n\t}", "title": "" }, { "docid": "b2f15b98ff7a967bac3ae1fd036fbae2", "score": "0.6575605", "text": "private void comment(Feed feed,String comment) {\n\n commentList.add(new Comment(ProfileActivity.currentSignedInUser.getUid(), comment));\n\n /*Update this feed in firebase after comment*/\n feed.setComments((ArrayList<Comment>) commentList);\n feed.setNoOfComments(feed.getNoOfComments() + 1);\n\n FirebaseDatabase.getInstance().getReference(\"Feeds\").child(key).setValue(feed);\n\n adapter.notifyItemInserted(commentList.size() - 1);\n\n recyclerView.scrollToPosition(commentList.size()-1);\n\n /*Tell the listener to update the number of comments*/\n int position=getArguments().getInt(\"position\");\n listener.onComment(position);\n\n }", "title": "" }, { "docid": "4f4317186d439c850a2b71a3971e1c64", "score": "0.6563045", "text": "@Override\n public void onClick(View v) {\n int pos = getAdapterPosition();\n if (pos != RecyclerView.NO_POSITION) {\n Intent intent = new Intent(ctx, friendInfo.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"friendname\", txt_name.getText().toString());\n ctx.startActivity(intent);\n }\n }", "title": "" }, { "docid": "ca54df1cac3e428587f08f1880196d7f", "score": "0.6557998", "text": "@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tSystem.out.println(\"position-------------->\" + position);\r\n\r\n\t\t\tif (position == 0) {\r\n\t\t\t\tconvertView = inflater.inflate(R.layout.square_listitem, null);\r\n\t\t\t\tinitView(convertView);\r\n\t\t\t} else {\r\n\t\t\t\tfinal CommentModel comment = commentList.get(position-1);\r\n\t\t\t\tif (convertView == null) {\r\n\t\t\t\t\tholder = new HolderView();\r\n\t\t\t\t\tconvertView = inflater.inflate(\r\n\t\t\t\t\t\t\tR.layout.square_comment_item, null);\r\n\t\t\t\t\tholder.comment_user_pic = (ImageView) convertView.findViewById(R.id.comment_user_pic);\r\n\t\t\t\t\tholder.comment_user_name = (TextView) convertView.findViewById(R.id.comment_user_name);\r\n\t\t\t\t\tholder.comment_content = (TextView) convertView.findViewById(R.id.comment_content);\r\n\t\t\t\t\tholder.comment_data = (TextView) convertView.findViewById(R.id.comment_data);\r\n\t\t\t\t\tconvertView.setTag(holder);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tholder = (HolderView) convertView.getTag();\r\n\t\t\t\t\tif (holder == null) {\r\n\t\t\t\t\t\tholder = new HolderView();\r\n\t\t\t\t\t\tconvertView = inflater.inflate(\r\n\t\t\t\t\t\t\t\tR.layout.square_comment_item, null);\r\n\t\t\t\t\t\tholder.comment_user_pic = (ImageView) convertView.findViewById(R.id.comment_user_pic);\r\n\t\t\t\t\t\tholder.comment_user_name = (TextView) convertView.findViewById(R.id.comment_user_name);\r\n\t\t\t\t\t\tholder.comment_content = (TextView) convertView.findViewById(R.id.comment_content);\r\n\t\t\t\t\t\tholder.comment_data = (TextView) convertView.findViewById(R.id.comment_data);\r\n\t\t\t\t\t\tconvertView.setTag(holder);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tholder.comment_user_name.setText(comment.getuName());\r\n\t\t\t\tholder.comment_user_pic.setImageResource(comment.getuPic());\r\n\t\t\t\tholder.comment_content.setText(comment.getComment());\r\n\t\t\t\tholder.comment_data.setText(comment.getData());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tholder.comment_user_pic.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tIntent i = new Intent(SquareDetailActivity.this,UserInfoActivity.class);\r\n\t\t\t\t\t\ti.putExtra(\"pic\", comment.getuPic());\r\n\t\t\t\t\t\ti.putExtra(\"name\", comment.getuName());\r\n\t\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\treturn convertView;\r\n\t\t}", "title": "" }, { "docid": "4b968f002ec54c0588f72a562767d1ab", "score": "0.65538895", "text": "public void makeComment(View view)\n {\n Intent intent = new Intent( getApplicationContext() , CommentActivity.class );\n intent.putExtra( \"usernameOfProfile\" , usernameOfProfile );\n startActivity( intent );\n }", "title": "" }, { "docid": "24a6ec0df5f9300d6a4fb78117952bb0", "score": "0.6551431", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent().setClass(context, ReviewWriteNew.class);\n// intent.putExtra(\"review_dt\", hotelList.get(position).getReviewDate());\n intent.putExtra(\"review_id\", reviewList.get(position).getReviewId());\n intent.putExtra(\"review_tit\", reviewList.get(position).getReviewTitle());\n intent.putExtra(\"review_descrip\", reviewList.get(position).getReviewDescription());\n intent.putExtra(\"review_img_url\", reviewList.get(position).getReviewImageurl());\n// intent.putExtra(\"reviewer_name\",name);\n context.startActivity(intent);\n }", "title": "" }, { "docid": "0b7c0372f608ea0f6c6c3ddc3f8e5a17", "score": "0.65255034", "text": "@Override\n public void onBindViewHolder(com.somesh.android.bhopaldarshan.comment_adapter.MyViewHolder holder, final int position) {\n\n firebaseUser = firebaseAuth.getInstance().getCurrentUser();\n // comments_list comments_listtt=mhome.get(position);\n // comments_list home =mhome.get(position);\n // holder.placeTitle.setText(home.getComment());\n\n // Toast.makeText(context, home.getImageUrl(), Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "2f8b6faa818a64a527551b004adb4858", "score": "0.6489343", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tIntent im = new Intent(context, Activity_ReplyPage.class);\n\t\t\t\tim.putExtra(\"ID\", datalist.get(p).get(\"ID\").toString());\n\t\t\t\tcontext.startActivity(im);\n\n\t\t\t}", "title": "" }, { "docid": "cc3ee55a60c47f27e01646ccd8b6bd92", "score": "0.6483836", "text": "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n //check if the position is valid and exists in the view\n if(position != RecyclerView.NO_POSITION) {\n //get movie at selected position\n Post post = mPosts.get(position);\n //create the intent for this activity\n Intent intent = new Intent(context, PostDetailsActivity.class);\n //serialize the movie using parceler, use its short name as a key\n intent.putExtra(\"post\", Parcels.wrap(post));\n\n //show the activity\n context.startActivity(intent);\n }\n }", "title": "" }, { "docid": "4794d635ceede108e021ad1efaf2a008", "score": "0.6482707", "text": "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View row = convertView;\n ViewHolder holder = null;\n if(row == null) {\n LayoutInflater inflater = ((Activity)context).getLayoutInflater();\n row = inflater.inflate(layoutResourceId, null);\n holder = new ViewHolder();\n holder.posterNameH = (TextView)row.findViewById(R.id.posterName);\n holder.commentContentH = (TextView)row.findViewById(R.id.commentContent);\n\n row.setTag(holder);\n } else {\n holder = (ViewHolder)row.getTag();\n }\n\n Comment targetComment;\n targetComment = commentData.get(position);\n holder.posterNameH.setText(targetComment.get_Name());\n holder.commentContentH.setText(targetComment.get_Comment());\n\n return row;\n }", "title": "" }, { "docid": "7b4242bb05f58a7c62508969fcf95243", "score": "0.64718705", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, VideoStreamingActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"link\", listItem.getLinkURL());\n context.startActivity(intent);\n //v.getContext;\n }", "title": "" }, { "docid": "bbf3ba67f157d7fcf2fd2ef3ae48c979", "score": "0.6471462", "text": "@Override\n public void onClick(View view) {\n Intent singlePost = new Intent(MainActivity.this, SinglePostActivity.class);\n singlePost.putExtra(\"PostID\", post_key);\n startActivity(singlePost);\n }", "title": "" }, { "docid": "e738361331f97c895ac2b1c55d24898c", "score": "0.64687926", "text": "@Override\n public void onClick(View v) {\n Log.d(\"MESSAGE: \",cats.get(position).getName());\n\n //String name = \"aa\";\n Intent intent = new Intent(holder.ivBackground.getContext(),DidSearch.class);\n intent.putExtra(\"userId\", userId);\n intent.putExtra(\"title\",cats.get(position).getName());\n intent.putExtra(\"category\",cats.get(position).getId());\n holder.ivBackground.getContext().startActivity(intent);\n\n }", "title": "" }, { "docid": "2dc1d7d914705355e1b721dfb2384570", "score": "0.6464844", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View view,int position, long arg3) {\n startActivityForResult(new Intent(InboxActivity.this,InboxThread.class).putExtra(\"sender\",similar.get(position).get(6)).putExtra(\"receiver\", similar.get(position).get(7)).putExtra(\"title\", similar.get(position).get(1)),1);\n // Toast.makeText(getApplicationContext(),\"You Selected Item \"+Integer.toString(position), Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "ffbc19419bfea319fcdadfb568374622", "score": "0.6453977", "text": "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n // Get the data item type for this position\n int type = getItemViewType(position);\n // Inflate XML layout based on the type\n convertView = getInflatedLayoutForType(type, parent);\n }\n\n // Get the data item for this position\n Object item = getItem(position);\n if (item instanceof Question) {\n Question question = (Question) item;\n QuestionViewUtil.fillView(convertView, question, QuestionDetailActivity.this, true);\n convertView.setOnLongClickListener(null);\n } else {\n final Comment comment = (Comment) item;\n CommentViewUtil.fillView(convertView, comment, question, QuestionDetailActivity.this);\n convertView.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View view) {\n final PopupMenu popup = new PopupMenu(QuestionDetailActivity.this, view);\n MenuInflater inflater = popup.getMenuInflater();\n inflater.inflate(R.menu.menu_comment_detail_popup, popup.getMenu());\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n if (item.getItemId() == R.id.questionDetailReplyOptions) {\n textBoxInput.setText(\"@\" + comment.getUsername() + \" \");\n textBoxInput.setSelection(textBoxInput.getText().length());\n textBoxInput.requestFocus();\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n\n return true;\n\n } else if (item.getItemId() == R.id.questionDetailFlagOptions) {\n CharSequence colors[] = new CharSequence[]{\n REASON_INAPPROPRIATE,\n REASON_HATEFUL,\n REASON_CANCEL};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(QuestionDetailActivity.this);\n builder.setTitle(\"Select a Reason\");\n builder.setItems(colors, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String reason = null;\n if (which == 0) {\n reason = REASON_INAPPROPRIATE;\n } else if (which == 1) {\n reason = REASON_HATEFUL;\n }\n\n if (reason != null) {\n new FlagComment(comment.getId(),reason).execute();\n }\n }\n });\n builder.show();\n\n Log.i(\"FLAG\", \"FLAG\");\n return true;\n }\n return false;\n }\n });\n popup.show();\n return true;\n }\n });\n }\n\n return convertView;\n }", "title": "" }, { "docid": "462eaf1e6eb967ef73a0a518a5064b2f", "score": "0.64323175", "text": "protected void handleCommentButtonClick(T item, VH holder) {\n openItem(item, holder.itemView);\n }", "title": "" }, { "docid": "3cf23ab7c6b1a9b8084e7aab336dfd51", "score": "0.6431379", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Log.d(TAG, \"onItemClick(\" + i + \")\");\n Intent nextActivity = new Intent(ProfileActivity.this, FoodItemsDetailsActivity.class);\n nextActivity.putExtra(EXTRA1, message4);\n nextActivity.putExtra(EXTRA2, i);\n startActivity(nextActivity);\n }", "title": "" }, { "docid": "0b3fbc767aeebe56b90a153a11f27e0c", "score": "0.6429893", "text": "@Override\n \t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t\t\t\t\tint position, long id) {\n \t\t\t\t\t\t\tIntent i2 = new Intent(AppsActivity.this, PreviewActivity.class);\n \t\t\t\t\t\t\ti2.putExtra(\"Title\", todoItems.get(position).getAppTitle());\n \t\t\t\t\t\t\ti2.putExtra(\"ImageURL\", todoItems.get(position).getSmallPhotoUrl());\n \t\t\t\t\t\t\ti2.putExtra(\"AppURL\", todoItems.get(position).getAppUrl());\n \t\t\t\t\t\t\ti2.putExtra(\"DevName\", todoItems.get(position).getDevName());\n \t\t\t\t\t\t\ti2.putExtra(\"Price\", todoItems.get(position).getPrice());\n \t\t\t\t\t\t\tstartActivity(i2);\n \t\t\t\t\t\t}", "title": "" }, { "docid": "0b3fbc767aeebe56b90a153a11f27e0c", "score": "0.6429893", "text": "@Override\n \t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t\t\t\t\tint position, long id) {\n \t\t\t\t\t\t\tIntent i2 = new Intent(AppsActivity.this, PreviewActivity.class);\n \t\t\t\t\t\t\ti2.putExtra(\"Title\", todoItems.get(position).getAppTitle());\n \t\t\t\t\t\t\ti2.putExtra(\"ImageURL\", todoItems.get(position).getSmallPhotoUrl());\n \t\t\t\t\t\t\ti2.putExtra(\"AppURL\", todoItems.get(position).getAppUrl());\n \t\t\t\t\t\t\ti2.putExtra(\"DevName\", todoItems.get(position).getDevName());\n \t\t\t\t\t\t\ti2.putExtra(\"Price\", todoItems.get(position).getPrice());\n \t\t\t\t\t\t\tstartActivity(i2);\n \t\t\t\t\t\t}", "title": "" }, { "docid": "5f1b182b9904eb9ccb13a30ae4a2e737", "score": "0.6425301", "text": "@Override\n public void onClick(View v) {\n Intent i = new Intent(itemView.getContext(),MensajeActivity.class);\n i.putExtra(\"nom\", contacto.getText().toString());\n itemView.getContext().startActivity(i);\n }", "title": "" }, { "docid": "64ad78b76f0052b9d0964d7b23b235f8", "score": "0.64089864", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n switch (parent.getId()) {\n case R.id.lv:\n Note curNote = (Note) parent.getItemAtPosition(position);\n Intent intent = new Intent(MainActivity.this, EditActivity.class);\n intent.putExtra(\"content\", curNote.getContent());\n intent.putExtra(\"id\", curNote.getId());\n intent.putExtra(\"time\", curNote.getTime());\n intent.putExtra(\"mode\", 3); // MODE of 'click to edit'\n intent.putExtra(\"tag\", curNote.getTag());\n startActivityForResult(intent, 1); //collect data from edit\n overridePendingTransition(R.anim.in_righttoleft, R.anim.out_righttoleft);\n break;\n case R.id.lv_plan:\n Plan curPlan = (Plan) parent.getItemAtPosition(position);\n Intent intent1 = new Intent(MainActivity.this, EditAlarmActivity.class);\n intent1.putExtra(\"title\", curPlan.getTitle());\n intent1.putExtra(\"content\", curPlan.getContent());\n intent1.putExtra(\"time\", curPlan.getTime());\n intent1.putExtra(\"mode\", 1);\n intent1.putExtra(\"id\", curPlan.getId());\n startActivityForResult(intent1, 1);\n break;\n }\n }", "title": "" }, { "docid": "b43322a15e7be54f6988bd8cf1e53eac", "score": "0.63898945", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(pinglunNum>0) {\n\t\t\t\t\tIntent im = new Intent(context, ReplyAct.class);\n\t\t\t\t\tim.putExtra(\"ArticleID\", datalist.get(p).get(\"ID\").toString());\n\t\t\t\t\tcontext.startActivity(im);\n\t\t\t\t}else{\n\t\t\t\t\tToast.makeText(context,R.string.titl_pinglunnume,1).show();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "681f16336bd839c4f26fedca5bcbc182", "score": "0.6370558", "text": "@Override\r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Log.i(TAG, \"arg2 \" + arg2 + \" arg3 \" + arg3);\r\n String id = mHomeWorkList.get(arg2 - 1).id;\r\n mHomeWorkList.get(arg2 - 1).isRead = 1;\r\n Log.i(TAG, \"id \" + id);\r\n Intent intent = new Intent(LeaveMessageActivity.this, LeaveMessageDetailActivity.class);\r\n intent.putExtra(LeaveMessageEntry.COLUMN_NAME_ENTRY_ID, id);\r\n intent.putExtra(LeaveMessageEntry.COLUMN_NAME_DATE, mHomeWorkList.get(arg2 - 1).date);\r\n intent.putExtra(LeaveMessageEntry.COLUMN_NAME_CONTENT, mHomeWorkList.get(arg2 - 1).content);\r\n startActivity(intent);\r\n }", "title": "" }, { "docid": "bb9521cc7cc556017b1f62df557f74bd", "score": "0.63702726", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tIntent i = new Intent(SquareDetailActivity.this,UserInfoActivity.class);\r\n\t\t\t\t\t\ti.putExtra(\"pic\", comment.getuPic());\r\n\t\t\t\t\t\ti.putExtra(\"name\", comment.getuName());\r\n\t\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "0f1e628a5b93eb4bfc18050e657c6a05", "score": "0.63693666", "text": "@Override\n protected void onBindViewHolder(@NonNull WeBlogViewHolder holder, int position, @NonNull WeBlog model) {\n final String post_key = getRef(position).getKey();\n\n //Populate the card view with data\n holder.setPost_title(model.getTitle());\n holder.setPost_description(model.getDescription());\n holder.setPost_image(getApplicationContext(),model.getPostImage());\n holder.setPost_username(model.getDisplayName());\n holder.setUser_image(getApplicationContext(),model.getProfilePhoto());\n holder.setPost_time(model.getTime());\n holder.setPost_date(model.getDate());\n\n //Set a like on a particular post\n holder.setLikeButtonStatus(post_key);\n\n //Add an onClickListener on the particular post to allow opening this post on a different screen\n holder.post_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n /*Launch the screen single post activity on clicking a particular card view\n * Create this activity using an empty activity template*/\n Intent singlePost = new Intent(MainActivity.this, SinglePostActivity.class);\n singlePost.putExtra(\"PostID\", post_key);\n startActivity(singlePost);\n }\n });\n\n holder.share_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Intent share = new Intent(Intent.ACTION_SEND);\n share.setType(\"text/plain\");\n share.putExtra(Intent.EXTRA_TEXT, \"Check out this blog post\");\n\n Intent choose = Intent.createChooser(share, \"Share Via\");\n if (share.resolveActivity(getPackageManager()) != null){\n startActivity(choose);\n }\n\n }\n });\n holder.post_like.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n /*Initialize the like checker to true, we are using this boolean variable to determine if a\n * post is liked or disliked.*/\n likeChecker = true;\n\n //Check the currently logged i user using his/her ID\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null){\n currentUserID = user.getUid();\n }\n else{\n Toast.makeText(MainActivity.this,\"Please Login\", Toast.LENGTH_SHORT).show();\n }\n\n //Listen to any changes in the likes database reference\n likesRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (likeChecker.equals(true)){\n /*If the current post had a like associated to the current logged and the user clicks on it again,\n * remove the like , basically this means that the user is disliking the post*/\n if (snapshot.child(post_key).hasChild(currentUserID)){\n likesRef.child(post_key).child(currentUserID).removeValue();\n likeChecker = false;\n }else {\n\n //Here the user is liking , set the value on the like\n likesRef.child(post_key).child(currentUserID).setValue(true);\n likeChecker = false;\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }\n });\n }", "title": "" }, { "docid": "986080d3b89d7f2e7362cdc1b76d7bc4", "score": "0.6365984", "text": "@Override\n public void recyclerViewListClicked(int position) {\n Intent intent = new Intent(this, EditPrescriptionActivity.class);\n String name = mUserName.getText().toString();\n intent.putExtra(\"name\",name);\n intent.putExtra(\"user_ID\",userID);\n intent.putExtra(\"account_type\",ACCOUNT_TYPE);\n intent.putExtra(\"prescription_ID\", prescriptionList.get(position).getId());\n\n Log.i(\"test tag\", prescriptionList.get(position).getId());\n\n intent.putExtra(\"schedule_type\", prescriptionList.get(position).isTimed());\n intent.putExtra(\"start_time\", prescriptionList.get(position).getStartTime());\n intent.putExtra(\"times_per_day\", prescriptionList.get(position).getTimesPerDay());\n intent.putExtra(\"break_hours\", prescriptionList.get(position).getTimeBetweenDose());\n intent.putExtra(\"description\", prescriptionList.get(position).getContent());\n startActivityForResult(intent,REQUEST_CODE_EDIT);\n }", "title": "" }, { "docid": "a40ad3ff674b729e99287c905156fa4f", "score": "0.6364053", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t String itemId=mMapList.get(position-1).get(MConstants.RECOMEND_ITEMS_ID).toString();\n\t\t String itemType=mMapList.get(position-1).get(MConstants.RECOMEND_ITEMS_TYPE).toString();\n\t \t String url=mServer.getBandsInfoDetail(access_token, itemType, itemId);\n\t\t Intent intent=new Intent(getActivity(),MessageDetail.class);\n\t\t intent.putExtra(\"url\", url);\n\t\t this.startActivity(intent);\n\t\t\n\t}", "title": "" }, { "docid": "4200d1a17c3dc426b97a3fff4063a170", "score": "0.63621855", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(PostInfoActivity.POST_RECEIVED_ACTION);\n\t\t\t\tintent.putExtra(\"uid\", com.getUid());\n\t\t\t\tintent.putExtra(\"name\", com.getName());\n\t\t\t\tmContext.sendBroadcast(intent);\n\t\t\t}", "title": "" }, { "docid": "24d276592ae8769e3b18a21c776243fb", "score": "0.63613737", "text": "@SuppressLint(\"InflateParams\")\n\t@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\t\tMessage m = messagesItems.get(position);\n\n\t\tLayoutInflater mInflater = (LayoutInflater) context\n\t\t\t\t.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n\n\t\t// Identifying the message owner\n\t\tif (messagesItems.get(position).isSelf()) {\n\t\t\t// message belongs to you, so load the right aligned layout\n\t\t\tconvertView = mInflater.inflate(R.layout.list_item_message_right,\n\t\t\t\t\tnull);\n\t\t} else {\n\t\t\t// message belongs to other person, load the left aligned layout\n\t\t\tconvertView = mInflater.inflate(R.layout.list_item_message_left,\n\t\t\t\t\tnull);\n\t\t}\n\n\t\tTextView lblFrom = (TextView) convertView.findViewById(R.id.lblMsgFrom);\n\t\tTextView txtMsg = (TextView) convertView.findViewById(R.id.txtMsg);\n ImageView image = (ImageView) convertView.findViewById(R.id.userImage);\n LinearLayout clickPart = (LinearLayout) convertView.findViewById(R.id.clickPart);\n\n\t\tJSONObject msg = null;\n\t\ttry {\n\t\t\t msg = new JSONObject(m.getMessage());\n\t\t\ttxtMsg.setText(\"Description: \" + msg.getString(\"description\") + \"\\nWork: \" + msg.getString(\"work\") + \"\\neducation: \" + msg.getString(\"education\"));\n lblFrom.setText(msg.getString(\"name\"));\n if (msg.has(\"id\") && !msg.getString(\"id\").equals(\"\"))\n Picasso.with(context).load(\"https://graph.facebook.com/\" + msg.getString(\"id\") + \"/picture?type=large\").placeholder(R.drawable.default_profile_pic).into(image);\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n final JSONObject finalMsg = msg;\n clickPart.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent profile = new Intent(context, UserProfile.class);\n profile.putExtra(\"json\",finalMsg.toString());\n context.startActivity(profile);\n }\n });\n\n\n//\"https://graph.facebook.com/\" + fbID + \"/picture?type=large\"\n\n\t\treturn convertView;\n\t}", "title": "" }, { "docid": "9affc08cb6153e01d18ae7c3a9055731", "score": "0.63582337", "text": "@Override\n public void onClick(View view){\n // make a fragment\n Intent intent = PagerActivity.newIntent(getActivity(), mSlack.getID()); // pressing a list item in ListFragment starts an instance of PagerActivity\n startActivity(intent);\n }", "title": "" }, { "docid": "78853ee39e2a8c671e8766d49e06857a", "score": "0.6323588", "text": "public void onClick(View v) {\n Intent intent = new Intent(context, ComposeActivity.class);\n intent.putExtra(\"screenName\", tweet.user.screenName);\n intent.putExtra(\"uid\", tweet.uid);\n Log.d(\"TweetAdapter\", String.format(\"%s\", tweet.uid));\n // show the activity\n context.startActivity(intent);\n }", "title": "" }, { "docid": "4e8cd2e12afc4974ca7a759173495483", "score": "0.63227415", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getActivity(), DetailedInfoActivity.class);\n intent.putExtra(\"object\", placeInfo.get(position));\n intent.putExtra(\"index\", position);\n startActivity(intent);\n }", "title": "" }, { "docid": "52bf79d6edbfd3820a28023c908cbc85", "score": "0.63196206", "text": "@Override\n public void onClick(View v) {\n final int x = (int) getItemId(position);\n Toast.makeText(parent.getContext(),\"you clicked \"+ x , Toast.LENGTH_SHORT).show();\n //Intent zoom=new Intent(mContext, Profile.class);\n //mContext.startActivity(zoom);\n //v.getContext().startActivity(zoom);\n Intent zoom=new Intent(parent.getContext(), Actividades1Ver.class);\n zoom.putExtra(\"id\",arrayList.get(position).getCodigo());\n parent.getContext().startActivity(zoom);\n }", "title": "" }, { "docid": "15548f97249a93dfd376849d6402a515", "score": "0.63170314", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(num>0){\n\t\t\t\tIntent im = new Intent(context, ReplyAct.class);\n\t\t\t\tim.putExtra(\"ArticleID\", datalist.get(p).get(\"ID\").toString());\n\t\t\t\tcontext.startActivity(im);\n\t\t\t}else{\n\t\t\t\t\tToast.makeText(context,R.string.titl_pinglunnume,1).show();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9e2a384ae6f9c7c3d51051bc9be2d34a", "score": "0.6315634", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent a = new Intent(getApplicationContext(), Feed.class);\n\t\t\t\tstartActivity(a);\n//\n//\t\t\t\tIntent u = new Intent(getApplicationContext(), News.class);\n//\n//\t\t\t\tstartActivity(u);\n\t\t\t}", "title": "" }, { "docid": "bbbb4f41fecf8412c0db4ca46df4f08f", "score": "0.63146126", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(view.getContext(), ChartingActivity.class);\n\n intent.putExtra(PHONE_NUMBER, listDisplayContact.getContactNumber());\n intent.putExtra(CONTACT_NAME,listDisplayContact.getContactName());\n intent.putExtra(CONTACT_CHAT_ID, listDisplayContact.getChatUserId());\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n }", "title": "" }, { "docid": "5a8aa53eeedc9dd84363423aaf89c814", "score": "0.63051564", "text": "@Override\n public void onBindViewHolder( NoteViewHolder holder,final int position) {\n Note note = mNoteList.get(position);\n\n //set its data\n holder.noteTitleTv.setText(trimTtile(note.getTitle(), 23));\n holder.noteBodyTv.setText(trimTtile(note.getBody(), 50));\n holder.noteTitleDrop.setText(\"\" + getFirstChar(note.getTitle()));\n\n // implement setOnClickListener event on item view.\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // open another activity on item click\n Intent intent = new Intent(mContext, NoteDetail.class);\n intent.putExtra(\"title\", mNoteList.get(position).getTitle()); // put title data in Intent\n intent.putExtra(\"body\", mNoteList.get(position).getBody()); // put body data in Intent\n intent.putExtra(\"date\", mNoteList.get(position).getDateTime()); // put datetime data in Intent\n mContext.startActivity(intent); // start Intent\n }\n });\n\n\n holder.itemView.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n\n DeleteNoteDialog(\"Hey watch out\", \"Are you sure you want to delete this note\",\n true,\"Delete\", \"Cancel\", position);\n return true;\n }\n });\n\n }", "title": "" }, { "docid": "01d264ba1cdba3da4ef6f9e84ae48016", "score": "0.6302307", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent a = new Intent(getApplicationContext(), Feed.class);\n\t\t\t\tstartActivity(a);\n\t\t\t}", "title": "" }, { "docid": "15dce0cf548126a451148eed7b59bdf9", "score": "0.62974113", "text": "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n Messages comment = comments.get(position);\n\n if(comment.getId().equals(UserSessionUtil.getSession(context, \"userid\")))\n {\n return setUserMessage(comment);\n }\n else\n {\n return setOtherMessage(comment);\n }\n }", "title": "" }, { "docid": "15f4e14107e3d1dfffc4f9909b698efa", "score": "0.6295896", "text": "public View getView(int position, View convertView, ViewGroup parent) {\n CommentModel commentModel = mListOfComment.get(position);\n // Check if an existing view is being reused, otherwise inflate the view\n CommentViewHolder viewHolder; // view lookup cache stored in tag\n\n final View result;\n\n if (convertView == null) {\n\n\n LayoutInflater inflater = LayoutInflater.from(getContext());\n convertView = inflater.inflate(R.layout.item_comment, parent, false);\n result = convertView;\n viewHolder = new CommentViewHolder(result);\n\n convertView.setTag(viewHolder);\n } else {\n viewHolder = (CommentViewHolder) convertView.getTag();\n result = convertView;\n }\n\n mCommentViewHolder = viewHolder;\n\n viewHolder.mReplyTextView.setVisibility((enabled) ? View.VISIBLE : View.GONE);\n /*\n user info\n */\n viewHolder.mFullNameTextView.setText((!StringEmptyUtil.isEmptyString(commentModel.getUserModel().getFullName())) ? commentModel.getUserModel().getFullName() : \"None\");\n if (!StringEmptyUtil.isEmptyString(commentModel.getUserModel().getProfilePicture())) {\n GlideUtil.loadImage(mContext, commentModel.getUserModel().getProfilePicture(), viewHolder.mProfileImage);\n } else {\n Glide.with(Objects.requireNonNull(mContext))\n .load(R.drawable.user_image)\n .into(viewHolder.mProfileImage);\n }\n\n /*\n comment Info\n */\n if (!StringEmptyUtil.isEmptyString(commentModel.getCommentText())) {\n viewHolder.mCommentTextView.setVisibility(View.VISIBLE);\n viewHolder.mCommentTextView.setText(commentModel.getCommentText());\n } else {\n viewHolder.mCommentTextView.setVisibility(View.GONE);\n }\n\n\n /*\n * Image of comment info\n */\n if (commentModel.getCommentImage() != null && !commentModel.getCommentImage().toString().isEmpty()) {\n viewHolder.mImageCommentImageView.setVisibility(View.VISIBLE);\n GlideUtil.loadImage(mContext, commentModel.getCommentImage().toString(), viewHolder.mImageCommentImageView);\n } else {\n viewHolder.mImageCommentImageView.setVisibility(View.GONE);\n }\n\n /*\n * check if has replies\n */\n if (commentModel.isHasReplies()) {\n viewHolder.mViewRepliesTextView.setVisibility(View.VISIBLE);\n } else {\n viewHolder.mViewRepliesTextView.setVisibility(View.GONE);\n }\n\n\n /*\n set time of comment\n */\n if (commentModel.getTime() != null) {\n String current_date = ConvertTimeUtil.toTimeStamp(commentModel.getTime());\n viewHolder.mCommentDateTextView.setText(current_date);\n } else {\n viewHolder.mCommentDateTextView.setText(\"1 mins\");\n }\n\n /*\n *check if current user like this comment or not\n */\n if (commentModel.isCurrentUserLikeComment()) {\n viewHolder.mLikesTextView.setText(\"liked\");\n viewHolder.mLikesTextView.setTextColor(mContext.getResources().getColor(R.color.colorAccent));\n } else {\n viewHolder.mLikesTextView.setText(\"like\");\n viewHolder.mLikesTextView.setTextColor(mContext.getResources().getColor(R.color.colorBlack));\n }\n\n\n /*\n *check number of likes of current comment.\n */\n if (commentModel.getNumber_of_likes() > 0) {\n viewHolder.mLoveIocnImageView.setVisibility(View.VISIBLE);\n viewHolder.mNumberOfLikeTextView.setVisibility(View.VISIBLE);\n viewHolder.mNumberOfLikeTextView.setText(mListOfComment.get(position).getUsersLikesKey().size() + \"\");\n } else {\n viewHolder.mLoveIocnImageView.setVisibility(View.GONE);\n viewHolder.mNumberOfLikeTextView.setVisibility(View.GONE);\n }\n\n eventClick(viewHolder, position);\n return result;\n }", "title": "" }, { "docid": "b4613994d3d38279b5630d8d959debfd", "score": "0.6295301", "text": "private void sendComment() {\n VolleyMultipartRequest volleyMultipartRequest = new VolleyMultipartRequest(Request.Method.POST, EndPoints.POST_COMMENT_URL,\n new Response.Listener<NetworkResponse>() {\n List<Comment> comments = new ArrayList<>();\n @Override\n public void onResponse(NetworkResponse response) {\n Intent intent = new Intent(DetailBookCommentActivity.this, DetailBookCommentActivity.class);\n intent.putExtra(DetailBookCommentActivity.EXTRA_BOOK, book);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n /*int star = 0;\n try {\n JSONObject obj = new JSONObject(new String(response.data));\n JSONArray commentsJson = obj.getJSONArray(\"comments\");\n for (int i = 0; i < commentsJson.length(); i++) {\n JSONObject commentObj = commentsJson.getJSONObject(i);\n star += commentObj.getInt(\"review_rating\");\n\n Comment comment = new Comment(commentObj);\n comments.add(comment);\n }\n if(comments.size()==0){\n showSnackbarMessage(\"No data comments\");\n }else{\n adapter.setmData(comments);\n //lvComments.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n lvComments.setAdapter(adapter);\n //lvComments.setSelection(adapter.getCount() - 1);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n if(comments.size()>0) {\n star = star / comments.size();\n tvRate.setText(String.valueOf(star) + \"/\" + comments.size());\n }else{\n tvRate.setText(\"0/0\");\n }*/\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }) {\n\n /*\n *\n * */\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n int bookId = book.getServerId();\n int readerid = new UserPreferences(DetailBookCommentActivity.this).getReaderServerId();\n Log.d(DetailBookCommentActivity.class.getSimpleName(), \"getParams: readerid=\"+readerid);\n String comment = edtComment.getText().toString().trim();\n int rating = (int) ratingBar.getRating();\n if(rating<1) rating =1;\n Map<String, String> params = new HashMap<>();\n params.put(\"book_id\", String.valueOf(bookId));\n params.put(\"reader_id\", String.valueOf(readerid));\n params.put(\"comment\", comment);\n params.put(\"review_rating\", String.valueOf(rating));\n return params;\n }\n\n /*\n * Here we are passing image by renaming it with a unique name\n * */\n @Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n //long imagename = System.currentTimeMillis();\n //params.put(\"cover\", new DataPart(filename, getFileDataFromDrawable(bitmap)));\n return params;\n }\n };\n\n //adding the request to volley\n Volley.newRequestQueue(this).add(volleyMultipartRequest);\n }", "title": "" }, { "docid": "2506cbfc4054788156e70899718bc95b", "score": "0.62928927", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent viewerIntent = new Intent(InboxActivity.this, EmailViewerActivity.class);\n\n // Put message number to intent extra then the opened activity will used it\n viewerIntent.putExtra(EmailViewerActivity.KEY_EXTRA, msgNumbers.get(position));\n\n // Start the activity\n startActivity(viewerIntent);\n }", "title": "" }, { "docid": "1c7610719bb564ac9c9522279264f67e", "score": "0.6292834", "text": "@Override\n public void onBindViewHolder(NoteListAdapter.ViewHolder holder, int position) {\n\n final Note listItem = testItems.get(position);\n holder.textViewTitle.setText(listItem.getTitle());\n holder.textViewDNote.setText(listItem.getNote());\n holder.linearLayout.setOnClickListener(view -> {\n Intent intent = new Intent(context, EditorActivity.class);\n intent.putExtra(\"TITLE_EXTRA\", listItem.getTitle());\n context.startActivity(intent);\n Toast\n .makeText(context, \"Clicked on... \" + listItem.getTitle(), Toast.LENGTH_LONG)\n .show();\n });\n }", "title": "" }, { "docid": "7b1d40932fcbbf0aab8ece3afb3f1743", "score": "0.6284905", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n JournalEntry entry = (JournalEntry) adapterView.getItemAtPosition(i);\n Intent intent = new Intent(MainActivity.this, DetailActivity.class);\n intent.putExtra(\"entry\", entry);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "90ffa8b05073aaf9152dd6c9ec6998de", "score": "0.628276", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, DetailActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(\"id\", sliderItem.getId());\n intent.putExtra(\"type\", sliderItem.getType());\n intent.putExtra(\"poster_path\", sliderItem.getImgUrl());\n intent.putExtra(\"title\", sliderItem.getTitle());\n context.startActivity(intent);\n }", "title": "" }, { "docid": "d9aa6707d300631c0d4da08cc76a196c", "score": "0.6281382", "text": "@Override\n public void onItemClick(View v, int position) {\n\n Intent intent = new Intent(MainActivity.this, DetailActivity.class);\n Uri currentTaskUri = ContentUris.withAppendedId(CONTENT_URI, mAdapter.getItemId(position));\n intent.setData(currentTaskUri);\n startActivity(intent);\n }", "title": "" }, { "docid": "44025d477464fd5034b406468f12c210", "score": "0.6281371", "text": "@Override\n public void onClick(View v) {\n\n Intent urlIntent = new Intent();\n urlIntent.setAction(Intent.ACTION_SEND);\n urlIntent.putExtra(Intent.EXTRA_TEXT, holder.item.getContentUrl());\n urlIntent.setType(\"text/plain\");\n\n //v.getContext().startActivity(urlIntent); //daca ar fi ceva default, nu mi-ar conveni\n\n v.getContext().startActivity(Intent.createChooser(urlIntent, \"Share with...\"));\n }", "title": "" }, { "docid": "1852537fa8d135cf84d489fce440464a", "score": "0.62802553", "text": "@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, AddPostActivity.class);\n intent.putExtra(\"userId\", userId);\n startActivity(intent);\n }", "title": "" }, { "docid": "988446de35ccadda5aa3f222482dc5a2", "score": "0.6264484", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(holder.itemView.getContext(), DetailActivity.class);\n intent.putExtra(\"judul\",brand.getName());\n intent.putExtra(\"detail\",brand.getDetail());\n intent.putExtra(\"foto\" ,brand.getPhoto());\n\n// startActivity(detail);\n holder.itemView.getContext().startActivity(intent);\n// startActivity(new Intent(holder.itemView.getContext(),DetailActivity.class));\n }", "title": "" }, { "docid": "5ad0143917f31d1716afc9de0d45219d", "score": "0.62627506", "text": "private void displayComment() {\n options =\n new FirebaseRecyclerOptions.Builder<Post>()\n .setQuery(databaseReference, Post.class)\n .build();\n\n adapter =\n new FirebaseRecyclerAdapter<Post, RecyclerViewHolder>(options) {\n @Override\n protected void onBindViewHolder(@NonNull RecyclerViewHolder holder, int position, @NonNull final Post model) {\n holder.textTitle.setText(model.getTitle());\n holder.textContent.setText(model.getContent());\n\n // ItemClickListener for the update and delete\n holder.setItemClickListener(new ItemClickListener() {\n @Override\n public void onClick(View view, int position) {\n selectedPost = model;\n selectedKey = getSnapshots().getSnapshot(position).getKey();\n Log.d(\"KEY_ITEM\", selectedKey+\"\");\n\n // Bind data\n editTitle.setText(model.getTitle());\n editContent.setText(model.getContent());\n }\n });\n }\n\n @NonNull\n @Override\n public RecyclerViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View itemView = LayoutInflater.from(getBaseContext()).inflate(R.layout.post_item,\n parent, false);\n return new RecyclerViewHolder(itemView);\n }\n };\n adapter.startListening();\n recyclerView.setAdapter(adapter);\n }", "title": "" }, { "docid": "a4542bf8b96aa92f37db5b37587daf93", "score": "0.62559694", "text": "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinator);\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n //making the snakepar to send an email to h+ sport..\n String[] adresses={email};\n Intent emiIntent=new Intent(Intent.ACTION_SENDTO);\n emiIntent.setData(Uri.parse(\"mailto\"));\n emiIntent.putExtra(Intent.EXTRA_EMAIL,adresses);\n emiIntent.putExtra(Intent.EXTRA_SUBJECT,\"Information request\");\n emiIntent.putExtra(Intent.EXTRA_TEXT,\"Please send some information!\");\n if(emiIntent.resolveActivity(getPackageManager())!=null)\n startActivity(emiIntent);\n }\n\n\n });\n\n\n // String[] items=getResources().getStringArray(R.array.clothing);//Array of string has the items //it is ubdated\n // ArrayAdapter<String> adabtor=\n // new ArrayAdapter<String>\n // (this,android.R.layout.simple_expandable_list_item_1,android.R.id.text1,items);\n\n //object of a class (productListAdabtor)\n productListAdabtor adabtor=new productListAdabtor(this,R.layout.list_item,products);\n ListView lv=findViewById(R.id.listview);\n lv.setAdapter(adabtor);\n //onclick to go detaials\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent=new Intent(MainActivity.this,detailActivity.class);//to goo to detailActivity\n product product=products.get(position);\n //what putextra do!!\n intent.putExtra(PRODUCT_ID,product.getProductid());\n startActivity(intent);\n\n }\n });\n }", "title": "" }, { "docid": "52c38257fc08260d92beaf19bb9a3a39", "score": "0.62530935", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, OrderDetail.class);\n intent.putExtra(EXTRA_MESSAGE,orderNo[position]);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n }", "title": "" }, { "docid": "4faa64e118bd3f08f2de87d9cf36a674", "score": "0.6249364", "text": "@SuppressLint(\"InflateParams\")\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n Comment m = messagesItems.get(position);\n\n LayoutInflater mInflater = (LayoutInflater) context.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n\n // message belongs to other person, load the left aligned layout\n convertView = mInflater.inflate(R.layout.list_item_message_left, null);\n\n TextView lblFrom = (TextView) convertView.findViewById(R.id.lblMsgFrom);\n TextView txtMsg = (TextView) convertView.findViewById(R.id.txtMsg);\n//setters\n txtMsg.setText(\" `\" + m.getMessage() + \"` \");\n lblFrom.setText(\"Email : \" + m.getFromName());\n\n return convertView;\n }", "title": "" }, { "docid": "ead34d6f3d776816a13edad0d529d7f9", "score": "0.62466896", "text": "private void SendUserToPostActivity() {\n Intent postIntent = new Intent(MainActivity.this,PostActivity.class);\n startActivity(postIntent);\n\n }", "title": "" }, { "docid": "9b854d4ab2110d81af385486135894f2", "score": "0.6242889", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, ChatActivity.class);\n intent.putExtra(\"user_id\", horizontalList.get(position).getLog_id());\n intent.putExtra(\"log_pic\", horizontalList.get(position).getLog_pics());\n intent.putExtra(\"log_name\", horizontalList.get(position).getLog_name());\n intent.putExtra(\"friend_token\", horizontalList.get(position).getLog_device_token());\n\n startActivity(intent);\n }", "title": "" }, { "docid": "d1dc9dc8c4206b97fd5e6acca34195eb", "score": "0.6236013", "text": "private void postComment() {\n String title = editTitle.getText().toString();\n String content = editContent.getText().toString();\n\n Post post = new Post(title, content);\n\n databaseReference.push() // Creates unique id for comment\n .setValue(post);\n\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "8328ca35748379afc93eabc2e8874763", "score": "0.62297606", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this,UserActivity.class);\n intent.putExtra(\"user\",userList.get((getPosition())));\n startActivity(intent);\n //Toast.makeText(MainActivity.this,\"cliked\" + getPosition(),Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "72c9ccb6333a812882e1f0b69adf6f35", "score": "0.6226826", "text": "@Override\n public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) {\n\n final Tweet tweet = tweets.get(i);\n viewHolder.tvBody.setText(tweet.body);\n viewHolder.name.setText(tweet.user.name);\n viewHolder.tvScreenName.setText(\"@\"+tweet.user.screenName);\n //Glide.with(context).load(tweet.user.profileImageUrl).into(viewHolder.ivProfileImage);\n Glide.with(context).load(tweet.user.profileImageUrl).apply(new RequestOptions().transform(new CircleCrop())).into(viewHolder.ivProfileImage);\n viewHolder.tvTime.setText(tweet.getFormattedTimestamp(tweet.createdAt));\n //Glide.with(context).load(tweet.media_url).into(viewHolder.ivBody);\n\n viewHolder.containerD.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //\n Intent i = new Intent(context, DetailTweetActivity.class);\n i.putExtra(\"tweet\", Parcels.wrap(tweet));\n //i.putExtra(\"name\",tweet.user.screenName);\n context.startActivity(i);\n }\n });\n\n }", "title": "" }, { "docid": "feed44dafacfeaa53d76a94eb455ac81", "score": "0.62169397", "text": "@Override\n\n public void onClick(View v) {\n Intent intent = new Intent(context, Chat.class);\n intent.putExtra(\"userData\", horizontalList.get(position).getUserData());\n context.startActivity(intent);\n }", "title": "" }, { "docid": "3b863fdcfb5e5ffb8fcce33a64596428", "score": "0.6216218", "text": "@Override\n public void onClick(View view) {\n String Url = itemsUrl(position);\n Intent intent = new Intent(mContext, WebPageActivity.class);\n intent.putExtra(\"ItemUrl\", Url);\n intent.putExtra(\"activityId\", 2);\n mContext.startActivity(intent);\n }", "title": "" }, { "docid": "55a7b0755b687e0a98ae2f82574be50c", "score": "0.62103534", "text": "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View view, int pos, long arg3) {\n\t\ttry {\n\t\t\tIntent orderintent = new Intent(context, FragmentToActivity.class);\n\t\t\torderintent.putExtra(\"who\", \"orderdetail\");\n\t\t\tif (name.equals(\"1\")) {\n\t\t\t\torderintent.putExtra(\"order\", onAdapter.getAllData().get(pos));\n\t\t\t} else if (name.equals(\"2\")) {\n\t\t\t\torderintent.putExtra(\"order\", endAdapter.getAllData().get(pos));\n\t\t\t} else {\n\t\t\t\torderintent.putExtra(\"order\", awardAdapter.getAllData()\n\t\t\t\t\t\t.get(pos));\n\t\t\t}\n\t\t\tcontext.startActivity(orderintent);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "title": "" }, { "docid": "82158ae4401749ce25a8382ed2ecc814", "score": "0.6209838", "text": "@Override\n public void onClick(View v) {\n specificUser = itemBiddingOn.getOwner();\n\n Intent intent = new Intent(BiddingActivity.this, ViewSpecificUser.class).putExtra(\"from\",\"BiddingActivity\");\n startActivity(intent);\n\n }", "title": "" }, { "docid": "182db2b48e84b06e69c49e58ca3d9152", "score": "0.62048936", "text": "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n// holder.mIvImg.setImageResource();\n final ListContactsBean item = mDataset.get(position);\n\n holder.mTvName.setText(item.contact_name);\n holder.mTvPhoneNumber.setText(item.contact_phone);\n holder.mListItem.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String strPhoneNumber = item.contact_phone;\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + strPhoneNumber));\n v.getContext().startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "cab598898bc8654093af34b55373693c", "score": "0.62020516", "text": "@Override\n public void onClick(View view) {\n\n Intent intent;\n intent = new Intent(view.getContext(), TodoActivity.class);\n intent.putExtra(\"Extra_TODOID\", mToDoItem.getId());\n\n view.getContext().startActivity(intent);\n\n }", "title": "" }, { "docid": "c81b9c99a88556f95a086b2b0e9456d1", "score": "0.6201394", "text": "public void onItemClick(AdapterView<?> arg0, View v, int position, long arg3) {\n int pos = position;\n //Intent intent = new Intent(getApplicationContext(), FriendDetails.class);\n //Intent intent = new Intent(getApplicationContext(), FriendInformation.class);\n //intent.putExtra(ID_EXTRA, String.valueOf(arg3));\n\n //startActivity(intent);\n }", "title": "" }, { "docid": "c81b9c99a88556f95a086b2b0e9456d1", "score": "0.6201394", "text": "public void onItemClick(AdapterView<?> arg0, View v, int position, long arg3) {\n int pos = position;\n //Intent intent = new Intent(getApplicationContext(), FriendDetails.class);\n //Intent intent = new Intent(getApplicationContext(), FriendInformation.class);\n //intent.putExtra(ID_EXTRA, String.valueOf(arg3));\n\n //startActivity(intent);\n }", "title": "" }, { "docid": "0b75102387a6c72cc922dd5b8dd31f8d", "score": "0.6200268", "text": "public void sendPost(View view) {\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.edit_message);\n String enteredPostText = editText.getText().toString();\n\n Post newPost = new Post(enteredPostText, \"User1\", new Date());\n\n postArrayList.add(newPost);\n\n for (Post post: postArrayList) {\n System.out.println(post.getPostText());\n }\n\n\n intent.putExtra(EXTRA_MESSAGE, enteredPostText);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "0e4442230ed5686c350d2b714fd09fa0", "score": "0.6198359", "text": "@Override\r\n\tpublic void onClick(View v) {\n\r\n\t\tint i = (Integer) v.getTag();\r\n\t\tString userId = mData.get(i).pub_account;\r\n\t\tLog.i(\"test1\", \"userId=\" + userId);\r\n\t\t\r\n\t\tMessage msg = mHandler.obtainMessage();\r\n\t\tmsg.arg1 = BindaccountListActivity.ADAPTER_ARG1;\r\n\t\tmsg.what = i;\r\n\t\tmsg.obj = userId;\r\n\t\tmHandler.sendMessage(msg);\r\n\t}", "title": "" }, { "docid": "883fdd6d8363102f4a3a67c4f5f4161e", "score": "0.61982626", "text": "@Override\n public void onItemClick(AdapterView a , View view, int i, long l){\n Intent PlayIntent = new Intent(SleepFragment.this.getActivity()\n , InfoActivity.class);\n // Start the new activity\n startActivity(PlayIntent);\n }", "title": "" }, { "docid": "89c2fb4cc0f184667c88692a0647deee", "score": "0.6198117", "text": "@SuppressLint({ \"InflateParams\", \"ViewHolder\"})\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n \n User s = contactItems.get(position);\n \n LayoutInflater mInflater = (LayoutInflater) context\n .getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n \n // Identifying the message owner\n\n convertView = mInflater.inflate(R.layout.list_item_contact,\n null);\n\n \n TextView contactName = (TextView) convertView.findViewById(R.id.contact_name);\n \n contactName.setText(s.getUserName());\n \n return convertView;\n }", "title": "" } ]
e9c47f853767bf454746b8f6681058b1
/ Gets a random label with called random number. Labels array list accepts index of the list. Thus, id of label ignored.
[ { "docid": "43f6edfc9f6ea7e9d87fcacb5860e1c9", "score": "0.80227584", "text": "private Label getRandomLabel(){\n\n return this.dataset.getLabels().get(getRandomInt() - 1);\n\n }", "title": "" } ]
[ { "docid": "86693876ebeff84ea35e9bfe26b56d61", "score": "0.742515", "text": "private int getRandomInt(){\n return random.nextInt(this.maxNumberOfLabels) + 1;\n }", "title": "" }, { "docid": "7d21e2d142c4a4c4e728d0658f2c9203", "score": "0.7029672", "text": "public static char generateLabel() {\n Random r = new Random();\n return LABELS[r.nextInt(LABELS.length)];\n }", "title": "" }, { "docid": "e4cec0ef30b0f7bb2fb654dc5c6ff37d", "score": "0.6654209", "text": "private static int getNewLabelId()\n\t{\n\t\t// New label ID whould be greater than reserved label IDs and within\n\t\t// allowed range (less than MAX_LABEL_ID).\n\t\tint labelId = LabelConstants.MAX_RESERVED_LABEL_ID\n\t\t\t\t+ random.nextInt(LabelConstants.MAX_LABEL_ID - LabelConstants.MAX_RESERVED_LABEL_ID);\n\t\treturn labelId;\n\t}", "title": "" }, { "docid": "0d8c3393a411eb98f776244999d3946e", "score": "0.6325655", "text": "public String getLabel(int index) {\n return (String)(labels.elementAt(index));\n }", "title": "" }, { "docid": "3cedd83689e7e506be0624327ca9ff23", "score": "0.6267251", "text": "@objid (\"a6e56c11-967d-4a5a-b9ad-55994175d762\")\n String getLabel();", "title": "" }, { "docid": "360d0234a74c68199a491b3ff5be000d", "score": "0.623716", "text": "java.lang.String getLabels(int index);", "title": "" }, { "docid": "63b7f42a6b00d3f2cfd2659922dff454", "score": "0.6214131", "text": "int getLabel();", "title": "" }, { "docid": "c27b71d53affb0a2b737cfafe3417442", "score": "0.6181413", "text": "T getLabel();", "title": "" }, { "docid": "51891a3626331b8eb14ad14d485f2bc0", "score": "0.6161975", "text": "public int generateRandomIndex()\n {\n return rand.nextInt(names.size());\n }", "title": "" }, { "docid": "b16632c9a8bbd6844004dd9f2e75cc1b", "score": "0.61349195", "text": "DatasetLabel getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.6111351", "text": "String getLabel();", "title": "" }, { "docid": "e527064e0aaf64a2b4853400f926745b", "score": "0.59738994", "text": "@NotNull\r\n String getLabel();", "title": "" }, { "docid": "fe346271dc4b3b2010454b3ad05ddfdc", "score": "0.5965894", "text": "public String getNumberLabel(int index) {\n if (isBeyondBounds(index)) {\n return null;\n } else {\n return labels.get(--index);\n }\n }", "title": "" }, { "docid": "ecfc176dda52997498f4b7df1cb1e5c6", "score": "0.59625804", "text": "public L getLabel(long elementIndex, E element);", "title": "" }, { "docid": "dcf655353e0afb796e3200348fec250c", "score": "0.59095985", "text": "public static String randomName(){\n String[] arr = new String[]{\"Nikos\",\"Kyriakos\",\"Xristos\",\"Giwrgos\",\"Xristina\",\"Katerina\"};\n return arr[new Random().nextInt(arr.length)];\n }", "title": "" }, { "docid": "c93fa6440760215475dd5281aa45fff2", "score": "0.58976686", "text": "public java.lang.String getLabels(int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "8fb74bc12e7a9ab9311437b5e9a40b55", "score": "0.58752954", "text": "public Label getFromLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "b9cbf7406a8497b7cf976e930f737937", "score": "0.58744115", "text": "public String getLabel();", "title": "" }, { "docid": "142724374f576dc316f2b085951874ae", "score": "0.58538073", "text": "public static int getNewLabelId(Set<Integer> existingLabels)\n\t{\n\t\t// generate new unique label id\n\t\tint labelId = LabelUtils.getNewLabelId();\n\t\tint attempts = 1;\n\t\twhile (existingLabels.contains(labelId))\n\t\t{\n\t\t\tif (attempts > MAX_NEW_LABEL_ID_ATTEMPTS)\n\t\t\t{\n\t\t\t\t// too many attempts to get new random id! too many labels?\n\t\t\t\tthrow new IllegalLabelException(\"Too many labels\");\n\t\t\t}\n\n\t\t\tlabelId = LabelUtils.getNewLabelId();\n\t\t\tattempts++;\n\t\t}\n\t\t\n\t\treturn labelId;\n\t}", "title": "" }, { "docid": "9266e2e416ece8348b575141f1764dc1", "score": "0.58482003", "text": "private String[] setLabels(int count)\n {\n String[] labels = new String[count];\n for (int i = 0; i < count; i++)\n {\n labels[i] = (i + 1) + \"\";\n }\n return labels;\n }", "title": "" }, { "docid": "ee8b68ad4f6afadb62b26d81f2b22f04", "score": "0.5847345", "text": "public java.lang.String getLabels(int index) {\n return labels_.get(index);\n }", "title": "" }, { "docid": "a750a489732760b78263bd689f014278", "score": "0.5824796", "text": "abstract String getLabel();", "title": "" }, { "docid": "f97a764c8dab9e42723fbe218b3367ea", "score": "0.57577676", "text": "public String getRandomTip() {\n mlist = CookingTips.getCookingTips();\n Random random = new Random();\n CookingTips result = mlist.get(random.nextInt(mlist.size()));\n return result.toString();\n }", "title": "" }, { "docid": "b7fa011b28778cd3f7e7829aa1823942", "score": "0.5746533", "text": "public abstract String getLabel();", "title": "" }, { "docid": "b884e62a32d74e0dd250ff480c175919", "score": "0.57124025", "text": "String label();", "title": "" }, { "docid": "709609968dad8a555fe3634192f3853f", "score": "0.5711135", "text": "public Long getLabelId() {\n return labelId;\n }", "title": "" }, { "docid": "a308361741922786c0943e7603d4150e", "score": "0.57057977", "text": "com.google.protobuf.StringValue getLabel();", "title": "" }, { "docid": "3a2509fcbf098f95a45c1a4ae4578740", "score": "0.56981987", "text": "private GLabel makeLabel(int rank, String name) {\r\n\t\tif (rank != 0) {\r\n\t\t\treturn new GLabel(name + \" \" + rank);\r\n\t\t}\r\n\t\treturn new GLabel(name + \"*\");\r\n\t}", "title": "" }, { "docid": "0beaf2ff5d4a21b852c43d9381ed85f0", "score": "0.56934613", "text": "public Label() {\n\t\tthis.name = \"L\" + count;\n\t\tcount++;\n\t}", "title": "" }, { "docid": "cbf95a625dfce078cda62d7dda5f6e05", "score": "0.56792516", "text": "public String label(int i) {\n if (i >= size())\n throw new IllegalArgumentException(\"No label at position \" + i + \" in \" + this);\n return labels[i].toString();\n }", "title": "" }, { "docid": "e02d1de23fe7bac212eb73bc8a949e42", "score": "0.56537503", "text": "public abstract String getLabelString(int intrvl );", "title": "" }, { "docid": "e98243428fa2588806049a3d0fc4ef73", "score": "0.56273055", "text": "public int getLabelIndex() {\n return labelIndex;\n }", "title": "" }, { "docid": "70f12e3c50857c9d375bf14d642c6aaa", "score": "0.5618938", "text": "public String getLabel()\n { \n return label;\n }", "title": "" }, { "docid": "8ab5adbbe615468382764ae9fb4b3179", "score": "0.56176114", "text": "public String getRandomElement(ArrayList<String> list) \r\n\t{\r\n\t\t// Generate a new random object from the Random class\r\n\t\tRandom rand = new Random();\r\n\t\t// This take a random index number from the array, and then returns it to the method being called\r\n\t\treturn list.get(rand.nextInt(list.size()));\r\n\t}", "title": "" }, { "docid": "9efa8c4cde7f0e9b28f273d92bd6e9e1", "score": "0.56115294", "text": "public String getLabel() { return label; }", "title": "" }, { "docid": "9186a23f31b4722a2b1a87fc35baae1b", "score": "0.5606861", "text": "private void createNewLabels() {\n \t\tString nextUnnamed = \"%1\";\n \t\tint nextNumber = 1;\n \t\t// Erster Block muss nicht betrachtet werden\n \t\tfor(int i=0; i<this.numberBlocks; i++) {\n \t\t\tLLVM_Block block = this.blocks.get(i);\n \t\t\t// Setze ab zweitem Block das Label\n \t\t\t// Nur falls kein Label gesetzt ist\n \t\t\tif(i>0 && block.getLabel().equals(\"\")) {\n \t\t\t\tblock.setLabel(nextUnnamed);\n \t\t\t\tnextNumber++;\n \t\t\t\tnextUnnamed = \"%\" + nextNumber;\n \t\t\t}\n \t\t\t\n \t\t\tif(!block.isEmpty()) {\n \t\t\t\tLLVM_GenericCommand c = block.getFirstCommand();\n \t\t\t\twhile(c!=null) {\n \t\t\t\t\tLLVM_Parameter p = c.getTarget();\n \t\t\t\t\tif(p!=null) {\n \t\t\t\t\t\tString name = p.getName();\n \t\t\t\t\t\tif(name!=null && name.equals(nextUnnamed)) {\n \t\t\t\t\t\t\tnextNumber++;\n \t\t\t\t\t\t\tnextUnnamed = \"%\" + nextNumber;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tc = c.getSuccessor();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\t// if block not empty\n \t\t}\t// for\n \t}", "title": "" }, { "docid": "593bdf3da64ab1e2b76b92382a18244b", "score": "0.55958635", "text": "public int getRandom() {\n int pos = random.nextInt(ls.size());\n return ls.get(pos);\n }", "title": "" }, { "docid": "f0cd4226a36a80ff233d750a491edce8", "score": "0.5594091", "text": "private int getLabelIndex(JLabel label) {\n int index = -1;\n\n //esegue una ricerca seriale confrontando\n //gli oggetti per equivalenza logica\n //(probabilmente avrebbe funzionato anche l'equivalenza\n //di riferimenti tramite ==)\n int i = 0;\n for (int row = 0; row < ROWS; row++) {\n for (int col = 0; col < COLS; col++) {\n if (label.equals(labels[row][col])) {\n index = i;\n }\n i++;\n }\n }\n\n //se non viene trovata l'etichetta viene generata\n //un'eccezione di runtime. Questo evento non dovrebbe\n //essere possibile\n if (index == -1) {\n throw new IllegalStateException(\"Impossibile individuare l'etichetta \" + label +\n \" tra quelle disponibili \" + labels);\n }\n\n return index;\n }", "title": "" }, { "docid": "f14ac01d49d157db73c34d858df871ce", "score": "0.5591651", "text": "public com.anychart.core.ui.LabelsFactory labels() {\n return new com.anychart.core.ui.LabelsFactory(jsBase + \".labels()\");\n }", "title": "" }, { "docid": "b0035718505dc34c80f4e7180f374512", "score": "0.559073", "text": "public Hashtable<Integer,ArrayList<Integer>> getLabel(){\n\t\treturn this.label;\n\t}", "title": "" }, { "docid": "6b6317cdf3132e3d93444c3e3340df2d", "score": "0.55822045", "text": "public JLabel getLblID() {\n\t\treturn lblID;\n\t}", "title": "" }, { "docid": "db70df923c2e69f98cb50af4d061f72a", "score": "0.55786073", "text": "public String getLabel()\r\n {\r\n return label;\r\n }", "title": "" }, { "docid": "2934e254d1cb1a874fef833023d44b0d", "score": "0.557191", "text": "public String getSliceLabel(int n) { return \"\" + n; }", "title": "" }, { "docid": "e917a56be0794a9056c7adbf3ed60c53", "score": "0.55586696", "text": "public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "fffe7664cbe9a997ae6806db86354a27", "score": "0.55560595", "text": "public L3Label getLabel()\n {\n return label;\n }", "title": "" }, { "docid": "3833a284b02cab9a0e581ce4a76db588", "score": "0.5552321", "text": "public String getLabel()\n {\n return label;\n }", "title": "" }, { "docid": "02fd7d2c77b762e8b9c8144940f4a646", "score": "0.55508894", "text": "protected abstract Label label(ScoreValue scoreValue);", "title": "" }, { "docid": "5d2ce0c40d7125447f364d25d8716359", "score": "0.5538658", "text": "String getLbl();", "title": "" }, { "docid": "e7a4edfcc45377eb20cf54a26230796c", "score": "0.55343676", "text": "String getSecondLabel();", "title": "" }, { "docid": "d3ed5a9bb14b944044870f763f34b1d4", "score": "0.55250853", "text": "private String randomTlf(Integer i) {\n\t\treturn \"Tlf \" + i;\n\t}", "title": "" }, { "docid": "da3121066f8b984afc03d7c8281e6da8", "score": "0.5521668", "text": "public String getRandomName()\n {\n Random rand = new Random();\n return names.get(rand.nextInt(names.size()));\n }", "title": "" }, { "docid": "3b4e1055a63981ad24d3e7a2f6a7e8ee", "score": "0.5520213", "text": "public double getProbabilityLabel(int label) {\n\t\treturn this.labels[label];\n\t}", "title": "" }, { "docid": "9ff4ab070eb21db73662fc6cd7001302", "score": "0.55146945", "text": "CharSequence getLabel();", "title": "" }, { "docid": "fa507c590df457b71c372175e3c9cecb", "score": "0.5507262", "text": "public String getLabel()\n {\n return label;\n }", "title": "" }, { "docid": "d0ab302fec03bb9fbf3b96009fd59062", "score": "0.54963976", "text": "public java.lang.String getLabel(){\n return localLabel;\n }", "title": "" }, { "docid": "b92cb34307c94d1e7f9fcb6644011e93", "score": "0.54900897", "text": "String label() { return \"Lte\"; }", "title": "" }, { "docid": "de054342bb64a463ffce2c957e5023cf", "score": "0.54897875", "text": "String getMultilabel();", "title": "" }, { "docid": "da1887955f933a6c5dd6ffb3a3f71d5a", "score": "0.5488493", "text": "public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "ebe9994337178c5954050820eda444fd", "score": "0.548494", "text": "public void setLabel(String l) {\n label = l;\n }", "title": "" }, { "docid": "9dcfb8d698a5de88c01d4d9f1bb613bc", "score": "0.54740274", "text": "String getFirstLabel();", "title": "" }, { "docid": "46caec721242dbbd2193cec9d6201c41", "score": "0.5464388", "text": "public int getLabel() {\r\n\t\treturn this.label;\r\n\t}", "title": "" }, { "docid": "b1937f7bfd75d2af507f87dfb17ce907", "score": "0.5448564", "text": "public static ROSPktLabel createLabel(Project project, String labelName) {\n final ROSPktFile file = createFile(project, \"dummyName \" + labelName);\n return (ROSPktLabel) file.getFirstChild().getFirstChild().getLastChild();\n }", "title": "" }, { "docid": "9907e0c1930d66a194fd6291be531852", "score": "0.5448561", "text": "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a893d9d2cc4a9d9bb6b79a6cce20beda", "score": "0.5443935", "text": "public int getRandom() {\n Random random = new Random();\n int index = random.nextInt(indexes.length);\n return values[indexes[index]];\n }", "title": "" }, { "docid": "f5b80b692f8f2350755bf360a11237e5", "score": "0.5442786", "text": "public final String getLabel() {\n return label;\n }", "title": "" }, { "docid": "8a110e938348eb806a6eca3735d1e7c3", "score": "0.54405636", "text": "public String getLabel() {\n return lbl;\n }", "title": "" }, { "docid": "386540d43b2afc4ac2e1928772839b45", "score": "0.54405046", "text": "public int getRandom() {\r\n ListNode[] res = getRandom(1);\r\n return res[0].val;\r\n }", "title": "" }, { "docid": "962a0948c1467c8945e823d324b57a81", "score": "0.54321814", "text": "protected String getLabel() {\n return label;\n }", "title": "" }, { "docid": "35501ea42ba8aeed38a128249899c74c", "score": "0.54302245", "text": "private int generateRandomStoryIndex(){\n\n return rand.nextInt(4);\n\n }", "title": "" }, { "docid": "478464f3f159192025f3cf6046d5712f", "score": "0.5426761", "text": "public final void label() throws RecognitionException {\n Token ID14=null;\n\n try {\n // /home/macan/Private/pl2py/PLSQL.g:1987:7: ( LLABEL ID RLABEL )\n // /home/macan/Private/pl2py/PLSQL.g:1988:9: LLABEL ID RLABEL\n {\n match(input,LLABEL,FOLLOW_LLABEL_in_label4261); \n ID14=(Token)match(input,ID,FOLLOW_ID_in_label4263); \n match(input,RLABEL,FOLLOW_RLABEL_in_label4265); \n\n \tfor (int i = 0; i < indent_count; i++) {\n \t\t\t\tstat += \"\\t\";\n \t\t}\n \tstat += \"# FIXME: there is no goto statement in python. Please fix it!\\n\";\n \tfor (int i = 0; i < indent_count; i++) {\n \t\t\t\tstat += \"\\t\";\n \t\t}\n \t\tstat += \"# <<\" + ID14.getText().toLowerCase() + \">>\\n\";\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "80981a8b10e62f05e8374772d5e8a48c", "score": "0.5416128", "text": "public String getLabel()\n\t{\n\t\treturn label;\n\t}", "title": "" }, { "docid": "b77e0e16b1a6fd6530f7b3c7fa6ccc08", "score": "0.54103696", "text": "private static String getUniqueLabelNum(String lbl, HashMap<String,\n\t\t\t\t\t\t\t\t\t\t\t\tInteger> labelCount){\n \t\n \t\tif(labelCount.containsKey(lbl)){\t// Seen before\n \t\t\tlabelCount.put(lbl, labelCount.get(lbl) + 1);\n \t\t\treturn Integer.toString(labelCount.get(lbl));\n \t\t}else{\t\t\t\t\t\t\t\t// Not seen before\n \t\t\tlabelCount.put(lbl, 1);\n \t\t\treturn \"1\";\n \t\t}\n\t\t}", "title": "" }, { "docid": "01880bdf13a08691b3289440619ac5dd", "score": "0.54072297", "text": "public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }", "title": "" }, { "docid": "c0279db95281d2d4356b6f9108f611ff", "score": "0.54071164", "text": "private JLabel getLabel(int x, int y) {\n\t\treturn m_Image_Labels[x][y];\n\t}", "title": "" }, { "docid": "972b3d0c54a5d84b71f44f0b1a6ba387", "score": "0.5402528", "text": "public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "972b3d0c54a5d84b71f44f0b1a6ba387", "score": "0.5402528", "text": "public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "972b3d0c54a5d84b71f44f0b1a6ba387", "score": "0.5402528", "text": "public String getLabel() {\n return label;\n }", "title": "" }, { "docid": "1645d1e5a57c4e5f646fb02a2aa925c6", "score": "0.53969526", "text": "public com.gazoomobile.mxalm.TLabel getLabel()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.gazoomobile.mxalm.TLabel target = null;\n target = (com.gazoomobile.mxalm.TLabel)get_store().find_element_user(LABEL$12, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "184f411122929c09ce01d6300800ae9f", "score": "0.53909385", "text": "private static <T> T getRandomObject(ArrayList<T> indices) {\n\t\tT result = indices.get(rn.nextInt(indices.size()));\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b1c9396426276b9dbaf82ec1facc997e", "score": "0.53860444", "text": "public T getLabel() {\n return this.label;\n }", "title": "" }, { "docid": "353cb9487928fb7e261a1bc9411bc523", "score": "0.5378994", "text": "private static String getRandomName(){\r\n int index = r.nextInt(namesForSheep.length);\r\n return namesForSheep[index];\r\n }", "title": "" }, { "docid": "d75fcc2c896659dcd9e4b8b93dc00509", "score": "0.53718036", "text": "public LirNode labelRef(Label label) {\n return labelRef(Op.LABEL, module.targetMachine.typeAddress, label, ImList.Empty);\n }", "title": "" }, { "docid": "8446f2ea8d0af3fc45d041bb6cca3e45", "score": "0.53696406", "text": "public String getBestLabel();", "title": "" }, { "docid": "dc49caf72218a60f098166e00559878e", "score": "0.536209", "text": "public String randomTip()\n {\n String[] tips = new String[5];\n tips[0] = \"Exercising with friends is a great way to socialize!\";\n tips[1] = \"Be sure to get the 450 MET's this week!\";\n tips[2] = \"MET is a method of combining both moderate and vigorous activity.\";\n tips[3] = \"Be sure to take vigorous activity in moderation\";\n tips[4] = \"Be sure to measure your pulse after each workout.\";\n Random rng = new Random();\n int number = rng.nextInt(5);\n\n return tips[number];\n }", "title": "" }, { "docid": "57773f32bb8df61f681fe54b1cbc91f8", "score": "0.53531736", "text": "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "b50a2260022c752af2b872f75b6f501f", "score": "0.5353106", "text": "private int getLabel(Arm arm) {\n if (arm.equals(Arm.CONTROL)) {\n return 0;\n } else if (arm.equals(Arm.MAIN)) {\n return 1;\n } else {\n return 2;\n }\n }", "title": "" }, { "docid": "26abb467839da7d3037f97c0c1da82ed", "score": "0.53489774", "text": "com.google.protobuf.StringValueOrBuilder getLabelOrBuilder();", "title": "" }, { "docid": "49201a725334a4be80f2e74b8b7e709f", "score": "0.53451765", "text": "@VTID(79)\n @UseDefaultValues(paramIndexMapping = {0, 2}, optParamIndex = {1}, javaType = {int.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"1033\"})\n @ReturnValue(type=NativeType.Dispatch,index=2)\n com4j.Com4jObject labels(\n @Optional @MarshalAs(NativeType.VARIANT) java.lang.Object index);", "title": "" } ]
1422f5f1300839949028c340f132c013
Find products by offset and limit.
[ { "docid": "35a4b7a650fab6c73f2b1c1e38cb0709", "score": "0.84517324", "text": "public ProductPage findProductsByOffsetAndLimit(Integer offset, Integer limit);", "title": "" } ]
[ { "docid": "fb1f8effb301c0a4fc283ba1048ca8ef", "score": "0.7022734", "text": "public ProductPage findProductsByCategoryOffsetAndLimit(Integer categoryId, Integer offset, Integer limit);", "title": "" }, { "docid": "5ea2ec815bba7f61358d2e2149ddb203", "score": "0.67082226", "text": "public List<Product> getProducts(SearchParams searchParams, int offset , int limit) {\n Transaction transaction = null;\n List<Product> productList = new ArrayList<>();\n// try\n// {\n String where = \"\";\n if(searchParams != null)\n {\n if(!StringUtils.isNullOrEmpty(searchParams.getReferenceId()))\n {\n if(where.equals(\"\"))\n {\n where += \" where p.reference_id = '\" + searchParams.getReferenceId()+\"' \";\n }\n else\n {\n where += \" AND p.reference_id = '\" + searchParams.getReferenceId()+\"' \";\n }\n \n }\n if(searchParams.getProductType() != null && searchParams.getProductType().getId() > 0)\n {\n if(where.equals(\"\"))\n {\n where += \" where p.product_type_id = \" + searchParams.getProductType().getId() + \" \";\n }\n else\n {\n where += \" AND p.product_type_id = \" + searchParams.getProductType().getId() +\" \";\n }\n }\n if(searchParams.getLocation()!= null && searchParams.getLocation().getId() > 0)\n {\n if(where.equals(\"\"))\n {\n where += \" where p.location_id = \" + searchParams.getLocation().getId() + \" \";\n }\n else\n {\n where += \" AND p.location_id = \" + searchParams.getLocation().getId() +\" \";\n }\n }\n if(searchParams.getProductSize() != null && searchParams.getProductSize().getId() > 0)\n {\n if(where.equals(\"\"))\n {\n where += \" where p.product_size_id = \" + searchParams.getProductSize().getId() + \" \";\n }\n else\n {\n where += \" AND p.product_size_id = \" + searchParams.getProductSize().getId() +\" \";\n }\n }\n if(searchParams.getOccupation() != null && searchParams.getOccupation().getId() > 0)\n {\n if(where.equals(\"\"))\n {\n where += \" where p.occupation_id = \" + searchParams.getOccupation().getId() + \" \";\n }\n else\n {\n where += \" AND p.occupation_id = \" + searchParams.getOccupation().getId() +\" \";\n }\n }\n if(searchParams.getPet() != null && searchParams.getOccupation().getId() > 0)\n {\n if(where.equals(\"\"))\n {\n where += \" where p.pet_id = \" + searchParams.getPet().getId() + \" \";\n }\n else\n {\n where += \" AND p.pet_id = \" + searchParams.getPet().getId() +\" \";\n }\n }\n if(searchParams.getMinPrice() >= 0 )\n {\n if(where.equals(\"\"))\n {\n where += \" where p.base_price >= \" + searchParams.getMinPrice() + \" \";\n }\n else\n {\n where += \" AND p.base_price >= \" + searchParams.getMinPrice() +\" \";\n }\n }\n if(searchParams.getMaxPrice() > 0 )\n {\n if(where.equals(\"\"))\n {\n where += \" where p.base_price <= \" + searchParams.getMaxPrice() + \" \";\n }\n else\n {\n where += \" AND p.base_price <= \" + searchParams.getMaxPrice() +\" \";\n }\n }\n }\n Session session = HibernateUtil.getSession(); \n session.clear();\n List<Product> products = new ArrayList<>();\n transaction = session.beginTransaction();\n Query query = session.createSQLQuery(\"select {p.*} from products p \" + where + \" limit :limit offset :offset \")\n .addEntity(\"p\",Product.class)\n .setInteger(\"limit\", limit)\n .setInteger(\"offset\", offset); \n products = query.list();\n for(Product product : products)\n {\n TimeUtils timeUtils = new TimeUtils();\n product.setAvailableFrom(timeUtils.covertDBToUserDate(product.getAvailableFrom()));\n product.setAvailableTo(timeUtils.covertDBToUserDate(product.getAvailableTo()));\n product.setBidStartDate(timeUtils.covertDBToUserDate(product.getBidStartDate()));\n product.setBidEndDate(timeUtils.covertDBToUserDate(product.getBidEndDate()));\n\n Image[] images = new Image[2];\n Image image1 = new Image();\n Image image2 = new Image();\n if(StringUtils.isNullOrEmpty(product.getImg()))\n {\n image1.setTitle(\"a.jpg\");\n image2.setTitle(\"b.jpg\");\n }\n else\n {\n image1.setTitle(product.getImg());\n image2.setTitle(product.getImg());\n }\n\n images[0] = image1;\n images[1] = image2; \n product.setImages(images);\n productList.add(product);\n }\n if (!transaction.wasCommitted()){\n transaction.commit();\n } \n// }\n// catch(Exception ex)\n// {\n// logger.error(ex.toString());\n// if(transaction != null)\n// {\n// transaction.rollback();\n// }\n// productList = new ArrayList<>();\n// } \n return productList;\n }", "title": "" }, { "docid": "6f536757fb285e3a7011fa4808108e07", "score": "0.6540385", "text": "public abstract List<E> select(int offset, int limit);", "title": "" }, { "docid": "93bd920f0412c529e1c217157c6ece4c", "score": "0.6510191", "text": "public List<Product> getMyProducts(int userId, int offset , int limit) {\n Transaction transaction = null;\n List<Product> products = new ArrayList<>();\n try\n {\n Session session = HibernateUtil.getSession(); \n session.clear();\n transaction = session.beginTransaction();\n Query query = session.createSQLQuery(\"select {p.*} from products p where p.user_id = :user_id order by p.unix_available_to desc limit :limit offset :offset \")\n .addEntity(\"p\",Product.class)\n .setInteger(\"user_id\", userId)\n .setInteger(\"limit\", limit)\n .setInteger(\"offset\", offset); \n products = query.list();\n if (!transaction.wasCommitted()){\n transaction.commit();\n }\n }\n catch(Exception ex)\n {\n logger.error(ex.toString());\n if(transaction != null)\n {\n transaction.rollback();\n }\n products = new ArrayList<>();\n }\n return products;\n }", "title": "" }, { "docid": "26db3a214b93fabab957c2327ff6cab0", "score": "0.65035933", "text": "@NotNull\n public ArrayList<DigitalProduct> doRetrieveAll(int offset, int limit) {\n\n try (Connection con = ConPool.getConnection()) {\n PreparedStatement ps = con.prepareStatement(\"SELECT * from digitalproduct LIMIT ?, ?\");\n ps.setInt(1, offset);\n ps.setInt(2, limit);\n ResultSet rs = ps.executeQuery();\n\n ArrayList<DigitalProduct> prodotti = new ArrayList<>();\n while (rs.next()) {\n DigitalProduct p = new DigitalProduct();\n p.setId(rs.getInt(1));\n p.setName(rs.getString(2));\n p.setPrice(rs.getDouble(3));\n p.setDescription(rs.getString(4));\n p.setImage(rs.getString(5));\n p.setPlatform(rs.getString(6));\n p.setReleaseDate(rs.getString(7));\n p.setRequiredAge(rs.getInt(8));\n p.setSoftwareHouse(rs.getString(9));\n p.setPublisher(rs.getString(10));\n p.setQuantity(rs.getInt(11));\n p.setCategories(doRetrieveAllProdCatById(p.getId()));\n p.setTags(doRetrieveAllProdTagById(p.getId()));\n\n prodotti.add(p);\n }\n\n return prodotti;\n\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "b2a7c3d0de00d2505f88453acdd65477", "score": "0.63128525", "text": "Page<ProductEntity> findCustomerProducts(UUID customerId, Pageable pageable);", "title": "" }, { "docid": "7dcc1158ab74b330b5c9217e0f2ab195", "score": "0.6231178", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<SurveyChoicesEntity> physicalSelectAllWithPager(int limit, int offset) { \n return physicalSelectAllWithPager(limit, offset, Order.DESC);\n }", "title": "" }, { "docid": "fb700ab1cbad3139a955d54439d22ba0", "score": "0.62002826", "text": "public List<Product> findAll(int offset, int count) {\n Query q = em.createQuery(\"FROM Product p WHERE active is true\", Product.class);\n if (count > 0) {\n q.setFirstResult(offset);\n q.setMaxResults(count);\n }\n return q.getResultList();\n }", "title": "" }, { "docid": "4d51baed7f0be3660f4a12659c683d65", "score": "0.6187654", "text": "public List<Product> getSavedProducts(int userId, int offset , int limit) {\n Transaction transaction = null;\n List<Product> products = new ArrayList<>();\n try\n {\n Session session = HibernateUtil.getSession(); \n session.clear();\n transaction = session.beginTransaction();\n Query query = session.createSQLQuery(\"select {sp.*}, {p.*} from saved_products sp join products p on sp.product_id = p.id where sp.user_id = :user_id limit :limit offset :offset \")\n .addEntity(\"sp\",SavedProduct.class)\n .addEntity(\"p\",Product.class)\n .setInteger(\"user_id\", userId)\n .setInteger(\"limit\", limit)\n .setInteger(\"offset\", offset); \n List<Object[]> rows = query.list();\n for(Object[] row: rows)\n {\n Product product = (Product)row[1];\n products.add(product);\n }\n if (!transaction.wasCommitted()){\n transaction.commit();\n }\n }\n catch(Exception ex)\n {\n logger.error(ex.toString());\n if(transaction != null)\n {\n transaction.rollback();\n }\n products = new ArrayList<>();\n } \n return products;\n }", "title": "" }, { "docid": "5f29164934e0ef1f8fe6087c4016b736", "score": "0.6146641", "text": "public Collection<? extends Product> findProductByCompany(Integer company_companyid, int startResult, int maxRows) throws DataAccessException ;", "title": "" }, { "docid": "d23f38a15532124e2ed9e59872d7469e", "score": "0.6140154", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<ActivitiesEntity> physicalSelectAllWithPager(int limit, int offset) { \n return physicalSelectAllWithPager(limit, offset, Order.DESC);\n }", "title": "" }, { "docid": "b77b4b263b3dc347f05a9027357f5beb", "score": "0.6119482", "text": "@NotNull\n public ArrayList<DigitalProduct> doRetrieveAllByTag(\n @NotNull String tagName, int offset, int limit) {\n\n try (Connection con = ConPool.getConnection()) {\n PreparedStatement ps = con.prepareStatement(\"select id, name, price,\"\n + \" description, image, platform,\"\n + \"releaseDate, requiredAge, softwareHouse, publisher, quantity \"\n + \"from digitalcharacteristic, digitalproduct \"\n + \"where digitalcharacteristic.digitalProduct = digitalproduct.id \"\n + \"and digitalcharacteristic.tag = ? LIMIT ?, ?;\");\n\n ps.setString(1, tagName);\n ps.setInt(2, offset);\n ps.setInt(3, limit);\n ResultSet rs = ps.executeQuery();\n\n ArrayList<DigitalProduct> prodotti = new ArrayList<>();\n while (rs.next()) {\n DigitalProduct p = new DigitalProduct();\n p.setId(rs.getInt(1));\n p.setName(rs.getString(2));\n p.setPrice(rs.getDouble(3));\n p.setDescription(rs.getString(4));\n p.setImage(rs.getString(5));\n p.setPlatform(rs.getString(6));\n p.setReleaseDate(rs.getString(7));\n p.setRequiredAge(rs.getInt(8));\n p.setSoftwareHouse(rs.getString(9));\n p.setPublisher(rs.getString(10));\n p.setQuantity(rs.getInt(11));\n\n\n p.setCategories(doRetrieveAllProdCatById(p.getId()));\n p.setTags(doRetrieveAllProdTagById(p.getId()));\n\n prodotti.add(p);\n }\n\n return prodotti;\n\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "aedaa4bb343831e31226509c4b726309", "score": "0.610789", "text": "public SelectQuery limit(int offset, int count);", "title": "" }, { "docid": "523add588366edc3d54c67389f104e19", "score": "0.60628456", "text": "Collection<MetricEntity> find(SelectCriteria criteria, int offset, int limit);", "title": "" }, { "docid": "171c0a9bfd1437ac806624b77c2a8732", "score": "0.60186297", "text": "public List<Product> searchProductsWithPagination(String keyWord, Integer from, Integer size) {\n\t\treturn productRepository.searchProductsinPostswithPagination(keyWord, from, size);\n\t}", "title": "" }, { "docid": "ebaf13368a71db919e4f6767e3ff7918", "score": "0.5954875", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<SurveyChoicesEntity> physicalSelectAllWithPager(int limit, int offset, Order order) { \n String sql = SQLManager.getInstance().getSql(\"/org/support/project/knowledge/dao/sql/SurveyChoicesDao/SurveyChoicesDao_physical_select_all_with_pager.sql\");\n sql = String.format(sql, order.toString());\n return executeQueryList(sql, SurveyChoicesEntity.class, limit, offset);\n }", "title": "" }, { "docid": "974c0da2c5e8dfb03cbececf7c9471e8", "score": "0.59462565", "text": "public Mono<List<DetailItem>> findList(Integer seek, Integer limit, BigDecimal fromPrice, BigDecimal toPrice) {\n try {\n Result<Record8<Integer, String, String, BigDecimal, String, Integer, Integer, String>> result\n = dsl.select(ITEMS.ID, ITEMS.NAME, ITEMS.DESC, ITEMS.PRICE, CATEGORY.NAME, CATEGORY.ID,\n LOCATION.ID, LOCATION.NAME)\n .from(ITEMS).join(CATEGORY)\n .on(CATEGORY.ID.eq(ITEMS.CAT_ID))\n .join(LOCATION).onKey()\n .where(ITEMS.PRICE.greaterOrEqual(fromPrice).and(ITEMS.PRICE.lessOrEqual(toPrice)))\n .orderBy(ITEMS.ID.asc())\n .seek(seek)\n .limit(limit)\n .fetch();\n String sql = dsl.select(ITEMS.ID, ITEMS.NAME, ITEMS.DESC, ITEMS.PRICE, CATEGORY.NAME)\n .from(ITEMS).join(CATEGORY)\n .on(CATEGORY.ID.eq(ITEMS.CAT_ID))\n .where(ITEMS.PRICE.gt(fromPrice).and(ITEMS.PRICE.lt(toPrice)))\n .orderBy(ITEMS.ID.asc())\n .seek(seek)\n .limit(limit)\n .getSQL();\n log.info(sql);\n List<DetailItem> list = result.into(DetailItem.class);\n return Mono.just(list);\n } catch (Exception e) {\n log.error(e.getMessage());\n return Mono.error(e);\n }\n }", "title": "" }, { "docid": "3717fea65b67346674bde8a71ee1daee", "score": "0.59059614", "text": "public ByProjectKeyProductTypesGet withOffset(final Supplier<Integer> supplier) {\n return copy().withQueryParam(\"offset\", supplier.get());\n }", "title": "" }, { "docid": "802f6566c00eb6a758c9f97b1df258a1", "score": "0.5878435", "text": "F.Promise<ProductList> fetchSearchedProducts(Locale locale, int page, RequestParameters parameters);", "title": "" }, { "docid": "01a02054054c782ff59bdd74fe2849bd", "score": "0.5857801", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<ActivitiesEntity> physicalSelectAllWithPager(int limit, int offset, Order order) { \n String sql = SQLManager.getInstance().getSql(\"/org/support/project/knowledge/dao/sql/ActivitiesDao/ActivitiesDao_physical_select_all_with_pager.sql\");\n sql = String.format(sql, order.toString());\n return executeQueryList(sql, ActivitiesEntity.class, limit, offset);\n }", "title": "" }, { "docid": "d219d6f74e1f0a8069005fbe1aa2e839", "score": "0.5769221", "text": "List<Seckill> queryAll(@Param(\"offset\") int offset, @Param(\"limit\") int limit);", "title": "" }, { "docid": "989e4de21fca08a48808ae10fcbea1d8", "score": "0.5745815", "text": "public <TValue> ByProjectKeyProductTypesGet withOffset(final Collection<TValue> offset) {\n return copy().withoutQueryParam(\"offset\")\n .addQueryParams(\n offset.stream().map(s -> new ParamEntry<>(\"offset\", s.toString())).collect(Collectors.toList()));\n }", "title": "" }, { "docid": "e99bec042cc08413b7a6708115a5b74c", "score": "0.5738403", "text": "public ArrayList<Product> getProductsFromPageAndMax(int page, int max, boolean extra) {\n ArrayList<Product> products = new ArrayList<Product>();\n String SQL = \"\";\n SQL += \"SELECT * \";\n SQL += \"FROM account \";\n SQL += \" LIMIT \" + (page*max) + \",\" + (extra ? max+1 : max) + \";\";\n \n try {\n ResultSet result = SQLCaller.ME.Submit_SQL_Query(SQL);\n result.first();\n \n while(result.next()) {\n Product p = new Product();\n p.setProductID(result.getInt(1));\n p.setName(result.getString(2));\n p.setMachineID(result.getInt(3));\n products.add(p);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return products;\n }", "title": "" }, { "docid": "3adcbba8682e7b7a3e702082eb33749f", "score": "0.5713878", "text": "Page<Price> findByProduct(Product product, Pageable pageable);", "title": "" }, { "docid": "5a45e8b289208b19abbf3c18d1583115", "score": "0.57131904", "text": "public ByProjectKeyProductTypesGet addOffset(final Supplier<Integer> supplier) {\n return copy().addQueryParam(\"offset\", supplier.get());\n }", "title": "" }, { "docid": "48ac098bb58a507efb76e719f65618da", "score": "0.5707474", "text": "List<Order> getPerPage(long startRow, long maxRows);", "title": "" }, { "docid": "0cf2d781adeb0e4a7c732ef0cbb9f337", "score": "0.5686538", "text": "@GET\n @Produces(\"application/json\")\n public List<ProductModel> getProducts(@QueryParam(\"start\") int start, @QueryParam(\"size\") int size) {\n \n List<ProductModel> pmList = new ArrayList<>();\n ProductModel pm = null ;\n List<Product> products =new ArrayList<>() ;\n for (Product product : products) {\n System.out.println(\" product ref : \"+product.getName());\n }\n if(start >=0 && size >= 1 ){\n products = productRef.findAllPaginated(start,size);\n for (Product product : products) {\n pm=new ProductModel(product.getProductId(), product.getName(),product.getProDescription(),product.getCurrentPrice());\n pmList.add(pm);\n \n } \n\t\t}\n products = productRef.findAll();\n for (Product product : products) {\n pm=new ProductModel(product.getProductId(), product.getName(),product.getProDescription(),product.getCurrentPrice());\n pmList.add(pm);\n System.out.println(\" product ref : \"+product.getName());\n }\n return pmList ;\n }", "title": "" }, { "docid": "bbff5b40739fae14545408910a3d9e60", "score": "0.5676609", "text": "io.adetalhouet.order.system.product.grpc.Product getProducts(int index);", "title": "" }, { "docid": "8c24cfe437ff31bfb9f0c432632635eb", "score": "0.5664579", "text": "@NotNull\n public ArrayList<DigitalProduct> doRetrieveAllByCategory(\n @NotNull String categoryName, int offset, int limit) {\n\n try (Connection con = ConPool.getConnection()) {\n PreparedStatement ps = con.prepareStatement(\"select id, name, price,\"\n + \" description, image, platform,\"\n + \"releaseDate, requiredAge, softwareHouse, publisher, quantity \"\n + \"from digitalbelonging, digitalproduct \"\n + \"where digitalbelonging.digitalProduct = digitalproduct.id \"\n + \"and digitalbelonging.category = ? LIMIT ?, ?;\");\n\n ps.setString(1, categoryName);\n ps.setInt(2, offset);\n ps.setInt(3, limit);\n ResultSet rs = ps.executeQuery();\n\n ArrayList<DigitalProduct> prodotti = new ArrayList<>();\n while (rs.next()) {\n DigitalProduct p = new DigitalProduct();\n p.setId(rs.getInt(1));\n p.setName(rs.getString(2));\n p.setPrice(rs.getDouble(3));\n p.setDescription(rs.getString(4));\n p.setImage(rs.getString(5));\n p.setPlatform(rs.getString(6));\n p.setReleaseDate(rs.getString(7));\n p.setRequiredAge(rs.getInt(8));\n p.setSoftwareHouse(rs.getString(9));\n p.setPublisher(rs.getString(10));\n p.setQuantity(rs.getInt(11));\n\n\n p.setCategories(doRetrieveAllProdCatById(p.getId()));\n p.setTags(doRetrieveAllProdTagById(p.getId()));\n\n prodotti.add(p);\n }\n\n return prodotti;\n\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "7aa973686f3ac7ac4d8ab779a569717d", "score": "0.56644064", "text": "@NotNull\n @Override\n public List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit) {\n Pair<Boolean, List<Result>> result;\n int neededResults = Integer.MAX_VALUE;\n int currentLimit = Integer.MAX_VALUE;\n if (null != limit) {\n neededResults = offset + limit;\n currentLimit = neededResults * config.overshoot() + 5;\n }\n int lastResultCount = -1;\n do {\n result = limitedQuery.execQuery(currentLimit);\n if (currentLimit > config.maximumMatchCount()) currentLimit = config.maximumMatchCount();\n if (result.getLeft() && result.getRight().size() >= neededResults) break;\n if (result.getRight().size() <= lastResultCount) break; // panic switch; shouldn't happen\n if (currentLimit >= config.maximumMatchCount()) break;\n lastResultCount = result.getRight().size();\n currentLimit = currentLimit * 3;\n LOG.info(\"Reexecuting search with limit {} for {}\", currentLimit, neededResults); // should rarely happen\n } while (true);\n if (result.getRight().size() <= offset) return Collections.emptyList();\n else return result.getRight().subList(offset, Math.min(result.getRight().size(), neededResults));\n }", "title": "" }, { "docid": "b9d0f2cab684425e739ad23000507644", "score": "0.5658263", "text": "public LinkedList<ProductInfo> getAllProductByPage(int start, int rowPerPage, String keyword){ \n \t LinkedList<ProductInfo> list = new LinkedList<ProductInfo>(); \n \t \n \t String sql = \"select * from (select * from (select p.*, rownum r from PRODUCTS p where p.TITLE like \\'%\"+ keyword + \"%\\')\" + \"where r>=\" + start + \"and r<=\" + (start+rowPerPage) + \") pr, INVENTORY i where pr.PROD_ID = i.PROD_ID\";\n \t \n \t \n \t //String sql = \"select * from (select *, rownum r from PRODUCTS p, INVENTORY i where p.PROD_ID = i.PROD_ID and p.TITLE like \\'%\" + keyword + \"%\\')\" + \"where r>=\" + (start*rowPerPage) + \"and r<=\" + ((start*rowPerPage)+rowPerPage);\n \t \n \t System.out.println(\"ProductDao60--\"+ sql);\n \t \n \t \n try { \n \t \tcon = dbcon.initDB();\n \t\t\t\tpstmt = con.prepareStatement(sql);\n \t\t\t\trs = pstmt.executeQuery(); \n \t\t\t\twhile(rs.next()){ \n \t\t\t\t\tProductInfo product = new ProductInfo();\n \t\t\t\t\t//will modify\n \t\t\t\t\tproduct.setProId(rs.getInt(\"PROD_ID\"));\n \t \tproduct.setCateId(rs.getInt(\"CATEGORY\"));\n \t \tproduct.setPrice(rs.getFloat(\"PRICE\"));\n \t \tproduct.setProName(rs.getString(\"TITLE\"));\n \t \tproduct.setStock(rs.getInt(\"QUAN_IN_STOCK\"));\n \t \tproduct.setRate(rs.getInt(\"RATE\"));\n \t \tproduct.setPic(rs.getString(\"PIC\"));\n \t\tlist.add(product);\n } \n } catch (SQLException e) { \n e.printStackTrace(); \n } \n \n try {\n\t\t\tdbcon.closeDB(con);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n return list; \n }", "title": "" }, { "docid": "f502be5875c0eaa42a7372c05825d952", "score": "0.5634302", "text": "@Override\n\tpublic Page<T> findBy(Map<String, Object> filterMap, Map<String, Object> orderMap, int start, int pageSize) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3cf33c9d0629321584822168359c3bf2", "score": "0.5592346", "text": "@Override\n\tpublic Page<T> findBy(Map<String, Object> filterMap, int start, int pageSize) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ece4254283118efd490a8bda627fd345", "score": "0.5582809", "text": "public Pager<TbProduct> findProductList(Map mapCondition, int page, int rows) {\n\t\t\n\t\tString condition = \"\";\n\t\tif (mapCondition != null && !mapCondition.isEmpty()) {\n\t\t\tcondition = \" where 1=1 \";\n\t\t\tSet<String> keys = mapCondition.keySet();\n\t\t\tIterator itor = keys.iterator();\n\t\t\twhile (itor.hasNext()) {\n\t\t\t\tString key = (String) itor.next();\n\t\t\t\tObject obj = mapCondition.get(key);\n\t\t\t\tif (obj != null) {\n\t\t\t\t\tif(\"entIds\".equals(key)){\n\t\t\t\t\t\tcondition += \" and entId in (\"+obj+\")\";\n\t\t\t\t\t}else if (obj.getClass() == String.class) {// 条件查询条件为字符串的情况\n\t\t\t\t\t\tcondition += \" and \" + key + \" like '%\" + (String) obj+ \"%'\";\n\t\t\t\t\t} else {// 数字\n\t\t\t\t\t\tcondition += \" and \" + key + \"=\" + obj;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tcondition += \"order by proId desc\";\n\t\t\n\t\tString hql = \"from TbProduct \" + condition;\n\t\t\n\t\tList<TbProduct> list = this.find(hql,page,rows);\n\t\t\n\t\tString hql_ct = \"select count(*) from TbProduct \"+condition;\n\t\t\n\t\tint ct = this.count(hql_ct).intValue();\n\t\t\n\t\tPager<TbProduct> pager = new Pager<TbProduct>();\n\t\t\n\t\tpager.setData(list);\n\t\t\n\t\tpager.setTotal(ct);\n\t\t\n\t\treturn pager;\n\t}", "title": "" }, { "docid": "1a6b8737c684cbf10f720166d0b2715a", "score": "0.55806303", "text": "proto_def.UserMessage.BagResp.Product getProducts(int index);", "title": "" }, { "docid": "ae6e73b546b626432adb110a4881e4ec", "score": "0.5563592", "text": "public Collection<? extends Product> findProductByCompany(Integer company_companyid, int startResult) throws DataAccessException ;", "title": "" }, { "docid": "0527bfe69894c8ceb72ea4e9cf8fa32e", "score": "0.5556334", "text": "@NotNull\n public ArrayList<DigitalProduct> doRetrieveByAllFragment(\n @NotNull String name, @NotNull String desc, @NotNull Double price,\n @NotNull String softHouse, @NotNull String nameTag, @NotNull String nameCategory,\n int offset, int limit) {\n\n try (Connection con = ConPool.getConnection()) {\n PreparedStatement ps = con.prepareStatement(\n \"SELECT dp.id, dp.name, dp.price, dp.description, \"\n + \"dp.image, dp.platform, dp.releaseDate, dp.requiredAge, dp.softwareHouse, \"\n + \"dp.publisher, dp.quantity\"\n + \" FROM digitalbelonging db,digitalcharacteristic dc,digitalproduct dp \"\n + \" where db.digitalProduct=dp.id and dc.digitalProduct=dp.id \"\n + \" and LOWER(dp.name) LIKE ? and LOWER(dp.description) LIKE ? \"\n + \" and dp.price <= ? and LOWER(dp.softwareHouse) LIKE ? \"\n + \" and LOWER(dc.tag) LIKE ? and LOWER(db.category) LIKE ?\"\n + \" group by dp.id, dp.description, dp.image, dp.name, dp.platform, \"\n + \" dp.price, dp.publisher, dp.quantity, dp.releaseDate,\"\n + \" dp.requiredAge, dp.softwareHouse \"\n + \"ORDER BY dp.id desc LIMIT ?,?; \");\n\n ps.setString(1, \"%\" + name.toLowerCase() + \"%\");\n ps.setString(2, \"%\" + desc.toLowerCase() + \"%\");\n ps.setDouble(3, price);\n ps.setString(4, \"%\" + softHouse.toLowerCase() + \"%\");\n ps.setString(5, \"%\" + nameTag.toLowerCase() + \"%\");\n ps.setString(6, \"%\" + nameCategory.toLowerCase() + \"%\");\n ps.setInt(7, offset);\n ps.setInt(8, limit);\n\n ResultSet rs = ps.executeQuery();\n\n ArrayList<DigitalProduct> prodotti = new ArrayList<>();\n while (rs.next()) {\n DigitalProduct p = new DigitalProduct();\n p.setId(rs.getInt(1));\n p.setName(rs.getString(2));\n p.setPrice(rs.getDouble(3));\n p.setDescription(rs.getString(4));\n p.setImage(rs.getString(5));\n p.setPlatform(rs.getString(6));\n p.setReleaseDate(rs.getString(7));\n p.setRequiredAge(rs.getInt(8));\n p.setSoftwareHouse(rs.getString(9));\n p.setPublisher(rs.getString(10));\n p.setQuantity(rs.getInt(11));\n\n\n p.setCategories(doRetrieveAllProdCatById(p.getId()));\n p.setTags(doRetrieveAllProdTagById(p.getId()));\n\n prodotti.add(p);\n }\n return prodotti;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "42f03d8775c56083d0d61eba1c43032c", "score": "0.55360234", "text": "public List<Products_Fashion> getAllProductPagin(int offset, int record_per_page) {\n\t\treturn fashionDAO.getAllProductPagin(offset, record_per_page);\n\t}", "title": "" }, { "docid": "bc8ff123488678df786641031cf26d78", "score": "0.5509697", "text": "public List<Product> findByCategory(Category category, int offset, int count) {\n Query q = em.createQuery(\"FROM Product p WHERE category_fk = :category AND active is true\", Product.class);\n q.setParameter(\"category\", category);\n if (count > 0) {\n q.setFirstResult(offset);\n q.setMaxResults(count);\n }\n return q.getResultList();\n }", "title": "" }, { "docid": "5cf224a1c926d6e6e917b05a9371b7d5", "score": "0.5487759", "text": "public <TValue> ByProjectKeyProductTypesGet withLimit(final TValue limit) {\n return copy().withQueryParam(\"limit\", limit);\n }", "title": "" }, { "docid": "204f150614e56d0e9c1809cebee86c58", "score": "0.5485293", "text": "private void applyPagination(int startPosition, int offset, Object obj) {\n\t\tif(-1 != startPosition) {\r\n\t\t\tif(obj instanceof Query) {\r\n\t\t\t\tQuery query = (Query) obj;\r\n\t\t\t\tquery.setFirstResult(startPosition);\r\n\t\t\t\tquery.setMaxResults(offset);\r\n\t\t\t} else if(obj instanceof Criteria) {\r\n\t\t\t\tCriteria criteria = (Criteria) obj;\r\n\t\t\t\tcriteria.setFirstResult(startPosition);\r\n\t\t\t\tcriteria.setMaxResults(offset);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "80f4eca80a89c10ae91a7012dddde6ab", "score": "0.54799485", "text": "public java.util.List<FoundObject> findAll(int start, int end);", "title": "" }, { "docid": "b54f0c0ee2ea9030f722f58051a563d8", "score": "0.5470448", "text": "@Test\n @TestForIssue(jiraKey = \"HHH-8916\")\n public void testPaginationWithCTEQueryWithOffset() {\n TransactionUtil.doInHibernate(this::sessionFactory, ( session) -> {\n for (int i = 0; i < 20; ++i) {\n session.persist(new Product2(i, (\"Product\" + i)));\n }\n session.flush();\n session.clear();\n List results = session.createNativeQuery(\"WITH a AS (SELECT id, description FROM Product2) SELECT id, description FROM a\").setFirstResult(5).setMaxResults(10).getResultList();\n assertEquals(10, results.size());\n final Object[] row = ((Object[]) (results.get(0)));\n assertEquals(2, row.length);\n assertEquals(.class, row[0].getClass());\n assertEquals(.class, row[1].getClass());\n });\n }", "title": "" }, { "docid": "00adc8c0d5f35640aa0329ebe6b47f70", "score": "0.5466989", "text": "Response getArticlesBySizeAndOffset(Integer size, Integer page);", "title": "" }, { "docid": "fda24bc1279e7a6cd44eda01b3e660c9", "score": "0.5463031", "text": "public <TValue> ByProjectKeyProductTypesGet withOffset(final TValue offset) {\n return copy().withQueryParam(\"offset\", offset);\n }", "title": "" }, { "docid": "5e06c692ceae868cc0e900bf8725438c", "score": "0.5448656", "text": "Page<Product> findByCategoryId(@RequestParam(\"id\") Long id, Pageable pageable);", "title": "" }, { "docid": "5e06c692ceae868cc0e900bf8725438c", "score": "0.5448656", "text": "Page<Product> findByCategoryId(@RequestParam(\"id\") Long id, Pageable pageable);", "title": "" }, { "docid": "fd997f3faef458b58e43d7f2deca149c", "score": "0.5429317", "text": "public List<Auction> findAll(int... rowStartIdxAndCount);", "title": "" }, { "docid": "1dd5daedf21c3ca8f938a9cfa45c84da", "score": "0.5428061", "text": "public <TValue> ByProjectKeyProductTypesGet addLimit(final TValue limit) {\n return copy().addQueryParam(\"limit\", limit);\n }", "title": "" }, { "docid": "648fad7e4215b1e5d32107ffd3c77769", "score": "0.542493", "text": "public List<Product> findByNameOrDescription(String substring, int offset, int count) {\n Query q = em.createQuery(\"FROM Product p WHERE (name like :substring or description like :substring) AND active is true\", Product.class);\n q.setParameter(\"substring\", \"%\" + substring + \"%\");\n if (count > 0) {\n q.setFirstResult(offset);\n q.setMaxResults(count);\n }\n \n return q.getResultList();\n }", "title": "" }, { "docid": "7bc571bef896de1587fd7a886c2ded6a", "score": "0.54212904", "text": "@GetMapping\r\n public String showProductsPage(Model model,\r\n @RequestParam(name = \"p\", defaultValue = \"1\") Integer pageIndex,\r\n @RequestParam(name = \"min_price\", required = false) Integer minPrice,\r\n @RequestParam(name = \"max_price\", required = false) Integer maxPrice,\r\n @RequestParam(name = \"title\", required = false) String title,\r\n @RequestParam(name = \"author\", required = false) String author\r\n ) {\n Specification<Item> specification = Specification.where(null);\r\n if (minPrice != null) {\r\n specification = specification.and(ItemSpecifications.priceGreaterThanOrEqual(minPrice));\r\n }\r\n if (maxPrice != null) {\r\n specification = specification.and(ItemSpecifications.priceLessThanOrEqual(maxPrice));\r\n }\r\n if (title != null) {\r\n specification = specification.and(ItemSpecifications.titleContains(title));\r\n }\r\n if (author != null) {\r\n specification = specification.and(ItemSpecifications.authorContains(author));\r\n }\r\n specification = specification.and(ItemSpecifications.categoryContains(\"Product\"));\r\n Page<Item> page = itemService.findAll(pageIndex - 1, 10, specification);\r\n model.addAttribute(\"products\", page.getContent())\r\n .addAttribute(\"minPrice\", minPrice)\r\n .addAttribute(\"maxPrice\", maxPrice)\r\n .addAttribute(\"title\", title)\r\n .addAttribute(\"author\", author);\r\n return \"products\";\r\n }", "title": "" }, { "docid": "8067f4960ce6158afb786aaa89d69e0c", "score": "0.5410011", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<ActivitiesEntity> selectAllWidthPager(int limit, int offset) { \n return selectAllWidthPager(limit, offset, Order.DESC);\n }", "title": "" }, { "docid": "83221470d98cb7796fecbd1fe3322e17", "score": "0.5401336", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<ActivitiesEntity> selectAllWidthPager(int limit, int offset, Order order) { \n String sql = SQLManager.getInstance().getSql(\"/org/support/project/knowledge/dao/sql/ActivitiesDao/ActivitiesDao_select_all_with_pager.sql\");\n sql = String.format(sql, order.toString());\n return executeQueryList(sql, ActivitiesEntity.class, limit, offset);\n }", "title": "" }, { "docid": "f441500cb2f0eaf1872f277a8cb86164", "score": "0.539879", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<SurveyChoicesEntity> selectAllWidthPager(int limit, int offset, Order order) { \n String sql = SQLManager.getInstance().getSql(\"/org/support/project/knowledge/dao/sql/SurveyChoicesDao/SurveyChoicesDao_select_all_with_pager.sql\");\n sql = String.format(sql, order.toString());\n return executeQueryList(sql, SurveyChoicesEntity.class, limit, offset);\n }", "title": "" }, { "docid": "39bf6e5f9bab9cda0efc2f9681b262db", "score": "0.53879994", "text": "public List<Product> getClosingProducts(int limit) {\n Transaction transaction = null;\n List<Product> products = new ArrayList<>();\n// try\n// {\n Session session = HibernateUtil.getSession();\n session.clear();\n TimeUtils timeUtils = new TimeUtils();\n long currentUnixTime = timeUtils.getCurrentTime();\n List<Product> tempProducts = new ArrayList<>();\n transaction = session.beginTransaction();\n Query query = session.createSQLQuery(\"select {p.*} from products p where p.unix_bid_start <= :unix_bid_start and p.unix_bid_end >= :unix_bid_end order by p.unix_bid_end limit :limit\")\n .addEntity(\"p\",Product.class)\n .setLong(\"unix_bid_start\", currentUnixTime)\n .setLong(\"unix_bid_end\", currentUnixTime)\n .setInteger(\"limit\", limit); \n tempProducts = query.list();\n \n for(Product product: tempProducts)\n {\n long availableTime = product.getUnixBidEnd() - currentUnixTime;\n if( availableTime > 0 )\n {\n product.setTime(availableTime);\n products.add(product);\n }\n }\n if (!transaction.wasCommitted()){\n transaction.commit();\n }\n// }\n// catch(Exception ex)\n// {\n// logger.error(ex.toString());\n// if(transaction != null)\n// {\n// transaction.rollback();\n// }\n// products = new ArrayList<>();\n// }\n return products;\n }", "title": "" }, { "docid": "e5cc8f3f86e199c9b4280f805a6ca9a0", "score": "0.53827435", "text": "public ByProjectKeyProductTypesGet withLimit(final Supplier<Integer> supplier) {\n return copy().withQueryParam(\"limit\", supplier.get());\n }", "title": "" }, { "docid": "8a42277efb2f99995e124635833d9a8e", "score": "0.537564", "text": "public FindDataObjectsResult<T> execute(int pageSize) {\n return new FindDataObjectsResult<T>(this.buildRequestHash(null, pageSize), this.classConstraint, this.env,\n pageSize);\n }", "title": "" }, { "docid": "9f680944a53562739915022544e9658f", "score": "0.53694797", "text": "private List<Batch> getBatchesFromDBOrderedByUploadDate(int offset, int limit){\n return batchRepository.findAll(PageRequest.of(offset, limit, Sort.by(Sort.Direction.DESC, \"uploadDate\")));\n }", "title": "" }, { "docid": "bf37cc9a3f8dd5695abf4bcc9c823ad9", "score": "0.53675705", "text": "public ByProjectKeyProductTypesGet withOffset(final Function<StringBuilder, StringBuilder> op) {\n return copy().withQueryParam(\"offset\", op.apply(new StringBuilder()));\n }", "title": "" }, { "docid": "ddfc2e51c0bcae2b349fbae7c1d68bae", "score": "0.53520596", "text": "@GetMapping\n public String showItems(Principal principal, Model model,\n @RequestParam(value=\"page\", required = false) Integer page,\n @RequestParam(value=\"word\",required = false)String word,\n @RequestParam(value=\"minPrice\",required = false)BigDecimal minPrice,\n @RequestParam(value=\"maxPrice\",required = false)BigDecimal maxPrice ) {\n if (principal!=null) {\n User user = userRepository.findOneByUsername(principal.getName());\n model.addAttribute(\"username\", user.getName());\n System.out.println( user.getId()+\" \"+user.getEmail());\n }\n if (page==null) page=1;\n Specification<Product> filter =Specification.where(null);\n if (word!=null){\n filter= filter.and(ProductsSpecs.titleContains(word));\n }\n if (minPrice!=null){\n filter= filter.and(ProductsSpecs.priceGreaterThanOrEq(minPrice));\n }\n if (maxPrice!=null){\n filter= filter.and(ProductsSpecs.priceLesserThanOrEq(maxPrice));\n }\n\n\n List<Product> resultList =productsService.\n getProductsWithPagingAndFiltering(filter, PageRequest.of(page-1,5))\n .getContent();\n model.addAttribute(\"products\", resultList);\n model.addAttribute(\"top3List\", productsService.getTop3List());\n model.addAttribute(\"word\", word);\n model.addAttribute(\"minPrice\", minPrice);\n model.addAttribute(\"maxPrice\", maxPrice);\n return \"products\";\n }", "title": "" }, { "docid": "7b20ea52dc4efcc1cf8dd3c39d2b2f56", "score": "0.53372943", "text": "public ArrayList<Product> getProductsFromIdRange(int low, int high) {\n ArrayList<Product> products = new ArrayList<Product>();\n String SQL;\n SQL = \"SELECT FROM product \\n\"\n + \"WHERE productid BETWEEN \" + low + \" AND \" + high + \";\";\n try {\n ResultSet result = SQLCaller.ME.Submit_SQL_Query(SQL);\n result.first();\n \n while(result.next()) {\n Product p = new Product();\n p.setProductID(result.getInt(1));\n p.setName(result.getString(2));\n p.setMachineID(result.getInt(3));\n products.add(p);\n }\n \n //TODO: Ingredient list\n \n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return products;\n }", "title": "" }, { "docid": "36b3886d3d103ea2f1b85b790fb6b334", "score": "0.5332777", "text": "public List<Order> findAllOrders(Integer startResult, Integer maxRows);", "title": "" }, { "docid": "ffada2255eb3c116228fe7207fcab7f4", "score": "0.5331534", "text": "@Produces(\"application/json\")\r\n\t@GET\r\n\t@Path(\"/catalog/{id_Catalog}/products\")\r\n\tpublic Response listarProductos(@PathParam(\"id_Catalog\")String idCatalog, @QueryParam(\"name\")String name,\r\n\t\t\t@QueryParam(\"skip\")Integer skip, @QueryParam(\"limit\")Integer limit){\r\n\t\tif(name == null)\r\n\t\t\tname = \"%\";\r\n\t\telse\r\n\t\t\tname = \"%\"+name+\"%\";\r\n\t\t\r\n\t\tif(skip == null)\r\n\t\t\tskip = 0;\r\n\t\t\r\n\t\tif(limit == null)\r\n\t\t\tlimit = 10;\r\n\t\t\r\n\t\tif(skip > limit){\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Obtenemos catalogo de id entrante por path\r\n\t\t */\r\n\t\tCatalogDto catalogoConsultar = null;\r\n\t\tif(idCatalog != null && (!\"\".equals(idCatalog))){\r\n\t\t\ttry {\r\n\t\t\t\tcatalogoConsultar = catalogDao.getCatalog(idCatalog);\r\n\t\t\t} catch(DAOException expDao){\r\n\t\t\t\tlog.error(expDao.getMsjTecnico());\r\n\t\t\t\tSystem.out.println(expDao.getOrigen());\r\n\t\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t\t} catch(Exception e){\r\n\t\t\t\tlog.error(e);\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t}\r\n\t\tif(catalogoConsultar == null){\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Obtenemos productos por catalogo y con String buscar\r\n\t\t */\r\n\t\tList<ProductDto> listaProductos = null;\r\n\t\ttry {\r\n\t\t\tlistaProductos = productDao.listProductsFiltered(catalogoConsultar, name);\r\n\t\t} catch(DAOException expDao){\r\n\t\t\tlog.error(expDao.getMsjTecnico());\r\n\t\t\tSystem.out.println(expDao.getOrigen());\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t} catch(Exception e){\r\n\t\t\tlog.error(e);\r\n\t\t\tSystem.out.println(e);\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t}\r\n\t\t/**\r\n\t\t * Empaquetamos productos dentro del rango\r\n\t\t */\r\n\t\tint contador = 0;\r\n\t\tString productoResponse = \"[\";\r\n\t\tfor(ProductDto producto: listaProductos){\r\n\t\t\tif(contador>skip && (contador<=limit)){\r\n\t\t\t\tproductoResponse = productoResponse + \",\";\r\n\t\t\t}\r\n\t\t\tif(contador>=skip && (contador<=limit)){\r\n\t\t\t\tProductJson productoJson = new ProductJson();\r\n\t\t\t\tList<String> listaAttachments = null;\r\n\t\t\t\ttry{\r\n\t\t\t\t\tlistaAttachments = obtenerAttachmets(producto);\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tlog.error(e);\r\n\t\t\t\t\tSystem.out.println(e);\r\n\t\t\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t\t\t}\r\n\t\t\t\tproductoResponse = productoResponse + productoJson.convertirProductoToJson(producto, listaAttachments);\r\n\t\t\t}\r\n\t\t\tcontador++;\r\n\t\t}\r\n\t\tproductoResponse = productoResponse + \"]\";\r\n\t\tif(productoResponse.equals(\"[]\"))\r\n\t\t\treturn Response.status(Status.NOT_FOUND).build();\r\n\t\t\r\n\t\treturn Response.status(Response.Status.OK).entity(productoResponse).build();\r\n\t}", "title": "" }, { "docid": "3bc672f0a032c283973ddde73e4f7c73", "score": "0.5329944", "text": "@Override\n\tpublic List<LimitDataBean> getLimit(String limitProductName1) {\n\t\t\n\t\tSystem.out.println(\"Inside getLimit Method Calling...\");\n\t\tList<LimitDataBean> viewLimit=null;\n\t\tQuery productQry=null;\n\t\tint prod_ID=0;\n\t\tQuery limit=null;\n\t\ttry{\n\t\t\tif(limitProductName1 !=null){\n\t\t\t\tproductQry=entitymanager.createQuery(\"from Product where (productName Like ? and status='Active')\");\n\t\t\t\tproductQry.setParameter(1, \"%\"+limitProductName1+\"%\");\n\t\t\t\tList<Product> res=(List<Product>)productQry.getResultList();\n\t\t\t\tSystem.out.println(\"Result \"+res.size());\n\t\t\t\tif(res.size() > 0){\n\t\t\t\t\tviewLimit=new ArrayList<LimitDataBean>();\n\t\t\t\t\tfor(int i=0;i<res.size();i++){\n\t\t\t\t\t\tprod_ID=res.get(i).getProduct_ID();\n\t\t\t\t\t\tlimit=entitymanager.createQuery(\"from ProductLimit where (product_ID=? and status='Active')\");\n\t\t\t\t\t\tlimit.setParameter(1, prod_ID);\n\t\t\t\t\t\tList<ProductLimit> res1=(List<ProductLimit>)limit.getResultList();\n\t\t\t\t\t\tif(res1.size() > 0){\n\t\t\t\t\t\t\tfor(ProductLimit lim : res1){\n\t\t\t\t\t\t\t\tLimitDataBean limitObject= new LimitDataBean();\n\t\t\t\t\t\t\t\tlimitObject.setLimitDescription(lim.getDescription());\n\t\t\t\t\t\t\t\tlimitObject.setLimitProjectName(lim.getProduct().getProductName());\n\t\t\t\t\t\t\t\tlimitObject.setLimitProductName(lim.getRawMaterial().getProductName());\n\t\t\t\t\t\t\t\tlimitObject.setLimitRawCategory1(lim.getRawMaterial().getSubcategory1_ID());\n\t\t\t\t\t\t\t\tlimitObject.setLimitRawCategoory2(lim.getRawMaterial().getSubcategory2_ID());\n\t\t\t\t\t\t\t\tlimitObject.setLimitLimitSize(lim.getLimitSize());\n\t\t\t\t\t\t\t\tviewLimit.add(limitObject);\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}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn viewLimit;\n\t}", "title": "" }, { "docid": "c4726f8947fc24b2e8876bc5277515cb", "score": "0.53260666", "text": "public <TValue> ByProjectKeyProductTypesGet withLimit(final Collection<TValue> limit) {\n return copy().withoutQueryParam(\"limit\")\n .addQueryParams(\n limit.stream().map(s -> new ParamEntry<>(\"limit\", s.toString())).collect(Collectors.toList()));\n }", "title": "" }, { "docid": "dda54f8777746a1bf590e5ab893b8ef6", "score": "0.53157437", "text": "@GET(\"/api/v2/pokemon\")\n Call<PokemonApiResponse> getPokemons(@Query(\"limit\") int limit,\n @Query(\"offset\") int offset);", "title": "" }, { "docid": "0a4705b5a926063714812242e9a3b66a", "score": "0.5312862", "text": "public ByProjectKeyProductTypesGet addLimit(final Supplier<Integer> supplier) {\n return copy().addQueryParam(\"limit\", supplier.get());\n }", "title": "" }, { "docid": "f6b3d4951672c9120ab125ba7c2516e1", "score": "0.5307353", "text": "public Collection<SimpleDataRepository.Product> getProductsPage(int page, int pagesize) {\n return dataRepository.getProducts();\n }", "title": "" }, { "docid": "c208613b1f701a0c3057b0712aca8a59", "score": "0.5299792", "text": "public <TValue> ByProjectKeyProductTypesGet addOffset(final Collection<TValue> offset) {\n return copy().addQueryParams(\n offset.stream().map(s -> new ParamEntry<>(\"offset\", s.toString())).collect(Collectors.toList()));\n }", "title": "" }, { "docid": "34697fc05c42fd0f6efa7cd204b59479", "score": "0.5290146", "text": "SearchRequest<T> pageSize(int pageSize);", "title": "" }, { "docid": "ea24a021dda6527e78c192a9f400dea3", "score": "0.52887946", "text": "@Aspect(advice = org.support.project.ormapping.transaction.Transaction.class)\n public List<SurveyChoicesEntity> selectAllWidthPager(int limit, int offset) { \n return selectAllWidthPager(limit, offset, Order.DESC);\n }", "title": "" }, { "docid": "30905d78d81d3737cc124774a04890dc", "score": "0.5285405", "text": "public List<PrjJStartContent> findAll(int... rowStartIdxAndCount);", "title": "" }, { "docid": "820679c338a7636222b3c831ff4ca190", "score": "0.52789587", "text": "public List<Product> getAll(String where, String limit) {\n\t\treturn productDao.getAll(where,limit);\r\n\t}", "title": "" }, { "docid": "765eaef35837d72a4614ed91a0f80882", "score": "0.5272626", "text": "@Override\n\tpublic List<productDTO> paging(int current, int cntPerPage) throws Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn dao.paging(current, cntPerPage);\n\t}", "title": "" }, { "docid": "2b3dae317abc72227b87ec62cd8d50f8", "score": "0.52561593", "text": "@Override\r\n public List<ItemInfo> queryItemsByUserIdPageList(String userId, int curPage, int pageSize) {\n Query query = new Query(Criteria.where(\"uperid\").is(userId).orOperator(Criteria.where(\"userid\").is(userId)));\r\n return mongoTemplate.find(query, ItemInfo.class);\r\n // return mongoTemplate.findAll(ItemInfo.class);\r\n }", "title": "" }, { "docid": "d17c1f16e5c4023151adf4b2d94b14c2", "score": "0.5255308", "text": "@Override\n\tpublic ReturnPage<MytProduct> getByPage(Integer pageNumber,\n\t\t\tInteger pageSize, Map<String, Object> params) {\n\t\t\n\t\tMytProductExample example = new MytProductExample();\n\t\tExampleUtils.Map2ExampleMethod(example.or(), params);\n\t\tInteger limtStart = (pageNumber - 1) * pageSize;\n\t\tInteger limtEnd = pageSize;\n\t\texample.setLimitStart(limtStart);\n\t\texample.setLimitEnd(limtEnd);\n\t\texample.setOrderByClause(\"create_date DESC\");\n\t\tList<MytProduct> content = mapper.selectByExample(example);\n\t\tInteger count = mapper.countByExample(example);\n\t\tReturnPage<MytProduct> re = new ReturnPage<MytProduct>(count,\n\t\t\t\tpageNumber, pageSize, content);\n\t\treturn re;\n\t}", "title": "" }, { "docid": "aab3adf7201aa37524ebe698827b569a", "score": "0.5253779", "text": "@Override\r\n\tpublic PagingLoadResult<SupplierDTO> search(FilterPagingLoadConfig config) {\n\t\tFilterConfig nameFilter = config.getFilters().get(0);\r\n\t\tString filterValue = nameFilter.getValue();\t\r\n\t\tif(filterValue != null){\r\n\t\t\tfilterValue = filterValue.trim();\r\n\t\t}\r\n\t\t\r\n\t\tint size = (int) supplierDao.countByCriteria(filterValue);\r\n\t\tint start = config.getOffset();\r\n\t\tint limit = config.getLimit();\r\n\t\tList<Supplier> sublist = supplierDao.search(start, limit, filterValue);\r\n\t\tList<SupplierDTO> dtos = new ArrayList<SupplierDTO>();\r\n\r\n\t\tif (sublist.size() > 0) {\r\n\t\t\tfor (Supplier supplier : sublist) {\r\n\t\t\t\tdtos.add(dozerMapper.map(supplier, SupplierDTO.class, MINI_SUPPLIER_MAPPING));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new PagingLoadResultBean<SupplierDTO>(dtos, size, config.getOffset());\r\n\t}", "title": "" }, { "docid": "189b74ec1455e42c6dbb513f87fab83d", "score": "0.52522385", "text": "public abstract List<E> select(DynamicSqlParameter param, int offset, int limit);", "title": "" }, { "docid": "af9dc2b4d74d5ac5ec8ff01315aad0d0", "score": "0.52478665", "text": "public List<ProductDto> searchProducts(String query, Double minimumPrice, Double maximumPrice) {\n\t\tList<Product> products = productRepository.findBySearch(query, minimumPrice, maximumPrice);\n\t\treturn products.stream().map(product -> modelMapper.map(product, ProductDto.class)).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "8fa807c157064eae5f891dafe46f8197", "score": "0.52452993", "text": "@Test\n @TestForIssue(jiraKey = \"HHH-8916\")\n public void testPaginationWithCTEQueryWithOffsetAndOrderBy() {\n TransactionUtil.doInHibernate(this::sessionFactory, ( session) -> {\n for (int i = 0; i < 20; ++i) {\n session.persist(new Product2(i, (\"Product\" + i)));\n }\n session.flush();\n session.clear();\n List results = session.createNativeQuery(\"WITH a AS (SELECT id, description FROM Product2) SELECT id, description FROM a ORDER BY id DESC\").setFirstResult(5).setMaxResults(10).getResultList();\n assertEquals(10, results.size());\n final Object[] row = ((Object[]) (results.get(0)));\n assertEquals(2, row.length);\n assertEquals(.class, row[0].getClass());\n assertEquals(.class, row[1].getClass());\n assertEquals(14, row[0]);\n assertEquals(\"Product14\", row[1]);\n });\n }", "title": "" }, { "docid": "2e96780fb8e5c201867c2fda717f40a9", "score": "0.5242416", "text": "long getProductId(int index);", "title": "" }, { "docid": "b20ca609ed7bb0b9081754d9a256efda", "score": "0.5238384", "text": "public List<Pet> getPets(int limit) {\n if (limit <= 0 || limit > DynamoDBConfiguration.SCAN_LIMIT)\n limit = DynamoDBConfiguration.SCAN_LIMIT;\n\n DynamoDBScanExpression expression = new DynamoDBScanExpression();\n expression.setLimit(limit);\n return amazonDynamoDBMapper.scan(Pet.class, expression);\n }", "title": "" }, { "docid": "56aed42fe6011f68bf2373c4c18f6c97", "score": "0.5232376", "text": "public abstract List<DATA> selectFromDB(int pageSize , int firstRowPosition);", "title": "" }, { "docid": "569dbed32e3fcd06d2db2aab4fd1d4f9", "score": "0.52245295", "text": "public <TValue> ByProjectKeyProductTypesGet addOffset(final TValue offset) {\n return copy().addQueryParam(\"offset\", offset);\n }", "title": "" }, { "docid": "c9c39952dcd9b2af0c5fb1000eac9f41", "score": "0.52228314", "text": "private void requestProductsBySearch(String search, String onpage, String onsize, String branch_id) {\n// showProgress(getStringFromRes(R.string.loading));\n\n Call<GetProductResponse> call = getService().get_products_by_search(search, onpage, onsize, branch_id);\n call.enqueue(new Callback<GetProductResponse>() {\n @Override\n public void onResponse(Response<GetProductResponse> response, Retrofit retrofit) {\n if (response.isSuccess()) {\n log(\"getproductsbysearch\", \"success\");\n\n// dismissProgress();\n GetProductResponse getProductResponse = response.body();\n\n if (getProductResponse.getMeta().getCode().equals(Constant.ResponseCode.CODE_200)) {\n\n try {\n listProduct.addAll(getProductResponse.getData().getProducts());\n log(\"searchproductsize\", \" : \" + listProduct.size());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n rcAdapter.notifyDataSetChanged();\n\n //Cek delivered product list\n if (listProduct.size() == 0) {\n tvEmptyState.setVisibility(View.VISIBLE);\n rvSearchResult.setVisibility(View.GONE);\n } else {\n tvEmptyState.setVisibility(View.GONE);\n rvSearchResult.setVisibility(View.VISIBLE);\n }\n } else {\n\n }\n\n hideSoftKeyboard();\n\n } else {\n log(\"getproductsbysearch\", \"is not success\");\n// dismissProgress();\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n log(\"getproductsbysearch\", \"failure\");\n// dismissProgress();\n showAlert(R.string.alert_connection_fail);\n }\n });\n }", "title": "" }, { "docid": "c17061e3a8cf7363f872a5eaa57c4777", "score": "0.52168494", "text": "List<E> getAll(int from, int quantity);", "title": "" }, { "docid": "b83bf849e15da84c91866ae3934da574", "score": "0.5212481", "text": "@Override\n\tpublic ArrayList<ResourceMarketEntity> selectByBuyerId(String buyerId,Integer pageSize,Integer currentPage) {\n\t\treturn resourceMarket.selectByBuyerId(buyerId,pageSize,currentPage);\n\t}", "title": "" }, { "docid": "d91dc500ff1715a9b36cd256cbe13050", "score": "0.5199013", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Place> findPlacesNear(double lat, double lng, int offset, int limit) throws TechnicalException {\n\t\ttry {\r\n\t\t\tString hql = \"FROM Place \"\r\n\t\t\t\t\t+ \"ORDER BY SQRT(POWER(latitude - :originLat, 2) + POWER(longitude - :originLng, 2))\";\r\n\t\t\treturn sessionFactory\r\n\t\t\t\t\t.getCurrentSession()\r\n\t\t\t\t\t.createQuery(hql)\r\n\t\t\t\t\t.setParameter(\"originLat\", lat)\r\n\t\t\t\t\t.setParameter(\"originLng\", lng)\r\n\t\t\t\t\t.list();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new TechnicalException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5d6d80758ee09d26345ef63a8faca268", "score": "0.5194168", "text": "public List<PresentacionProducto> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 47: */ {\r\n/* 48: 87 */ List<PresentacionProducto> lista = new ArrayList();\r\n/* 49: 88 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 50: */ \r\n/* 51: 90 */ PresentacionProductoBean.this.agregarFiltroOrganizacion(filters);\r\n/* 52: 91 */ List<String> listaCampos = new ArrayList();\r\n/* 53: 92 */ listaCampos.add(\"tipoPresentacionProducto\");\r\n/* 54: 93 */ lista = PresentacionProductoBean.this.servicioPresentacionProducto.obtenerListaPorPagina(PresentacionProducto.class, startIndex, pageSize, sortField, ordenar, filters, listaCampos);\r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: 96 */ PresentacionProductoBean.this.listaPresentacionProducto.setRowCount(PresentacionProductoBean.this.servicioPresentacionProducto.contarPorCriterio(PresentacionProducto.class, filters));\r\n/* 58: */ \r\n/* 59: 98 */ return lista;\r\n/* 60: */ }", "title": "" }, { "docid": "fc6e89c015b954c3fea11849a68da948", "score": "0.5192538", "text": "@Override\n\tpublic Page<T> findByCriteria(QuerySelect querySelect, Map<String, Object> orderMap, int start, int pageSize) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0b8868678fd9474a31d5f3090bbbdd67", "score": "0.5180981", "text": "List<Product> findAllProducts();", "title": "" }, { "docid": "de7bc05f26f3eeb39a06d457cfa38df5", "score": "0.51775783", "text": "@Test\n public void testDoQueryWithPaging() throws Exception\n {\n System.out.println(\"testDoQueryWithPaging\");\n //put in an index that we can use with bulk data\n f.insertIndex(Fixtures.createTestIndexWithBulkDataHit());\n List<Document> docs = Fixtures.getBulkDocuments();\n //put a bunch of test docs in\n f.insertDocuments(docs);\n //setup\n QueryRepository instance = new QueryRepositoryImpl(f.getSession());\n ParsedQuery query = Fixtures.createTestParsedQueryBulkData();\n //let's get the first 5\n QueryResponseWrapper result = instance.query(query, 5, 0);\n assertNotNull(result);\n assertTrue(!result.isEmpty());\n assertTrue(result.size() == 5);\n assertTrue(result.get(0).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data32\\\"\"));\n assertTrue(result.get(1).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data31\\\"\"));\n assertTrue(result.get(2).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data30\\\"\"));\n assertTrue(result.get(3).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data29\\\"\"));\n assertTrue(result.get(4).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data28\\\"\"));\n assertTrue(result.getNumAdditionalResults() == null);\n\n //now lets get the second 5\n result = instance.query(query, 5, 5);\n assertNotNull(result);\n assertTrue(!result.isEmpty());\n assertTrue(result.size() == 5);\n assertTrue(result.get(0).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data27\\\"\"));\n assertTrue(result.get(1).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data26\\\"\"));\n assertTrue(result.get(2).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data25\\\"\"));\n assertTrue(result.get(3).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data24\\\"\"));\n assertTrue(result.get(4).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data23\\\"\"));\n assertTrue(result.getNumAdditionalResults() == null);\n\n //now lets get the third 5\n result = instance.query(query, 5, 10);\n assertNotNull(result);\n assertTrue(!result.isEmpty());\n assertTrue(result.size() == 5);\n assertTrue(result.get(0).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data22\\\"\"));\n assertTrue(result.get(1).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data21\\\"\"));\n assertTrue(result.get(2).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data20\\\"\"));\n assertTrue(result.get(3).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data19\\\"\"));\n assertTrue(result.get(4).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data18\\\"\"));\n assertTrue(result.getNumAdditionalResults() == null);\n\n //now lets get the last 4\n result = instance.query(query, 5, 30);\n assertNotNull(result);\n assertTrue(!result.isEmpty());\n assertTrue(result.size() == 4);\n assertTrue(result.get(0).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data2\\\"\"));\n assertTrue(result.get(1).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data1\\\"\"));\n assertTrue(result.get(2).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some more random data\\\"\"));\n assertTrue(result.get(3).getObjectAsString().contains(\"\\\"field2\\\" : \\\"this is some random data\\\"\"));\n assertTrue(result.getNumAdditionalResults() == 0);\n\n }", "title": "" }, { "docid": "698ccf340d7b6fbafd13a3b62e5970c4", "score": "0.51638967", "text": "public void GetSellerProducts (final int sellerId, final int pageNum, final Map<String, String> queries) {\n FazmartApplication.GetAPIService().GetSellerProducts(sellerId, pageNum, queries,\n new Callback<SellerProductListData>() {\n @Override\n public void success(SellerProductListData products, Response response) {\n //RenderSellerProductList(products, pageNum);\n mRootView.findViewById(R.id.loading_message).setVisibility(View.GONE);\n mRootView.findViewById(R.id.ListViewOfProducts).setVisibility(View.VISIBLE);\n\n mProductListViewHelper.DisplayList(pageNum, products.GetProductsData(), products.GetProductCount());\n SetupAttributeSpinner();\n\n retryCntGetSellerProds = 0;\n }\n\n @Override\n public void failure(RetrofitError error) {\n retryCntGetSellerProds++;\n if (retryCntGetSellerProds < CommonDefinitions.RETRY_COUNT)\n GetSellerProducts(sellerId, pageNum, queries);\n else\n retryCntGetSellerProds = 0;\n }\n });\n }", "title": "" }, { "docid": "d18222908410d1078e3c916d570d01d3", "score": "0.51631635", "text": "public List getProducts(Product product);", "title": "" }, { "docid": "86c2375f3aa4a80ab70be64a105c22d1", "score": "0.51521486", "text": "@Override\n\tpublic List<OrdersModel> findReservedByPage(int page, int size) {\n\t\tPageHelper.startPage(page, size);\n\t\treturn ordersMapper.findReservedByPage(\"已预订\");\n\t}", "title": "" }, { "docid": "91e7f97a80d2da06576c7241253d7d2b", "score": "0.51362944", "text": "public interface ProductService {\n Page<Product> listAllByPage(Pageable pageable);\n}", "title": "" }, { "docid": "2ad307282aab9fe3372bf42b01c9dfff", "score": "0.5132358", "text": "public List<CatalogProductOptionTypePrice> select(int maxResult);", "title": "" }, { "docid": "db3ea130692dc24d4bdc255738ef81cb", "score": "0.513111", "text": "public List<WoJWorkorder> findAll(int... rowStartIdxAndCount);", "title": "" }, { "docid": "ca686a3e53589fb5c89dd38e7e12cfa6", "score": "0.51264477", "text": "public FindExecutionsResult<T> execute(int pageSize) {\n return new FindExecutionsResult<T>(this.buildRequestHash(), this.classConstraint,\n this.env, pageSize);\n }", "title": "" }, { "docid": "66cdc4be76c9f69beadd20193b04efbf", "score": "0.5125546", "text": "@Override\n\tpublic Page<T> findBy(Map<String, Object> filterMap, Map<String, Object> orderMap, int start, int pageSize,\n\t\t\tString setUpCriteriaMethodName) {\n\t\treturn null;\n\t}", "title": "" } ]
349e9433be0a70bde8cf1dca44d1e189
This method was generated by Abator for iBATIS. This method corresponds to the database table UPP.TB_UPP_PAY_TRADE_HISTORY
[ { "docid": "9bd19902188d7e26364e030cf5d06aad", "score": "0.0", "text": "List selectByExample(HPaymentTradeExample example);", "title": "" } ]
[ { "docid": "96497771b73999f36b23a12964260fb0", "score": "0.57752156", "text": "public List getPayHistory() throws RemoteException {\n\n List resList = null;\n\n PCachedContext ctx = null;\n\n try {\n\n ctx = getContext();\n\n FList in = new FList();\n\n FList outl = new FList();\n\n in.set(FldPoid.getInst(), macctPOID);\n\n in.set(FldStatus.getInst(), 6);\n\n in.set(FldAmountIndicator.getInst(), 0);\n\n in.set(FldIncludeChildren.getInst(), 1);\n\n in.set(FldStartT.getInst(), mStartTime);\n\n in.set(FldEndT.getInst(), mEndTime);\n\n in.set(FldPoidType.getInst(), \"/item/payment,/item/payment/reversal\");\n\n in.set(FldArBillinfoObj.getInst(), mbillInfoPOID);\n\n outl = ctx.opcode(4506, in);\n\n if (!outl.hasField(FldResults.getInst())) {\n\n \n\n return resList;\n\n }\n\n SparseArray resultsArray = outl.get(FldResults.getInst());\n\n resList = new ArrayList();\n\n if (resultsArray == null) {\n return resList;\n }\n\n Enumeration enumVals = resultsArray.getValueEnumerator();\n\n do {\n\n if (!enumVals.hasMoreElements()) {\n break;\n }\n\n FList r1 = (FList) enumVals.nextElement();\n\n Poid poid = r1.get(FldPoid.getInst());\n\n if (poid == null) {\n\n \n\n throw new RemoteException(\"error.pay\");\n\n }\n\n resList.add(r1);\n\n\n\n } while (true);\n\n } catch (Exception e) {\n\n \n\n } finally {\n releaseContext(ctx);\n }\n\n return resList;\n\n }", "title": "" }, { "docid": "416de0d63afe7ba383f49fe0718e853e", "score": "0.56927204", "text": "@Override\r\n\tpublic ArrayList<Pets> purchase_history(String user_id) \r\n\t{\r\n\t\tJdbcutil.loaddriver();\r\n\t\tConnection con=null;\r\n\t\tcon = Jdbcutil.getConnection();\r\n\t\tResultSet rs=null;\r\n\t\tPreparedStatement ps = null;\r\n\t\tString history = \"select * from pet_transactions where cust_id=?\";\r\n\t\tArrayList<Pets> plist = new ArrayList<Pets>();\r\n\t\ttry \r\n\t\t{\r\n\t\t\tps=con.prepareStatement(history);\r\n\t\t\tps.setString(1, user_id);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tPets p = new Pets();\r\n\t\t\t\tp.setPet_id(rs.getString(\"pet_id\"));\r\n\t\t\t\tp.setUser_id(rs.getString(\"owner_id\"));\r\n\t\t\t\tplist.add(p);\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} \r\n\t\tcatch (SQLException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn plist;\r\n\t\t}", "title": "" }, { "docid": "50cdd3d2c24d3701fde0a546ffd18447", "score": "0.5403843", "text": "public List<Record> getTestTrades()\n {\n List<Record> data = new ArrayList<Record>();\n try\n {\n // Trade Symbol, date, quantity, bs, price\n\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-250), 10, TradeType.BUY, 200)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-240), 100, TradeType.BUY, 202)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-150), 1000, TradeType.SELL, 203)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-150), 100, TradeType.BUY, 205)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-130), 10, TradeType.BUY, 204)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-125), 100, TradeType.SELL, 204)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-120), 100, TradeType.BUY, 204)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-100), 2000, TradeType.SELL, 205)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-100), 100, TradeType.BUY, 201)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-100), 100, TradeType.SELL, 199)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-89), 100, TradeType.BUY, 198)));\n data.add(new Record(\"TEA\", new Trade(getOffsetTime(-44), 1000, TradeType.BUY, 197)));\n\n\n data.add(new Record(\"POP\", new Trade(getOffsetTime(-250), 10, TradeType.BUY, 200)));\n data.add(new Record(\"POP\", new Trade(getOffsetTime(-240), 100, TradeType.BUY, 202)));\n data.add(new Record(\"POP\", new Trade(getOffsetTime(-150), 1000, TradeType.SELL, 203)));\n\n\n data.add(new Record(\"ALE\", new Trade(getOffsetTime(-260), 10, TradeType.BUY, 130)));\n data.add(new Record(\"ALE\", new Trade(getOffsetTime(-200), 100, TradeType.BUY, 140)));\n data.add(new Record(\"ALE\", new Trade(getOffsetTime(-150), 1000, TradeType.SELL, 145)));\n\n\n data.add(new Record(\"GIN\", new Trade(getOffsetTime(-200), 10, TradeType.BUY, 200)));\n data.add(new Record(\"GIN\", new Trade(getOffsetTime(-40), 100, TradeType.BUY, 202)));\n data.add(new Record(\"GIN\", new Trade(getOffsetTime(-15), 1000, TradeType.SELL, 203)));\n\n\n data.add(new Record(\"JOE\", new Trade(getOffsetTime(-25), 10, TradeType.BUY, 500)));\n data.add(new Record(\"JOE\", new Trade(getOffsetTime(-24), 100, TradeType.BUY, 505)));\n data.add(new Record(\"JOE\", new Trade(getOffsetTime(-15), 1000, TradeType.SELL, 505)));\n }\n catch(SSSMException e)\n {\n System.out.println(\"Error in test :\" + e.getMessage());\n }\n return data;\n }", "title": "" }, { "docid": "ef953bc29d5ed3d41593b1398d3f725b", "score": "0.5398858", "text": "BigDecimal getLastTradingPrice();", "title": "" }, { "docid": "3e10d03fb68b837049b85a288f4e2d5a", "score": "0.53879374", "text": "public void setTRADE_TRX_NO(BigDecimal TRADE_TRX_NO) {\r\n this.TRADE_TRX_NO = TRADE_TRX_NO;\r\n }", "title": "" }, { "docid": "dab7cb8edeb39ca08deed1b5deaf2ed9", "score": "0.530508", "text": "public BigDecimal getTRADE_TRX_NO() {\r\n return TRADE_TRX_NO;\r\n }", "title": "" }, { "docid": "8d81f4ec7cf575c7f023e49c406c823c", "score": "0.52983916", "text": "@Override\n public List<PurchaseEntity> getPurchaseHistoryList() throws SQLException {\n QueryBuilder<PurchaseEntity,Integer> currentPurchaseQueryBuilder = purchaseDao.queryBuilder();\n currentPurchaseQueryBuilder.where().eq(PurchaseEntity.ORDER_STATUS, OrderStatus.CANCELLED).or().eq(PurchaseEntity.ORDER_STATUS, OrderStatus.DELIVERED);\n return currentPurchaseQueryBuilder.orderBy(PurchaseEntity.UPDATED_DATE_TIME, false).query();\n }", "title": "" }, { "docid": "aa50d2459f8a52407066d8bd9d68eac5", "score": "0.52334464", "text": "@SuppressWarnings(\"all\")\npublic interface I_HC_PayrollProcess \n{\n\n /** TableName=HC_PayrollProcess */\n public static final String Table_Name = \"HC_PayrollProcess\";\n\n /** AD_Table_ID=300183 */\n public static final int Table_ID = 300183;\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 1 - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(1);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_Period_ID */\n public static final String COLUMNNAME_C_Period_ID = \"C_Period_ID\";\n\n\t/** Set Period.\n\t * Period of the Calendar\n\t */\n\tpublic void setC_Period_ID (int C_Period_ID);\n\n\t/** Get Period.\n\t * Period of the Calendar\n\t */\n\tpublic int getC_Period_ID();\n\n\tpublic org.compiere.model.I_C_Period getC_Period() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateTrx */\n public static final String COLUMNNAME_DateTrx = \"DateTrx\";\n\n\t/** Set Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic void setDateTrx (Timestamp DateTrx);\n\n\t/** Get Transaction Date.\n\t * Transaction Date\n\t */\n\tpublic Timestamp getDateTrx();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DocumentNo */\n public static final String COLUMNNAME_DocumentNo = \"DocumentNo\";\n\n\t/** Set Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic void setDocumentNo (String DocumentNo);\n\n\t/** Get Document No.\n\t * Document sequence number of the document\n\t */\n\tpublic String getDocumentNo();\n\n /** Column name HC_EligibilityGroup_ID */\n public static final String COLUMNNAME_HC_EligibilityGroup_ID = \"HC_EligibilityGroup_ID\";\n\n\t/** Set HC Eligibility Group\t */\n\tpublic void setHC_EligibilityGroup_ID (int HC_EligibilityGroup_ID);\n\n\t/** Get HC Eligibility Group\t */\n\tpublic int getHC_EligibilityGroup_ID();\n\n\tpublic I_HC_EligibilityGroup getHC_EligibilityGroup() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic org.taowi.hcm.core.model.I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PayrollProcess_ID */\n public static final String COLUMNNAME_HC_PayrollProcess_ID = \"HC_PayrollProcess_ID\";\n\n\t/** Set Payroll Process\t */\n\tpublic void setHC_PayrollProcess_ID (int HC_PayrollProcess_ID);\n\n\t/** Get Payroll Process\t */\n\tpublic int getHC_PayrollProcess_ID();\n\n /** Column name HC_PayrollProcess_UU */\n public static final String COLUMNNAME_HC_PayrollProcess_UU = \"HC_PayrollProcess_UU\";\n\n\t/** Set HC_PayrollProcess_UU\t */\n\tpublic void setHC_PayrollProcess_UU (String HC_PayrollProcess_UU);\n\n\t/** Get HC_PayrollProcess_UU\t */\n\tpublic String getHC_PayrollProcess_UU();\n\n /** Column name HC_ProcessList_ID */\n public static final String COLUMNNAME_HC_ProcessList_ID = \"HC_ProcessList_ID\";\n\n\t/** Set HC Process List\t */\n\tpublic void setHC_ProcessList_ID (int HC_ProcessList_ID);\n\n\t/** Get HC Process List\t */\n\tpublic int getHC_ProcessList_ID();\n\n\tpublic org.taowi.hcm.payroll.model.I_HC_ProcessList getHC_ProcessList() throws RuntimeException;\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsValid */\n public static final String COLUMNNAME_IsValid = \"IsValid\";\n\n\t/** Set Valid.\n\t * Element is valid\n\t */\n\tpublic void setIsValid (boolean IsValid);\n\n\t/** Get Valid.\n\t * Element is valid\n\t */\n\tpublic boolean isValid();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "title": "" }, { "docid": "da248aea3c16cd9a3f786d39f2f0a54b", "score": "0.52217907", "text": "public int getTrade() {\n return this.trade;\n }", "title": "" }, { "docid": "329f5fb5de44ab2017bdfc8215fac3ed", "score": "0.5141064", "text": "public String loadPaymPeriodPosition()\r\n {\r\n\ttry\r\n\t{\r\n\t SelectSC selSC = new SelectSC(new BigDecimal(49));// Paym Period Pos\r\n\t List<SelectCO> paymPeriodPosTemp; // = new ArrayList<SelectCO>();\r\n\t paymPeriodPosTemp = returnLOV(selSC);\r\n\t // TP#212220; Ramesh; Date 24/08/2014 [commented due to Oracle DB is\r\n\t // not allowing -1. DB column size is 1 and passing parameter size\r\n\t // is 2 exception getiing. Thats why we commented this line of code]\r\n\t SelectCO selectCO = new SelectCO();\r\n\t // TP# 237041 ;Libin ;05/11/2014\r\n\t // [Added it as this entry is needed as its referred from lot of\r\n\t // areas\r\n\t // and also the above mentioned issue will not occur if its a blank\r\n\t // string.So replaced -1 with \"\"\r\n\t // Checked with Ramesh]\r\n\t // selectCO.setCode(\"-1\");\r\n\t selectCO.setCode(\"\");\r\n\t selectCO.setDescValue(\" \");\r\n\t paymPeriodPos = new ArrayList<SelectCO>();\r\n\t paymPeriodPos.add(selectCO);\r\n\r\n\t for(SelectCO selCO : paymPeriodPosTemp)\r\n\t {\r\n\t\tpaymPeriodPos.add(selCO);\r\n\t }\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn SUCCESS;\r\n }", "title": "" }, { "docid": "356df3de99f378f96bedf3be414c6249", "score": "0.5135842", "text": "HistoryResponse getSharepriceHistory();", "title": "" }, { "docid": "9b2feec963c0921bce6d9df60894f8bf", "score": "0.51279277", "text": "HistoryResponse getSharepriceCloseHistory(String ticker);", "title": "" }, { "docid": "6c9bda1525b4aac8244e88ecb0a52006", "score": "0.5117734", "text": "HistoryResponse getSharepriceHistory(String ticker);", "title": "" }, { "docid": "84776b2c0b57cbeb9a4275f1dc875fea", "score": "0.50986123", "text": "@Override\n\tpublic AppResponseResult updateOrderByTradeMoney(RepaymentDto repaymentDto) throws Exception {\n\t\tLong orderId = repaymentDto.getOrderId();\n\t\tDouble tradeMoney = repaymentDto.getAmount();\n\t\tString tradeNo = repaymentDto.getTradeNo();\n\t\tInteger payType = repaymentDto.getType();// 1.还款 2.展期\n\t\tInteger payChannel = repaymentDto.getPayChannel();\n\t\tlogger.info(\"【BwRepaymentServiceImpl.updateOrderByPayMoney】开始orderId:\" + orderId + \",repaymentDto=\"\n\t\t\t\t+ JSON.toJSONString(repaymentDto));\n\t\tAppResponseResult result = new AppResponseResult();\n\t\tif (orderId == null || payType == null || (payType == 1 && tradeMoney <= 0.0) || payChannel == null) {\n\t\t\tresult.setCode(\"101\");\n\t\t\tresult.setMsg(\"参数错误\");\n\t\t\treturn result;\n\t\t}\n\t\tBwOrder bwOrder = bwOrderService.findBwOrderById(orderId.toString());\n\t\tif (bwOrder == null) {\n\t\t\tresult.setCode(\"102\");\n\t\t\tresult.setMsg(\"没有此工单\");\n\t\t\treturn result;\n\t\t}\n\n\t\t// 重复回调\n\t\tif (StringUtils.isNotEmpty(tradeNo)) {\n\t\t\tBwPlatformRecord entity = new BwPlatformRecord();\n\t\t\tentity.setOrderId(orderId);\n\t\t\tentity.setTradeNo(tradeNo);\n\t\t\t// 记录流水\n\t\t\tint count = bwPlatformRecordService.getBwPlatformRecordCount(entity);\n\t\t\tif (count > 0) {\n\t\t\t\tresult.setCode(\"000\");\n\t\t\t\tresult.setMsg(\"SUCCESS\");\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\n\t\tLong borrowerId = bwOrder.getBorrowerId();\n\t\tBwBorrower borrower = bwBorrowerService.findBwBorrowerById(borrowerId);\n\t\tLong statusId = bwOrder.getStatusId();\n\t\tInteger productType = bwOrder.getProductType();// 1.单期 2.分期\n\t\tBwBankCard bankCard = bwBankCardService.findBwBankCardByBoorwerId(borrowerId);\n\t\t// 记录流水\n\t\tBwPlatformRecord bwPlatformRecord = savePlatformRecord(bwOrder, borrower, bankCard, repaymentDto);\n\n\t\tif (statusId != 9 && statusId != 13) {\n\t\t\tresult.setCode(\"103\");\n\t\t\tresult.setMsg(\"该工单不是还款状态\");\n\t\t\treturn result;\n\t\t}\n\t\tif (productType != null && productType == 2 && payType == 2) {\n\t\t\tresult.setCode(\"104\");\n\t\t\tresult.setMsg(\"分期不能展期\");\n\t\t\treturn result;\n\t\t}\n\t\tBwProductDictionary product = bwProductDictionaryService.findBwProductDictionaryById(bwOrder.getProductId());\n\t\tRepaymentDto redisPayDto = queryRedisPayInfo(orderId);\n\t\tif (redisPayDto != null && repaymentDto.getTerminalType() == null) {\n\t\t\trepaymentDto.setTerminalType(redisPayDto.getTerminalType());\n\t\t}\n\n\t\tlogger.info(\"【BwRepaymentServiceImpl.updateOrderByPayMoney】还款或展期orderId:\" + orderId + \",payType=\" + payType);\n\t\tif (payType == 1) {// 还款\n\t\t\tupdateRepaymentNotify(bwOrder, borrower, product, repaymentDto, bwPlatformRecord);\n\t\t\trepaymentOkNotifyThree(orderId);\n\t\t} else if (payType == 2) {// 展期\n\t\t\tupdateZhanqiNotify(bwOrder, borrower, product, repaymentDto, bwPlatformRecord);\n\t\t}\n\t\tresult.setCode(\"000\");\n\t\tresult.setMsg(\"SUCCESS\");\n\t\treturn result;\n\t}", "title": "" }, { "docid": "8520812235cc99e3285897e3cac3fad0", "score": "0.50965613", "text": "public void setTRADE_TRX_TYPE(BigDecimal TRADE_TRX_TYPE) {\r\n this.TRADE_TRX_TYPE = TRADE_TRX_TYPE;\r\n }", "title": "" }, { "docid": "aee5edb805fc61b1585c4f4f0f8550ec", "score": "0.50883454", "text": "private java.util.List<java.lang.String> uHistory(java.lang.String pin, java.lang.String id, javax.xml.datatype.XMLGregorianCalendar sDate, javax.xml.datatype.XMLGregorianCalendar eDate) {\n service.PaymentService port = service.getPaymentServicePort();\r\n return port.uHistory(pin, id, sDate, eDate);\r\n }", "title": "" }, { "docid": "40940d2405a1d49c785447e2e07be63f", "score": "0.5077322", "text": "public BigDecimal getTradeAmount() {\n return tradeAmount;\n }", "title": "" }, { "docid": "46cc29ee9a12548d25cd3d5ecf084f36", "score": "0.506397", "text": "@Override\n public long getTradeId() {\n return _trade.getTradeId();\n }", "title": "" }, { "docid": "1caff6fafee9df94d52d12e567669329", "score": "0.50584126", "text": "HistoryResponse getSharepriceCloseHistory();", "title": "" }, { "docid": "ebd529c6e90bdc04beb3a95727a05f09", "score": "0.5045452", "text": "public ShopPointHistoryTbl () {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "7f04ea046f3b0d30c510e3ccc0c8d9ce", "score": "0.50312424", "text": "public void setLastTradePriceOnly(BigDecimal lastTradePriceOnly) {\n\t\tthis.lastTradePriceOnly = lastTradePriceOnly;\n\t}", "title": "" }, { "docid": "edd0bb46228c67982349618679e8b1a4", "score": "0.5015187", "text": "@Override\n public double getAmountBuy() {\n return _trade.getAmountBuy();\n }", "title": "" }, { "docid": "9c08cd045cba84ac4103069eace312f6", "score": "0.49965352", "text": "public String toString() {\n final StringBuilder buffer = new StringBuilder() ;\n final DecimalFormat df = new DecimalFormat( \"###.00\" ) ;\n final DateFormat dtFmt = new SimpleDateFormat( \"MM/dd/yyyy HH:mm:ss\" ) ;\n\n buffer.append( \"[\" + this.tradeId + \"] \" ) ;\n buffer.append( StringUtil.rightPad( dtFmt.format( this.date ), 20 ) ) ;\n if( this.buy ) {\n buffer.append( StringUtil.rightPad( \"BUY\", 5 ) ) ;\n }\n else {\n buffer.append( StringUtil.rightPad( \"SELL\", 5 ) ) ;\n }\n buffer.append( StringUtil.rightPad( this.tradeType, 5 ) ) ;\n buffer.append( StringUtil.rightPad( this.symbol, 10 ) ) ;\n buffer.append( StringUtil.leftPad( \"\" + this.units, 5 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.unitPrice ), 7 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( this.brokerage ), 7 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getAvgPrice() ), 7 ) ) ;\n buffer.append( StringUtil.leftPad( df.format( getActualValue() ), 10 ) ) ;\n\n return buffer.toString() ;\n }", "title": "" }, { "docid": "bd82bb4ddf2588ee98b55e58db648561", "score": "0.4986222", "text": "public double newBid(){\n double newbid = 0.0;\n\n int earliest_time = 0;\n if(sys.gClock > time_window)\n earliest_time = sys.gClock - time_window;\n\n LinkedList<PaymentHistory> tmp = new LinkedList<PaymentHistory>();\n \tPaymentHistory ph;\n\n int num_paid_qos = 0;\n int num_paid_qod = 0;\n double sum_rt = 0.0;\n while(!history.isEmpty()) {\n ph = history.removeFirst();\n if(ph.receiveTime >= earliest_time){\n tmp.add(ph); // keep it in the history\n if(ph.qos_paid > 0){\n num_paid_qos ++;\n sum_rt += ph.response_time;\n }\n if(ph.qod_paid > 0)\n num_paid_qod ++;\n }\n \t}\n \thistory = tmp;\n int num_tran = history.size();\n double future_avg = getFutureAvg();\n double s = 0.0;\n double d = 0.0;\n double a1 = 0.0, a2 = 0.0;\n double b1 = 0.0;\n double rt = initialQC.getRDMax();\n if(num_tran > 10){\n a1 = (double)num_paid_qos/num_tran;\n a2 = (double)sum_rt/(num_tran * rt);\n s = (a1 - a2) * qos_percent;\n b1 = (double)num_paid_qod/num_tran;\n d = b1 * (1 - qos_percent);\n if((s + d) > 0){\n newbid = future_avg / (s + d);\n }else{\n newbid = owner.getBudget();\n }\n }else{\n newbid = future_avg;\n }\n// System.out.println(\"E_: future avg=\"+future_avg + \" newbid=\" + newbid +\" s=\" + s + \" d=\" +d +\n// \" #qos=\"+num_paid_qos+\" sum_rt=\"+sum_rt+\" #total=\"+num_tran+\" rt=\"+rt+\" a1=\"+a1+\" a2=\"+a2);\n return newbid;\n }", "title": "" }, { "docid": "8413b3ba77d80ef071d99041c3ce7e2b", "score": "0.4981194", "text": "public float getTradeIn() { return TradeIn; }", "title": "" }, { "docid": "ff4c62a782ecb02c6077d5d6197224fe", "score": "0.49683046", "text": "@Override\n\tpublic void rollBackTrade(TickEvent<Trade> tradeEvent) throws TradeException {\n\t\t\n\t}", "title": "" }, { "docid": "96da25a690b351246b879237615e9a56", "score": "0.496513", "text": "HPaymentTrade selectByPrimaryKey(String id);", "title": "" }, { "docid": "bd552d314bfdb09fca2ce36f110958c3", "score": "0.49526134", "text": "public BigDecimal getTRADE_TRX_TYPE() {\r\n return TRADE_TRX_TYPE;\r\n }", "title": "" }, { "docid": "9535545de8ff5095fb27e9dbf8e2c191", "score": "0.4945844", "text": "HistoryResponse getSharepriceHistory(String ticker, int hours);", "title": "" }, { "docid": "0982cf2e5eac58802652da8fdd4f5330", "score": "0.49283653", "text": "public String getTradeOrderNo() {\n return tradeOrderNo;\n }", "title": "" }, { "docid": "044368c253a4e269dfe1d81c2d4c4905", "score": "0.4912722", "text": "public void testTrade() throws Exception {\n\t\tString trade_type = BTCE.TradeType.SELL ;\n\t\tdouble price = 98.26 ;\n\t\tString pair = BTCE.Pairs.BTC_USD ;\n\t\tInfo info = btce.getInfo() ;\n\t\tdouble amount = 0, funds = 0 ;\n\t\tif( trade_type.compareToIgnoreCase(BTCE.TradeType.BUY)==0 ) {\n\t\t\tfunds = info.info.funds.usd ;\n\t\t\tamount = round(funds / (price*1.002),4) ;\n\t\t}else if( trade_type.compareToIgnoreCase(BTCE.TradeType.SELL)==0 ) {\n\t\t\tamount = info.info.funds.btc ;\n\t\t}\n\t\tSystem.out.println(trade_type.toUpperCase()+\" @ Price: \"+price+\" Amount: \"+amount) ;\n\t\tTrade trade = btce.trade(pair,trade_type,price,amount) ;\n\t\tSystem.out.println(trade) ;\n\t}", "title": "" }, { "docid": "b1900551b988c1527cb08c3f25d89c92", "score": "0.48874423", "text": "public String getTRADE_IND() {\r\n return TRADE_IND;\r\n }", "title": "" }, { "docid": "e3868de33d9706064ffdbffb0aa71b71", "score": "0.48558226", "text": "public void viewTable(DefaultTableModel model) throws SQLException {\n\t Statement stmt = null;\r\n\t String query =\r\n\t \"select TICKER_SYMBOL, TRADEDATE, CLOSEPRICE, OPENPRICE, HIGHPRICE, LOWPRICE, ADJCLOSE, VOLUME \" +\r\n\t\t \"from APP.HISTORICAL_PRICES \" + \r\n\t \"order by TICKER_SYMBOL, TRADEDATE\"; \r\n\t\t//\t \"where TICKER_SYMBOL = 'DE'\";\r\n\t try {\r\n\t int x = 0;\r\n\t stmt = con.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(query);\r\n\t // System.out.println(\"Historical Prices:\");\r\n\t// JTable theTable = this.getBelongsTo().getBelongsToGUI().getTable();\r\n\t // DefaultTableModel model = (DefaultTableModel) theTable.getModel();\r\n\r\n\t while (rs.next()) {\r\n\t \t String tickerSymbol = rs.getString(\"TICKER_SYMBOL\");\r\n\t\t Date date = rs.getDate(\"TRADEDATE\");\r\n\t\t double close = rs.getDouble(\"CLOSEPRICE\");\r\n\t\t double open = rs.getDouble(\"OPENPRICE\");\r\n\t\t double high = rs.getDouble(\"HIGHPRICE\");\r\n\t\t double low = rs.getDouble(\"LOWPRICE\");\r\n\t\t double adjClose = rs.getDouble(\"ADJCLOSE\");\r\n\t\t Integer volume = rs.getInt(\"VOLUME\");\r\n\t //System.out.printf(\"%s,%s,%.2f,%.2f,%.2f,%.2f,%.2f,%s\\n\",tickerSymbol, date.toString(), close, open, high, low, adjClose, volume.toString());;\r\n\t\t SwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t//textArea.append(\"And made it here!!!!!!!!!!!!!!!\");\r\n\t\t\t\t\t\tObject rowData[] ={tickerSymbol, date.toString(), Double.toString(close), Double.toString(open), Double.toString(high), Double.toString(low), Double.toString(adjClose), volume.toString()};\r\n\t \t\t\t\tmodel.addRow(rowData);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t \r\n\t }\r\n\r\n\t } catch (SQLException e) {\r\n\t JDBCTutorialUtilities.printSQLException(e);\r\n\t } finally {\r\n\t if (stmt != null) { stmt.close(); }\r\n\t }\r\n\t }", "title": "" }, { "docid": "65130e6ed27d682a356781c528f4f009", "score": "0.48501197", "text": "public java.util.List<com.currencyfair.model.Trade> findAll()\n throws com.liferay.portal.kernel.exception.SystemException;", "title": "" }, { "docid": "4b2a0f65aad8324d1a6aa8437456ae5c", "score": "0.48396072", "text": "public void setTradeAmount(BigDecimal tradeAmount) {\n this.tradeAmount = tradeAmount;\n }", "title": "" }, { "docid": "66c22743712991bb2b9954ee0fd16f18", "score": "0.4833801", "text": "public java.math.BigDecimal getTradeMoney () {\n\t\treturn tradeMoney;\n\t}", "title": "" }, { "docid": "f711764f6a61a2d1f459fd115a3c127f", "score": "0.4830504", "text": "void addTrade(Trade trades);", "title": "" }, { "docid": "e6e09309f701c1cc6b4a90b95a27d931", "score": "0.4826302", "text": "@Override\n\tpublic List<Trade> getAllTrades() {\n\t\tList<Trade> trades = new ArrayList<Trade>();\n\t\tDriver d = new oracle.jdbc.driver.OracleDriver();\n\t\ttry {\n\t\t\tDriverManager.registerDriver(d);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry (Connection cn = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\",\n\t\t\t\t\t\t\"Northwind\",\"Pa$$w0rd\");) {\n\t\t\tPreparedStatement ps = cn.prepareStatement(\"SELECT Ticker, Open, Close FROM NASDAQDATAJC\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\ttrades.add(new Trade(rs.getString(\"Ticker\"),rs.getDouble(\"Open\"),rs.getDouble(\"Close\")));\n\t\t\t}\n\t\t} catch (SQLException ex) {\n\t\t\tSystem.err.println(\"IOException occurred: \" + ex);\n\t\t}\n\t\treturn trades;\n\t}", "title": "" }, { "docid": "c61c2ffc1ee73a8571ec63538001a0b6", "score": "0.48150524", "text": "public static boolean processData(Trade trade) {\r\n\r\n\t\tString xmlString = null;\r\n\t\tPrintWriter pw = null;\r\n\t\tboolean tradeSaved = false;\r\n\t\tint dealID = 0;\r\n\r\n\t\tDealCoverCustomData dcCustomData = null;\r\n\t\t\r\n/* START-CHANGE || 23-04-2007 || O. Jayachandra Gupta || Is valid Fee, Book, Counterparty, Earlyterminationdate */ \r\n\t\ttradeSaved=isValidFBC(trade,DSConnection.getDefault());\r\n\t\tif(!tradeSaved) {\r\n\t\t\tLog.error(CLASSNAME, \"Severe Problem Exiting... Trade Validations Failed!!! TRADE_ID:\"+trade.getId());\r\n\t\t\treturn tradeSaved;\r\n\t\t}\r\n/* END-CHANGE || 23-04-2007 */ \r\n\r\n\t\tLog.info(CLASSNAME,\r\n\t\t\t\t \"Entered processData() for trade: \" + trade.getId());\r\n\t\t\r\n\t\t\r\n\t\tif(!(\ttrade.getProductType().equals(Product.CREDITDEFAULTSWAP) || \r\n\t\t\t\ttrade.getProductType().equals(CITICREDITSYNTHETICCDO_TYPE))) {\r\n\r\n\t\t\tLog.error(CLASSNAME, \"Not supported product for Phase I \" + trade.getProductType() +\r\n\t\t\t\t\t\t\t\t\t\t\t\" trade id: \" + trade.getId());\r\n\t\t}\r\n\r\n\t\tif((CitiCustomTradeData)trade.getCustomData() != null) {\r\n\t\t\tdcCustomData = ((CitiCustomTradeData)trade.getCustomData()).\r\n getDealCoverCustomData();\r\n\t\t}\r\n\r\n\t\tif(dcCustomData != null) {\r\n\r\n\t\t\tLog.info(CLASSNAME, \r\n\t\t\t\t\t\"Processing Trade with Oasys DealId: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t+ \" and tradeId: \" + trade.getId());\r\n\t\t\t\r\n\t\t\tif(dcCustomData.getDealID() <= 0 ||\r\n\t\t\t\tdcCustomData.getTransactionID() <= 0) {\r\n\r\n\t\t\t\tthrow new DPSSenderException(\"Can't send trades to BackOffice since DealID or \" +\r\n\t\t\t\t\"TransactionID is not set in trade CustomData\" + trade.getId());\r\n\t\t\t}\r\n\r\n\t\t\tif(trade.getBundle() != null && trade.getBundle().getType().equals(\r\n\t\t\t\tBackToBackTradeRule.BACK_TO_BACK) &&\r\n\t\t\t\t!trade.getRole().equals(LegalEntity.COUNTERPARTY)) {\r\n\r\n\t\t\t\tLog.warn(CLASSNAME, \"BTB firm trade, skip PSEventTrade: \" +\r\n\t\t\t\t\t dcCustomData.getDealID() + \".\" +\r\n\t\t\t\t\t dcCustomData.getTransactionID());\r\n\r\n\t\t\t\treturn tradeSaved;\r\n\t\t\t}\r\n\r\n\t\t\t// For mirror trades we don't want to send it twice, so we will skip PSEventTrade for second trade.\r\n\t\t\tif(trade.getBundle() != null &&\r\n\t\t\t\ttrade.getBundle().getType().equals(GlobalMirrorHandler.BUNDLE_NAME)) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\tTradeArray array = DSConnection.getDefault().\r\n\t\t\t\t\t\t\t\tgetRemoteTrade().getBundleTrades(trade.getBundle().getId());\r\n\r\n\t\t\t\tTrade mainTrade = (Trade) array.get(0);\r\n\t\t\t\tTrade mirrorTrade = (Trade) array.get(1);\r\n\r\n\t\t\t\tLog.info(CLASSNAME,\r\n\t\t\t\t\t\t \"DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t + \", tradeId: \" + trade.getId()\r\n\t\t\t\t\t\t + \" are part of a Bundle.\"\r\n\t\t\t\t\t\t + \" Main tradeId = \" + mainTrade.getId()\r\n\t\t\t\t\t\t + \", Mirror tradeId = \" + mirrorTrade.getId()); \r\n\t\t\t\t\r\n\t\t\t\tif(((CitiCustomTradeData)mainTrade.getCustomData() != null) &&\r\n\t\t\t\t\t((CitiCustomTradeData)mirrorTrade.getCustomData() != null)) {\r\n\r\n\t\t\t\t\tDealCoverCustomData mainDCCustomData =\r\n\t\t\t\t\t\t((CitiCustomTradeData)mainTrade.getCustomData()).getDealCoverCustomData();\r\n\t\t\t\t\tDealCoverCustomData mirrorDCCustomData =\r\n\t\t\t\t\t\t((CitiCustomTradeData)mirrorTrade.getCustomData()).getDealCoverCustomData();\r\n\r\n\t\t\t\t\tLog.info(CLASSNAME,\r\n\t\t\t\t\t\t\t \"DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t\t + \" - Checking we're not sending Mirror Trade twice\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(mainDCCustomData != null && mirrorDCCustomData != null) {\r\n\t\t\t\t\t\tint mainTradeTxnID = mainDCCustomData.getTransactionID();\r\n\t\t\t\t\t\tint mirrorTradeTxnID = mirrorDCCustomData.getTransactionID();\r\n\t\t\t\t\t\tint maxTransactionID = 0;\r\n\r\n\t\t\t\t\t\tLog.info(CLASSNAME,\r\n\t\t\t\t\t\t\t\t \"DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t\t\t + \" - Main trade (\" + mainTrade.getId() + \") transactionId is: \" + mainTradeTxnID\r\n\t\t\t\t\t\t\t\t + \", Mirror trade (\" + mirrorTrade.getId() + \") transactionId is: \" + mirrorTradeTxnID); \t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(mainTradeTxnID < mirrorTradeTxnID) {\r\n\t\t\t\t\t\t\tmaxTransactionID = mirrorTradeTxnID;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmaxTransactionID = mainTradeTxnID;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(dcCustomData.getTransactionID() == maxTransactionID) {\r\n\t\t\t\t\t\t\tLog.info(CLASSNAME, \r\n\t\t\t\t\t\t\t\t\t\"Skip Mirror trade event: \" + trade.getId() \r\n\t\t\t\t\t\t\t\t\t+ \" Deal: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t\t\t\t+ \":\" + dcCustomData.getTransactionID());\r\n\t\t\t\t\t\t\treturn tradeSaved;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tLog.info(CLASSNAME, \"Process Main Mirror trade event: \" + trade.getId() + \" Deal: \" + dcCustomData.getDealID() + \":\" + dcCustomData.getTransactionID());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t throw new DPSSenderException(\"For trade: \" + trade.getId()\r\n\t\t\t\t\t \t\t + \", could not get trades by bundle id \" + trade.getBundle().getId(), e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new DPSSenderException(\"Can't send trade: \" + trade.getId()\r\n\t\t\t\t\t + \" to DPS, since DealCoverCustomData is null.\");\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\txmlString = new String();\r\n\r\n\t\ttry{\r\n\r\n\t\t\tif(isFilePrint) {\r\n \t\t\ttry {\r\n \t\t\t\tpw = new PrintWriter(\r\n\t\t\t\t\tnew FileWriter(outputDir +\r\n\t\t\t\t\t\t\tString.valueOf(trade.getId()) + \".xml\"));\r\n \t\t\t}\r\n \t\t\tcatch (IOException e) {\r\n \t\t\tLog.error(CLASSNAME, \"Could not open file to write \" +\r\n String.valueOf(trade.getId()) + \".xml\", e);\r\n \t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tIDPSDataObject calypsoDeal = new Deal();\r\n\t\t\tLog.info(CLASSNAME,\r\n\t\t\t\t\t \"TradeId: \" + trade.getId()\r\n\t\t\t\t\t + \", DealID: \" + dcCustomData.getDealID()\r\n\t\t \t\t\t + \" - About to set Deal data\");\r\n\t\t\tcalypsoDeal.set(trade, null);\r\n\t\t\tLog.info(CLASSNAME,\r\n\t\t\t\t\t \"TradeId: \" + trade.getId()\r\n\t\t\t\t\t + \", DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t + \" - Successfully set Deal data.\");\r\n\t\t\t\r\n\t\t\txmlString = calypsoDeal.generateXML();\r\n \t\t \r\n\t\t\tLog.info(CLASSNAME, \r\n\t\t\t\t\t \"TradeId: \" + trade.getId()\r\n\t\t\t\t\t + \", DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t + \" - Successfully generated XML.\");\r\n\t\t\t\t \t \r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tif(isFilePrint) {\r\n \t\t\tpw.write(xmlString);\r\n \t\t\tpw.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tLog.info(CLASSNAME, \r\n\t\t\t\t\t\t\t \"TradeId: \" + trade.getId()\r\n\t\t\t\t\t\t\t + \", DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t\t+ \" - About to save to DPS.\");\r\n \t \t\tDPSTradeSave.saveTrade(xmlString);\r\n \t \t\tLog.info(CLASSNAME,\r\n \t \t\t\t\t \"TradeId: \" + trade.getId()\r\n\t\t\t\t\t\t\t + \", DealID: \" + dcCustomData.getDealID()\r\n\t\t\t\t\t\t\t + \" - Successfully saved Deal.\");\r\n \t \t\t\r\n \t \t\ttradeSaved = true;\r\n \t\t}\r\n \t\tcatch (DPSSenderException dEx) {\r\n \t\tLog.error(CLASSNAME, \"Couldn't save the trade with dealID: \" \r\n \t\t\t\t+ dcCustomData.getDealID(), dEx);\r\n \t\tDPSErrorFlag = true;\r\n \t\tthrow dEx;\r\n \t\t}\t\r\n \t\tcatch (Exception e) {\r\n \t\tLog.error(CLASSNAME, \"Couldn't save the trade with dealID: \" \r\n \t\t\t\t+ dcCustomData.getDealID(), e);\r\n \t\t}\t\r\n \t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (DPSSenderException dpsEx)\r\n\t\t{\r\n\t\t\tthrow dpsEx;\r\n\t\t}\t\t\r\n\t\tcatch (Exception e) \r\n\t\t{ \r\n\t\t\tthrow new DPSSenderException(e);\r\n\t\t}\r\n\t\t\r\n\t\treturn tradeSaved;\r\n\t}", "title": "" }, { "docid": "b7be1387155d57be43496b79aa956efe", "score": "0.48146778", "text": "void insert(HPaymentTrade record);", "title": "" }, { "docid": "ffa3d38b0a81607f3d758131d7c4e926", "score": "0.4805973", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public entity.BOPCededPremiumHistory getBOPCededPremiumHistory();", "title": "" }, { "docid": "6389e1baaeb53cf6d230f41e5eae02c0", "score": "0.48017636", "text": "public String getTradeId() {\n return this.tradeId;\n }", "title": "" }, { "docid": "e639cc8a91d5383cf8b68fb1551e62a1", "score": "0.47960877", "text": "public void setTrade(int trade) {\n this.trade = trade;\n }", "title": "" }, { "docid": "04e899be5fdd105254f04bbc6df05d64", "score": "0.47822097", "text": "public long getTradeId() {\n return tradeId_;\n }", "title": "" }, { "docid": "04e899be5fdd105254f04bbc6df05d64", "score": "0.47822097", "text": "public long getTradeId() {\n return tradeId_;\n }", "title": "" }, { "docid": "d73c44727041c4b29dabbf5c8e69d0e0", "score": "0.47794127", "text": "void processForTableSOH(String itemID, String storeID, String quantity,\r\n String receiptDate, String last_update_id,String receiveType) {\r\n ResultSet rs = null;\r\n String sqlStr = \"Select * From BTM_IM_ITEM_LOC_SOH Where Item_ID = '\" + itemID + \"' and Store_ID=\" + storeID;\r\n// System.out.println(sqlStr);\r\n ResultSet rsBack = null;\r\n float nQtyBack=0;\r\n String sqlQtyBack = \"Select BACK_ROOM_QTY From BTM_IM_ITEM_LOC_SOH Where Item_ID = '\" + itemID + \"' and Store_ID=\" + storeID;\r\n try{\r\n stmt = DAL.getConnection().createStatement(ResultSet.\r\n TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_READ_ONLY);\r\n\r\n rs = DAL.executeScrollQueries(sqlStr,stmt);\r\n rsBack = DAL.executeQueries(sqlQtyBack);\r\n if(rsBack.next()){\r\n nQtyBack = rsBack.getFloat(\"BACK_ROOM_QTY\");\r\n }\r\n// System.out.print(nQtyBack);\r\n if(receiveType.equalsIgnoreCase(\"B\") || receiveType.trim().equals(\"\")){ //receive to Backroom\r\n if (rs.next()) {\r\n sqlStr =\r\n \"Update BTM_IM_ITEM_LOC_SOH set STOCK_ON_HAND = STOCK_ON_HAND + \" +\r\n quantity +\r\n \", BACK_ROOM_QTY = \" + nQtyBack + \"+\" + quantity +\r\n \",SOH_Update_DateTime = to_date('\" + ut.getSystemDate() + \"','\" +\r\n ut.DATE_FORMAT +\r\n \"') Where Item_ID = '\" + itemID + \"' and Store_ID=\" + storeID;\r\n }\r\n\r\n else {\r\n sqlStr = \"Insert Into BTM_IM_ITEM_LOC_SOH(Item_ID,Store_ID,Stock_On_Hand,Back_Room_Qty,Front_Room_Qty,SOH_Update_DateTime,Last_Update_id) values('\"\r\n + itemID + \"',\" + storeID + \",\" + quantity + \",\" + quantity +\r\n \",0,to_date('\" + receiptDate + \"','\"\r\n + ut.DATETIME_FORMAT2 + \"'),'\" + last_update_id + \"')\";\r\n }\r\n }else if(receiveType.equalsIgnoreCase(\"F\")){ //receive to Frontroom\r\n if (rs.next()) {\r\n sqlStr =\r\n \"Update BTM_IM_ITEM_LOC_SOH set STOCK_ON_HAND = STOCK_ON_HAND + \" +\r\n quantity +\r\n \", Front_Room_Qty = Front_Room_Qty +\" + quantity +\r\n \",SOH_Update_DateTime = to_date('\" + ut.getSystemDate() + \"','\" +\r\n ut.DATE_FORMAT +\r\n \"') Where Item_ID = '\" + itemID + \"' and Store_ID=\" + storeID;\r\n }\r\n else {\r\n sqlStr = \"Insert Into BTM_IM_ITEM_LOC_SOH(Item_ID,Store_ID,Stock_On_Hand,Back_Room_Qty,Front_Room_Qty,SOH_Update_DateTime,Last_Update_id) values('\"\r\n + itemID + \"',\" + storeID + \",\" + quantity + \",0,\" + quantity +\",to_date('\" + receiptDate + \"','\"\r\n + ut.DATETIME_FORMAT2 + \"'),'\" + last_update_id + \"')\";\r\n }\r\n }\r\n rs.close();\r\n stmt.close();\r\n// System.out.println(sqlStr);\r\n vInfo.addElement(sqlStr);\r\n }\r\n catch(Exception ex){}\r\n }", "title": "" }, { "docid": "2a80371008cda861bc0647d56eb1d959", "score": "0.47787252", "text": "public void transactionHistory(){\n \n try {\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n connect = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/sky bank\",\"root\",\"\");\n String query = \"Select * from TransactionHistory where AccountNumber='\"+AccountNumber+\"' \";\n PreparedStatement pst = connect.prepareStatement(query);\n ResultSet rs = pst.executeQuery();\n DefaultTableModel tableModel = (DefaultTableModel)TransactionTable.getModel();\n DefaultTableModel tableModelHome = (DefaultTableModel)TransactionTableHome.getModel();\n tableModel.setRowCount(0);\n tableModelHome.setRowCount(0);\n while(rs.next()){\n \n String SenderDate = rs.getNString(\"Date\");\n String SenderAc = rs.getNString(\"AccountNumber\");\n String Senderamount = rs.getNString(\"Amount\");\n String SenderDebit = rs.getNString(\"CreditDebit\");\n \n String SenderTableData[] ={SenderDate, SenderAc, Senderamount, SenderDebit};\n \n tableModel = (DefaultTableModel)TransactionTable.getModel();\n tableModelHome = (DefaultTableModel)TransactionTableHome.getModel();\n tableModel.addRow(SenderTableData);\n tableModelHome.addRow(SenderTableData);\n }\n connect.close(); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n\n }", "title": "" }, { "docid": "47f9a1a4c4c342a0ceeda5bb89fbdd4f", "score": "0.47780505", "text": "public long getTradeId() {\n return tradeId_;\n }", "title": "" }, { "docid": "47f9a1a4c4c342a0ceeda5bb89fbdd4f", "score": "0.47780505", "text": "public long getTradeId() {\n return tradeId_;\n }", "title": "" }, { "docid": "3c5411c83ccf65c5459ef8efff14f206", "score": "0.47759485", "text": "java.util.List<io.dstore.engine.procedures.OmModifyCampBundlePricingAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "6ee12cb2857a4fd21e0a715ffc1665c1", "score": "0.4774614", "text": "public YahooHistoricalPrices_Row(String line) throws ParseException, BadYahooRowException {\n\tString[] lineAr = line.split(\",\");\n\ttry {\n\t String dateSt = lineAr[0].replace(\"-\", \"\");\n\t date = parse_int(dateSt);\n\n\t open_unadjusted = parse_float(lineAr[1]);\t//\t Date,Open,High,Low,Close,Volume,Adj Close\n\t high_unadjusted = parse_float(lineAr[2]);\t//\t 2013-11-08,9.03,9.08,8.78,9.06,23678200,9.06\n\t low_unadjusted = parse_float(lineAr[3]);\n\t close_unadjusted = parse_float(lineAr[4]);\n\t volume = parse_float(lineAr[5]);\n\t closeAdj = parse_float(lineAr[6]);\n\n//\t if (volume > 1000 && close_unadjusted > 1 && closeAdj > 1 && open_unadjusted > 1 && high_unadjusted > 1 && low_unadjusted > 1) {\t//too dangerous to restrict over 1. in case price falls that low. after buying above 1. don't want that purchase to just disappear.//or, at vol: 100, and others 0\n\n\t if (volume > 100 && close_unadjusted > 0 && closeAdj > 0 && open_unadjusted > 0 && high_unadjusted > 0 && low_unadjusted > 0) {\t//or, at vol: 100, and others 0\n\t\tfloat adjusted_over_unadjusted = closeAdj / close_unadjusted;\n\t\topenAdj = open_unadjusted * adjusted_over_unadjusted;\n\t\thighAdj = high_unadjusted * adjusted_over_unadjusted;\n\t\tlowAdj = low_unadjusted * adjusted_over_unadjusted;\n\t } else {\n\t\tvolume = null_float;\n\t\tclose_unadjusted = null_float;\n\t\tcloseAdj = null_float;\n\t }\n\t} catch (Exception e) {\n\t}\n }", "title": "" }, { "docid": "72c759ce9c5efa202d41a49e5544ba93", "score": "0.47706175", "text": "public String getTradeName() {\n return tradeName;\n }", "title": "" }, { "docid": "72c759ce9c5efa202d41a49e5544ba93", "score": "0.47706175", "text": "public String getTradeName() {\n return tradeName;\n }", "title": "" }, { "docid": "4fe2ae558972e5afc259599cf406ecaf", "score": "0.4762383", "text": "public PaymentAlipayRecordTable() {\n\t\tthis(\"PaymentAlipayRecord\", null);\n\t}", "title": "" }, { "docid": "5eb14aafd878ae0aff0ae4098f200c7d", "score": "0.47441688", "text": "@Override\n public double getRate() {\n return _trade.getRate();\n }", "title": "" }, { "docid": "ab9814d05f197412b13aee42f92fd362", "score": "0.47435227", "text": "public Trade() {\n this.tradeId = -1 ;\n }", "title": "" }, { "docid": "7121a8c031af7358609909f1193aef9f", "score": "0.47431245", "text": "HistoryResponse getSharepriceHistory(int hours);", "title": "" }, { "docid": "6bdfebfaf9c2313f6038f0913234aaf7", "score": "0.47394505", "text": "public void addHistory() { \n makeConnection();\n PreparedStatement ps = null;\n try {\n ps = conn.prepareStatement(\"insert into u_variables_log (uvid, name, type, unit, comm, id, ts) values (?, ?, ?, ?, ?, ?, ?)\");\n ps.setInt(1, uvid);\n ps.setString(2, name);\n ps.setString(3, type);\n ps.setString(4, unit);\n ps.setString(5, comm);\n ps.setInt(6, id);\n ps.setDate(7, updated); \n \n ps.execute();\n \n } catch (Exception e) {\n throw new EJBException(\"UVariableBean#addHistory: Error writing history for unified variable. \\n\"+e.getMessage());\n } finally {\n releaseConnection();\n }\n }", "title": "" }, { "docid": "24a81bdde968f22c93982e80c6821c03", "score": "0.47368288", "text": "public HistTable DownloadHistoricalPrices(String symbol)\n\t\tthrows IOException\n\t{\n\t\tString csv = new HistoricalUrlBuilder(symbol)\n\t\t\t.setType(HistoricalUrlBuilder.Type.DAILY)\n\t\t\t.download();\n\n\t\tList<HistRow> list = new ArrayList<HistRow>();\n\t\tString [] lines = csv.split(\"\\n\");\n\t\t// skip first line and put it into a list backwards\n\t\t// since it is already in sorted descending order\n\t\tfor (int i = lines.length; i--!=1; )\n\t\t\tlist.add(new HistRow(lines[i]));\n\n\t\tHistTable ret = new HistTable(symbol,System.currentTimeMillis(),list);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "10ed8b1509bf102e5f5a833f2f2abeb7", "score": "0.47357345", "text": "public List<String> generateData(String symbol) {\n\t\tList<String> returnList = new ArrayList<String>();\n\t\tList<String> listOutput = new ArrayList<String>();\n\n\t\tString url = baseUrl.concat(symbol).concat(\"/historical\");\n\t\t//String url = \"local.html\";\n\n\t\ttry {\n\t\t\tDocument document = userAgent.visit(url);\n\n\t\t\tElement divContainer = document.findFirst(\"<div id=\\\"historicalContainer\\\">\");\n\t\t\t//Element divContainer = document.findFirst(\"<div id=\\\"quotes_content_left_pnlAJAX\\\">\");\n\t\t\tElement tblBodyElement = divContainer.findFirst(\"<tbody>\");\n\t\t\tElements tblRecordElements = tblBodyElement.findEvery(\"<tr>\");\n\n\t\t\tString tempSingleLine = \"\";\n\t\t\tString date = \"\";\n\t\t\tString open = \"\";\n\t\t\tString high = \"\";\n\t\t\tString low = \"\";\n\t\t\tString close = \"\";\n\t\t\tString volume = \"\";\n\t\t\tfor (Element singleTblRecordElement : tblRecordElements){\n\t\t\t\tElements tblDataElements = singleTblRecordElement.findEvery(\"<td>\");\n\t\t\t\tint count = 0;\n\t\t\t\tfor (Element singleDataElement : tblDataElements){\n\t\t\t\t\tString textElement = singleDataElement.innerText();\n\t\t\t\t\ttextElement = textElement.replaceAll(\",\", \"\").replaceAll(\"\\n\", \"\").replaceAll(\"\\r\", \"\").trim();\n\t\t\t\t\tif ((textElement != null) && (!textElement.isEmpty())){\n\t\t\t\t\t\tif (count == 0){\n\t\t\t\t\t\t\tdate = textElement;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (count == 1)\n\t\t\t\t\t\t\topen = textElement;\n\t\t\t\t\t\telse if (count == 2)\n\t\t\t\t\t\t\thigh = textElement;\n\t\t\t\t\t\telse if (count == 3)\n\t\t\t\t\t\t\tlow = textElement;\n\t\t\t\t\t\telse if (count == 4)\n\t\t\t\t\t\t\tclose = textElement;\n\t\t\t\t\t\telse if (count == 5)\n\t\t\t\t\t\t\tvolume = textElement; \n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!(date.isEmpty()) && (date.contains(\"/\")) && (date != \"\")){\t// Symbol and Date are PKs for SQL tables, can't be empty\n\t\t\t\t\ttempSingleLine = symbol.concat(\",\").concat(open).concat(\",\").concat(high).concat(\",\").\n\t\t\t\t\t\t\tconcat(low).concat(\",\").concat(close).concat(\",\").concat(volume).concat(\",\").concat(date);\n\t\t\t\t\tlistOutput.add(tempSingleLine);\n\t\t\t\t\t//List<String> tempList = listOutput;\n\t\t\t\t\treturnList.addAll(listOutput);\n\t\t\t\t\tlistOutput.clear();\n\t\t\t\t\tdate = open = high = low = close = volume = \"\";\n\t\t\t\t}\n\t\t\t\telse{ \n\t\t\t\t\tlogger.info(\"Details insufficient to insert row into catalog. Skipping row for symbol: \"+symbol);\n\t\t\t\t\tdate = open = high = low = close = volume = \"\";\n\t\t\t\t}\t\n\t\t\t}\n\t\t} \n\t\tcatch(NotFound e){ //if an HTTP/connection error occurs, handle JauntException.\n\t\t\tSystem.out.print(\"Jaunt Exception: \"+e.getMessage()+\" while traversing HTML pages for symbol: \"+symbol+\"\\n\");\n\t\t}\n\t\tcatch(JauntException e){ //if an HTTP/connection error occurs, handle JauntException.\n\t\t\tSystem.out.print(\"JauntException: \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tList <String> listWithPcntChangeValues = addNetChangePcntChange(returnList);\n\t\treturn listWithPcntChangeValues;\n\t}", "title": "" }, { "docid": "1605a835d42dc7002cfe510828ee4406", "score": "0.4725076", "text": "public StockHistoryDatum( double buyValue, double sellValue, MarketTime date ) {\n\t\t\n\t\tthis.buyValue = buyValue;\n\t\tthis.sellValue = sellValue;\n\t\tthis.date = date;\n\t\t\n\t}", "title": "" }, { "docid": "fa9d2b5544bda063673bc74b9fbf7984", "score": "0.47219133", "text": "HistoryResponse getSharesBoughtHistory(String ticker);", "title": "" }, { "docid": "1624cfdc28135c55772efa80207e2ada", "score": "0.4719978", "text": "public JSONObject TradeHistory(long from, long count, long from_id, long end_id, String order, long since, long end, String pair){\n\t\n\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\n\t\tif(from != -1){ params.put(\"from\", String.valueOf(from));}\n\t\tif(count != -1){ params.put(\"count\", String.valueOf(count));}\n\t\tif(from_id != -1){ params.put(\"from_id\", String.valueOf(from_id));}\n\t\tif(end_id != -1){ params.put(\"end_id\", String.valueOf(end_id));}\n\t\tif(!order.equals(\"\")) {params.put(\"order\", order);}\n\t\tif(since != -1){ params.put(\"since\", String.valueOf(since));}\n\t\tif(end != -1){ params.put(\"end\", String.valueOf(end));}\n\t\tif(!pair.equals(\"\")) {params.put(\"pair\", pair);}\n\t\t\n\t\treturn HTTPRequest(\"TradeHistory\", params);\t\t\n\t}", "title": "" }, { "docid": "0f4401173f8a0bbcc2200e74bbf63697", "score": "0.47135845", "text": "BigDecimal getLastPrice(BigDecimal amount){\n return goodsActivity.getPayPrive(amount);\n }", "title": "" }, { "docid": "168b668d1a0661c1316e084ee93d84fe", "score": "0.47118104", "text": "@Override\n\tpublic TopUpVO topUp(BankCode bank, TopUpPayment paymentMethod, String userName, BigDecimal amount) {\n\t\tUserAccountVO acc = getUserAccount(userName);\n\t\t\n\t\t//any pending payment ?\n\t\tTopUpVO pendingTopUp = getPendingTopUp(acc, false);\n\t\tif (pendingTopUp != null)\n\t\t\tthrow new PendingTopUpException(\"\", pendingTopUp);\n\n\t\t//utk b2b, virtual account dpt dipakai utk topup berkali2, jd jangan generate VAN lagi\n\t\tTopUpVO topup = new TopUpVO();\n\t\ttopup.setAccount_no(acc.getNo());\n\t\ttopup.setUser_id(acc.getUser().getId());\n\t\ttopup.setPayment_type(Long.parseLong(String.valueOf(paymentMethod.getId())));\n\t\ttopup.setStatus(TOPUP_STATUS.PENDING.getFlag());\n\t\ttopup.setBankCode(bank.getBankCode());\n\t\ttopup.setAmount(amount);\n\n\t\ttopup.setTrans_code( generateTransactionCode());\n\n\t\tlong uniqueCode = generateCounterTopUp(acc);\n\t\t/*\n\t\tTopUpCounterVO counterTopUpVO = financeDao.incrementLastCounterTopUp(acc);\n\t\t\n\t\tlong lastUniqueCode = counterTopUpVO.getLastCounter();\n\t\tlong offsetCounter = setupDao.getValueAsLong(ISetupDao.KEY_TOPUP_ATM_COUNTER_OFFSET);\t//100\n\t\tlong moneyCounter = offsetCounter + lastUniqueCode;\n\t\t*/\n\t\ttopup.setUniqueCode(new Long(uniqueCode));\n\n\t\tBigDecimal amountToPaid = BigDecimal.ZERO;\n\t\t\n\t\tamountToPaid = amountToPaid.add(amount);\n\t\t\n\t\tif (paymentMethod == TopUpPayment.TRANSFER_ATM){\n\t\t\tamountToPaid = amountToPaid.add(new BigDecimal(uniqueCode));\n\t\t}\n\t\t\n//\t\tamountToPaid = amountToPaid.add(amount)\n//\t\t\t\t.add(new BigDecimal(uniqueCode))\n//\t\t\t\t;\n\t\t\n\t\ttopup.setAmountToPaid(amountToPaid);\n\t\t\n\t\ttopup.setLastUpdate(new Date());\n\n\t\ttopup.setTimeToPay(Utils.addHours(topup.getLastUpdate(), 2));\n\t\t\t\n\t\tsaveTopUp(topup);\n\t\t\n\t\treturn topup;\n\n\t}", "title": "" }, { "docid": "cd783ff368fb8586643e787c1ed0416d", "score": "0.46961156", "text": "public static void updateHistory(Player player) {\n\t\tInterfaceAssistant.clearFrames(player, 28992, 28992 + 19);\n\t\t//S-10-7478-2000-mgt madness\n\t\tint increment = 0;\n\t\tfor (int index = player.tradingPostHistory.size() - 1; index >= 0; index--)\n\t\t//for (int index = 0; index < player.tradingPostHistory.size(); index++)\n\t\t{\n\t\t\tString parse[] = player.tradingPostHistory.get(index).split(\"-\");\n\t\t\tString text = \"\";\n\t\t\tString toOrFrom = \"to\";\n\t\t\tif (parse[0].equals(\"S\")) {\n\t\t\t\ttext = parse[0].replace(\"S\", \"Sold\");\n\t\t\t} else {\n\t\t\t\ttext = parse[0].replace(\"B\", \"Purchased\");\n\t\t\t\ttoOrFrom = \"from\";\n\t\t\t}\n\t\t\tplayer.getPA().sendFrame126(\n\t\t\t\t\ttext + \" x\" + Misc.formatNumber(Integer.parseInt(parse[1])) + \" \" + ItemAssistant.getItemName(Integer.parseInt(parse[2])) + \" for \" + Misc.formatNumber(\n\t\t\t\t\t\t\tInteger.parseInt(parse[3])) + \" each \" + toOrFrom + \": \" + Misc.capitalize(parse[4]) + \".\", 28992 + increment);\n\t\t\tincrement++;\n\t\t}\n\t}", "title": "" }, { "docid": "4911f7e751b7a5bc98f2f4a88c72648b", "score": "0.4695861", "text": "@Override\r\n\tpublic ArrayList<HistoryOrder> getHistoryByOrderNum(String orderNum, int off, int count) {\n\t\tArrayList<HistoryOrder> historyList = new ArrayList<>();\r\n\t\tConnection conn = DBUtil.getConnection();\r\n\t\tPreparedStatement statement = null;\r\n\t\tResultSet resultSet = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconn.setAutoCommit(false);//开启事务\r\n\t\t\tString sql = \"select * from order_list where status>3 and order_number=? limit ?,?\";\r\n\t\t\tstatement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, orderNum);\r\n\t\t\tstatement.setInt(2, off);\r\n\t\t\tstatement.setInt(3, count);\r\n\t\t\tresultSet = statement.executeQuery();\r\n\t\t\tconn.commit();//提交事务\r\n\t\t\twhile(resultSet.next()){\r\n\t\t\t\t//获取每一个order对象信息\r\n\t\t\t\torderNum = resultSet.getString(\"order_number\");\r\n\t\t\t\tint roomNum = resultSet.getInt(\"room_number\");\r\n\t\t\t\tint roomType = resultSet.getInt(\"room_type\");\r\n\t\t\t\tdouble price = resultSet.getDouble(\"price\");\r\n\t\t\t\tString username = resultSet.getString(\"username\");\r\n\t\t\t\tint tel = resultSet.getInt(\"tel\");\r\n\t\t\t\tint liveDays = resultSet.getInt(\"live_days\");\r\n\t\t\t\tint idCard = resultSet.getInt(\"idcard\");\r\n\t\t\t\tDate checkInTime = resultSet.getDate(\"checkin_time\");\r\n\t\t\t\tDate checkOutTime = resultSet.getDate(\"checkout_time\");\r\n\r\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\t\t\tString inTime = sdf.format(checkInTime);\r\n\t\t\t\tString outTime = sdf.format(checkOutTime);\r\n\t\t\t\t//将信息封装为order对象\r\n\t\t\t\thistoryList.add(new HistoryOrder(Integer.parseInt(orderNum), roomNum, roomType, username, idCard, tel, inTime, outTime, liveDays, price));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tconn.rollback();\r\n\t\t\t} catch (SQLException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\tDBUtil.close(conn, statement, resultSet);\r\n\t\t}\r\n\t\treturn historyList;\r\n\t}", "title": "" }, { "docid": "ec92766367c1007ff3c9e3122ca2ae29", "score": "0.46937823", "text": "public Timestamp getDateTrx();", "title": "" }, { "docid": "6b4588e17ba0efcf6b4f583fbc58a1cb", "score": "0.4687349", "text": "public AbucoinsWithdrawalsHistory abucoinsWithdrawalsHistory() throws IOException {\n AbucoinsWithdrawalsHistory history =\n abucoinsAuthenticated.withdrawalsHistory(\n exchange.getExchangeSpecification().getApiKey(),\n signatureCreator,\n exchange.getExchangeSpecification().getPassword(),\n timestamp());\n if (history.getHistory().length > 0 && history.getHistory()[0].getMessage() != null)\n throw new ExchangeException(history.getHistory()[0].getMessage());\n\n return history;\n }", "title": "" }, { "docid": "959a7eb24a1be559bc30ea3804925889", "score": "0.4685252", "text": "@Override\n public double getAmountSell() {\n return _trade.getAmountSell();\n }", "title": "" }, { "docid": "a1bbb818e43e1f19eb68ead6dc41aa8f", "score": "0.4684629", "text": "public String getTradeType() {\n return tradeType;\n }", "title": "" }, { "docid": "66a8533bbccbea9a1d07c030556b2b8f", "score": "0.46695983", "text": "public HistTable HistoricalPrices(String symbol)\n\t\tthrows IOException\n\t{\n\t\tHistTable ret = null;\n\t\tsynchronized (mTables)\n\t\t{\n\t\t\tret = mTables.get(symbol);\n\t\t\t// TODO make this more sophisticated. As it is it's going to download the whole table another time every day. Lol.\n\t\t\t// Try something where you just download today's price. problematic\n\t\t\t// because then it's like mutable.\n\t\t\t//\n\t\t\t// If we don't have the table or it is old get a new one\n\t\t\tif (null==ret || System.currentTimeMillis() - ret.dateAccessed > TwentyFourHours)\n\t\t\t{\n\t\t\t\tret = DownloadHistoricalPrices(symbol);\n\t\t\t\t// intern it in case calling code is smart\n\t\t\t\tmTables.put(symbol.intern(),ret);\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "0801d33184adbe26c46c9a479d7cec21", "score": "0.46642166", "text": "protected List<Quote> getQuoteHistoryImpl(Instrument instrument, Period period, \r\n\t\t\tDate inFrom, Date inTo) \r\n\t\t\t \t\t throws PersistenceException \r\n\t{\r\n\t\treturn getHistoryService().getQuoteHistory(instrument, period, inFrom, inTo);\r\n\t}", "title": "" }, { "docid": "32587822c72a987fb3bbb6722eb7dc91", "score": "0.46556672", "text": "Trade getCurrentTrade(Integer id);", "title": "" }, { "docid": "d59624fa4c169dcda81ebb0ebb89a5c5", "score": "0.46527654", "text": "WxRefundHistory selectByPrimaryKey(String outRefundNo);", "title": "" }, { "docid": "d43ddf0548672f999393014822725843", "score": "0.4644379", "text": "public List<Order> getOrderHistory();", "title": "" }, { "docid": "053dafb5153262ecae33bb6d4cfc3e02", "score": "0.46439198", "text": "public static void doTrade(ArrayList<Integer> prices) {\n\t\t\r\n\t\tint sellsCount = 0;\r\n\t\tint buysCount = 0;\r\n\t\t\r\n\t\tint lastPrice = prices.get(0);\r\n\t\tint lastEntries = 0;\r\n\t\tint lastCurrentPrice = 0;\r\n\t\tint mode = 0;\r\n\t\tSystem.out.println(lastPrice);\r\n\t\tfor (int i=1;i<prices.size()-2;i++){\r\n\t\t\tint price = prices.get(i);\r\n\t\t\t\r\n\t\t\tint diff = price-lastPrice;\r\n\t\t\tint entries = diff/200;\r\n\t\t\tString entriesStr = \"\";\r\n\t\t\tif (diff>0){\r\n\t\t\t\tmode = 1;\r\n\t\t\t\tfor (int e=1;e<=entries;e++){\r\n\t\t\t\t\tentriesStr+= \" \"+(lastPrice+e*200);\r\n\t\t\t\t\tlastCurrentPrice =lastPrice+e*200;\r\n\t\t\t\t}\r\n\t\t\t\tsellsCount+=entries;\r\n\t\t\t}else{\r\n\t\t\t\tmode = -1;\r\n\t\t\t\tfor (int e=1;e<=-entries;e++){\r\n\t\t\t\t\tentriesStr+= \" \"+(lastPrice-e*200);\r\n\t\t\t\t\tlastCurrentPrice =lastPrice-e*200;\r\n\t\t\t\t}\r\n\t\t\t\tbuysCount+=entries;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint diffFuture = lastCurrentPrice-prices.get(i+1);\r\n\t\t\tif (mode==-1)\r\n\t\t\t\tdiffFuture = prices.get(i+1)-lastCurrentPrice;\r\n\t\t\tif (Math.abs(entries)>=9 \r\n\t\t\t\t\t//&& diffFuture<=200\r\n\t\t\t\t\t){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(lastPrice+\" \"+price+\" \"+prices.get(i+1)\r\n\t\t\t\t\t\t+\" || \"+entries\r\n\t\t\t\t\t\t+\" || \"+lastCurrentPrice+\" \"+diffFuture\r\n\t\t\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*if (Math.abs(entries)>=10){\r\n\t\t\t\tSystem.out.println(lastPrice+\" \"+price\r\n\t\t\t\t\t\t+\" || \"+diff+\" \"+lastEntries+\" \"+entries\r\n\t\t\t\t\t\t+\" ||| \"+entriesStr\r\n\t\t\t\t\t\t+\" ||| \"+buysCount+\" \"+sellsCount\r\n\t\t\t\t\t\t);\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\tlastEntries = entries;\r\n\t\t\tlastPrice = price;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c4d9a41a4a5d4417c38bc2e5ec3a1e12", "score": "0.46398428", "text": "public void recordPrice()\n\t{\n\t\thistoryOfPrices.add(this.currentPrice);\n\t\thistoryIfNoMomentum.add(this.noMomentumPrice);\n\t}", "title": "" }, { "docid": "a8f0da1572b97be226934a6792387772", "score": "0.46220714", "text": "public interface TradePersistence extends BasePersistence<Trade> {\n /*\n * NOTE FOR DEVELOPERS:\n *\n * Never modify or reference this interface directly. Always use {@link TradeUtil} to access the trade persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n */\n\n /**\n * Returns all the trades where uuid = &#63;.\n *\n * @param uuid the uuid\n * @return the matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUuid(\n java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the trades where uuid = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param uuid the uuid\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @return the range of matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUuid(\n java.lang.String uuid, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the trades where uuid = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param uuid the uuid\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUuid(\n java.lang.String uuid, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first trade in the ordered set where uuid = &#63;.\n *\n * @param uuid the uuid\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching trade\n * @throws com.currencyfair.NoSuchTradeException if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first trade in the ordered set where uuid = &#63;.\n *\n * @param uuid the uuid\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching trade, or <code>null</code> if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last trade in the ordered set where uuid = &#63;.\n *\n * @param uuid the uuid\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching trade\n * @throws com.currencyfair.NoSuchTradeException if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade findByUuid_Last(java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last trade in the ordered set where uuid = &#63;.\n *\n * @param uuid the uuid\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching trade, or <code>null</code> if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the trades before and after the current trade in the ordered set where uuid = &#63;.\n *\n * @param tradeId the primary key of the current trade\n * @param uuid the uuid\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the previous, current, and next trade\n * @throws com.currencyfair.NoSuchTradeException if a trade with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade[] findByUuid_PrevAndNext(long tradeId,\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the trades where uuid = &#63; from the database.\n *\n * @param uuid the uuid\n * @throws SystemException if a system exception occurred\n */\n public void removeByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of trades where uuid = &#63;.\n *\n * @param uuid the uuid\n * @return the number of matching trades\n * @throws SystemException if a system exception occurred\n */\n public int countByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the trades where userId = &#63;.\n *\n * @param userId the user ID\n * @return the matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUserId(\n long userId) throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the trades where userId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param userId the user ID\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @return the range of matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUserId(\n long userId, int start, int end)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the trades where userId = &#63;.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param userId the user ID\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of matching trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findByUserId(\n long userId, int start, int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first trade in the ordered set where userId = &#63;.\n *\n * @param userId the user ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching trade\n * @throws com.currencyfair.NoSuchTradeException if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade findByUserId_First(long userId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the first trade in the ordered set where userId = &#63;.\n *\n * @param userId the user ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the first matching trade, or <code>null</code> if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade fetchByUserId_First(long userId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last trade in the ordered set where userId = &#63;.\n *\n * @param userId the user ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching trade\n * @throws com.currencyfair.NoSuchTradeException if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade findByUserId_Last(long userId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the last trade in the ordered set where userId = &#63;.\n *\n * @param userId the user ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the last matching trade, or <code>null</code> if a matching trade could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade fetchByUserId_Last(long userId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the trades before and after the current trade in the ordered set where userId = &#63;.\n *\n * @param tradeId the primary key of the current trade\n * @param userId the user ID\n * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n * @return the previous, current, and next trade\n * @throws com.currencyfair.NoSuchTradeException if a trade with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade[] findByUserId_PrevAndNext(\n long tradeId, long userId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the trades where userId = &#63; from the database.\n *\n * @param userId the user ID\n * @throws SystemException if a system exception occurred\n */\n public void removeByUserId(long userId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of trades where userId = &#63;.\n *\n * @param userId the user ID\n * @return the number of matching trades\n * @throws SystemException if a system exception occurred\n */\n public int countByUserId(long userId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Caches the trade in the entity cache if it is enabled.\n *\n * @param trade the trade\n */\n public void cacheResult(com.currencyfair.model.Trade trade);\n\n /**\n * Caches the trades in the entity cache if it is enabled.\n *\n * @param trades the trades\n */\n public void cacheResult(java.util.List<com.currencyfair.model.Trade> trades);\n\n /**\n * Creates a new trade with the primary key. Does not add the trade to the database.\n *\n * @param tradeId the primary key for the new trade\n * @return the new trade\n */\n public com.currencyfair.model.Trade create(long tradeId);\n\n /**\n * Removes the trade with the primary key from the database. Also notifies the appropriate model listeners.\n *\n * @param tradeId the primary key of the trade\n * @return the trade that was removed\n * @throws com.currencyfair.NoSuchTradeException if a trade with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade remove(long tradeId)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n public com.currencyfair.model.Trade updateImpl(\n com.currencyfair.model.Trade trade)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the trade with the primary key or throws a {@link com.currencyfair.NoSuchTradeException} if it could not be found.\n *\n * @param tradeId the primary key of the trade\n * @return the trade\n * @throws com.currencyfair.NoSuchTradeException if a trade with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade findByPrimaryKey(long tradeId)\n throws com.currencyfair.NoSuchTradeException,\n com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the trade with the primary key or returns <code>null</code> if it could not be found.\n *\n * @param tradeId the primary key of the trade\n * @return the trade, or <code>null</code> if a trade with the primary key could not be found\n * @throws SystemException if a system exception occurred\n */\n public com.currencyfair.model.Trade fetchByPrimaryKey(long tradeId)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns all the trades.\n *\n * @return the trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns a range of all the trades.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @return the range of trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findAll(int start,\n int end) throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns an ordered range of all the trades.\n *\n * <p>\n * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.currencyfair.model.impl.TradeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n * </p>\n *\n * @param start the lower bound of the range of trades\n * @param end the upper bound of the range of trades (not inclusive)\n * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n * @return the ordered range of trades\n * @throws SystemException if a system exception occurred\n */\n public java.util.List<com.currencyfair.model.Trade> findAll(int start,\n int end,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Removes all the trades from the database.\n *\n * @throws SystemException if a system exception occurred\n */\n public void removeAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n\n /**\n * Returns the number of trades.\n *\n * @return the number of trades\n * @throws SystemException if a system exception occurred\n */\n public int countAll()\n throws com.liferay.portal.kernel.exception.SystemException;\n}", "title": "" }, { "docid": "e1cf913dac6821a23a71cc92b928e4df", "score": "0.46189368", "text": "public void refreshCurrentOrderTable(){\r\n\t\t\r\n\t\tString columns[] = {\"ITEM\", \"DESCRIPTION\", \"QTY\", \"PRICE\", \"TOTAL\"};\r\n\t\tDefaultTableModel tableModel = new DefaultTableModel(columns, 0);\r\n\t\t\r\n\t\tfor(TradeOrderLine o : tradeOrder.getOrderList()){\r\n\t\t\tString tableCode= o.getItemCode();\r\n\t\t\tString tableDesc = o.getItemDescription();\r\n\t\t\tString tableQty = o.getOrderQty();\r\n\t\t\tString tableItemPrice = o.getItemPrice();\r\n\t\t\tString tableOrderPrice = o.getValueExVat();\r\n\t\t\tObject[] line = {tableCode, tableDesc, tableQty, tableItemPrice, tableOrderPrice};\r\n\t\t\ttableModel.addRow(line);\r\n\t\t}\r\n\t\ttblAccountOrder.setModel(tableModel);\r\n\t\tlblAccountTotalPrice.setText(\"\\u20AC \" + String.valueOf(tradeOrder.getTotalPreRounding()));\r\n\t\tlblAccountTotalExVat.setText(\"\\u20AC \" + tradeOrder.getTotalExVat());\r\n\t\r\n\t\r\n\t\t// Set the column widths for the table\r\n\t\ttblAccountOrder.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\r\n\t\tcolumnModelOrder = tblAccountOrder.getColumnModel();\r\n\t\tcolumnModelOrder.getColumn(0).setPreferredWidth(90);\r\n\t\tcolumnModelOrder.getColumn(1).setPreferredWidth(479);\r\n\t\tcolumnModelOrder.getColumn(2).setPreferredWidth(40);\r\n\t\tcolumnModelOrder.getColumn(3).setPreferredWidth(70);\t\r\n\t\tcolumnModelOrder.getColumn(4).setPreferredWidth(83);\r\n\t}", "title": "" }, { "docid": "ab0c50980d5e1215ef5418dab6cb96c2", "score": "0.46180254", "text": "int updateByPrimaryKey(HPaymentTrade record);", "title": "" }, { "docid": "4804bafaa32de94207c765efecb9015a", "score": "0.46075436", "text": "boolean hasAlipayTradeNum();", "title": "" }, { "docid": "4594fdb9798c0f2fc6fa8ec57deffab0", "score": "0.46047744", "text": "public void setCurrValue()\n {\n if(transactionsHistory.size() != 0)\n {\n Trade tmpTrade = transactionsHistory.get(transactionsHistory.size() - 1);\n this.currValue = tmpTrade.getPrice();\n this.transactionsCycle += tmpTrade.getTotalSum();\n }\n }", "title": "" }, { "docid": "eaf2f4646bb7b17120e70cf457caefa0", "score": "0.45973328", "text": "java.util.List<x0201.oecdStandardAuditFileTaxPT1.Payment> getPaymentList();", "title": "" }, { "docid": "a1172077934a0c3ac5f4e5893fd20d19", "score": "0.4596275", "text": "public List<Trade> getSellTrades() {\n return this.sellOrders ;\n }", "title": "" }, { "docid": "c6f7a0f8b795c868994ff044a663e5d5", "score": "0.45947844", "text": "@Override\n\tpublic void satisfyTrade(TickEvent<Trade> tradeEvent) throws TradeException {\n\t\t\n\t}", "title": "" }, { "docid": "2fc6d60f61852c7528e87becd08407da", "score": "0.45946625", "text": "public abstract List<TradeVO> getAccountData(BotDefinition bot);", "title": "" }, { "docid": "6a14a3a554261f456a65b56e12684113", "score": "0.45910993", "text": "@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"CREATE TABLE \" + TradeInfoColumns.TABEL_NAME + \" (\" + TradeInfoColumns._ID\n + \" INTEGER PRIMARY KEY,\" + TradeInfoColumns.COLUMN_STOCK_ID + \" INTEGER,\"\n + TradeInfoColumns.COLUMN_STOCK_NAME + \" TEXT,\"\n + TradeInfoColumns.COLUMN_TRADE_COUNT + \" INTEGER,\"\n + TradeInfoColumns.COLUMN_TRADE_AMOUNT + \" INTEGER,\"\n + TradeInfoColumns.COLUMN_TRADE_DATE + \" LONG,\"\n + TradeInfoColumns.COLUMN_TRADE_PRICE + \" FLOAT,\"\n + TradeInfoColumns.COLUMN_BALANCE + \" INTEGER\" + \");\");\n\n }", "title": "" }, { "docid": "97e7f52dc82a210cc9c90157279719f4", "score": "0.458269", "text": "boolean hasAlipayTradeAmt();", "title": "" }, { "docid": "8cae20a31622707e02779881ec52c6b3", "score": "0.45777828", "text": "@Override\n public Collection<Trade> getTrades() {\n return _trades;\n }", "title": "" }, { "docid": "9255a54c0e02ff705dabc9fe74a520d1", "score": "0.45773208", "text": "public void addMomentumTrade()\n\t{\n\t\tmomentumTrades++;\n\t}", "title": "" }, { "docid": "ca287013c1af9cc315da74066d93b314", "score": "0.45741993", "text": "io.dstore.engine.procedures.OmModifyCampBundlePricingAd.Response.Row getRow(int index);", "title": "" }, { "docid": "dfbeb727fdc813ded360589fce9d91f7", "score": "0.45700628", "text": "private static ArrayList<Trade> getLocalTrades() {\n ArrayList<Trade> trades = new ArrayList<Trade>();\n try {\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(AlgorithmComparator.class.getClassLoader().getResourceAsStream(\"bitstamp_usd.14.csv\")));\n CSVReader csvReader = new CSVReader(fileReader, ',');\n String[] line;\n while ((line = csvReader.readNext()) != null) {\n Date timestamp = new Date(Long.parseLong(line[0]) * 1000);\n BigMoney price = BigMoney.of(CurrencyUnit.USD, new BigDecimal(line[1]));\n BigDecimal tradableAmount = new BigDecimal(line[2]);\n Trade trade = new Trade(null, tradableAmount, Currencies.BTC, Currencies.USD, price, timestamp, 0);\n trades.add(trade);\n }\n } catch (IOException ioe) {\n Logger.getLogger(AlgorithmComparator.class.getName()).log(Level.SEVERE, \"Unable to load trades from CSV\", ioe);\n }\n\n if (!trades.isEmpty()) {\n // /!\\ Performance patch /!\\\n // Only keeping the last 7 days\n Trade lastTrade = trades.get(trades.size()-1);\n Date firstDateKept = new Date(lastTrade.getTimestamp().getTime() - TimeUnit.DAYS.toMillis(7));\n for (int i = trades.size() - 1; i >= 0; i--) {\n if (trades.get(i).getTimestamp().before(firstDateKept)) {\n trades.remove(i);\n }\n }\n }\n return trades;\n }", "title": "" }, { "docid": "3d5903c21dfe56baab3def64211607d8", "score": "0.45695943", "text": "public List<BinanceTrade> myTrades(BinanceSymbol symbol) throws BinanceApiException {\n return myTrades(symbol, 0L, 500);\n }", "title": "" }, { "docid": "2f7b7831732a0890a63718b047548f23", "score": "0.4566802", "text": "public RpkitBlockHistoryRecord() {\n super(RpkitBlockHistory.RPKIT_BLOCK_HISTORY);\n }", "title": "" }, { "docid": "76031b3b6ef723e61d28f49fac2a7bd6", "score": "0.4563769", "text": "public Integer getTradeStatus() {\n return tradeStatus;\n }", "title": "" }, { "docid": "af37606fc35b0a55776e754fa57f079b", "score": "0.45594698", "text": "public void history(){\n System.out.println(\"\\t\\tHISTORY:\");\n for(String s : readFile(\"stock_transaction_history.txt\"))\n System.out.println(s);\n System.out.println();\n }", "title": "" }, { "docid": "83626681ba2c6a6cc41b7ad967810c8a", "score": "0.45585012", "text": "protected Vector<Vector<Object>> getOrderLineData(MiniTable orderLineTable, StringBuffer sqlPrep){\n\t\t/**\n\t\t * Carga los datos de las ordenes de Venta \n\t\t * \n\t\t * \n\t\t */\n\t\tVector<Vector<Object>> data = new Vector<Vector<Object>>();\n\t\t\n\t\t// role security\n\t\t//sqlPrep = new StringBuffer( MRole.getDefault(Env.getCtx(), false).addAccessSQL( sqlPrep.toString(), \"ord\", MRole.SQL_FULLYQUALIFIED, MRole.SQL_RO ) );\n\t\t\n\t\tlog.fine(\"LoadOrderLineSQL=\" + sqlPrep.toString());\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tPreparedStatement pstmt = DB.prepareStatement(sqlPrep.toString(), null);\n\t\t\tResultSet rs = pstmt.executeQuery();\n\t\t\t//int seqNo = 0;\n\t\t\tint column = 1;\n\t\t\tBigDecimal rate = Env.ZERO;\n\t\t\tBigDecimal qty = Env.ZERO;\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tcolumn = 1;\n\t\t\t\tVector<Object> line = new Vector<Object>();\n\t\t\t\tline.add(new Boolean(false)); \t// 0-Selection\n\t\t\t\tKeyNamePair wr = new KeyNamePair(rs.getInt(column++), rs.getString(column++));\n\t\t\t\tline.add(wr); \t\t\t\t\t// 1-Warehouse\n\t\t\t\tKeyNamePair lo = new KeyNamePair(rs.getInt(column++), rs.getString(column++));\n\t\t\t\tline.add(lo);\t\t\t\t \t\t// 2-DocumentNo\n\t\t\t\tKeyNamePair pr = new KeyNamePair(rs.getInt(column++), rs.getString(column++));\n\t\t\t\tline.add(pr);\t\t\t\t \t\t// 3-Product\n\t\t\t\tKeyNamePair uo = new KeyNamePair(rs.getInt(column++), rs.getString(column++));\n\t\t\t\tline.add(uo);\t\t\t\t \t\t// 4-Unit Conversion\n\t\t\t\tline.add(rs.getBigDecimal(column++)); \t// 5-QtyEntered\n\t\t\t\tKeyNamePair uop = new KeyNamePair(rs.getInt(column++), rs.getString(column++));\n\t\t\t\tline.add(uop);\t\t\t\t \t\t// 6-Unit Product\n\t\t\t\tline.add(rs.getBigDecimal(column++)); \t// 7-QtyOnHand\n\t\t\t\tline.add(rs.getBigDecimal(column++)); \t// 8-QtyOrdered\n\t\t\t\tline.add(rs.getBigDecimal(column++)); \t// 9-QtyReserved\n\t\t\t\tline.add(rs.getBigDecimal(column++)); \t// 10-QtyInvoiced\n\t\t\t\tline.add(rs.getBigDecimal(column++));\t// 11-QtyDelivered\n\t\t\t\t//2014-01-29 Carlos Parada Add QtyReturned\n\t\t\t\tline.add(rs.getBigDecimal(column++));\t// 12-QtyDelivered\n\t\t\t\tline.add(rs.getBigDecimal(column++));\t// 13-QtyLoc\n\t\t\t\t\n\t\t\t\tqty = rs.getBigDecimal(column++);\n\t\t\t\t\n\t\t\t\tline.add(qty);\t\t\t\t\t\t\t// 14-Qty\n\t\t\t\trate = MUOMConversion.getProductRateTo(Env.getCtx(), pr.getKey(), m_Work_UOM_ID);\n\t\t\t\tif(rate != null){\n\t\t\t\t\tline.add(qty.multiply(rate));\t\t// 15-Qty Set\n\t\t\t\t\tdata.add(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\trs.close();\n\t\t\tpstmt.close();\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tlog.log(Level.SEVERE, sqlPrep.toString(), e);\n\t\t}\n\t\t\n\t\treturn data;\n\t}", "title": "" }, { "docid": "5f6fef6ce52bcec92ffd7a1f242859a1", "score": "0.45573303", "text": "long getTradeId();", "title": "" }, { "docid": "5f6fef6ce52bcec92ffd7a1f242859a1", "score": "0.45573303", "text": "long getTradeId();", "title": "" }, { "docid": "1f15b1dd8f7fdb13606ee8c6abf95dd3", "score": "0.45498064", "text": "public com.currencyfair.model.Trade fetchByPrimaryKey(long tradeId)\n throws com.liferay.portal.kernel.exception.SystemException;", "title": "" } ]
dfd4fe2978bc00062c9c641af653e221
check for IN case
[ { "docid": "6d9c4e7a94d3bf17bdbea9babfc7b7bd", "score": "0.0", "text": "private static void ruleFour(query initialQuery, Node root) {\n if(initialQuery.relations.size() == 1){\n Node joinNode = root;\n\n //locate join node\n while(!joinNode.getName().contentEquals(\"JOIN\")){\n if(joinNode.getLeftChild() != null){\n joinNode = joinNode.getLeftChild();\n }\n else{\n //no join node found\n break;\n }\n }\n\n //only proceed if join node found\n if(joinNode.getName().contentEquals(\"JOIN\")){\n if(!joinNode.getParent().getName().contentEquals(\"SELECT\")){\n //do nothing\n }\n else{\n //check for all of the select nodes available\n Node selectNode = joinNode.getParent();\n\n while(selectNode.getName().contentEquals(\"SELECT\")){\n //check to see if the condition represents a join condition\n String condition = selectNode.getData().get(0).getLeft();\n\n //if it's not a OR statement\n if(!condition.contains(\"OR\")){\n //if contains a equal operator\n if(condition.contains(\"=\")){\n //if both attributes on the left and on the right are the same\n String leftAttr = condition.substring(1,condition.indexOf(\"=\"));\n leftAttr = leftAttr.substring(leftAttr.indexOf(\".\")+1);\n leftAttr = leftAttr.replaceAll(\" \", \"\");\n\n String rightAttr = condition.substring(condition.indexOf(\"=\")+1);\n if(rightAttr.contains(leftAttr)){\n //then it's a join condition\n\n //combine them\n String data = joinNode.getParent().getData().get(0).getLeft();\n joinNode.getData().get(0).setLeft(data);\n\n joinNode.getParent().getParent().setLeftChild(joinNode);\n joinNode.setParent(joinNode.getParent().getParent());\n }\n }\n }\n selectNode = selectNode.getParent();\n }\n }\n }\n }\n //Check if the number of relations is greater than one\n if(initialQuery.relations.size() > 1){\n Node joinNode = root;\n\n //get the number of relations\n int relationSize = initialQuery.relations.size();\n\n for(int i = 1; i < relationSize; i++){\n //locate join node\n while(!joinNode.getName().contentEquals(\"JOIN\")){\n joinNode = joinNode.getLeftChild();\n }\n\n if(!joinNode.getParent().getName().contentEquals(\"SELECT\")){\n //do nothing\n }\n else{\n //check for all of the select nodes available\n Node selectNode = joinNode.getParent();\n\n while(selectNode.getName().contentEquals(\"SELECT\")){\n //check to see if the condition represents a join condition\n String condition = selectNode.getData().get(0).getLeft();\n\n //if it's not a OR statement\n if(!condition.contains(\"OR\")){\n //if contains a equal operator\n if(condition.contains(\"=\")){\n //if both attributes on the left and on the right are the same\n String leftAttr = condition.substring(1,condition.indexOf(\"=\"));\n leftAttr = leftAttr.substring(leftAttr.indexOf(\".\")+1);\n leftAttr = leftAttr.replaceAll(\" \", \"\");\n\n String rightAttr = condition.substring(condition.indexOf(\"=\")+1);\n if(rightAttr.contains(leftAttr)){\n //then it's a join condition\n\n //combine them\n String data = joinNode.getParent().getData().get(0).getLeft();\n joinNode.getData().get(0).setLeft(data);\n\n joinNode.getParent().getParent().setLeftChild(joinNode);\n joinNode.setParent(joinNode.getParent().getParent());\n }\n }\n }\n selectNode = selectNode.getParent();\n }\n }\n //go to the next join node\n joinNode = joinNode.getLeftChild();\n }\n }\n //else no optimization need to be done\n //check for subquery\n if(initialQuery.subquery != null){\n //get the subquery root\n Node subqueryNode = root;\n while(!subqueryNode.getName().contentEquals(\"JOIN\")){\n subqueryNode = subqueryNode.getLeftChild();\n }\n ruleFour(initialQuery.subquery, subqueryNode.getRightChild());\n }\n }", "title": "" } ]
[ { "docid": "d2a5aac65e67e283626583c524858996", "score": "0.6273333", "text": "public boolean isIn(String val, String[] list) {\r\n\t\tfor (String e : list) {\r\n\t\t\tif (e.equals(val))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "9aea9596fb681f738c0e30fedb2a7612", "score": "0.6090662", "text": "public boolean isIn(Object ob) {\n\t\tboolean ReturnValue = false;\n\t\tfor(int i =0; i<arry.length;i++){\n\t\t\tif(arry[i]==ob){\n\t\t\t\tReturnValue = true;\n\t\t\t}\n\t\t}\n\t\treturn ReturnValue;\n\t}", "title": "" }, { "docid": "e221ff18423965546d5e653501d7e669", "score": "0.59564394", "text": "public boolean in( String name ) {\n\treturn this.set.contains( name );\n }", "title": "" }, { "docid": "425090aa646610b24d2808fa8af766df", "score": "0.58194274", "text": "public final void mIN() throws RecognitionException {\n try {\n int _type = IN;\n // XQuery.g:272:5: ( 'in' )\n // XQuery.g:272:7: 'in'\n {\n match(\"in\"); \n\n\n\n }\n\n state.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "6c9faef2ddc54db42c8d7bafb63b64f8", "score": "0.5817294", "text": "@Override\r\n public boolean supportsMultiValueInClause()\r\n {\n return false;\r\n }", "title": "" }, { "docid": "5a340078eff8cc27e164f458bb309bdf", "score": "0.5749205", "text": "static boolean isIn( int find, int[] values )\n {\n if( values[0] == -1 )\n {\n return true;\n }\n else\n {\n for( int i=0; i<values.length; i++ )\n {\n if( find == values[i] )\n return true;\n }\n return false;\n }\n }", "title": "" }, { "docid": "17586847d9d4b5d835ccea9136bf766f", "score": "0.5712056", "text": "boolean validIN(String b, String n){\n\t String[] paty = new String[] {\n\t \"^4[0-9]+\", \n\t \"(^5[1-5]{1}[0-9]+)|(^2([3-6]|(2([3-9]|(2[1-9]))|7([0-1]|(20))))[0-9]+)\",\n\t \"^((50)|((6))|(5[5-8]))[0-9]+\",\n\t \"^(35)(([3-8][0-9])|(2[8-9]))[0-9]+\",\n\t \"(^(6011)[0-9]+)|(^(65)[0-9]+)|(^((64)[4-9])[0-9]+)|(^((622)(([2-8])|(1(([3-9])|(2)[6-9]))|(9(([0-1])|(2[0-5])))))[0-9]+)\",\n\t \"^((34)|(37))[0-9]+\",\n\t \"^((6304)|(6706)|(6771)|(6709))[0-9]+\",\n\t \"^(636)[0-9]+\",\n\t };\n\t if (b.equals(\"Maestro\") && Pattern.matches(paty[2], n)) {\n\t boolean matchesAnythingElse = false;\n\t for (int i =0; i < paty.length; i++) {\n\t if (i == 2) { continue; }\n\t matchesAnythingElse = matchesAnythingElse || Pattern.matches(paty[i], n); \n\t }\n\t return !matchesAnythingElse;\n\t }\n\t for (int i=0; i<8; i++)\n\t if (b.equals(lista[i]) && Pattern.matches(paty[i], n)) return true;\n\t return false;\n\t}", "title": "" }, { "docid": "2dc399fee0e7552361068f6badff98d9", "score": "0.5626864", "text": "private boolean isIn(Cell cell) {\n return cell != null && isIn(cell.r, cell.c);\n }", "title": "" }, { "docid": "acea43628e03bfa5099abd22c8a0af4d", "score": "0.5600774", "text": "public boolean isIn (/*@non_null@*/ String s) {\n\treturn getIndex (s) >= 0;\n }", "title": "" }, { "docid": "221b829f8104276c0d6fa2288dc5be04", "score": "0.55801076", "text": "@Test\n\tpublic void testCaseInsensitivity() {\n\t\tboolean input_UC = CoffeeMaker2.check_input(\"S\");\n\t\tboolean input_LC = CoffeeMaker2.check_input(\"s\");\n\n\t\tassertEquals(true, input_UC & input_LC);\n\t}", "title": "" }, { "docid": "4e9320bf1c8a662e92aa9785c1f60c93", "score": "0.556755", "text": "public boolean contains(String vin){\n for(int i =1; i < pq.length; i++){\n if(pq[i].getVIN().equals(vin)){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "3fcce420deeeb60cc9180947dc7e0856", "score": "0.55443615", "text": "public boolean inProductList(String input) {\n boolean outputCase = false;\n for (Product product : products) {\n if (product.getName().equals(input)) {\n outputCase = true;\n }\n }\n return outputCase;\n }", "title": "" }, { "docid": "24432ab0891c888922597f844be8d319", "score": "0.5510526", "text": "@Override\r\n\tpublic <T> In<T> in(Expression<? extends T> expression) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "4ff7b273efe22fcbce84a17ade4758da", "score": "0.5500775", "text": "private boolean isInTagEnum(String tag) {\n\t\ttry {\n\t\t\ttagNames.valueOf(tag);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn false;\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "28bc109f90f76bf84c9355b6951b1734", "score": "0.5494965", "text": "@Test\n public void testInValueList() {\n String inputExpression = \"x / 4 in ( 10+y, true, 80, someVar )\";\n BaseNode inNode = parse( inputExpression );\n\n assertThat( inNode, is( instanceOf( InNode.class ) ) );\n assertThat( inNode.getResultType(), is( BuiltInType.BOOLEAN ) );\n assertThat( inNode.getText(), is( inputExpression ) );\n\n InNode in = (InNode) inNode;\n assertThat( in.getValue(), is( instanceOf( InfixOpNode.class ) ) );\n assertThat( in.getValue().getText(), is( \"x / 4\" ) );\n\n assertThat( in.getExprs(), is( instanceOf( ListNode.class ) ) );\n assertThat( in.getExprs().getText(), is( \"10+y, true, 80, someVar\" ) );\n\n ListNode list = (ListNode) in.getExprs();\n assertThat( list.getElements().get( 0 ), is( instanceOf( InfixOpNode.class ) ) );\n assertThat( list.getElements().get( 1 ), is( instanceOf( BooleanNode.class ) ) );\n assertThat( list.getElements().get( 2 ), is( instanceOf( NumberNode.class ) ) );\n assertThat( list.getElements().get( 3 ), is( instanceOf( NameRefNode.class ) ) );\n }", "title": "" }, { "docid": "35f89ec18a1505b27d2964ce8210ae18", "score": "0.54874015", "text": "@Override\n public boolean isInList(ArrayList<String> list, String s){\n boolean inList = false;\n for (String x:list) {\n if (x.equals(s)) {\n inList = true;\n break;\n }\n }\n return inList;\n }", "title": "" }, { "docid": "e52edc52d1830d2b01ab770bdf029e2c", "score": "0.54831296", "text": "public final void mIN() throws RecognitionException {\n try {\n int _type = IN;\n // /home/etirelli/workspace/jboss/jbossrules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1724:6: ( 'in' )\n // /home/etirelli/workspace/jboss/jbossrules/drools-compiler/src/main/resources/org/drools/lang/DRL.g:1724:6: 'in'\n {\n match(\"in\"); if (failed) return ;\n \n \n }\n \n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "8dbeeea8694223c8f3fd1b33bff9c197", "score": "0.54660577", "text": "boolean hasUin();", "title": "" }, { "docid": "0bb8a5716b3c44316c32e7cc57434a92", "score": "0.5460299", "text": "@Override\n public boolean contains(Key obj) {\n\n VerseRange thatRange = toVerseRange(getVersification(), obj);\n\n Iterator<VerseRange> it = rangeIterator(RestrictionType.NONE);\n while (it.hasNext()) {\n VerseRange thisRange = it.next();\n if (thisRange.contains(thatRange)) {\n return true;\n }\n }\n\n // If it is not a Verse or a VerseRange then it's not here,\n // this also copes with the searches failing.\n return false;\n }", "title": "" }, { "docid": "443e80412540baceb3527fd718a6ace5", "score": "0.5440004", "text": "public static boolean isInList(String key, String string) {\n\n boolean found = false;\n\n if (string != null && key != null) {\n String[] items = string.split(\",\");\n for (String item : items) {\n if (item != null & item.equals(key)) {\n found = true;\n break;\n }\n }\n }\n\n return found;\n }", "title": "" }, { "docid": "ab4a63fcc3f6e8e4dd12d4f54121fd19", "score": "0.54325944", "text": "T visitInValueSet(InValueSet elm, C context);", "title": "" }, { "docid": "8412ce54da952bf34cfc57154c7c4b8a", "score": "0.5431071", "text": "@Override\r\n\tpublic void checkIn() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9566fc718b39053b29b460c18f865cd6", "score": "0.5423686", "text": "private boolean isInSet(Token token, TokenType[] set) {\n for(TokenType type : set) {\n if(token.equals(type) == true) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "fb0b60021ccfbb15d7fee2ace45d18ce", "score": "0.5405127", "text": "public String contains(char inval)\n {\n char[] a = { '\\'' };\n for (int i = 0; i < a.length; i++)\n {\n if (inval == a[i])\n {\n return new String(\"'\" + inval);\n }\n }\n return new String(\"\" + inval);\n }", "title": "" }, { "docid": "6be6ddc4e86b4aec9f1804c93cbdd91c", "score": "0.5397928", "text": "@Override\n public boolean in(Code code, ValueSetInfo valueSet) {\n requireNonNull(code, \"code can not be null when using 'expand'\");\n requireNonNull(valueSet, \"valueSet can not be null when using 'expand'\");\n\n Iterable<Code> codes = this.expand(valueSet);\n for (Code c : codes) {\n if (c.getCode().equals(code.getCode()) && c.getSystem().equals(code.getSystem())) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "59315feaa3a32f38ce2cf18ee357eea8", "score": "0.5394683", "text": "public final void mIN() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = IN;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\Sriharsha\\\\Documents\\\\PL\\\\proj2-svemugun\\\\ProjLang.g:10:5: ( 'in' )\r\n\t\t\t// C:\\\\Users\\\\Sriharsha\\\\Documents\\\\PL\\\\proj2-svemugun\\\\ProjLang.g:10:7: 'in'\r\n\t\t\t{\r\n\t\t\tmatch(\"in\"); \r\n\r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0469871f93c5253228c02219c61c1078", "score": "0.5374226", "text": "@Override\n\tpublic void visit(InExpression inExpression) {\n\t\t\n\t}", "title": "" }, { "docid": "8a6619ee26c9379c83998032f7e7d4ba", "score": "0.53714985", "text": "private boolean checkIfInList(List<Integer> list, int num) {\n\t\tfor (Integer value : list) {\n\t\t\tif (value == num) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fa4af0998541065f7e8367bbafe5a84e", "score": "0.5358139", "text": "@Override\n\tpublic void visit(InExpression arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "1797b22d72f74306e0e995d1352f1f77", "score": "0.5357532", "text": "public boolean isIn(double val, double[] list) {\r\n\t\tfor (double e : list) {\r\n\t\t\tif (e == val)\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "19236e27cecbdee645be5bb2628c61b2", "score": "0.53528327", "text": "public static void testInList() {\r\n\t\tString [] quitWords = {\"bye\",\"goodbye\",\"quit\", \"bye\"};\t\t\r\n\t\tint index = Eliza.inList( \"bye\", quitWords);\r\n\t\tif ( index >= 0) {\r\n\t\t\tSystem.out.println(\"testInList 1 passed.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"testInList 1 failed.\");\r\n\t\t}\r\n\r\n\t\tindex = Eliza.inList( \"seeya\", quitWords);\r\n\t\tif ( index == -1) {\r\n\t\t\tSystem.out.println(\"testInList 2 passed.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"testInList 2 failed.\");\r\n\t\t}\r\n\r\n\t\t//test suggestion: \r\n\t\t//what should happen if \"good\" is looked for within the quitWords\r\n\t\t//above?\r\n\t\tindex = Eliza.inList(\"good\", quitWords);\r\n\t\tif ( index == -1) {\r\n\t\t\tSystem.out.println(\"testInList 3 passed.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"testInList 3 failed.\");\r\n\t\t}\r\n\r\n\t\t//Which index is returned if a word is \r\n\t\t//listed more than once in the list?\r\n\t\t//Should return 0.\r\n\t\tindex = Eliza.inList( \"bye\", quitWords);\r\n\t\tif ( index != 0) {\r\n\t\t\tSystem.out.println(\"testInList 4 failed.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"testInList 4 passed.\");\r\n\t\t}\r\n\t\t//can you think of other tests?\r\n\t}", "title": "" }, { "docid": "65cffcd2891e94e9f75b83cf1a9420d1", "score": "0.5340662", "text": "public final void mIN() throws RecognitionException {\n try {\n int _type = IN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /home/arv/workspace/master/meteor/meteor-meteor/src/main/java/eu/stratosphere/meteor/Meteor.g:374:5: ( 'in' )\n // /home/arv/workspace/master/meteor/meteor-meteor/src/main/java/eu/stratosphere/meteor/Meteor.g:374:7: 'in'\n {\n match(\"in\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "32d7550c7da7e84110b2614ac3e62136", "score": "0.53240687", "text": "protected boolean dialectSupportsEmptyInList(String testDescription) {\n \t\tif ( ! getDialect().supportsEmptyInList() ) {\n \t\t\treportSkip( \"Dialect does not support SQL empty in list : x in ()\", testDescription );\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "title": "" }, { "docid": "336f73fc08e0bfceb2911d007c16adaf", "score": "0.5290669", "text": "public boolean GEN_INLIST(Object value, Object list, Object regex) {\n if (value == null)\n return false;\n\n String l = GEN_TO_STRING(list);\n if (l.isEmpty())\n return false;\n\n if (!GEN_MATCH(value, regex))\n return false;\n\n // apparently Genedits right-trim the incoming value in their MATCH method, in C++ the value is a pointer, so it is trimmed in INLIST as a side effect!\n String val = trimRight(GEN_TO_STRING(value));\n if (val.isEmpty())\n return true;\n\n return isValInList(val, l);\n }", "title": "" }, { "docid": "5f64b3fa38ddc59f22f77b6a6d8a59f4", "score": "0.5280889", "text": "private boolean contains(ArrayList<Literal> ls, Literal l){\n\t\tfor(int i = 0; i < ls.size(); i++){\n\t\t\tif(ls.get(i).getId().equals(l.getId()) && ls.get(i).getState() == l.getState())\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bff3015356cb2c83b64f91b3f48265f0", "score": "0.52727646", "text": "public static boolean isInDictionary(String input, ArrayList<String> dic) {\n\t\tif (dic.indexOf(input) > -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "96a5259e5930c111eb8549c794bcef39", "score": "0.5271801", "text": "public boolean GEN_INLIST(Object value, Object list) {\n String val = GEN_TO_STRING(value);\n String l = GEN_TO_STRING(list);\n\n // special case for the list\n if (l == null || l.isEmpty())\n return false;\n\n // apparently Genedits trim the incoming value (see SEER*Utils Squish issue #49)\n if (val != null)\n val = val.trim();\n\n // this make the assumption that the empty value in the list will always be at the end...\n if (val == null || val.isEmpty())\n return l.trim().isEmpty() || l.trim().endsWith(\",\");\n\n return isValInList(val, l);\n }", "title": "" }, { "docid": "b44f1d033b405bc172787af3a507bef3", "score": "0.52676773", "text": "private boolean isInArray(String[] arr, String targ) {\n\t\t String[] arr2 = new String[arr.length];\n\t\t System.arraycopy(arr,0,arr2,0,arr.length);\n\t\t //first, sort arr\n\t\t Arrays.sort(arr2, String.CASE_INSENSITIVE_ORDER);\n\t\t int loc = Arrays.binarySearch(arr2, targ, String.CASE_INSENSITIVE_ORDER);\n\t\t if (loc>=0) return true;\n\t\t else return false;\n\t\t \n\t }", "title": "" }, { "docid": "8ee14dbed1a5e9dc303caad4ea000ccc", "score": "0.5259555", "text": "boolean hasValuesInAnyValues();", "title": "" }, { "docid": "310a27dee3cea8a654500590939fefa7", "score": "0.524362", "text": "boolean hasSeparatorInIdentVals();", "title": "" }, { "docid": "e7daeaec9454066324929b59f1b450a2", "score": "0.52375287", "text": "private static String in(String field, Object[] value) {\n if (value == null) {\n return \"\";\n }\n return \"(\" + field + \" \" + COMPARISON_OPERATOR_IN + \" \"\n + Arrays.stream(value).map(QueryMethod::toString).collect(Collectors.joining(\",\"))\n + \")\";\n }", "title": "" }, { "docid": "4af640a6553ac79ffa902ab40de8319d", "score": "0.5226916", "text": "protected boolean isInList(String text, ListModel model) {\n\t\tboolean retVal = false;\n\t\t\n\t\tfor(int i = 0; i< model.getSize(); i++){\n\t\t\tif (model.getElementAt(i).toString().equals(text)){\n\t\t\t\tretVal = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn retVal;\n\t}", "title": "" }, { "docid": "a1664654936fbc162ae1b6e7babcd6dc", "score": "0.5209942", "text": "@Test\r\n public void testINCHI_OPTIONLvalueOfIgnoreCase() throws Exception {\r\n String input = \"DeRP\";\r\n INCHI_OPTION output = INCHI_OPTION.valueOfIgnoreCase(input);\r\n assertEquals(null, output);\r\n }", "title": "" }, { "docid": "463c9f324622da3a17b056bf5da702ad", "score": "0.5209177", "text": "public ArrayList contains(Name ident, ExprList args){\n String params = convertNames(args);\n ArrayList results = new ArrayList();\n results.add(contains(ident.toString() + params));\n results.add(ident.toString() + params);\n return results;\n \n }", "title": "" }, { "docid": "2f339332934401787796447cc3afad50", "score": "0.52008", "text": "@Test\n\tpublic void testInvalidCaseInsensitivity() {\n\t\tboolean input_UC = CoffeeMaker2.check_input(\"z\");\n\t\tboolean input_LC = CoffeeMaker2.check_input(\"Z\");\n\n\t\tassertEquals(false, input_UC & input_LC);\n\t}", "title": "" }, { "docid": "6fcad88eb66f011099849a20770eaf93", "score": "0.51879954", "text": "T visitAnyInValueSet(AnyInValueSet elm, C context);", "title": "" }, { "docid": "7049447ac336e1ddcfbb1c16419cbb70", "score": "0.5177877", "text": "public boolean isIn(int n){\n\t\t\n\t\tif(n < 0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(this.boundValue == 0)\n\t\t{\n\t\t\t// Return true if cofin, false if finite\n\t\t\treturn this.complement;\n\t\t}\n\t\t\n\t\tboolean inFiniteRep = this.finite.contains(n);\n\t\t\n\t\treturn this.complement ? !inFiniteRep : inFiniteRep;\n\t}", "title": "" }, { "docid": "a57841b8bb367f13dcbc1e911ec6da48", "score": "0.5170854", "text": "public final void mIn() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = In;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// grammars/Lua.g:80:4: ( 'in' )\n\t\t\t// grammars/Lua.g:80:6: 'in'\n\t\t\t{\n\t\t\tmatch(\"in\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "842a52843b5a927263a22f97a8e674ce", "score": "0.5158271", "text": "private boolean isInTheList(String id, List<Reference> list) {\n if (list == null) {\n return false;\n }\n for (Reference r : list) {\n if (id.equals(r.getFieldValue(FType.referenceId).trim())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "254a1ad7355dfa67b2fb8a2c80ac4b75", "score": "0.51529133", "text": "@Override\n public void visit(InExpression arg0) {\n\n }", "title": "" }, { "docid": "7470346eea970522d5c87dd0999a0439", "score": "0.5138732", "text": "@Test\r\n\tpublic void testContains()\r\n\t{\n\t\tassertThat(intList.contains(0), is(true));\r\n\t\tassertThat(stringList.contains(\"a\"), is(true));\r\n\t\tassertThat(intList.contains(8), is(true));\r\n\t\tassertThat(stringList.contains(\"e\"), is(true));\r\n\t\tassertThat(intList.contains(99), is(false));\r\n\t\tassertThat(stringList.contains(\"z\"), is(false));\r\n\t\tassertThat(emptyList.contains(null), is(false));\r\n\t\temptyList.add(null);\r\n\t\tassertThat(emptyList.contains(null), is(true));\r\n\t}", "title": "" }, { "docid": "afbb58e52e169bfdfdddffa31a29dde5", "score": "0.51354957", "text": "@In Boolean filter();", "title": "" }, { "docid": "6a9ccbae43961b5ef1aa13dc7afab2e3", "score": "0.5129697", "text": "private static Predicate createIn(Expression<?> propertyPath, List<?> arguments, EntityManager manager) {\n return propertyPath.in(arguments);\n }", "title": "" }, { "docid": "0c99b93462c1f9b544b4450df8dba591", "score": "0.5119658", "text": "public boolean isInInventory(Book book){\n\t\tfor(int i = 0; i < bookList.size(); i++){\n\t\t\tif(book.getTitle().equalsIgnoreCase(bookList.get(i).getTitle())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "72a5564af78c1969e53bae55dde7b4bb", "score": "0.51112485", "text": "boolean contains(int val);", "title": "" }, { "docid": "f85d4683ddb97f86c5f5f73268b11a99", "score": "0.5102558", "text": "public boolean isInKey(int value){\n boolean b=false;\n //System.out.println(\"value: \"+value);\n for(int i=0; i<10; i++){\n //System.out.println(Character.toString(substitution_key.charAt(i))+\" : \"+Integer.toString(value));\n if((int)(substitution_key.charAt(i))==value){\n b=true;\n }\n }\n return b;\n }", "title": "" }, { "docid": "8c708f7aef0b5e923a71400c9e9c56fa", "score": "0.5098929", "text": "private boolean isIn(Location loc, ArrayList<Location> locs)\n {\n for(int i = 0; i < locs.size(); i++)\n {\n if(loc.equals(locs.get(i)))\n {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1015adf19971d6c70de99f3e5d69cc42", "score": "0.5097539", "text": "public final void mIn() throws RecognitionException {\n try {\n int _type = In;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // src/grammar/TL.g:203:10: ( 'in' )\n // src/grammar/TL.g:203:12: 'in'\n {\n match(\"in\"); \n\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "87c800bca62dbc61c47f8c51dc35bf8d", "score": "0.509731", "text": "boolean contains(int o) ;", "title": "" }, { "docid": "6d26bb10d7cad8dddee9257e0b37c992", "score": "0.5083379", "text": "@Override\r\n\tpublic boolean arco(A a) {\n\t\treturn M.get(a.getIn()).contains(a);\r\n\t}", "title": "" }, { "docid": "ebfb85111430703eba33400398552f92", "score": "0.50774884", "text": "private boolean isInList(String text) {\n for (int index = 0; index < list.size(); index++) {\n if (list.get(index).getSymbol().equals(text)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "9b98d58bfa6207051645c47ce4be9da2", "score": "0.5068472", "text": "private boolean seen(ObservableList<String> inComboBox, String name) {\n for (int i=0; i<inComboBox.size(); i++) {\n if (name.equals(inComboBox.get(i))) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "55d61bb9475f7c3583b6e9a1a0bdb235", "score": "0.50568974", "text": "static public boolean enumerationForValueExists(int aVal)\n{\n FirstInfHighLevelUnit val;\n val = enumerations.get(new Integer(aVal));\n if(val == null)\n return false;\n return true;\n}", "title": "" }, { "docid": "5fe5939279f499ea6b2da47c2e9e3881", "score": "0.50530726", "text": "public static boolean isValidUnit(String in){\n for(int i=0; i<units.length;i++){\n if(in.equalsIgnoreCase(units[i])){\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "6c3fb03ca34ec4fad7efcd371f31ebfd", "score": "0.50425464", "text": "public static Restriction in(String field, List values) {\n return new InValuesRestriction(field, values);\n }", "title": "" }, { "docid": "bd8c28fa0162b6d012541b1539499719", "score": "0.50356716", "text": "private boolean isContainedIn(String item) {\n String[] listItems = list.getItems();\n Arrays.sort(listItems, String.CASE_INSENSITIVE_ORDER);\n int index =\n Arrays.binarySearch(listItems, item,\n String.CASE_INSENSITIVE_ORDER);\n return index >= 0;\n }", "title": "" }, { "docid": "45e1c7d7824706c1bc22062174e8d737", "score": "0.5020885", "text": "public void testInLiterals() {\n try {\n EntityManager em = getEM();\n EntityTransaction tx = em.getTransaction();\n try {\n tx.begin();\n Person p1 = new Person(101, \"Fred\", \"Flintstone\", \"fred.flintstone@jpox.com\");\n em.persist(p1);\n Person p2 = new Person(102, \"Barney\", \"Rubble\", \"barney.rubble@jpox.com\");\n em.persist(p2);\n Person p3 = new Person(103, \"Pebbles\", \"Flintstone\", \"pebbles.flintstone@jpox.com\");\n em.persist(p3);\n em.flush();\n tx.commit();\n tx.begin();\n List result = em.createQuery(\"SELECT DISTINCT Object(p) FROM \" + Person.class.getName() + \" p \" + \"WHERE p.firstName IN ('Fred', 'Pebbles')\").getResultList();\n assertEquals(2, result.size());\n tx.commit();\n tx.begin();\n result = em.createQuery(\"SELECT DISTINCT Object(p) FROM \" + Person.class.getName() + \" p \" + \"WHERE p.firstName NOT IN ('Fred', 'Pebbles')\").getResultList();\n assertEquals(1, result.size());\n tx.commit();\n } catch (Exception e) {\n LOG.error(\"Exception in test\", e);\n fail(\"Exception thrown generating query with IN syntax for literals \" + e.getMessage());\n } finally {\n if (tx.isActive()) {\n tx.rollback();\n }\n em.close();\n }\n } finally {\n clean(Person.class);\n }\n }", "title": "" }, { "docid": "bffdf097072f1cf083b95d83b7bfc714", "score": "0.5017985", "text": "public static <T> void inSet(T arg, Set<? extends T> set, String argName) {\n\t\tif (!set.contains(arg)) {\n\t\t\tthrowBinary(arg, set, argName, EXPECT_IN_SET);\n\t\t}\n\t}", "title": "" }, { "docid": "4f275265690e3aa894c4edba05e1e57f", "score": "0.5015011", "text": "public boolean contains(Object o)\r\n/* 199: */ {\r\n/* 200:230 */ return this.allNames.contains(o.toString());\r\n/* 201: */ }", "title": "" }, { "docid": "b4e5a26d325669a4178ee5a1cd3d227d", "score": "0.5008202", "text": "public boolean isInState(SystemState... states){\r\n\t\tboolean found = isOnList(states);\r\n\t\t\r\n\t\treturn found;\r\n\t}", "title": "" }, { "docid": "1119d1afd566ea7d8a10b2b874adf01c", "score": "0.5008037", "text": "boolean hasOf();", "title": "" }, { "docid": "6b7643939c1b77f9e9c46ccd046cd19f", "score": "0.50054795", "text": "public boolean contains(String key){\n \t\treturn this.values.containsKey(key.toLowerCase());\n \t}", "title": "" }, { "docid": "8091191084a13cae79b5dda465feba4f", "score": "0.500119", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Inspeccion)) {\n return false;\n }\n return id != null && id.equals(((Inspeccion) o).id);\n }", "title": "" }, { "docid": "a6f259cc7b01eb441a51971247f5355f", "score": "0.49970645", "text": "public boolean myCompare(String in) {\n \tif(in.toLowerCase().equals(myTitle.toLowerCase())|| in.toLowerCase().equals(myGenre.toLowerCase()) \n \t\t\t|| in.toLowerCase().equals(myAuthor.toLowerCase())) {\n \t\treturn true;\n \t}\n \telse\n \t{\n \t\tfor(int i = 0; i < myTags.size(); i++) {\n \t\t\tif(myTags.get(i).contains(in)) {\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t}\n\t\treturn false;\n }", "title": "" }, { "docid": "d3f142c34290d58988e2eb0493a00528", "score": "0.49912947", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Institucion)) {\n return false;\n }\n Institucion other = (Institucion) object;\n if ((this.insId == null && other.insId != null) || (this.insId != null && !this.insId.equals(other.insId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "74c7683504be5ebf65484b8d69f79711", "score": "0.49906373", "text": "private boolean check(BitSet calendar, int start, int end) {\n BitSet subset = calendar.get(start, end);\n if (0 == subset.cardinality() ){\n //if (0 == subset.cardinality() || \"{0}\".equals(subset.toString())) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "2d831beee7e3ea2138df472fa90f813f", "score": "0.4988117", "text": "public void testIsNullOrLargeInOperation()\r\n {\r\n createAddress(\"abc\", \"def\");\r\n createAddress(\"aabbcc\", null);\r\n createAddress(\"xyz\", \"def\");\r\n createAddress(\"xxyyzz\", null);\r\n\r\n Set<String> cities = createSet(200);\r\n Set<String> states = createSet(300);\r\n\r\n cities.add(\"abc\");\r\n cities.add(\"aabbcc\");\r\n states.add(\"def\");\r\n\r\n Operation addressOperation = AddressFinder.city().in(cities);\r\n addressOperation = addressOperation.and(AddressFinder.state().isNull().or(AddressFinder.state().in(states)));\r\n\r\n AddressList addressList = AddressFinder.findMany(addressOperation);\r\n\r\n assertTrue(addressList.size() == 2);\r\n Set<String> resultCities = UnifiedSet.newSet();\r\n for(Address a: addressList)\r\n {\r\n resultCities.add(a.getCity());\r\n }\r\n assertTrue(resultCities.contains(\"abc\"));\r\n assertTrue(resultCities.contains(\"aabbcc\"));\r\n assertFalse(resultCities.contains(\"xyz\"));\r\n assertFalse(resultCities.contains(\"xxyyzz\"));\r\n }", "title": "" }, { "docid": "c342cacc1256f9e91c9c00e0f5ec3b98", "score": "0.49817827", "text": "private boolean withinConstraint(List<Integer> cur) {\n return true;\n }", "title": "" }, { "docid": "0323bc8f6c4cdd6ada11cb283c177a4e", "score": "0.49765554", "text": "public void testInArray()\n throws IOException\n {\n _testInArray(false);\n _testInArray(true);\n }", "title": "" }, { "docid": "a2a3dd592b0bf8ffc7ed5ecab4c3114d", "score": "0.49676648", "text": "public boolean cardInList(String list){\n\n return false;\n }", "title": "" }, { "docid": "089e4d8554f9fc6d9134d995f2eb5fcb", "score": "0.49576065", "text": "private boolean specialCasesValidate() {\n \tboolean result = false;\n \t\n \tfor ( var specialCase:this.specialCases) {\n \t\tresult |= specialCase.test(this.getText());\n \t}\n\n \treturn result;\n }", "title": "" }, { "docid": "cb0e57aabd9346d894740b6b4d23aa98", "score": "0.49430567", "text": "private static void checkSimpleStatParameter(BatchOperator <?> in,\n\t\t\t\t\t\t\t\t\t\t\t\t String[] selectedColNames,\n\t\t\t\t\t\t\t\t\t\t\t\t String vectorColName,\n\t\t\t\t\t\t\t\t\t\t\t\t String[] reservedColNames) {\n\t\tif (selectedColNames != null && selectedColNames.length != 0 && vectorColName != null) {\n\t\t\tthrow new AkIllegalOperatorParameterException(\"selectedColName and vectorColName must be set one only.\");\n\t\t}\n\n\t\tTableUtil.assertSelectedColExist(in.getColNames(), selectedColNames);\n\t\tTableUtil.assertNumericalCols(in.getSchema(), selectedColNames);\n\n\t\tTableUtil.assertSelectedColExist(in.getColNames(), vectorColName);\n\t\tTableUtil.assertVectorCols(in.getSchema(), vectorColName);\n\n\t\tTableUtil.assertSelectedColExist(in.getColNames(), reservedColNames);\n\t}", "title": "" }, { "docid": "6e7f3ba7761b808dd2c8524cd9595ac7", "score": "0.49380592", "text": "static boolean inBool(Scanner sc) {\n String chr = sc.next();\n boolean b;\n if(chr.equals(\"a\")){b=false;}\n else if(chr.equals(\"b\")){b=true;}\n else{throw new IllegalArgumentException(\"Inputted character is '\"+chr+\"', not 'a' or 'b'.\");}\n return b;\n }", "title": "" }, { "docid": "8793eb049aff44d7b8ce2c68b8050563", "score": "0.49306348", "text": "public static boolean isOnInterval(char input, char[] accept)\n {\n boolean bool = false;\n int index = 0;\n\n while (index < accept.length && bool == false)\n {\n switch (accept[index])\n {\n case 'd':\n bool = isDigit(input);\n break;\n\n case 'u':\n bool = isUpperCase(input);\n break;\n\n case 'l':\n bool = isLowerCase(input);\n break;\n\n case 'a': // alphabet\n bool = isLetter(input);\n break;\n\n case 'f':\n bool = isFloat(input);\n break;\n \n case 's':\n bool = isString(input);\n break;\n }\n\n index++;\n }\n\n return bool;\n }", "title": "" }, { "docid": "dc1654974df6f05255da26a61076457b", "score": "0.49259686", "text": "boolean hasSearchValue();", "title": "" }, { "docid": "c0efaa5dbc8ca991654268975971ac2e", "score": "0.49256313", "text": "private boolean check_in()\n {\n boolean made = false;\n if(working_on.show(1) > 0)\n {\n int checker = input_no();\n if(checker < working_on.size() && checker > -1)\n {\n if(working_on.data_set.get(checker).get_situation() == 2)\n System.out.println(\"Sorry, this room is already checked in.\");\n else if(working_on.data_set.get(checker).get_situation() == 0)\n System.out.println(\"Sorry, this room is empty. You can book it.\");\n else\n {\n working_on.data_set.get(checker).set_situation(2);\n made = true;\n }\n }\n else if(checker == -1)\n System.out.println(\"Cancelled.\");\n }\n else\n System.err.println(\"There is no booked room.\");\n return made;\n }", "title": "" }, { "docid": "e7f439b9f1443500b703d471bb9b12bb", "score": "0.4924125", "text": "@Override\n\tpublic boolean isTumorCaseID(String caseID) {\n\n\t\tfor (Pattern pattern : patterns) {\n\t\t\tif (pattern.matcher(caseID).matches()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// outta here\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7440a242455d1209fee3be220cabcc4e", "score": "0.4921131", "text": "HistoryQuery porValueIn(String... porValue);", "title": "" }, { "docid": "293fdeea34012553adb9b5dcc524cf73", "score": "0.49169257", "text": "public static void test_inRange() {\n\t\tSystem.out.println(\"\\nTesting inRange ...\");\n\n\t\tint[] results;\n\n\t\tint[] testArray = {1,2,3,4};\n\n\t\tresults = inRange(testArray,5,7);\n\t\tif (null != results) {\n\t\t\tSystem.out.println(\"Nothing in range. Expected null.\");\n\t\t}\n\n\t\tresults = inRange(testArray,2,2);\n\t\tif (null == results) {\n\t\t\tSystem.out.println(\"One value in range. Expect 1. Results null.\");\n\t\t} else {\n\t\t\tAssert.assertEquals(1,results.length,\"One value in range - size.\");\n\t\t\tif (1 <= results.length) {\n\t\t\t\tAssert.assertEquals(2,results[0],\"One value in range - value.\");\n\t\t\t}\n\t\t}\n\n\t\tresults = inRange(testArray,3,4);\n\t\tif (null == results) {\n\t\t\tSystem.out.println(\"2 vals in range. Expect size 2. Results null.\");\n\t\t} else {\n\t\t\tAssert.assertEquals(2,results.length,\"2 values in range - size.\");\n\t\t\tif (2 <= results.length) {\n\t\t\t\tAssert.assertEquals(3,results[0],\"2 values in range - value.\");\n\t\t\t\tAssert.assertEquals(4,results[1],\"2 values in range - value.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fb5428cb8d2b01a5f032cba8f4959c13", "score": "0.49159375", "text": "@Test\n public void testContains()\n {\n assertTrue(\"Checking one contains\", one.contains(0));\n assertTrue(\"Checking slist contains\", slist.contains(\"First\"));\n assertTrue(\"Checking slist does not contain\", !(slist.contains(0)));\n }", "title": "" }, { "docid": "735a8efefdba2386cdb5a9d58af7edaa", "score": "0.49107414", "text": "private boolean contains(int state) {\n return (states[state]);\n }", "title": "" }, { "docid": "4529323443ffbf91d7f12ad2dded796d", "score": "0.4910154", "text": "@Test\r\n public void testJniInchiWrapperInvalidInChIOptionException() throws JniInchiException {\r\n try\r\n {\r\n \tList options = new ArrayList();\r\n \toptions.add(INCHI_OPTION.SUCF);\r\n \toptions.add(\"derp\");\r\n \tJniInchiWrapper.checkOptions(options);\r\n \tAssert.fail();\r\n }\r\n catch(JniInchiException badoption)\r\n {\r\n \tString message = \"Unrecognised InChI option\";\r\n \tassertEquals(message, badoption.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "d142bbcc8c6bb89e9d6b1f2f429945a6", "score": "0.49073806", "text": "@Test\r\n\tpublic void testContainsAll()\r\n\t{\n\t\tassertThat(intList.containsAll(Arrays.asList(2, 3, 8)), is(true));\r\n\t\tassertThat(stringList.containsAll(Arrays.asList(\"b\", \"c\", \"e\")), is(true));\r\n\t\tassertThat(intList.containsAll(Arrays.asList(2, 3, 9)), is(true));\r\n\t\tassertThat(stringList.containsAll(Arrays.asList(\"b\", \"c\", \"a\")), is(true));\r\n\t\tassertThat(intList.containsAll(Arrays.asList(2, 3, 11)), is(false));\r\n\t\tassertThat(stringList.containsAll(Arrays.asList(\"b\", \"c\", \"z\")), is(false));\r\n\t}", "title": "" }, { "docid": "5d9df9760b6f730c3c8aee2f422eaf3a", "score": "0.49070898", "text": "public T in(String[] inList) {\n predicateParser.inString(Arrays.asList(inList));\n return getThis();\n }", "title": "" }, { "docid": "453851d79137489c50bb40359d7ddf83", "score": "0.49024743", "text": "private boolean isIntInArray(int x, int intArray[]) {\r\n\t\treturn IntStream.of(intArray).anyMatch(i -> i == x);\r\n\t}", "title": "" }, { "docid": "d8854a0f4fc6cd28fed733e2bab57019", "score": "0.49016222", "text": "public Object notIn ( String strProperty, String[] obj );", "title": "" }, { "docid": "980d61fa8c470a6e123b047bf046f5ca", "score": "0.48966402", "text": "@Override\r\n\tpublic boolean contains(Object obj)\r\n\t{\r\n\t\tE data = (E) obj;\r\n\t\tString key = data.toString();\r\n\t\tString order = traverseInorder();\r\n\t\tif(order.contains(key))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn false; \r\n\t}", "title": "" }, { "docid": "b5aa233b14eb4a6681f04a0dcb92adee", "score": "0.48860738", "text": "@Override\n public boolean containsValue(Object arg0);", "title": "" }, { "docid": "466ff91e4cae25b68d266fe549c1bf29", "score": "0.48757994", "text": "private Boolean isCode(int code) {\n\t\tfor (int c : codeids) {\n\t\t\tif (c == code) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cfbbc6d8e5c383ce31f20527c4653d9a", "score": "0.48728383", "text": "public static Restriction in(String field, Object... values) {\n return new InValuesRestriction(field, Arrays.asList(values));\n }", "title": "" }, { "docid": "f63d627c38f66f14fa08613bca174306", "score": "0.4871985", "text": "public boolean GEN_INLIST(Object value, Object list, Object regex, Integer startPos, Integer length) {\n if (value == null)\n return false;\n\n String l = GEN_TO_STRING(list);\n if (l.isEmpty())\n return false;\n\n if (!GEN_MATCH(value, regex))\n return false;\n\n // apparently Genedits right-trim the incoming value in their MATCH method, in C++ the value is a pointer, so it is trimmed in INLIST as a side effect!\n String val = trimRight(GEN_TO_STRING(value));\n\n if (val.isEmpty())\n return true;\n\n int start = startPos - 1; // Genedits uses 1-based index...\n int end = Math.min(startPos - 1 + length, val.length()); // Gendits allows a length going past the end of the string...\n\n if (val.trim().isEmpty() || start >= end)\n return false;\n\n return isValInList(val.substring(start, end), l);\n }", "title": "" } ]
27e0bb24fc6999f3cb3a92f4597a09b8
Get the test name
[ { "docid": "83cf55c8626f644da896d894af411364", "score": "0.0", "text": "@AfterMethod\n public void afterMethod(Method method){\n\t String testName = method.getName();\n\t System.out.println(\"After Method for test \" + testName);\n\t asapDriver.setReferenceData();\n\t Reporter.closeTestLevelReport(testName);\n }", "title": "" } ]
[ { "docid": "f637779dd69f3a39764bf3ae570fb25f", "score": "0.83330077", "text": "public String getTestname() {\n return testname;\n }", "title": "" }, { "docid": "10d4304d5181a0d2e14528dc66f238fd", "score": "0.7894526", "text": "protected String getName() {\n return testClass.getName();\n }", "title": "" }, { "docid": "fe13cfa58b745f0adf82fb0768406c4f", "score": "0.77663386", "text": "public String getTestName() {\n return testURL;\n }", "title": "" }, { "docid": "16b3791d641b7072326fd56e36a4aef2", "score": "0.74909765", "text": "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "a90c7bce95bbde838a0c6d67ab31d969", "score": "0.7282126", "text": "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "title": "" }, { "docid": "117f0e8fa62d8231d8515e50be789d52", "score": "0.717212", "text": "@Test\n public void whenGetNameThenReturnResult() {\n String expected = underTest.getName();\n assertThat(expected, is(\"UnderTest\"));\n }", "title": "" }, { "docid": "a79cf5d8875e8c2fc50abe749b08477c", "score": "0.7073804", "text": "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "title": "" }, { "docid": "cdebdb915ce0981edfc04acd44bf8656", "score": "0.7059863", "text": "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "title": "" }, { "docid": "21c8a99f5884b002e116577c4176be77", "score": "0.70056754", "text": "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "title": "" }, { "docid": "57a324c6272168d2561d747f3d321f5f", "score": "0.69290835", "text": "@Test\n public void testGetLastAttackTitle() {\n \n assertEquals(hero.getLastAttackTitle(), \"The starting battle specs are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }", "title": "" }, { "docid": "31aec380db2f9e772a98dab390c0289b", "score": "0.6928723", "text": "public String getTestMethodName() {\n return m_testMethodName;\n }", "title": "" }, { "docid": "cd4995a8f08e690389c2d7fe44fa1f50", "score": "0.6919493", "text": "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "dd72e73035d6a99f9d166671f0da5077", "score": "0.68849427", "text": "@Test\n public void testGetName() {\n assertEquals(hero.getName(), \"hero\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "title": "" }, { "docid": "9119c67585910c912b85841dddffdf94", "score": "0.687079", "text": "protected String getTestName(File configFile, Properties configProps) {\n if (configProps.containsKey(TEST_NAME)) {\n return configProps.getProperty(TEST_NAME);\n } else {\n int lastSlash = configFile.getAbsolutePath().lastIndexOf('/');\n int secondToLastSlash = configFile.getAbsolutePath().lastIndexOf(\n '/', lastSlash - 1);\n return configFile.getAbsolutePath().substring(\n secondToLastSlash + 1, lastSlash);\n }\n }", "title": "" }, { "docid": "bd123809dc0fbde97af6c9a4a728f337", "score": "0.68180346", "text": "public String getTestSetName() {\n return this.testSetName;\n }", "title": "" }, { "docid": "4a0f744341af194e8ecbc467195677f3", "score": "0.6731611", "text": "public static String currentMethodName() {\n String fm = CURRENT_TEST.get();\n if (fm != null) {\n return fm;\n } else {\n return \"<no current test>\";\n }\n }", "title": "" }, { "docid": "faaba33191eddc04b71a90f98806284f", "score": "0.6730623", "text": "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "title": "" }, { "docid": "f2e0afc5952604dc01345b4e99786bda", "score": "0.6681454", "text": "@Test\n public void nameTest() {\n // TODO: test name\n }", "title": "" }, { "docid": "f2e0afc5952604dc01345b4e99786bda", "score": "0.6681454", "text": "@Test\n public void nameTest() {\n // TODO: test name\n }", "title": "" }, { "docid": "f2e0afc5952604dc01345b4e99786bda", "score": "0.6681454", "text": "@Test\n public void nameTest() {\n // TODO: test name\n }", "title": "" }, { "docid": "f2e0afc5952604dc01345b4e99786bda", "score": "0.6681454", "text": "@Test\n public void nameTest() {\n // TODO: test name\n }", "title": "" }, { "docid": "0c8c2907d7c6de871dff772c6a4241ca", "score": "0.667821", "text": "public static synchronized String getTestProjectName() {\n String retVal;\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.getTestProjectName\");\n if (Utility.isMacintosh()) {\n retVal = \"Test Project\";\n } else if (Utility.isLinux()) {\n retVal = \"Test Project\";\n } else {\n retVal = \"Test ProjectW\";\n }\n return retVal;\n }", "title": "" }, { "docid": "1b0beae4f780e43cd38ba83f93f749a1", "score": "0.6671624", "text": "protected String getMethodSpecificTestDataFileName() {\r\n StringBuffer result = new StringBuffer()\r\n .append(TESTDATA+\"/\")\r\n .append(getClassNameWithoutPackage())\r\n .append(\"_\")\r\n .append(getName())\r\n .append(\".xml\");\r\n return result.toString();\r\n }", "title": "" }, { "docid": "8e5b7a25d6b87c01ba1fcf1d360d1c24", "score": "0.6658531", "text": "public void testGetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "title": "" }, { "docid": "c49f65ac8d7a462e66952357b8d546c6", "score": "0.665611", "text": "public String getShortTestClassName()\r\n {\r\n return target.getClass().getSimpleName();\r\n }", "title": "" }, { "docid": "15c91177b978892edac2bbf0419445f0", "score": "0.6655062", "text": "public void testGetName_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "d383e7a3f33de2fa604208999705f1e4", "score": "0.66082895", "text": "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "title": "" }, { "docid": "0573bf86a70629a440b5b4057f497d08", "score": "0.66082287", "text": "public void testGetName_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "title": "" }, { "docid": "5f356d5eaa05eab27d29b5c911eb9c7a", "score": "0.6598897", "text": "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "title": "" }, { "docid": "e676e9e1904e2e1815a502f4fb366a1a", "score": "0.65957576", "text": "public void testGetName_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "092751a300490abc79818e26cb1881fd", "score": "0.65815765", "text": "public void testGetName_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "title": "" }, { "docid": "0cdaac1d78e128c3258ac7b2cbadd85b", "score": "0.6571889", "text": "public void testGetName_fixture24_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture24();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "6b245d5eea62c8c69e84f76c6b6c4d53", "score": "0.6570326", "text": "java.lang.String getName();", "title": "" }, { "docid": "813e6ed64b3be08256f4b1a46ad44f1d", "score": "0.6563001", "text": "@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+test;\n\t}", "title": "" }, { "docid": "f5935aa6549d0d0ed4635d9e0ec4afd8", "score": "0.6560394", "text": "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "title": "" }, { "docid": "00c0aac6a1c9116113d07e79d47fd024", "score": "0.6560033", "text": "public void testGetName_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "title": "" }, { "docid": "591915dd4cd0e240188a5212b665045d", "score": "0.65580153", "text": "@Test\r\n\tpublic void getName() {\r\n\t\tassertEquals(\"Name was intialized as 'test'\", \"test\", testObj.getName());\r\n\t}", "title": "" }, { "docid": "1f322e34aa6433e11bbf236d4d747324", "score": "0.6557665", "text": "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "title": "" }, { "docid": "e30973cc783d3f4aa474ec92d8babfd7", "score": "0.65537477", "text": "public void testGetName_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "8c9d5e0b7784ad2186e8418b2c5c1007", "score": "0.6550776", "text": "@Test\n public void testSetName() {\n \n hero.setName(\"cheyo\");\n assertEquals(hero.getName(), \"cheyo\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "title": "" }, { "docid": "c980996063cf560db1012679019adbca", "score": "0.65454805", "text": "public void testGetName_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "title": "" }, { "docid": "25754ddc0526861e226c0469c2832eac", "score": "0.65400755", "text": "public String getTestCaseNameForTestMethod(String methodName)\n {\n return \"Perf_SustainedPubSub\";\n }", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" }, { "docid": "f0b117528597330a93adf145dd98e8b6", "score": "0.6535474", "text": "String getName();", "title": "" } ]
a359a46e685aaf94de256c42e5093afb
Called when this container's icon is updated.
[ { "docid": "cea1e26d2b509971185c5065725171c6", "score": "0.7940796", "text": "private void iconUpdated() {\n synchronized (listeners) {\n for (FrameInfoListener listener : listeners.get(FrameInfoListener.class)) {\n listener.iconChanged(getFrame(), icon);\n }\n }\n }", "title": "" } ]
[ { "docid": "bdc2f2a59caf40af657856231f9ea8f7", "score": "0.70845777", "text": "protected void updateIcon() {\n\t\tSettings settings = Settings.getSettings(this);\n\t\tif (settings.getIcon() != null) {\n\t\t\tImageView photo = (ImageView) findViewById(R.id.tweet);\n\t\t\tphoto.setImageBitmap(settings.getIcon());\n\t\t}\n\t}", "title": "" }, { "docid": "2819e2e1e30eb273df8f00ac77a605d4", "score": "0.6993785", "text": "public void iconChanged(ObjectCreatorEvent event);", "title": "" }, { "docid": "a817290ff72400297f65c5a0173c3a9b", "score": "0.6959746", "text": "public void onIconAvailable(Bitmap icon) {\n mIconView.setImageBitmap(icon);\n setIconAvailable();\n }", "title": "" }, { "docid": "fe063fb8a82f7d93ef61f0545d633db6", "score": "0.66672474", "text": "private void setIcon(BufferedImage newIcon){\n this.icon = newIcon;\n }", "title": "" }, { "docid": "9597954068d03fcd331e945187bac829", "score": "0.6663257", "text": "protected void setIcons() {\n setIcons(data);\n }", "title": "" }, { "docid": "a663d1cc4945bfd9a500616dd05233ca", "score": "0.66422296", "text": "@Override\r\n\tpublic void initIcons() {\n\r\n\t}", "title": "" }, { "docid": "715e2e17ba548112baab321d97867c45", "score": "0.66360945", "text": "public void updateImage(){\n image = image.getScaledInstance(size, size, Image.SCALE_DEFAULT);\n setIcon(new ImageIcon(image));\n revalidate();\n repaint();\n }", "title": "" }, { "docid": "a126a960559f9a3d9b93925fad7a76fa", "score": "0.6597519", "text": "@Override\r\n\tprotected void drawIcon() {\n\t\tthis.icon.setText(\"AssignIcon\");\r\n\t}", "title": "" }, { "docid": "6d1ac9ad06538028fcca36e973331f54", "score": "0.6498446", "text": "public void setIcon(Icon theIcon) {\r\n\t\t//do nothing\r\n\t}", "title": "" }, { "docid": "23d951eda555da5644792ce298fc5833", "score": "0.6480909", "text": "private static void updateSelectedTile()\n {\n mapPaletteSelectedLabel.setIcon(new ImageIcon(tile.getTileImage(selectedTile)));\n\n }", "title": "" }, { "docid": "8cf68537a7e5eca26657edf076e61e81", "score": "0.64719254", "text": "public final void setIcon(final String icon) {\n this.icon = icon;\n \n iconUpdated();\n \n config.removeListener(changer);\n config.addChangeListener(\"icon\", icon, changer);\n }", "title": "" }, { "docid": "4fdcade94b52455134c12274459c6358", "score": "0.64574647", "text": "public final void setStateIcon(Icon icon){\r\n this.icon = icon;\r\n }", "title": "" }, { "docid": "32c0ed0f5183449d37c3358f0c94395d", "score": "0.64549834", "text": "@Override // PlatformWindow\n public void updateIconImages() {\n final long nsWindowPtr = getNSWindowPtr();\n final CImage cImage = getImageForTarget();\n nativeSetNSWindowMinimizedIcon(nsWindowPtr, cImage == null ? 0L : cImage.ptr);\n }", "title": "" }, { "docid": "c87810ef72d01d71c412c382f3476b74", "score": "0.64495945", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png\")));\n }", "title": "" }, { "docid": "15d6887966e0a42aae5efebd0dee2f55", "score": "0.6448428", "text": "public void setIcon(Icon icon);", "title": "" }, { "docid": "76808a692bb3445c3e465e73057fc3db", "score": "0.644139", "text": "private void setIcon () {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icone.png\")));\n }", "title": "" }, { "docid": "2b601ec00c39a57ef0bd8bb3ab7b1f5c", "score": "0.64411354", "text": "private void setIcon() {\n try{\n \n setIconImage(Toolkit.getDefaultToolkit().getImage( getClass().getResource( \"./Icon.png\" ))) ;\n }\n catch( Exception ex) {\n System.out.println(\"iconfail\");\n }\n }", "title": "" }, { "docid": "ea645bf546dde4fa38d990ce7d1b9856", "score": "0.6439606", "text": "public void update()\n\t{\n\t\tinput.setIcon(null);\t\t\t//clear image\n\t\timage_input.setIcon(null);\t//clear image\n\t\tstat_path = \"\";\t\t\t\t//clear path\n\t\tstat_name = \"\";\t\t\t\t//clear name\n\t}", "title": "" }, { "docid": "e3ebdb7145eddf37c4f84d1d96568260", "score": "0.64255303", "text": "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "title": "" }, { "docid": "4ce8290a0a81a8c648bd196c851a916a", "score": "0.6406163", "text": "public void setIcon(Icon icon) {\r\n\t\tthis.icon = icon;\r\n\t}", "title": "" }, { "docid": "42dd8cf8aed585c68cc90f1b583c6095", "score": "0.6399172", "text": "public void setIcon(String icon) {\r\n this.icon = icon;\r\n this.dirtyFlag = true;\r\n }", "title": "" }, { "docid": "25c27050e8e11b1e134df5e2c701e257", "score": "0.63880235", "text": "public void setIcon(Icon icon) {\r\n\t\tcomp.setIcon(icon);\r\n\t}", "title": "" }, { "docid": "74473924928587850220f9d9fa1630d7", "score": "0.63720393", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage((getClass().getResource(\"icone.png\"))));\n }", "title": "" }, { "docid": "526b5ce48b7beafc78fa63e361b1ccb4", "score": "0.63677555", "text": "public void setIcon(Icon icon) {\n this.icon = icon;\n }", "title": "" }, { "docid": "c198f676bc55a82e49bbdd6b9691719d", "score": "0.63509953", "text": "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "title": "" }, { "docid": "fafdb4edd5638125f738da288c2c5306", "score": "0.63271475", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"frameicon.png\")));\n }", "title": "" }, { "docid": "11c79b6838543fb3105ab46912925529", "score": "0.63168734", "text": "public void initIcon() {\r\n\t\tTimeslot activeTimeslot = timeslotService.getActiveTimeslot();\r\n\t\tif (activeTimeslot == null) {\r\n\t\t\ttrayIcon.setImage(imageInaktiv);\r\n\t\t} else {\r\n\t\t\ttrayIcon.setImage(imageAktiv);\r\n\t\t}\r\n\t\tsetTrayiconTooltip();\r\n\t}", "title": "" }, { "docid": "fab8f02502de1bc5429016cd44ec9ab0", "score": "0.6309219", "text": "private void setIcon() {\n\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/image/mainIcon.png\")));\n\t}", "title": "" }, { "docid": "25de850631bfa46e5ba37cec9a9fefa0", "score": "0.63076675", "text": "@Override\n public String receiveIcon() {\n return weatherIcon;\n }", "title": "" }, { "docid": "5daa86b9a0db7c2ac8f2ec23a3c6b84e", "score": "0.6307362", "text": "private void setIcon() {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"airbus.png\")));\n }", "title": "" }, { "docid": "795e82abc27b4a48cf091d0a8238ec9d", "score": "0.6306424", "text": "public void setIcon(Image icon);", "title": "" }, { "docid": "e3ea198b8f6edcfefa8308deaada2115", "score": "0.6302285", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().\n getResource(\"/icons/frameicon2.png\")));\n }", "title": "" }, { "docid": "30a24e05559454dd0462e6b41534160b", "score": "0.62990063", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource(\"usi.png\")));\n }", "title": "" }, { "docid": "f18f159c350fadf3e7089d8a72ceba87", "score": "0.6292124", "text": "private void setIcon() {\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icone.png\")));\r\n }", "title": "" }, { "docid": "0778f67482b184ff44880179b02c10eb", "score": "0.62782687", "text": "@Override\n public void mouseExited(MouseEvent ev) { \n label.setIcon(icon);\n }", "title": "" }, { "docid": "a2fd6480af2be054a7b5afba97477f8f", "score": "0.6235799", "text": "public void updatePlayerIcon(){\r\n int[] coordinates = currSet.getSceneCoordinate();\r\n icon = new Image(\"dice/\" + playerIcon + rank + \".png\");\r\n imgView = new ImageView();\r\n imgView.setImage(icon);\r\n if(role == null){\r\n imgView.setX(coordinates[0] + (playerNum * 20));\r\n imgView.setY(coordinates[1]);\r\n imgView.setFitHeight(44);\r\n imgView.setFitWidth(45);\r\n }\r\n else{\r\n int[] roleCoordinates = role.getCoordinates();\r\n if(role.getType().equals(\"main\")) {\r\n imgView.setX(coordinates[0] + roleCoordinates[0] -1);\r\n imgView.setY(coordinates[1] + roleCoordinates[1]);\r\n }\r\n else{\r\n imgView.setX(roleCoordinates[0]);\r\n imgView.setY(roleCoordinates[1]);\r\n }\r\n imgView.setFitHeight(44);\r\n imgView.setFitWidth(45);\r\n }\r\n\r\n }", "title": "" }, { "docid": "0deffa716635a6c7a187a0ba7b22895c", "score": "0.6233488", "text": "public void setIcon(String icon)\n {\n if (icon == null)\n return;\n \n this.icon = icon;\n \n if (this.canvas != null && !this.canvas.isDisposed())\n this.canvas.redraw();\n }", "title": "" }, { "docid": "17c4b679fb4b9f5ea5c3cd19a40143f3", "score": "0.62327665", "text": "private void updateIconBounds() {\n if (this.mIcon != null) {\n if (TextUtils.isEmpty(getText())) {\n int p = (int) (this.mGu * 1.5);\n setPadding(p, p, p, p);\n } else {\n int l = 0;\n if (this.mMeasuredWidth > 0 && getWidth() > this.mMeasuredWidth) {\n //Check where the icon should be located, depending on the gravity\n final int gravity = getGravity();\n if ((gravity & Gravity.START) != Gravity.START) {\n if ((gravity & Gravity.END) == Gravity.END) {\n l = (getWidth() - this.mMeasuredWidth);\n } else if ((gravity & Gravity.CENTER_HORIZONTAL) == Gravity.CENTER_HORIZONTAL) {\n l = (getWidth() - this.mMeasuredWidth) / 2;\n }\n }\n }\n mIcon.setBounds(l, 0, this.mIcon.getIntrinsicWidth() + l, mIcon.getIntrinsicHeight());\n }\n }\n }", "title": "" }, { "docid": "ae08a972176360484e622c01e122c135", "score": "0.6231586", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"alert.png\")));\n }", "title": "" }, { "docid": "ae08a972176360484e622c01e122c135", "score": "0.6231586", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"alert.png\")));\n }", "title": "" }, { "docid": "b8de46f85ff7fea93fb0f65f6b55e579", "score": "0.620953", "text": "public void setIcon(IconType type) {\n \t\ttrigger.setIcon(type);\n \t}", "title": "" }, { "docid": "cd54a1fcd274987c79fa80a8804b3cc0", "score": "0.620189", "text": "public void paintIcon(Component c, Graphics g, int x, int y) {\n }", "title": "" }, { "docid": "c92edbdaef3d0293728681607588340e", "score": "0.61586636", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"snake21.png\")));\n }", "title": "" }, { "docid": "d1d3f02f91225cc8a9dfc7171aa7bcd6", "score": "0.61229825", "text": "public void refreshIcons()\n\t{\n\t\tmIcons.clear();\n\t\t\n\t\tmCurrentDefaultIconName = DEFAULT_ICON;\n\n\t\tDefaultIcon defaultIcon = getDefaultIcon();\n\n\t\tArrayList<MapIcon> icons = mSettings.getMapIcons();\n\t\ticons.addAll( getStandardIcons() );\n\t\t\n\t\tfor( MapIcon icon: icons )\n\t\t{\n\t\t\tmIcons.put( icon.getName(), icon );\n\t\t\t\n\t\t\tif( icon.getName().contentEquals( defaultIcon.getName() ) )\n\t\t\t{\n\t\t\t\tmCurrentDefaultIconName = defaultIcon.getName();\n\t\t\t\ticon.setDefaultIcon( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ticon.setDefaultIcon( false );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cbbad395c51425b3635287e39cebbb46", "score": "0.61188066", "text": "@Override\n public void removeAllIcons() {\n }", "title": "" }, { "docid": "5fd40e681c689e06a15766755d4243f0", "score": "0.61166966", "text": "private void setIcon() {\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"favicon.png\")));\r\n }", "title": "" }, { "docid": "7eaa3b2fbf3eb7dd9b6f536801a722ea", "score": "0.611026", "text": "private void Seticon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"91siyah.png\")));\n\n }", "title": "" }, { "docid": "16623fd239962d9faf7d451a41a544f1", "score": "0.61056197", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/images/mw.png\")));\n }", "title": "" }, { "docid": "a1dc25df8de5445d4cc59b815990f77f", "score": "0.610297", "text": "public void setIcon(){\n this.icon = this.type ? \"GreenSuccessIcon.png\" : \"RedFailIcon.png\";\n }", "title": "" }, { "docid": "4acfb86ff53a8f9043e7510e47620727", "score": "0.60975975", "text": "private void setIcon(){\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Pictures/Library.png\")));\n }", "title": "" }, { "docid": "961a03fb97d55abf6ef6477446cf1bb5", "score": "0.6092342", "text": "public String getIcon(){ return icon;}", "title": "" }, { "docid": "9b235c16fd8b3fee073104f7eb1944d9", "score": "0.6087794", "text": "void setIconSize(Dimension size);", "title": "" }, { "docid": "5c1d1f5d69a58fbbc1c2ef78044078ad", "score": "0.60858154", "text": "public void setIcon(Icon icon) {\r\n _icon = icon;\r\n if (_label != null) {\r\n _label.setIcon(icon);\r\n }\r\n }", "title": "" }, { "docid": "3d9b7da13ee07cf38edd2c2f768fc44a", "score": "0.6084671", "text": "void addIcon (Icon icon);", "title": "" }, { "docid": "93f6743118d135b76b197a32e800e69d", "score": "0.606678", "text": "public void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon\\\\capsule.png\")));\n }", "title": "" }, { "docid": "f8754831015a86cfac6929276eb84cef", "score": "0.6062", "text": "@Override\n public void setIcon(int icon) {\n user.setIcon(icon, this);\n }", "title": "" }, { "docid": "9123b4873e190257dafd099fa46d1ff9", "score": "0.6059068", "text": "protected void windowIconified() {}", "title": "" }, { "docid": "2745341f4c71c1e986ab210acf0dded7", "score": "0.6056022", "text": "public boolean usesIcon();", "title": "" }, { "docid": "d32f341581bae7b2229293f469d37fd0", "score": "0.60245734", "text": "public void update() {\n\t\tif (color == 0) {\n\t\t\ttry {\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources\\\\red.png\"))));\n\t\t\t} catch (IOException e) {\n\t\t\t\ttry {\n\t\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources/red.png\"))));\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\tSystem.out.println(\"red.png not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (color == 1) {\n\t\t\ttry {\n\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources\\\\yellow.png\"))));\n\t\t\t} catch (IOException e) {\n\t\t\t\ttry {\n\t\t\t\t\tsetIcon(new ImageIcon(ImageIO.read(new File(\"resources/yellow.png\"))));\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\tSystem.out.println(\"yellow.png not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (color == 2) {\n\t\t\tsetIcon(null);\n\t\t}\n\t}", "title": "" }, { "docid": "e5559e4f48c5249d42a6254531e49bb1", "score": "0.601869", "text": "private void setIconImage(ImageIcon imageIcon) {\r\n this.setIconImage(imageIcon.getImage());\r\n }", "title": "" }, { "docid": "f489f23801f66d6efca2b3031523e59f", "score": "0.60152", "text": "public void updateImage() {\r\n\t\tif (this.dataStorage.getInsideTemperature() <= this.dataStorage.getOrder()-2) {\r\n\t\t\tinThermIcon = new ImageIcon(\"image/inside.png\");\r\n\t\t\tthis.inThermLabel.setIcon(inThermIcon);\r\n\t\t} \r\n \r\n\t\telse if ((this.dataStorage.getInsideTemperature() > this.dataStorage.getOrder()-2) && (dataStorage.getInsideTemperature() < this.dataStorage.getOrder()+2)) {\r\n\t\t\tinThermIcon = new ImageIcon(\"image/inside.png\"); \r\n\t\t\tthis.inThermLabel.setIcon(inThermIcon);\r\n\t\t} \r\n \r\n\t\telse if (this.dataStorage.getInsideTemperature() >= this.dataStorage.getOrder()+2) {\r\n\t\t\tinThermIcon = new ImageIcon(\"image/inside.png\");\r\n\t\t\tthis.inThermLabel.setIcon(inThermIcon);\r\n\t\t}\r\n \r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Error in updateImage\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "db53b53388df02ba3439f7b693737f55", "score": "0.59998757", "text": "public void setIcon(String icon) {\r\n\t\tthis.icon = icon;\r\n\t}", "title": "" }, { "docid": "358b89ffaabd1a5c4f55db0430183ae9", "score": "0.5984578", "text": "@Override\n\tpublic ImageIcon getIcone() {\n\t\treturn icon;\n\t}", "title": "" }, { "docid": "b4adf7e8890db0ce7de7b94092763e68", "score": "0.59753335", "text": "@Override\n public void notAvailable() {\n onSetIconListener.notAvailable();\n }", "title": "" }, { "docid": "91474ceada8451eed9afbd280be0e1b2", "score": "0.59722984", "text": "private void drawIcon(GC gc, boolean pressed)\n {\n // im gedrueckten Zustand ein Pixel weiter unten - das gibt den Effekt des Reindrueckens\n int y = (this.height - ICON_HEIGHT) / 2;\n if (pressed) y++;\n gc.drawImage(SWTUtil.getImage(this.icon),(this.width - ICON_WIDTH) / 2,y);\n }", "title": "" }, { "docid": "7de43a94c501fc67ac5acc246167ef65", "score": "0.5969278", "text": "public ImageIcon getIcon(){return icon;}", "title": "" }, { "docid": "4248d680f9f278b455b747c6fd358ff4", "score": "0.5968235", "text": "private void canvas3DSwapped() {\n if (this.iconImageLock != null) {\n synchronized (this.iconImageLock) {\n this.iconImageLock.notify();\n }\n }\n }", "title": "" }, { "docid": "a1ebe07459cf9fd737174c63678f57c3", "score": "0.5968127", "text": "protected void deleteIcon() {\n /* remove the save icon once the game has been saved */\n int size = parent.getChildren().size();\n if (size != 0 && (this.parent.getChildren().get(this.parent.getChildren().size() - 1) instanceof ImageView)) {\n this.parent.getChildren().remove(this.parent.getChildren().size() - 1);\n }\n }", "title": "" }, { "docid": "176df7c88d0420b2b3c7f2aa145ff5b6", "score": "0.5967436", "text": "public void actionPerformed(ActionEvent e)\n\t\t\t\t{\n\t\t\t\t\tcoordinator.startTransaction(\n\t\t\t\t\t\t\t\"displayed \" + getFigureName() + (displayOnlyIcon ? \" as box\" : \"as icon\"),\n\t\t\t\t\t\t\t\"displayed \" + getFigureName() + (!displayOnlyIcon ? \" as box\" : \"as icon\"));\n\t\t\t\t\tdisplayAsIconFacet.displayAsIcon(!displayOnlyIcon);\n\t\t\t\t\tcoordinator.commitTransaction();\n\t\t\t\t}", "title": "" }, { "docid": "216f1fcae3f4c2c484121ce4434259d4", "score": "0.59504896", "text": "public void updateUI() {\n imageView.relocate(positionX, positionY);\n \tif(decalImage != null) {\n \t\tdecalImage.relocate(positionX, positionY);\n \t}\n }", "title": "" }, { "docid": "b59da0c92362467f9bd155b7744aad20", "score": "0.5948551", "text": "public void updateViews(){\n drawPlayerIcon();\n drawAIIcon();\n }", "title": "" }, { "docid": "7ccb9928369d7f9ea2e4742992b7799f", "score": "0.59470356", "text": "private void updateImage()\n\t{\n\t\timage.setImage(app.getCurrentImage().getImage());\n\t}", "title": "" }, { "docid": "e65175b1974cc362c81b2b99a52f4dcc", "score": "0.59201306", "text": "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icons/tatelogo.png\")));\n }", "title": "" }, { "docid": "82cadc7ba9ac36af2388668165bd7fcc", "score": "0.5906355", "text": "private void changeIndicator() {\n mViewIndicators[mNumberCollected - 1].setImageResource(\n R.drawable.gbg_gumball_indicator_collected);\n }", "title": "" }, { "docid": "b82d6d77db682cf712f1daa057d620f8", "score": "0.5897794", "text": "public void setIcon(int resid) {\n if (mImageButton != null) mImageButton.setImageResource(resid);\n }", "title": "" }, { "docid": "04d7e6e373b3c7db5671026064cd7f2f", "score": "0.5895708", "text": "private void updateIconCache() {\n HashSet<String> packagesToIgnore = new HashSet<>();\n synchronized (sBgDataModel) {\n for (ItemInfo info : sBgDataModel.itemsIdMap) {\n if (info instanceof ShortcutInfo) {\n ShortcutInfo si = (ShortcutInfo) info;\n if (si.isPromise() && si.getTargetComponent() != null) {\n packagesToIgnore.add(si.getTargetComponent().getPackageName());\n }\n } else if (info instanceof LauncherAppWidgetInfo) {\n LauncherAppWidgetInfo lawi = (LauncherAppWidgetInfo) info;\n if (lawi.hasRestoreFlag(LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY)) {\n packagesToIgnore.add(lawi.providerName.getPackageName());\n }\n }\n }\n }\n mIconCache.updateDbIcons(packagesToIgnore);\n }", "title": "" }, { "docid": "fefafbee109b3e845c654bef62133627", "score": "0.5889191", "text": "private void setSoundIcon() {\n if (soundBar.getValue() >= 75)\n soundLabel.setIcon(new ImageIcon(soundImageHigh));\n else if (soundBar.getValue() >= 25)\n soundLabel.setIcon(new ImageIcon(soundImageMed));\n else if (soundBar.getValue() > 0)\n soundLabel.setIcon(new ImageIcon(soundImageLow));\n else\n soundLabel.setIcon(new ImageIcon(soundImageOff));\n GUIFrame.reload();\n }", "title": "" }, { "docid": "0ed00fae0901afa62c5d09f3f7220c30", "score": "0.5879239", "text": "public void setIcon(File f) {icon = f;}", "title": "" }, { "docid": "ea287211a2209188f464b006404e4b3f", "score": "0.5877407", "text": "public void setIcon(String icon) {\n\t\tmIcon = icon;\n\t}", "title": "" }, { "docid": "5e0718f0957bbc36c3d1fecd253b619c", "score": "0.5872011", "text": "@Override\n public void paintIcon(Component c, Graphics g, int x, int y) {\n backgroundIcon.paintIcon(c, g, x, y);\n foregroundIcon.paintIcon(c, g, x, y);\n }", "title": "" }, { "docid": "9bfaaab838bee3f78c20e3f5bd98526c", "score": "0.5864282", "text": "public void setIcon(int icon){\n iv_icon.setImageResource(icon);\n }", "title": "" }, { "docid": "487dc889756d3f933ddfc4edf1ef3ae8", "score": "0.5862287", "text": "private void setIcon(Button button,String path,int size){\n Image icon = new Image(path);\n ImageView imageView = new ImageView(icon);\n imageView.setFitWidth(size);\n imageView.setFitHeight((int)(size * icon.getHeight() / icon.getWidth()));\n button.setGraphic(imageView);\n //set icon to light up when clicked\n ColorAdjust colorAdjust = new ColorAdjust();\n button.setOnMousePressed(event -> {\n colorAdjust.setBrightness(0.5);\n button.setEffect(colorAdjust);\n });\n button.setOnMouseReleased(event -> {\n colorAdjust.setBrightness(0);\n button.setEffect(colorAdjust);\n });\n }", "title": "" }, { "docid": "0bfd277f4e9816eb186fe45c8e2eb4f5", "score": "0.58591616", "text": "public void restoreDefaultIcons(){\r\n\r\n }", "title": "" }, { "docid": "e3cfe09036dca1c90dbe34e2670c35fc", "score": "0.5857134", "text": "public void update(Observable obs, Object obj) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n//\t\t\t\tSystem.out.println(obj.toString());\r\n\t\t\t\tsetIcon((ImageIcon)obj);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a15a23f10aab19f259a78c5d2bef48a0", "score": "0.58551013", "text": "public void mo84861e() {\n this.f61321c.refreshDrawableState();\n }", "title": "" }, { "docid": "5c6e91f225297c8cad7fe2fdb0adaf86", "score": "0.5844454", "text": "@TargetApi(Build.VERSION_CODES.O)\n public void onAdaptableIconAvailable(Bitmap icon) {\n mIconView.setImageIcon(Icon.createWithAdaptiveBitmap(icon));\n setIconAvailable();\n }", "title": "" }, { "docid": "4129c81a35498e0dae3bbf8f3f7f2438", "score": "0.5835097", "text": "public final Icon getIcon() { return icon; }", "title": "" }, { "docid": "6db4d39883d77739648359a73575c456", "score": "0.58275324", "text": "@Override\r\n\tpublic void update_image() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6d1965cc39bd24dceb182226c5aa311a", "score": "0.5827199", "text": "public void showRefreshIcon() {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n if (localStorage.getFlagValue(LocalStorage.NEW_GLANCES_POSTED)) {\r\n refreshButton.setVisibility(View.VISIBLE);\r\n\r\n if (!localStorage.getFlagValue(LocalStorage.WALKED_THROUGH_REFRESH)) {\r\n showRefreshWalkthrough();\r\n }\r\n }\r\n }\r\n });\r\n }", "title": "" }, { "docid": "b84b3d2d7424bbd80946bb242c1c977e", "score": "0.5826468", "text": "public abstract Icon getResultIcon();", "title": "" }, { "docid": "bfeed7ba57fc8efa2521982ece0de2df", "score": "0.582366", "text": "private void setButtonIcon() {\n if (InvokeIcon==null)\n InvokeIcon = new javax.swing.ImageIcon(getClass().getResource(InvokeIconFile));\n if (RepeatIcon==null)\n RepeatIcon = new javax.swing.ImageIcon(getClass().getResource(RepeatIconFile));\n if (isRepeated())\n jButtonInvoke.setIcon(RepeatIcon);\n else\n jButtonInvoke.setIcon(InvokeIcon);\n }", "title": "" }, { "docid": "61b3ba499b160153194dd500ff97a934", "score": "0.58144027", "text": "public void onThemeChange(int i) {\n this.mDrawableCache.clear();\n this.mIconColor = i;\n updateDarkTint();\n }", "title": "" }, { "docid": "8271a6c15d6d9b723d681bbc112a0fd9", "score": "0.58102274", "text": "private void seticon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/logo.jpg\")));\n }", "title": "" }, { "docid": "e3cf732c283eb184a05da551271ec020", "score": "0.5809936", "text": "@SideOnly(Side.CLIENT)\n\t@Override\n\tpublic void registerIcons(IIconRegister par1IconRegister) {\n\t}", "title": "" }, { "docid": "ee47dbefb944dfb6208bd99acc42bb3c", "score": "0.5809766", "text": "public void imageUpdated();", "title": "" }, { "docid": "606c6f19099daa83530811067d8c94fa", "score": "0.580182", "text": "public void flagTile() {\n coverImage = new ImageIcon(\"/Users/Loki/Downloads/p1_NipunAlanSamuel_Minesweeper/src/Images/flag.png\", \"Tile with flag\");\n display = coverImage;\n super.setIcon(display);\n isFlagged = true;\n }", "title": "" }, { "docid": "88bb115b7fbe8dc49f61583f2a72cb8e", "score": "0.57874966", "text": "public void setIconSource(IconSource iconSource) {\n this.iconSource = iconSource;\n }", "title": "" }, { "docid": "ebf54cc3b157dbea2d8a89c5928a0dd8", "score": "0.5781094", "text": "@Override\n public void mouseEntered(MouseEvent ev) { \n label.setIcon(iconHover);\n }", "title": "" }, { "docid": "54e65a57f02dae09e7439c3a73b85eb8", "score": "0.57782185", "text": "protected void updateAllPaints() {\n mElementImage.setAlpha(mAlpha);\n mElementImage.setDither(mDither);\n if (mIconColorFilter == null) {\n mElementImage.setColorFilter(mColorFilter);\n }\n }", "title": "" }, { "docid": "19439da55813846152103df6f56df31a", "score": "0.57707745", "text": "public void setGeneratedIcon(boolean val)\n {\n generatedIcon = val;\n }", "title": "" } ]
b6b2b7ea814a88062002615222f43147
Create a ConfigurationHandler from a configuration file
[ { "docid": "e9bd8a8550c7dc49a1e2375988b9d4f3", "score": "0.67375225", "text": "ConfigurationHandler(final File file) throws ConfigurationException {\n if (!file.exists()) {\n String message = \"Configuration file is missing.\";\n throw new IllegalArgumentException(message);\n }\n\n this.file = file;\n this.config = new PropertiesConfiguration(file);\n this.configCheck = new ConfigurationHandlerCheck();\n }", "title": "" } ]
[ { "docid": "4ae537f6c644e9b5e7192e975842ac79", "score": "0.6873137", "text": "ConfigurationHandler(final String path) throws ConfigurationException {\n this.file = new File(path);\n this.config = new PropertiesConfiguration(this.file);\n this.configCheck = new ConfigurationHandlerCheck();\n }", "title": "" }, { "docid": "2cea235f75cbb67798baed894f89bef5", "score": "0.64893746", "text": "ConfigurationHandler(final URL url) throws ConfigurationException {\n this.file = new File(url.getFile());\n this.config = new PropertiesConfiguration(this.file);\n this.configCheck = new ConfigurationHandlerCheck();\n }", "title": "" }, { "docid": "ef37da1b2fe3a2871a7e142d5587e3db", "score": "0.6020435", "text": "public void configHandler(Handlers me) {\n }", "title": "" }, { "docid": "73850f0839d870e462079fff60442a4e", "score": "0.5997958", "text": "public WarpConfigurationHandler() {\n super();\n }", "title": "" }, { "docid": "506838298ab8b42d0649824ad8396d10", "score": "0.58685315", "text": "public void setHandlerConfiguration(Configuration cfg) {\n this.handlerConfiguration = cfg;\n }", "title": "" }, { "docid": "3af5c82e88e20d1ee1770483587fbf57", "score": "0.56590813", "text": "public Configurator(File file) {\n\t\tthis.configurationParser = new ConfigurationParser(file);\n\t}", "title": "" }, { "docid": "6385bba25333dedc27b906764b38a4bd", "score": "0.56303936", "text": "public Config(File config) { // constructor for explicit config parameter\n init(config);\n }", "title": "" }, { "docid": "4eddd63beb416ea2693d7e62b4186ed7", "score": "0.5593096", "text": "void configure(Map<String, Object> configuration);", "title": "" }, { "docid": "1116adbfb8a613ba188b914510a314a2", "score": "0.55625904", "text": "@Override\r\n\tpublic void configHandler(Handlers me) {\n\t}", "title": "" }, { "docid": "e469644d67122d11fb2597b02d77e4f2", "score": "0.5517234", "text": "@SuppressWarnings(\"unchecked\")\n public Configuration(String config) throws IOException {\n this.config = new ObjectMapper().readValue(config, HashMap.class);\n }", "title": "" }, { "docid": "caa62ce560a9bf228e2030d8d2da6c61", "score": "0.54808193", "text": "@Override\n public Configuration loadConfig(File configFile) throws ConfigurationException {\n\n try {\n JAXBContext jc = JAXBContext.newInstance(Config.class);\n Unmarshaller unmarshaller = jc.createUnmarshaller();\n LOGGER.info(\"Attempt to load configuration from file {} as xml\", configFile);\n Config config = (Config) unmarshaller.unmarshal(configFile);\n Configuration loadedConfig = new Configuration();\n\n if (config.getDaemon() != null) {\n loadedConfig.setBindAddress(config.getDaemon().getAddress());\n loadedConfig.setPort(config.getDaemon().getPort());\n loadedConfig.setSingleFetchAllowed(config.getDaemon().isAllowSingleFetch());\n loadedConfig.setBannerHostname(config.getDaemon().getBannerHostname());\n }\n Mapper mapper = getMapper();\n\n for (CategoryType category : config.getCategory()) {\n loadedConfig.getConfiguration().add(mapper.map(category, Category.class));\n }\n LOGGER.debug(\"Finished loading configuration\");\n return loadedConfig;\n }\n catch (JAXBException e) {\n LOGGER.error(\"Can not load configuration\", e);\n throw new ConfigurationException(e);\n }\n }", "title": "" }, { "docid": "3b3f3ff22a74ffe54b0db994075372c3", "score": "0.5457175", "text": "public static INIConfiguration readConfig(String filename) {\n DefaultExpressionEngine \t\t\t\tengine;\n Parameters \t\t\t\t\t\tparams;\n FileBasedConfigurationBuilder<INIConfiguration> \tbuilder;\n File \t\t\t\t\t\tfile;\n\n file = new File(filename);\n if (!file.exists())\n return null;\n\n engine = new DefaultExpressionEngine(\n DefaultExpressionEngineSymbols.DEFAULT_SYMBOLS,\n NodeNameMatchers.EQUALS_IGNORE_CASE);\n\n params = new Parameters();\n builder =\n new FileBasedConfigurationBuilder<>(INIConfiguration.class)\n\t.configure(params.hierarchical()\n\t .setFileName(filename)\n\t .setExpressionEngine(engine));\n try {\n return builder.getConfiguration();\n }\n catch (Exception e) {\n System.err.println(\"Failed to parse: \" + filename);\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "697f9993cf8cbb091fc692a64fb5af86", "score": "0.5455916", "text": "public ServerConfiguration(InputStream in) throws SAXException,\r\n ParserConfigurationException, IOException {\r\n reload(in);\r\n }", "title": "" }, { "docid": "723bc324039adcb8519c47b2c6ed9799", "score": "0.5444992", "text": "private void create(String xsdFilename) throws ConfigurationException {\n \t\ttry {\n \t\t\t// Obtain a new instance of a SAXParserFactory.\n \t\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n \t\t\tfactory.setNamespaceAware(true);\n \t\t\tfactory.setValidating(true);\n \n \t\t\tSchemaFactory schemaFactory = SchemaFactory\n \t\t\t\t\t.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n \t\t\tURL resource = Thread.currentThread().getContextClassLoader()\n \t\t\t\t\t.getResource(xsdFilename);\n \t\t\tschema = schemaFactory.newSchema(resource);\n \t\t\tfactory.setSchema(schema);\n \n \t\t\tsaxParser = factory.newSAXParser();\n\t\t} catch (Throwable t) {\n\t\t\tthrow new ConfigurationException(\"Could not create a SAXParser: \",\n\t\t\t\t\tt);\n \t\t}\n \t}", "title": "" }, { "docid": "d68793c5244d3722adccc0a7305059da", "score": "0.54423636", "text": "public RkdapHandler(final Map config) throws MalformedURLException {\n this(getAsString(config, \"url\"), getAsString(config, \"dadID\"));\n }", "title": "" }, { "docid": "ff54e7ec02870050d947acb4bfde5786", "score": "0.5383949", "text": "public Configuration getHandlerConfiguration() {\n return this.handlerConfiguration;\n }", "title": "" }, { "docid": "0e2f7b16da41f585b16fc8eac85bc0b7", "score": "0.53679615", "text": "ObjectName loadConfiguration(URI configId) throws NoSuchConfigException, IOException, InvalidConfigException;", "title": "" }, { "docid": "af7b9eb4c07c16c97e5de1baa4b76f07", "score": "0.5348552", "text": "public INIFile() {\n this(new INIConfiguration());\n }", "title": "" }, { "docid": "499fcf3ecd6dc2fbe3d784aa41bbd12f", "score": "0.5345605", "text": "public CommandProcessHandler createProcessHandler(Command command) throws ConfigurationException {\n return null;\r\n }", "title": "" }, { "docid": "413e8975ca4de0439ad51d555111eefc", "score": "0.5336644", "text": "public ConfigFile getOrCreateConfigFile(String namespace, ConfigFileFormat configFileFormat);", "title": "" }, { "docid": "e8d4307bd4dc8a30be6d4ebdcfad124a", "score": "0.5330493", "text": "public FileReaderProviderConfiguration() {\n\n }", "title": "" }, { "docid": "2108aa3d78932d505a170e8b68dcc048", "score": "0.5319828", "text": "public interface ConfigurationReader {\n\n /**\n * Adds a new configuration resource.\n * \n * @param configuration\n */\n void addConfiguration(URL configuration);\n\n /**\n * Adds a new binding ie a variable which name will be evaluated reading the\n * configuration script\n */\n void addBinding(String key, Object reference);\n\n /**\n * Clear all configuration data.\n */\n void reset();\n\n /**\n * Builds configuration data.\n * \n * @return true if method complete succesfully, false otherwise.\n */\n boolean build();\n\n /**\n * Builds configuration data for the given enviroment.\n * \n * @return if method complete succesfully\n */\n boolean build(String enviroment);\n\n /*\n * Usable in edge cases, ie ...\n * \n * @param <T>\n * \n * @param key\n * \n * @param type\n * \n * @return a typed instance for the given key or null, if key not found\n */\n // <T> T get(String key, Class<T> type);\n\n /**\n * Get a configuration value\n * \n * @param key\n * @return the value of the specified key, implicitally casted as required\n * or null if something goes wrong\n */\n <T> T get(String key);\n\n Map<String, Object> getAllProperties();\n\n /*\n * \n * @param prefix\n * \n * @return a map of configurations data with key starting with prefix\n */\n Map<String, Object> getBulk(String prefix);\n\n // Map<String, Object> getBulk(String prefix, ConfigObject configObject);\n\n // void parseAppConfiguration(String appConfigurationPath);\n\n // void parseDatasetConfiguration(String datasetConfigurationPath);\n \n /**\n * \n * @return a brand new instance\n */\n ConfigurationReader getDedicatedInstance();\n\n}", "title": "" }, { "docid": "b872916dc613ee89d9b052321cce14ff", "score": "0.530783", "text": "public abstract void parseConfig() throws ConfigurationException;", "title": "" }, { "docid": "657878d46d441a9da3a2f67f912228bb", "score": "0.530033", "text": "public static RedirectConfig newInstance(File file) throws ConfigException {\n return ConfigLoader.parse(new RedirectConfig.Handler(), file);\n }", "title": "" }, { "docid": "8d3c62b0abc87215e65084020a707ed7", "score": "0.52607644", "text": "public ConfigurationFileView(ConfigurationFile file) {\n this.file = file;\n }", "title": "" }, { "docid": "3207cb6641e519474add46641d76cabd", "score": "0.52532005", "text": "void initConfiguration(Configuration configuration);", "title": "" }, { "docid": "e0b6499d89a69da653f17ec9726b1165", "score": "0.5250835", "text": "@SuppressWarnings(\"unchecked\")\n void initHandlersFromConfig( Config config ) \n {\n NodeList nodes = (NodeList)config.evaluate(\"requestHandler\", XPathConstants.NODESET);\n \n if (nodes !=null ) {\n // make sure it only once/handler and that that handlers get initalized in the \n // order they were defined\n Map<String,NamedList<Object>> names = new LinkedHashMap<String,NamedList<Object>>(); \n for (int i=0; i<nodes.getLength(); i++) {\n Node node = nodes.item(i);\n \n // In a production environment, we can tolerate an error in some request handlers, \n // still load the others, and have a working system.\n try {\n String name = DOMUtil.getAttr(node,\"name\",\"requestHandler config\");\n String className = DOMUtil.getAttr(node,\"class\",\"requestHandler config\");\n String startup = DOMUtil.getAttr(node,\"startup\", null );\n NamedList<Object> args = DOMUtil.childNodesToNamedList(node);\n \n // Perhaps lazy load the request handler with a wrapper\n SolrRequestHandler handler = null;\n if( \"lazy\".equals( startup ) ) {\n log.info(\"adding lazy requestHandler: \" + name + \"=\" + className);\n handler = new LazyRequestHandlerWrapper( className, args );\n }\n else {\n Class<? extends SolrRequestHandler> clazz = Config.findClass( className, new String[]{} );\n log.info(\"adding requestHandler: \" + name + \"=\" + className);\n handler = clazz.newInstance();\n }\n \n SolrRequestHandler old = register( name, handler );\n if( old != null ) {\n // TODO: SOLR-179?\n log.warning( \"multiple handlers registered on the same path! ignoring: \"+old );\n }\n names.put( name, args );\n } \n catch (Exception e) {\n SolrConfig.severeErrors.add( e );\n SolrException.logOnce(log,null,e);\n }\n }\n \n // Call init() on each handler after they have all been registered\n for( Map.Entry<String, NamedList<Object>> reg : names.entrySet() ) {\n try {\n handlers.get( reg.getKey() ).init( reg.getValue() );\n }\n catch( Exception e ) {\n SolrConfig.severeErrors.add( e );\n SolrException.logOnce(log,null,e);\n }\n }\n }\n \n //\n // Get the default handler and add it in the map under null and empty\n // to act as the default.\n //\n SolrRequestHandler handler = get(RequestHandlers.DEFAULT_HANDLER_NAME);\n if (handler == null) {\n handler = new StandardRequestHandler();\n register(RequestHandlers.DEFAULT_HANDLER_NAME, handler);\n }\n register(null, handler);\n register(\"\", handler);\n }", "title": "" }, { "docid": "fc55adef26c0259f8d07b785788444ae", "score": "0.52447283", "text": "public Configuration() {\n this.config = new HashMap<String, String>();\n }", "title": "" }, { "docid": "f003dde6ee63f956bfd69a2615933fb5", "score": "0.52234226", "text": "public BundleConfigurationReader(File bundleConfigurationFile) {\n Objects.requireNonNull(bundleConfigurationFile,\n \"Bundle configuration file cannot be null.\");\n String fileContents;\n try {\n fileContents = new String(\n Files.readAllBytes(bundleConfigurationFile.toPath()),\n StandardCharsets.UTF_8);\n } catch (IOException e) {\n throw new UncheckedIOException(String.format(\n \"Failed to read specified bundle configuration file %s.\",\n bundleConfigurationFile), e);\n }\n\n try {\n bundleConfigurationJson = Json.parse(fileContents);\n } catch (JsonException e) {\n throw new IllegalArgumentException(String.format(\n \"Specified bundle configuration file '%s' does not contain valid Json.\",\n bundleConfigurationFile), e);\n }\n }", "title": "" }, { "docid": "e6ad4fe229fef1c8b75757a5310c08f8", "score": "0.52183217", "text": "public static GroovyConfig create (String filename) {\r\n\r\n\t\treturn create().load(filename);\r\n\t}", "title": "" }, { "docid": "d1345bd332d72b67c0fbd611dc9de8e2", "score": "0.52096367", "text": "public Config createConfig();", "title": "" }, { "docid": "5c96968332a4688b8b2c69fef58578af", "score": "0.5207972", "text": "private static LoadIncrementalHFiles createHFileLoader(Configuration conf) {\n try {\n return new LoadIncrementalHFiles(conf); // throws Exception\n } catch (Exception exn) {\n throw new InternalFijiError(exn);\n }\n }", "title": "" }, { "docid": "031b9212056986e78a50363f4839fcc6", "score": "0.52006316", "text": "public FileHandler() {\r\n }", "title": "" }, { "docid": "ef3bb88dfe877ef58dd34aa92d459d4c", "score": "0.51811993", "text": "DOMConfigurationReader(){}", "title": "" }, { "docid": "63b793e4e36c98310987efa64533c275", "score": "0.51764673", "text": "public INIFile(File file) {\n this(readConfig(file.getAbsolutePath()));\n }", "title": "" }, { "docid": "f8877d2803e6c730e21a66898eeb3c94", "score": "0.5137219", "text": "public ConfigManager(String filePath) throws IOException, IllegalArgumentException {\n properties = new Properties();\n properties.load(new BufferedReader(new FileReader(filePath)));\n\n //Database values\n this.databaseHost = properties.getProperty(DATABASE_HOST_VAR, DATABASE_HOST_DEFAULT);\n this.databaseUsername = properties.getProperty(DATABASE_USERNAME_VAR, DATABASE_USERNAME_DEFAULT);\n this.databasePassword = properties.getProperty(DATABASES_PASSWORD_VAR, DATABASES_PASSWORD_DEFAULT);\n this.databaseTable = properties.getProperty(DATABASE_TABLE_VAR, DATABASE_TABLE_DEFAULT);\n\n //Server values\n this.serverID = Conversions.stringToInt(properties.getProperty(SERVER_ID_VAR, SERVER_ID_DEFAULT));\n this.gameServerPort = Conversions.stringToInt(properties.getProperty(GAME_SERVER_PORT_VAR, GAME_SERVER_PORT_DEFAULT));\n this.policyServerPort = Conversions.stringToInt(properties.getProperty(POLICY_SERVER_PORT_VAR, POLICY_SERVER_PORT_DEFAULT));\n this.chatServerPort = Conversions.stringToInt(properties.getProperty(CHAT_SERVER_PORT_VAR, CHAT_SERVER_PORT_DEFAULT));\n this.webServerPort = Conversions.stringToInt(properties.getProperty(WEB_SERVER_PORT_VAR, WEB_SERVER_PORT_DEFAULT));\n\n //Other values\n this.autoSaveTime = Conversions.stringToInt(properties.getProperty(AUTO_SAVE_TIME_VAR, AUTO_SAVE_TIME_DEFAULT));\n this.debugMode = Conversions.stringToBoolean(properties.getProperty(DEBUG_MODE_VAR, DEBUG_MODE_DEFAULT));\n\n }", "title": "" }, { "docid": "88fbe737fd7b658a00829f647daa7c89", "score": "0.51293504", "text": "zza(ConfigurationContentLoader configurationContentLoader, Handler handler) {\n super(null);\n this.zza = configurationContentLoader;\n }", "title": "" }, { "docid": "e47140398d7a24cae2acb846299655f1", "score": "0.5114968", "text": "public void initOutputHandler (ConfigFile config, \n ConfiguredOutputHandler cfgHandler)\n throws ConfigurationException,\n CurnException\n {\n this.config = config;\n \n File outputFile = super.getOutputFile();\n try\n {\n log.debug (\"Opening output file \\\"\" + outputFile + \"\\\"\");\n out = new WordWrapWriter (new FileWriter (outputFile));\n }\n \n catch (IOException ex)\n {\n throw new CurnException (Curn.BUNDLE_NAME,\n \"OutputHandler.cantOpenFile\",\n \"Cannot open file \\\"{0}\\\" for output\",\n new Object[] {outputFile.getPath()},\n ex);\n }\n }", "title": "" }, { "docid": "780f3b351d09d012289c1a01c1546733", "score": "0.5094184", "text": "public static Config loadFromFile() {\n File f = new File(\"config.dat\");\n if (f.exists()) {\n try {\n FileInputStream file = new FileInputStream(f);\n ObjectInputStream obj = new ObjectInputStream(file);\n Config config = (Config) obj.readObject();\n obj.close();\n file.close();\n return config;\n } catch (IOException | ClassNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } else {\n try {\n f.createNewFile();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n return new Config();\n }", "title": "" }, { "docid": "17c2a52519019bf0b1e2a6eb065fc8a9", "score": "0.50855166", "text": "public Config(File configFile)\n\tthrows ConfigException\n\t{\n\t\tthis(configFile, true);\n\t}", "title": "" }, { "docid": "a62c66c8d8331db044ebfa2c49c43bc3", "score": "0.50785446", "text": "void config(Map configuration);", "title": "" }, { "docid": "b61e510df79d4d7e3e47557c43b18568", "score": "0.50739026", "text": "public SkycatConfigFile(URL url, HTMLQueryResultHandler handler) {\n super(new File(url.toString()).getPath());\n setURL(url);\n setHTMLQueryResultHandler(handler);\n _load();\n }", "title": "" }, { "docid": "d6ce3a6398cd797991124a7b5aad4e1f", "score": "0.50572366", "text": "T parse(String configValue) throws InvalidConfigurationException;", "title": "" }, { "docid": "ab5dab6814630e93d657aea1d1704dc1", "score": "0.5054298", "text": "public INIFile(String filename) {\n this(readConfig(filename));\n }", "title": "" }, { "docid": "9e148dba0e0d8254db2791fb8163ade6", "score": "0.505154", "text": "public StrutsXmlConfigurationProvider(String filename) {\n this(filename, null);\n }", "title": "" }, { "docid": "e4f5ed8690980f554c2f4d646addd55b", "score": "0.503628", "text": "private ConfigurationDAO() {\n\t\tthis.map = new HashMap<Configuration, File>();\n\t}", "title": "" }, { "docid": "854b77af3c72764c757ba44fbbc9fbee", "score": "0.5035822", "text": "public ConfigFile() {\n\t\tsuper();\n\t\tbusProperties = new Properties();\n\t}", "title": "" }, { "docid": "f30825951c92d995ce32a241901f36af", "score": "0.50216615", "text": "public synchronized ITManagServersConfiguration LoadConfiguartions(String filePath)\n\tthrows Exception\n\t{\n\t\tif (info != null) \n\t\t{\n\t\t\tFile f = new File(filePath);\n\n\t\t\tif (f.exists()) \n\t\t\t{\n\t\t\t\tString readFileAsString = CommonUtil.readFileAsString(filePath);\n\n\t\t\t\tif (!StringUtil.isEmptyOrNull(readFileAsString)) \n\t\t\t\t{\n\t\t\t\t\tinfo = JAXB.unmarshal(new StringReader(readFileAsString),\n\t\t\t\t\t\t\tITManagServersConfiguration.class);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.server.clear();\n\t\t\t\tinfo.setServer(server);\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\treturn info;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn getInstance();\n\t\t}\n\n\t\n\t}", "title": "" }, { "docid": "42c2038004143ab0973ecbc3b8274c1f", "score": "0.50187105", "text": "<T> T getConfiguration(String configId, Class<T> configClass);", "title": "" }, { "docid": "e5d0dd812bbdaa4309de763590c0e392", "score": "0.49952197", "text": "public ConfManager(String filename) {\n File dataFolder = RoyalCommands.dataFolder;\n synchronized (RoyalCommands.instance.confs) {\n if (RoyalCommands.instance.confs.containsKey(filename)) {\n pconf = RoyalCommands.instance.confs.get(filename);\n pconfl = new File(dataFolder + File.separator + filename);\n return;\n }\n }\n pconfl = new File(dataFolder + File.separator + filename);\n if (!pconfl.exists()) {\n try {\n pconfl.getParentFile().mkdirs();\n pconfl.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n }\n pconf = YamlConfiguration.loadConfiguration(pconfl);\n synchronized (RoyalCommands.instance.confs) {\n RoyalCommands.instance.confs.put(filename, pconf);\n }\n }", "title": "" }, { "docid": "5ba15aa199201f9af023363eddd892f9", "score": "0.4977324", "text": "public INIFile(INIConfiguration configuration) {\n super();\n if (configuration == null)\n throw new IllegalArgumentException(\"Configuration cannot be null!\");\n m_Configuration = configuration;\n }", "title": "" }, { "docid": "b14bd2a16c54d368f9466d358eeff48a", "score": "0.49737513", "text": "private Configuration() {\n\t}", "title": "" }, { "docid": "73d7912ee35f6255e5a4a68973106a66", "score": "0.4960146", "text": "public Configuration getConfiguration();", "title": "" }, { "docid": "82c38e49089f7b921e84abed7fb6476e", "score": "0.49513635", "text": "public static void loadConfigurationFile() {\n Ini ini = null;\n try {\n ini = new Ini(new File(\"src/main/configuration.ini\"));\n }\n catch (IOException e) {\n System.out.println(\"Cannot find src/main/configuration.ini \" + e);\n }\n setConfiguration(ini);\n }", "title": "" }, { "docid": "886ffbdeb35a8f2cd21f56616774986a", "score": "0.49508598", "text": "public void configure(Properties configuration) throws ConfigurationException;", "title": "" }, { "docid": "713eaa88f0973e5b8fea02c597be8ba0", "score": "0.4949572", "text": "public ConfigFileReader() {\r\n\t\ttry {\r\n\t\t\tFileReader fr = new FileReader(propertyFilePath);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(br);\r\n\t\t\t\tbr.close();\r\n\t\t\t}\r\n\r\n\t\t\tcatch (IOException e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcatch (FileNotFoundException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "f6dfbf887ba0dfd6aba09bd65af1b043", "score": "0.49493083", "text": "public ConfManager(File file) {\n File dataFolder = RoyalCommands.dataFolder;\n synchronized (RoyalCommands.instance.confs) {\n if (RoyalCommands.instance.confs.containsKey(file.getName())) {\n pconf = RoyalCommands.instance.confs.get(file.getName());\n pconfl = new File(dataFolder + File.separator + file.getName());\n return;\n }\n }\n pconfl = new File(dataFolder + File.separator + file.getName());\n if (!pconfl.exists()) {\n try {\n pconfl.getParentFile().mkdirs();\n pconfl.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n }\n pconf = YamlConfiguration.loadConfiguration(pconfl);\n synchronized (RoyalCommands.instance.confs) {\n RoyalCommands.instance.confs.put(file.getName(), pconf);\n }\n }", "title": "" }, { "docid": "5d5428b688d4cabe0335d635c1874c68", "score": "0.49334642", "text": "private void createConfigurator()\r\n\t{\r\n\t\ttry {\r\n\t\t\tBXMLSerializer bxmlSerializer = new BXMLSerializer();\r\n\t bxmlSerializer.getNamespace().put(\"application\", this);\r\n\t this.configurator = (Configurator)bxmlSerializer.readObject(getClass().getResource(\"/de/unihannover/swp2015/robots2/application/bxml/Configurator.bxml\"));\r\n\t\t\tconfigurator.setPreferredSize(initialWidth, initialHeight);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAlert.alert(MessageType.INFO, e.getMessage(), ControlPanel.this);\r\n\t\t\treturn;\r\n\t\t} catch (SerializationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAlert.alert(MessageType.INFO, \"Could not parse: \\n\" + e.getMessage(), ControlPanel.this);\r\n\t\t\treturn;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAlert.alert(MessageType.INFO, \"Other exception: \\n\" + e.getMessage(), ControlPanel.this);\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "54a6d581a3916d76041732c46f2ccfbe", "score": "0.4914598", "text": "public ConfigAccessor(JavaPlugin plugin, File file, String defResource) { init(plugin, null, file, defResource); }", "title": "" }, { "docid": "ddb29b595a246ba3137ec953e38b2189", "score": "0.48992005", "text": "PluginConfiguration createPluginConfiguration();", "title": "" }, { "docid": "5d878999b2da3db5d1db370c742e4632", "score": "0.48966795", "text": "public void loadConfig();", "title": "" }, { "docid": "6b39014485b2a42ec03c8489213699fd", "score": "0.48947528", "text": "public ConfigAccessor(JavaPlugin plugin, String fileName, String defResource) { init(plugin, fileName, null, defResource); }", "title": "" }, { "docid": "c99f65a418f42675023bdf1e23b97357", "score": "0.48888", "text": "@PostConstruct\n public void init() throws ConfigurationException\n {\n ConfigurationRegistry.setStaticRegistry(this);\n File configFileName = this.getConfigurationYamlFile();\n logger.info(\"YAML configuration file: {}\", configFileName.getAbsolutePath());\n\n try\n {\n Configuration config = Configuration.newConfiguration(configFileName, this);\n if (config.get(ConfigValueKeys.CONNECTION_URL) == null || config.get(\"connection.username\") == null\n || config.get(\"connection.password\") == null)\n {\n logger.warn(\"Default configuration file is missing required options and can't be used yet.\");\n }\n switchConfiguration(config, false);\n }\n catch (ConfigurationException e)\n {\n logger.info(\"Could not read configuration file, using a blank one: {}\", e.getMessage());\n Configuration config = new Configuration();\n config.addDefaults();\n config.wire();\n current = config;\n }\n }", "title": "" }, { "docid": "2207801989b596b7148246be06b8821a", "score": "0.48867416", "text": "public CreateHandler(UserFile userFile) {\n mUserFile = userFile;\n }", "title": "" }, { "docid": "e093c7cd8c889785787b66c3cf42ea6b", "score": "0.48856422", "text": "public BaseBuilder(StatementHandler.Configuration configuration) {\n this.configuration = configuration;\n this.typeAliasRegistry = this.configuration.getTypeAliasRegistry();\n this.typeHandlerRegistry = this.configuration.getTypeHandlerRegistry();\n }", "title": "" }, { "docid": "e199784d17a558c545516143df876cc0", "score": "0.4876421", "text": "public static FileConfiguration getConfig() {\n return config;\n }", "title": "" }, { "docid": "83da72b996724b9dce628f2cc2c50849", "score": "0.48756343", "text": "public ConfigurationBuilderHolder parseFile(String filename, String transportOverrideResource, ServiceManager serviceManager) throws IOException {\n ClassLoaderService classLoaderService = serviceManager.requestService(ClassLoaderService.class);\n try {\n return parseFile(classLoaderService, filename, transportOverrideResource);\n } finally {\n serviceManager.releaseService(ClassLoaderService.class);\n }\n }", "title": "" }, { "docid": "040f9b7418193742c25cfd9fd57dcef6", "score": "0.48657987", "text": "private void parseConfig(){\n\t\tthis.config = new Properties();\n\t\t//load config properties file\n\t\ttry {\t\t\t\t\n\t\t\tInputStream fis = getClass().getResourceAsStream(CONFIG_PATH);\n\t\t\tconfig.load(fis);\n\t\t\tif (fis != null)\n\t \t\tfis.close();\n\t\t} \n\t\tcatch (FileNotFoundException e){\n\t\t\tthis.writeToProbeLog(Level.SEVERE,\"config file not found\");\n\t\t} \n\t\tcatch (IOException e){\n\t\t\tthis.writeToProbeLog(Level.SEVERE,\"config file parsing error\");\n\t\t}\n\t}", "title": "" }, { "docid": "8bee8bf932cf8bfaa3ddbfee9dce5e48", "score": "0.48644868", "text": "public void init() throws InitializationException\n\t{\t\n\t\tJSONObject configurationObj;\n\t\t\n\t\ttry(BufferedReader in = Files.newBufferedReader(path, Charset.forName(\"UTF-8\")))\n\t\t{\n\t\t\tconfigurationObj = (JSONObject) parser.parse(in);\t\t\t\n\t\t} \n\t\t\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\tthrow new InitializationException(\"Unable to open file\");\n\t\t}\n\t\t\n\t\tcatch ( ParseException iope)\n\t\t{\n\t\t\tthrow new InitializationException(\"Unable to parse file\");\n\t\t}\n\t\t\n\t\t// Get input from Json\n\t\tcheckInput(configurationObj);\n\t}", "title": "" }, { "docid": "844b0d99c050f97b1da5698f8fb59f4d", "score": "0.48644608", "text": "@Override\n public void init(File jsonFile) throws PluginException {\n try {\n config = new JsonConfigHelper(jsonFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "255af4073ef2f92242ca247774d941eb", "score": "0.4863261", "text": "DataProvider create(Map<String, String> config) throws PluginLoadException;", "title": "" }, { "docid": "79d615d484ae95733feee0da77738cec", "score": "0.4863077", "text": "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n private void loadConfig() throws IOException {\n if (!libDir.exists()) {\n libDir.mkdir();\n }\n if (!configFile.exists()) {\n makeConfig();\n }\n config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(configFile);\n }", "title": "" }, { "docid": "e2569ba5b161af32f01c1cd7e39fa2d2", "score": "0.4861796", "text": "public static DatabaseConfig loadDbConfiguration (Context c)\n {\n return new DatabaseConfig(c);\n }", "title": "" }, { "docid": "1aaef7c132fedd85f3e5d45d66db49a2", "score": "0.48546746", "text": "@Override\n public void init(File configPath) {\n }", "title": "" }, { "docid": "d87101c69d2094e44aba70a8c4bfdc7e", "score": "0.48508313", "text": "public MessageServer(File cfg) {\n init(cfg);\n }", "title": "" }, { "docid": "d93242dca006217c88cc9b2c343b0ebe", "score": "0.4843384", "text": "void addConfiguration(URL configuration);", "title": "" }, { "docid": "812931a609364807e721f057612dbe38", "score": "0.48289537", "text": "public Config()\n {\n properties = new Properties();\n try {\n FileReader reader = new FileReader(\"config.properties\");\n properties.load(reader);\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "47182cdc8e101d19ba71831606b2fafb", "score": "0.48243", "text": "private static ServerConfiguration getServerConfiguration() throws IOException, ConfigurationException\n {\n Properties props = getConfigurationProperties();\n\n return (props == null ? new ServerConfigurationImpl() : new ServerConfigurationImpl(props));\n }", "title": "" }, { "docid": "7f4748e376655be71d3cf3ea43d24145", "score": "0.48242685", "text": "public Configuration(Path path)\n\t{\n\t\tthis.path = path;\n\t\tthis.parser = new JSONParser();\n\t\tthis.numberOfThreads = 0;\n\t}", "title": "" }, { "docid": "ddb4c64b9bd848f916927e79f21a9205", "score": "0.48241672", "text": "private static void loadConfiguration(String fileName) {\n\t\tSystem.out.println(\"Loading configuration file: \" + fileName);\n\t\tProperties prop = new Properties();\n\t\tInputStream is;\n\t\ttry {\n\t\t\tis = new FileInputStream(fileName);\n\t\t\tprop.load(is);\n\t\t} catch (NullPointerException | IOException e) {\n\t\t\tSystem.err.println(\"Cannot find configuration file: \" + e.getMessage());\n\t\t\tSystem.out.println(\"Loading default configuration\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tDEFAULT_PORT = Integer.parseInt(prop.getProperty(\"DEFAULT_PORT\"));\n\t\t\tCHAT_PORT = Integer.parseInt(prop.getProperty(\"CHAT_PORT\"));\n\t\t\tMTU = Integer.parseInt(prop.getProperty(\"MTU\"));\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.println(\"Bad configuration file format: \" + e.getMessage());\n\t\t}\n\n\t\tSERVER_ADDR = prop.getProperty(\"SERVER_ADDR\", SERVER_ADDR);\n\t\tREGISTRATION_OBJECT = prop.getProperty(\"REGISTRATION_OBJECT\", REGISTRATION_OBJECT);\n\t\tNOTIFICATION_OBJECT = prop.getProperty(\"NOTIFICATION_OBJECT\", NOTIFICATION_OBJECT);\n\t}", "title": "" }, { "docid": "b77223a136244353dfa8efdffb8aea88", "score": "0.48203778", "text": "public ConfigAccessor(JavaPlugin plugin, String fileName) { init(plugin, fileName, null, null); }", "title": "" }, { "docid": "134e3ff727d53779a7459a060c9ce95f", "score": "0.4817862", "text": "public ConfigAccessor(JavaPlugin plugin, File file) { init(plugin, null, file, null); }", "title": "" }, { "docid": "960b3cfd6d84c218b37d8915d1a0f6d2", "score": "0.48138765", "text": "public void load() throws Exception {\r\n Digester digester = new Digester();\r\n digester.push(this);\r\n digester.setValidating(false);\r\n\r\n /* String config */\r\n digester.addObjectCreate(\"Configurations/config\", Configuration.class);\r\n digester.addSetProperties(\"Configurations/config\", \"name\", \"name\");\r\n digester.addSetProperties(\"Configurations/config\", \"value\", \"value\");\r\n\r\n digester.addSetNext(\"Configurations/config\", \"addConfig\");\r\n\r\n /* List config */\r\n digester.addObjectCreate(\"Configurations/list\", ListConfiguration.class);\r\n digester.addSetProperties(\"Configurations/list\", \"name\", \"name\");\r\n digester.addCallMethod(\"Configurations/list/value\", \"add\", 1);\r\n digester.addCallParam(\"Configurations/list/value\", 0);\r\n\r\n digester.addSetNext(\"Configurations/list\", \"addListConfig\");\r\n\r\n File configure = new File(Configurator.getInstance().getServletContext().getRealPath(Configurator.Constants.APPLICATION_CONFIG_XML));\r\n digester.parse(configure);\r\n // digester.parse(this.getClass().getClassLoader().getResourceAsStream(configXml));\r\n }", "title": "" }, { "docid": "d49176a85eaa54c114e066b45a237340", "score": "0.4813774", "text": "private FTPClientCommandHandler getHandlerInstanceForCommand(String commandName) {\n\t\t\t\tFTPClientCommandHandler handlerInstance = null;\r\n\t\t\t\ttry {\r\n\t\t\t\tString handlerClassName = FTPClientManager.class.getName() + \"$\" + commandName + \"handler\";\r\n\t\t\t\t\r\n\t\t\t\t// Get a reference to its class object\r\n\t\t\t\tClass<?> handlerClass = Class.forName(handlerClassName);\r\n\t\t\t\t\r\n\t\t\t\t// Now we have to get at its constructor\r\n\t\t\t\tConstructor<?> handlerClassConstructor = handlerClass.getConstructor(new Class[]{this.getClass()});\r\n\t\t\t\t\r\n\t\t\t\t// And instantiate it\r\n\t\t\t\thandlerInstance = (FTPClientCommandHandler)handlerClassConstructor.newInstance(new Object[]{this});\r\n\r\n\t\t\t} catch (InstantiationException | IllegalAccessException | ClassNotFoundException \r\n\t\t\t\t\t| IllegalArgumentException | InvocationTargetException | NoSuchMethodException \r\n\t\t\t\t\t| SecurityException e) {\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn handlerInstance;\r\n\t}", "title": "" }, { "docid": "c42574cfd0fb6eda6f07dbaf2287599a", "score": "0.48137513", "text": "public <T extends ConfigModule> T createConfigModule(Class<T> configModuleClass, String identifier)\n\tthrows ConfigException\n\t{\n\t\tloadConfigModulesForClass(configModuleClass.getName());\n\n\t\ttry {\n\t\t\tConfigModule cfMod = configModules.get(getConfigModuleIdentifyingName(configModuleClass, identifier));\n\t\t\tif (cfMod == null) {\n\t\t\t\tcfMod = configModuleClass.newInstance();\n\t\t\t\tcfMod._setConfig(this);\n\t\t\t\tcfMod.setIdentifier(identifier);\n\t\t\t\tcfMod.init();\n\t\t\t\tconfigModules.put(getConfigModuleIdentifyingName(cfMod), cfMod);\n\t\t\t\tregisterLazyConfigModule(cfMod);\n\t\t\t}\n\n\t\t\tStringBuffer sbPrefix = new StringBuffer(configFile.getName());\n\t\t\tint lastSlashPos = sbPrefix.lastIndexOf(File.separator);\n\t\t\tsbPrefix.delete(0, lastSlashPos + 1);\n\t\t\tint lastDotPos = sbPrefix.lastIndexOf(\".\");\n\t\t\t// if there is no '.' in the filename use end of string\n\t\t\tif(lastDotPos == -1)\n\t\t\t\tlastDotPos = sbPrefix.length();\n\t\t\tString suffix = sbPrefix.substring(lastDotPos);\n\t\t\tsbPrefix.delete(lastDotPos, sbPrefix.length());\n\n\n\t\t\tputIncludedCfMod(\n\t\t\t\t\tsbPrefix.toString()+beforeClassName+\n\t\t\t\t\t//configModuleClass.getName()+ //\n\t\t\t\t\tgetConfigModuleIdentifyingName(cfMod)+\n\t\t\t\t\tsuffix,\n\t\t\t\t\tcfMod\n\t\t\t);\n\n\t\t\treturn configModuleClass.cast(cfMod);\n\t\t} catch (Throwable t) {\n\t\t\tthrow new ConfigException(t);\n\t\t}\n\t}", "title": "" }, { "docid": "f67d2c5b754701cd50ad1fe01ecf5c6a", "score": "0.4813375", "text": "public ConfigurationImpl() throws Exception {\n if (instantiated || !CliConfigurationImpl.class.isAssignableFrom(this.getClass())) {\n throw new RuntimeException(\"Illegal access to configuration.\");\n }\n Map<String, AggregateConfiguration> moduleConfigStore = new HashMap<>();\n List<URL> classpathResources = ConfigurationUtils.getAllClassPathResources();\n Predicate<URL> predicate = ConfigurationUtils::isConfig;\n for (URL url : classpathResources) {\n if (predicate.test(url)) {\n String moduleName = ConfigurationUtils.getConfigurationRepositoryKey(url);\n AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName);\n if (moduleConfig == null) {\n moduleConfig = new AggregateConfiguration();\n moduleConfigStore.put(moduleName, moduleConfig);\n }\n moduleConfig.addConfig(url);\n } else {\n NonConfigResource.add(url);\n }\n }\n String configLocation = System.getProperty(\"config.location\");\n if (configLocation != null && configLocation.trim().length() > 0) {\n File root = new File(configLocation);\n Collection<File> filesystemResources = ConfigurationUtils.getAllFiles(root, true, false);\n Predicate<File> filePredicate = ConfigurationUtils::isConfig;\n for (File file : filesystemResources) {\n if (filePredicate.test(file)) {\n String moduleName = ConfigurationUtils.getConfigurationRepositoryKey(file);\n AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName);\n if (moduleConfig == null) {\n moduleConfig = new AggregateConfiguration();\n moduleConfigStore.put(moduleName, moduleConfig);\n }\n moduleConfig.addConfig(file);\n } else {\n NonConfigResource.add(file);\n }\n }\n }\n String tenantConfigLocation = System.getProperty(\"tenant.config.location\");\n if (tenantConfigLocation != null && tenantConfigLocation.trim().length() > 0) {\n File root = new File(tenantConfigLocation);\n Collection<File> tenantsRoot = ConfigurationUtils.getAllFiles(root, false, true);\n Collection<File> filesystemResources = ConfigurationUtils.getAllFiles(root, true, false);\n Predicate<File> filePredicate = ConfigurationUtils::isConfig;\n for (File file : filesystemResources) {\n if (filePredicate.test(file)) {\n String moduleName = ConfigurationUtils.getNamespace(file);\n for (File tenanatFileRoot : tenantsRoot) {\n if (file.getAbsolutePath().startsWith(tenanatFileRoot.getAbsolutePath())) {\n moduleName = ConfigurationUtils.getConfigurationRepositoryKey(\n (tenanatFileRoot.getName().toUpperCase() + Constants.TENANT_NAMESPACE_SAPERATOR\n + moduleName).split(Constants.TENANT_NAMESPACE_SAPERATOR));\n }\n }\n AggregateConfiguration moduleConfig = moduleConfigStore.get(moduleName);\n if (moduleConfig == null) {\n moduleConfig = new AggregateConfiguration();\n moduleConfigStore.put(moduleName, moduleConfig);\n }\n moduleConfig.addConfig(file);\n }\n }\n }\n populateFinalConfigurationIncrementally(moduleConfigStore);\n ConfigurationRepository.lookup().initTenantsAndNamespaces();\n String nodeConfigLocation = System.getProperty(\"node.config.location\");\n if (nodeConfigLocation != null && nodeConfigLocation.trim().length() > 0) {\n File root = new File(nodeConfigLocation);\n Collection<File> filesystemResources = ConfigurationUtils.getAllFiles(root, true, false);\n Predicate<File> filePredicate = ConfigurationUtils::isConfig;\n for (File file : filesystemResources) {\n if (filePredicate.test(file)) {\n ConfigurationRepository.lookup().populateOverrideConfigurtaion(\n ConfigurationUtils.getConfigurationRepositoryKey(ConfigurationUtils.getNamespace(file)\n .split(Constants.TENANT_NAMESPACE_SAPERATOR)), file);\n }\n }\n }\n instantiated = true;\n changeNotifier = new ConfigurationChangeNotifier(moduleConfigStore);\n }", "title": "" }, { "docid": "bb9c863161778e279c81ace9fbcf253b", "score": "0.48130915", "text": "public interface Configuration {\n\n String PROFILES = \"profiles\";\n\n String PROFILES_PRODUCTION = \"prod\";\n String PROFILES_TEST = \"test\";\n\n String DEFAULT_HANDLER_CLASS = \"defaultHandlerClass\";\n String SERVICE_PACKAGE = \"servicePackage\";\n\n String SERVICE_PORT = \"svc.port\";\n\n}", "title": "" }, { "docid": "35a179a9397de141c72a6f5674752fdb", "score": "0.48093465", "text": "public de.uni_koblenz.jgralabtest.schemas.gretl.bedsl_pddsl.Configuration createConfiguration();", "title": "" }, { "docid": "e17897cced4e7b9d8439fdfebe993d75", "score": "0.48043895", "text": "void configure(ClassLoader templateClassLoader, TemplateConfiguration configuration);", "title": "" }, { "docid": "cd2c844b2f0bdb2db4724c6550413e5b", "score": "0.47878525", "text": "public interface ConfigManager\n{\n /**\n * Load given file as object using {@link org.diorite.cfg.system.Template} configuration system. <br>\n * This method will use UTF-8 as default encoding.\n *\n * @param file file to load.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any file-related operation fail.\n * @throws InvalidConfigurationException if config file is invalid.\n */\n default <T> T load(final File file) throws IOException, InvalidConfigurationException\n {\n return this.load(file, StandardCharsets.UTF_8);\n }\n\n /**\n * Load given file as object using {@link org.diorite.cfg.system.Template} configuration system. <br>\n * This method will use UTF-8 as default encoding.\n *\n * @param clazz type of object to load.\n * @param file file to load.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any file-related operation fail.\n * @throws InvalidConfigurationException if config file is invalid.\n */\n default <T> T load(final Class<T> clazz, final File file) throws IOException, InvalidConfigurationException\n {\n return this.load(clazz, file, StandardCharsets.UTF_8);\n }\n\n /**\n * Save given object to given file using {@link org.diorite.cfg.system.Template} configuration system.<br>\n * This method will use UTF-8 as default encoding.\n *\n * @param file file to use, file will be created if it don't exist yet. (including directory)\n * @param object object to save using templates, template will be created if it don't exist yet.\n *\n * @throws IOException if any file-related operation fail.\n */\n default void save(final File file, final Object object) throws IOException, InvalidConfigurationException\n {\n this.save(file, object, StandardCharsets.UTF_8);\n }\n\n /**\n * Load given file as object using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param file file to load.\n * @param charset charset to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any file-related operation fail.\n * @throws InvalidConfigurationException if config file is invalid.\n */\n default <T> T load(final File file, final Charset charset) throws IOException, InvalidConfigurationException\n {\n if (! file.exists())\n {\n throw new InvalidConfigurationException(\"File not found \\\"\" + file.getAbsolutePath() + \"\\\"\");\n }\n try (final FileInputStream input = new FileInputStream(file))\n {\n return this.load(input, charset);\n } catch (final FileNotFoundException ignored)\n {\n throw new RuntimeException(\"Impossible exception.\", ignored);\n }\n }\n\n /**\n * Load given file as object using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param clazz type of object to load.\n * @param file file to load.\n * @param charset charset to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any file-related operation fail.\n * @throws InvalidConfigurationException if config file is invalid.\n */\n default <T> T load(final Class<T> clazz, final File file, final Charset charset) throws IOException, InvalidConfigurationException\n {\n if (! file.exists())\n {\n throw new InvalidConfigurationException(\"File not found \\\"\" + file.getAbsolutePath() + \"\\\"\");\n }\n try (final FileInputStream input = new FileInputStream(file))\n {\n return this.load(clazz, input, charset);\n } catch (final FileNotFoundException ignored)\n {\n throw new RuntimeException(\"Impossible exception.\", ignored);\n }\n }\n\n /**\n * Save given object to given file using {@link org.diorite.cfg.system.Template} configuration system.<br>\n *\n * @param file file to use, file will be created if it don't exist yet. (including directory)\n * @param object object to save using templates, template will be created if it don't exist yet.\n * @param charset charset to use.\n *\n * @throws IOException if any file-related operation fail.\n */\n default void save(final File file, final Object object, final Charset charset) throws IOException, InvalidConfigurationException\n {\n if (! file.exists())\n {\n file.getAbsoluteFile().getParentFile().mkdirs();\n try\n {\n file.createNewFile();\n } catch (final IOException e)\n {\n throw new IOException(\"Can't create file: \\\"\" + file.getAbsolutePath() + \"\\\"\", e);\n }\n }\n try (final FileOutputStream output = new FileOutputStream(file))\n {\n this.save(output, object, charset);\n } catch (final FileNotFoundException ignored)\n {\n throw new RuntimeException(\"Impossible exception.\", ignored);\n }\n }\n\n\n /**\n * Load object from given {@link InputStream} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param input {@link InputStream} to load.\n * @param charset charset to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any stream-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n default <T> T load(final InputStream input, final Charset charset) throws IOException, InvalidConfigurationException\n {\n return this.load(new InputStreamReader(input, charset));\n }\n\n /**\n * Load object from given {@link InputStream} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param clazz type of object to load.\n * @param input {@link InputStream} to load.\n * @param charset charset to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any stream-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n default <T> T load(final Class<T> clazz, final InputStream input, final Charset charset) throws IOException, InvalidConfigurationException\n {\n return this.load(clazz, new InputStreamReader(input, charset));\n }\n\n /**\n * Save given object to given {@link OutputStream} using {@link org.diorite.cfg.system.Template} configuration system.<br>\n *\n * @param output output stream to use.\n * @param object object to save using templates, template will be created if it don't exist yet.\n * @param charset charset to use.\n *\n * @throws IOException if any stream-related operation fail.\n */\n default void save(final OutputStream output, final Object object, final Charset charset) throws IOException\n {\n this.save(new OutputStreamWriter(output, charset), object);\n }\n\n\n /**\n * Load object from given {@link InputStream} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n * This method will use UTF-8 as default encoding.\n *\n * @param input {@link InputStream} to load.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any stream-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n default <T> T load(final InputStream input) throws IOException, InvalidConfigurationException\n {\n return this.load(new InputStreamReader(input, StandardCharsets.UTF_8));\n }\n\n /**\n * Load object from given {@link InputStream} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n * This method will use UTF-8 as default encoding.\n *\n * @param clazz type of object to load.\n * @param input {@link InputStream} to load.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any stream-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n default <T> T load(final Class<T> clazz, final InputStream input) throws IOException, InvalidConfigurationException\n {\n return this.load(clazz, new InputStreamReader(input, StandardCharsets.UTF_8));\n }\n\n /**\n * Save given object to given {@link OutputStream} using {@link org.diorite.cfg.system.Template} configuration system.<br>\n * This method will use UTF-8 as default encoding.\n *\n * @param output output stream to use.\n * @param object object to save using templates, template will be created if it don't exist yet.\n *\n * @throws IOException if any stream-related operation fail.\n */\n default void save(final OutputStream output, final Object object) throws IOException\n {\n this.save(new OutputStreamWriter(output, StandardCharsets.UTF_8), object);\n }\n\n\n /**\n * Returns yaml instance used by this config manager.\n *\n * @return yaml instance used by this config manager.\n */\n DioriteYaml getYaml();\n\n /**\n * Load object from given {@link Reader} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param reader {@link Reader} to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any reader-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n <T> T load(Reader reader) throws IOException, InvalidConfigurationException;\n\n /**\n * Load object from given {@link Reader} using {@link org.diorite.cfg.system.Template} configuration system. <br>\n *\n * @param clazz type of object to load.\n * @param reader {@link Reader} to use.\n * @param <T> type of returned object.\n *\n * @return loaded object.\n *\n * @throws IOException if any reader-related operation fail.\n * @throws InvalidConfigurationException if config is invalid.\n */\n <T> T load(Class<T> clazz, Reader reader) throws IOException, InvalidConfigurationException;\n\n /**\n * Save given object to given {@link Writer} using {@link org.diorite.cfg.system.Template} configuration system.<br>\n *\n * @param writer {@link Writer} to use.\n * @param object object to save using templates, template will be created if it don't exist yet.\n *\n * @throws IOException if any writer-related operation fail.\n */\n void save(Writer writer, Object object) throws IOException;\n}", "title": "" }, { "docid": "4bd3ab2a0d615716b31266ee5dd2266c", "score": "0.4780929", "text": "Config getHazelcastConfig(String filename);", "title": "" }, { "docid": "b6777497a2c04997fd7411fd5d72db82", "score": "0.47796828", "text": "public static Configuration getInstance() throws IOException {\r\n\t\tif (configuration == null) { // if there is no instance created yet\r\n\t\t\tconfiguration = new Configuration(); // initialize configuration\r\n\t\t}\r\n\t\treturn configuration;\r\n\t}", "title": "" }, { "docid": "924c891d261e7d130e97201b3c8cfa03", "score": "0.47764575", "text": "public ServerConfiguration() {\n super();\n }", "title": "" }, { "docid": "e8522d7e3d612d3a265767ed718da056", "score": "0.47711927", "text": "public static XMLConfiguration getConfiguration(File file) {\n if (file == null) {\n throw new MyConfigurationException(\"Error: no configuration file\");\n }\n if (!file.exists()) {\n throw new MyConfigurationException(\"Error: file \\\"\" + file.getAbsolutePath() + \"\\\" does not exist\");\n }\n if (!file.isFile()) {\n throw new MyConfigurationException(\"Error: \\\"\" + file.getAbsolutePath() + \"\\\" is not a file\");\n }\n AbstractConfiguration.setDefaultListDelimiter((char) 0);\n //return new XMLConfiguration(file);\n return resolveFileReferences(file);\n }", "title": "" }, { "docid": "bc625c04fba7bb50150a83a0fec0bee9", "score": "0.47596377", "text": "public StrutsXmlConfigurationProvider(String filename, ServletContext ctx) {\n super(filename);\n this.servletContext = ctx;\n this.filename = filename;\n this.reloadKey = \"configurationReload-\" + filename;\n setDtdMappings(STRUTS_DTD_MAPPINGS);\n File file = new File(filename);\n if (file.getParent() != null) {\n this.baseDir = file.getParentFile();\n }\n }", "title": "" }, { "docid": "f0150dd99ec31632db8260ecf20d803e", "score": "0.47589442", "text": "public static void loadConfigUsingArgs(MigrationConfigurationImpl configuration, String[] args) throws IOException {\n\t\tif (args != null && args.length == 2) {\n\t\t\t// Load and validate from file\n\t\t\tString path = args[1];\n\t\t\tconfiguration.loadConfigurationFile(path);\n\t\t}\n\t\t// Validate System properties\n\t\tconfiguration.validateConfigurationProperties();\n\t}", "title": "" }, { "docid": "d7b4d67cdb1d4c1cd284b5ebe325a1f0", "score": "0.4757011", "text": "void init(String config) throws IOException;", "title": "" }, { "docid": "fb0a612888cefae8d6a05aba2cc12edc", "score": "0.47500506", "text": "public Configuration(File file) \r\n\tthrows FileNotFoundException, IOException, ConfigurationException\r\n {\r\n\tProperties prop = new Properties();\r\n\tprop.load(new FileInputStream(file));\r\n\t\r\n\tminimumMatchLength = Integer.parseInt(this.getProperty(prop, \"plag.parser.plaggie.minimumMatchLength\"));\r\n\t\r\n\tmaximumDetectionResultsToReport = Integer.parseInt(this.getProperty(prop, \"plag.parser.plaggie.maximumDetectionResultsToReport\"));\r\n\r\n\tdebugMessages = (this.getProperty(prop, \"plag.parser.plaggie.debugMessages\").equals(\"true\"));\r\n\tprintTokenLists = (this.getProperty(prop, \"plag.parser.plaggie.printTokenLists\").equals(\"true\"));\r\n\t\r\n\tuseRecursive = (this.getProperty(prop, \"plag.parser.plaggie.useRecursive\").equals(\"true\"));\r\n\t\r\n\t// Whether to print full tion reports between files.\r\n\tfullFileDetectionReports =\r\n\t (this.getProperty(prop, \"plag.parser.plaggie.fileDetectionReports\").equals(\"full\"));\r\n\tstatFileDetectionReports = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.fileDetectionReports\").equals(\"stats\"));\r\n\r\n\thtmlReport = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.htmlReport\").equals(\"true\"));\r\n\r\n\thtmlDir = this.getProperty(prop, \"plag.parser.plaggie.htmlDir\");\r\n\r\n\tminimumSubmissionSimilarityValue = Double.parseDouble(this.getProperty(prop, \"plag.parser.plaggie.minimumSubmissionSimilarityValue\"));\r\n\r\n\tcacheTokenLists = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.cacheTokenLists\").equals(\"true\"));\r\n\r\n\tcreateResultFile = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.createResultFile\").equals(\"true\"));\r\n\r\n\treadResultsFromFile = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.readResultsFromFile\").equals(\"true\"));\r\n\r\n\tresultFile = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.resultFile\");\r\n\r\n\tseveralSubmissionDirectories = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.severalSubmissionDirectories\").equals(\"true\"));\r\n\t\r\n\tsubmissionDirectory = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.submissionDirectory\");\r\n\r\n\texcludeFiles = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.excludeFiles\");\r\n\r\n\tminimumFileSimilarityValueToReport = \r\n\t Double.parseDouble(this.getProperty(prop, \"plag.parser.plaggie.minimumFileSimilarityValueToReport\"));\r\n\r\n\texcludeSubdirectories = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.excludeSubdirectories\");\r\n\t\r\n\ttemplates =\r\n\t this.getProperty(prop, \"plag.parser.plaggie.templates\");\r\n\t\r\n\texcludeInterfaces = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.excludeInterfaces\").equals(\"true\"));\r\n\r\n\tshowAllBlacklistedResults = \r\n\t (this.getProperty(prop, \"plag.parser.plaggie.showAllBlacklistedResults\").equals(\"true\"));\r\n\t\r\n\r\n\tblacklistFile = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.blacklistFile\");\r\n\r\n\tcodeTokenizer = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.codeTokenizer\");\r\n\r\n\tfilenameFilter = \r\n\t this.getProperty(prop, \"plag.parser.plaggie.filenameFilter\");\r\n\t\r\n }", "title": "" }, { "docid": "34369ccb2b152f0db8b8368b0148c190", "score": "0.4748868", "text": "public StorageManager() {\n\t\tthis(new WrapperConfiguration(CONFIG_FILE));\n\t}", "title": "" }, { "docid": "39c1c9c4359642f09cc55c3a16ce6da5", "score": "0.47473222", "text": "public static Configuration loadConfiguration(final String filename) throws ConfigFileException {\n final ConfigParser parser = new ConfigParser();\n try {\n parser.read(new File(filename));\n } catch (IOException e) {\n throw new ConfigFileException(e);\n }\n ConfigurationModule cm = MyriaGlobalConfigurationModule.CONF;\n cm = setGlobalConfVariables(parser, cm);\n cm = setWorkerConfs(parser, cm);\n cm = setJvmOptions(parser, cm);\n return cm.build();\n }", "title": "" } ]
487fbc674b6e2fab19de7a2fdf9eed8e
$ANTLR end "T__81" $ANTLR start "T__82"
[ { "docid": "97ffc1e357101deefe666e3726253fbd", "score": "0.46202207", "text": "public final void mT__82() throws RecognitionException {\n try {\n int _type = T__82;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // uk/ac/cam/ch/wwmm/parserGrammar/ACPGrammar.g:50:7: ( 'VB-APPARATUS' )\n // uk/ac/cam/ch/wwmm/parserGrammar/ACPGrammar.g:50:9: 'VB-APPARATUS'\n {\n match(\"VB-APPARATUS\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" } ]
[ { "docid": "9e64e56a5dc55ef4792836b037efce47", "score": "0.5508091", "text": "public void test0187() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", true);\n final String contents = \"public class X {\\n\" + \"\t<T> /*start*/Y<T>/*end*/ foo() {\\n\" + \" return null;\" + \"\t};\\n\" + \"}\\n\" + \"class Y<E> {\\n\" + \"}\";\n ASTNode node = buildAST(contents, this.workingCopy, false);\n ParameterizedType type = (ParameterizedType) node;\n assertBindingEquals(\"LX~Y<LX;:1TT;>;\", type.resolveBinding());\n }", "title": "" }, { "docid": "972190c52b61a66a65dead0773da7622", "score": "0.54535514", "text": "protected SLR1_Grammar() {}", "title": "" }, { "docid": "b11e50526e008402274510ea7c96ee66", "score": "0.5340965", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n }", "title": "" }, { "docid": "cce371a5688b0ea1498ef41c9160ede0", "score": "0.5243589", "text": "public final void mT__82() throws RecognitionException {\n try {\n int _type = T__82;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalReflex.g:54:7: ( '(' )\n // InternalReflex.g:54:9: '('\n {\n match('('); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "bd6f340821b37ae743f9d120a6050e69", "score": "0.5227556", "text": "public interface ContParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KEYWORD_CREATE = 8;\n /** RegularExpression Id. */\n int KEYWORD_CONTEXT = 9;\n /** RegularExpression Id. */\n int KEYWORD_DOT = 10;\n /** RegularExpression Id. */\n int KEYWORD_ACTIVE = 11;\n /** RegularExpression Id. */\n int KEYWORD_IF = 12;\n /** RegularExpression Id. */\n int KEYWORD_DROP = 13;\n /** RegularExpression Id. */\n int KEYWORD_ALTER = 14;\n /** RegularExpression Id. */\n int KEYWORD_IS = 15;\n /** RegularExpression Id. */\n int KEYWORD_BETWEEN = 16;\n /** RegularExpression Id. */\n int KEYWORD_LIKE = 17;\n /** RegularExpression Id. */\n int OPERATOR_MULTIPLY = 18;\n /** RegularExpression Id. */\n int OPERATOR_DIVIDE = 19;\n /** RegularExpression Id. */\n int OPERATOR_MODULO = 20;\n /** RegularExpression Id. */\n int OPERATOR_PLUS = 21;\n /** RegularExpression Id. */\n int OPERATOR_MINUS = 22;\n /** RegularExpression Id. */\n int OPERATOR_NOT = 23;\n /** RegularExpression Id. */\n int OPERATOR_XOR = 24;\n /** RegularExpression Id. */\n int OPERATOR_AND = 25;\n /** RegularExpression Id. */\n int OPERATOR_OR = 26;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_NOT = 27;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_LSH = 28;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_RSH = 29;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_XOR = 30;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_AND = 31;\n /** RegularExpression Id. */\n int OPERATOR_BITWISE_OR = 32;\n /** RegularExpression Id. */\n int OPERATOR_GREATER = 33;\n /** RegularExpression Id. */\n int OPERATOR_LESS = 34;\n /** RegularExpression Id. */\n int OPERATOR_GREATER_EQUAL = 35;\n /** RegularExpression Id. */\n int OPERATOR_LESS_EQUAL = 36;\n /** RegularExpression Id. */\n int OPERATOR_EQUAL = 37;\n /** RegularExpression Id. */\n int OPERATOR_NOT_EQUAL = 38;\n /** RegularExpression Id. */\n int TYPE_ID = 39;\n /** RegularExpression Id. */\n int TYPE_TIMESTAMP = 40;\n /** RegularExpression Id. */\n int TYPE_BOOLEAN = 41;\n /** RegularExpression Id. */\n int TYPE_INTEGER = 42;\n /** RegularExpression Id. */\n int TYPE_FLOAT = 43;\n /** RegularExpression Id. */\n int TYPE_STRING = 44;\n /** RegularExpression Id. */\n int TYPE_ANY = 45;\n /** RegularExpression Id. */\n int CONSTANT_NULL = 46;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_TRUE = 47;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_FALSE = 48;\n /** RegularExpression Id. */\n int CONSTANT_BOOLEAN_UNKNOWN = 49;\n /** RegularExpression Id. */\n int CONSTANT_INTEGER_10 = 50;\n /** RegularExpression Id. */\n int CONSTANT_INTEGER_16 = 51;\n /** RegularExpression Id. */\n int CONSTANT_FLOAT = 52;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_START = 53;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_START = 54;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_VALUE = 55;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_VALUE = 56;\n /** RegularExpression Id. */\n int CONSTANT_SINGLE_QUOTED_STRING_END = 57;\n /** RegularExpression Id. */\n int CONSTANT_DOUBLE_QUOTED_STRING_END = 58;\n /** RegularExpression Id. */\n int DIGIT = 59;\n /** RegularExpression Id. */\n int LITERAL = 60;\n /** RegularExpression Id. */\n int UNDERSCORE = 61;\n /** RegularExpression Id. */\n int HEXADECIMAL = 62;\n /** RegularExpression Id. */\n int IDENTIFIER = 63;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int COMMENT = 1;\n /** Lexical state. */\n int NON_SINGLE_QUOTED_STRING = 2;\n /** Lexical state. */\n int NON_DOUBLE_QUOTED_STRING = 3;\n /** Lexical state. */\n int NON_SINGLE_QUOTED_STRING_END = 4;\n /** Lexical state. */\n int NON_DOUBLE_QUOTED_STRING_END = 5;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*\\\"\",\n \"<token of kind 6>\",\n \"\\\"*/\\\"\",\n \"\\\"CREATE\\\"\",\n \"\\\"CONTEXT\\\"\",\n \"\\\".\\\"\",\n \"\\\"ACTIVE\\\"\",\n \"\\\"IF\\\"\",\n \"\\\"DROP\\\"\",\n \"\\\"ALTER\\\"\",\n \"\\\"IS\\\"\",\n \"\\\"BETWEEN\\\"\",\n \"\\\"LIKE\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"NOT\\\"\",\n \"\\\"XOR\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"~\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\"^\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"=\\\"\",\n \"<OPERATOR_NOT_EQUAL>\",\n \"\\\"ID\\\"\",\n \"\\\"TIMESTAMP\\\"\",\n \"\\\"BOOLEAN\\\"\",\n \"\\\"INTEGER\\\"\",\n \"\\\"FLOAT\\\"\",\n \"\\\"STRING\\\"\",\n \"\\\"ANY\\\"\",\n \"\\\"NULL\\\"\",\n \"\\\"TRUE\\\"\",\n \"\\\"FALSE\\\"\",\n \"\\\"UNKNOWN\\\"\",\n \"<CONSTANT_INTEGER_10>\",\n \"<CONSTANT_INTEGER_16>\",\n \"<CONSTANT_FLOAT>\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<CONSTANT_SINGLE_QUOTED_STRING_VALUE>\",\n \"<CONSTANT_DOUBLE_QUOTED_STRING_VALUE>\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<DIGIT>\",\n \"<LITERAL>\",\n \"\\\"_\\\"\",\n \"<HEXADECIMAL>\",\n \"<IDENTIFIER>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\":\\\"\",\n };\n\n}", "title": "" }, { "docid": "cd920f710c0a62e4b2ac9e6e1c947177", "score": "0.51912415", "text": "public void test0181() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", true);\n String contents = \"public class X<E> {\\n\" + \"\t/*start1*/Y<E>/*end1*/ y;\\n\" + \"\tstatic class Other<E> {\\n\" + \"\t\t/*start2*/Y<E>/*end2*/ y;\\n\" + \"\t}\\n\" + \"}\\n\" + \"class Y<E> {\\n\" + \"}\";\n IBinding[] bindings = resolveBindings(contents, this.workingCopy);\n assertTrue(\"2 different parameterized type bindings should not be equals\", !bindings[0].isEqualTo(bindings[1]));\n }", "title": "" }, { "docid": "1612f46b42f67a9182b1f5962f33659f", "score": "0.51820904", "text": "@Override\r\n public void visit(Matches arg0) {\n\r\n }", "title": "" }, { "docid": "ca20ba171d7695c614d67a79f7246e6b", "score": "0.5177329", "text": "public interface ParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int OP = 5;\r\n /** RegularExpression Id. */\r\n int RLT_PARALLEL = 6;\r\n /** RegularExpression Id. */\r\n int RLT_DIR_SUCC = 7;\r\n /** RegularExpression Id. */\r\n int RLT_INDIR_SUCC = 8;\r\n /** RegularExpression Id. */\r\n int RLT_DIR_CASUAL = 9;\r\n /** RegularExpression Id. */\r\n int RLT_INDIR_CASUAL = 10;\r\n /** RegularExpression Id. */\r\n int RLT_CYCLE = 11;\r\n /** RegularExpression Id. */\r\n int RLT_MUTEX = 12;\r\n /** RegularExpression Id. */\r\n int AND = 13;\r\n /** RegularExpression Id. */\r\n int OR = 14;\r\n /** RegularExpression Id. */\r\n int ACTIVITY = 15;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"<OP>\",\r\n \"\\\"\\\\u2225\\\"\",\r\n \"\\\">\\\"\",\r\n \"\\\"\\\\u00bb\\\"\",\r\n \"\\\"\\\\u2192\\\"\",\r\n \"\\\"\\\\u21a0\\\"\",\r\n \"\\\"\\\\u229a\\\"\",\r\n \"\\\"\\\\u00d7\\\"\",\r\n \"\\\"and\\\"\",\r\n \"\\\"or\\\"\",\r\n \"<ACTIVITY>\",\r\n \"\\\";\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n };\r\n\r\n}", "title": "" }, { "docid": "60f5446fd6d911c5694fcbb5cf54e4d2", "score": "0.5130115", "text": "public String visit(OWLLiteral arg0) {\n\treturn null;\n}", "title": "" }, { "docid": "e3bc1c8c17489047d1ccca0bc35572be", "score": "0.5123381", "text": "public interface MooplParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 8;\n /** RegularExpression Id. */\n int LPAREN = 9;\n /** RegularExpression Id. */\n int RPAREN = 10;\n /** RegularExpression Id. */\n int NEW = 11;\n /** RegularExpression Id. */\n int OBJECT = 12;\n /** RegularExpression Id. */\n int SELF = 13;\n /** RegularExpression Id. */\n int PROC = 14;\n /** RegularExpression Id. */\n int FUN = 15;\n /** RegularExpression Id. */\n int ARRAYOF = 16;\n /** RegularExpression Id. */\n int INT = 17;\n /** RegularExpression Id. */\n int TRUE = 18;\n /** RegularExpression Id. */\n int FALSE = 19;\n /** RegularExpression Id. */\n int NOT = 20;\n /** RegularExpression Id. */\n int ISNULL = 21;\n /** RegularExpression Id. */\n int LSQBR = 22;\n /** RegularExpression Id. */\n int RSQBR = 23;\n /** RegularExpression Id. */\n int LBRACE = 24;\n /** RegularExpression Id. */\n int RBRACE = 25;\n /** RegularExpression Id. */\n int SEMICOLON = 26;\n /** RegularExpression Id. */\n int DOT = 27;\n /** RegularExpression Id. */\n int ASSIGN = 28;\n /** RegularExpression Id. */\n int AND = 29;\n /** RegularExpression Id. */\n int LT = 30;\n /** RegularExpression Id. */\n int EQUALS = 31;\n /** RegularExpression Id. */\n int DIV = 32;\n /** RegularExpression Id. */\n int PLUS = 33;\n /** RegularExpression Id. */\n int MINUS = 34;\n /** RegularExpression Id. */\n int MULT = 35;\n /** RegularExpression Id. */\n int COMMA = 36;\n /** RegularExpression Id. */\n int BOOLEAN = 37;\n /** RegularExpression Id. */\n int CLASS = 38;\n /** RegularExpression Id. */\n int ELSE = 39;\n /** RegularExpression Id. */\n int THEN = 40;\n /** RegularExpression Id. */\n int EXTENDS = 41;\n /** RegularExpression Id. */\n int IF = 42;\n /** RegularExpression Id. */\n int WHILE = 43;\n /** RegularExpression Id. */\n int DO = 44;\n /** RegularExpression Id. */\n int OUTPUT = 45;\n /** RegularExpression Id. */\n int LENGTH = 46;\n /** RegularExpression Id. */\n int RETURN = 47;\n /** RegularExpression Id. */\n int ID = 48;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"<INTEGER_LITERAL>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"new\\\"\",\n \"\\\"object\\\"\",\n \"\\\"self\\\"\",\n \"\\\"proc\\\"\",\n \"\\\"fun\\\"\",\n \"\\\"arrayof\\\"\",\n \"\\\"int\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"!\\\"\",\n \"\\\"isnull\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\";\\\"\",\n \"\\\".\\\"\",\n \"\\\"=\\\"\",\n \"\\\"and\\\"\",\n \"\\\"<\\\"\",\n \"\\\"==\\\"\",\n \"\\\"div\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\",\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"class\\\"\",\n \"\\\"else\\\"\",\n \"\\\"then\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"if\\\"\",\n \"\\\"while\\\"\",\n \"\\\"do\\\"\",\n \"\\\"output\\\"\",\n \"\\\"length\\\"\",\n \"\\\"return\\\"\",\n \"<ID>\",\n \"\\\":call\\\"\",\n \"\\\":eval\\\"\",\n \"\\\":quit\\\"\",\n };\n\n}", "title": "" }, { "docid": "e0ef02e12c32d9792c7356598e522e6d", "score": "0.5121218", "text": "public interface DecoderConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMENT = 5;\n /** RegularExpression Id. */\n int MULTICOMMENT = 6;\n /** RegularExpression Id. */\n int VARIABLE = 7;\n /** RegularExpression Id. */\n int FUNCTION = 8;\n /** RegularExpression Id. */\n int IF = 9;\n /** RegularExpression Id. */\n int ELSE = 10;\n /** RegularExpression Id. */\n int WHILE = 11;\n /** RegularExpression Id. */\n int BREAK = 12;\n /** RegularExpression Id. */\n int CONTINUE = 13;\n /** RegularExpression Id. */\n int RETURN = 14;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 15;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 16;\n /** RegularExpression Id. */\n int HEX_LITERAL = 17;\n /** RegularExpression Id. */\n int OCTAL_LITERAL = 18;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 19;\n /** RegularExpression Id. */\n int EXPONENT = 20;\n /** RegularExpression Id. */\n int STRING_LITERAL = 21;\n /** RegularExpression Id. */\n int IDENTIFIER = 22;\n /** RegularExpression Id. */\n int LETTER = 23;\n /** RegularExpression Id. */\n int DIGIT = 24;\n /** RegularExpression Id. */\n int ASSIGN = 25;\n /** RegularExpression Id. */\n int GT = 26;\n /** RegularExpression Id. */\n int LT = 27;\n /** RegularExpression Id. */\n int EQ = 28;\n /** RegularExpression Id. */\n int LE = 29;\n /** RegularExpression Id. */\n int GE = 30;\n /** RegularExpression Id. */\n int NE = 31;\n /** RegularExpression Id. */\n int SC_OR = 32;\n /** RegularExpression Id. */\n int SC_AND = 33;\n /** RegularExpression Id. */\n int INCR = 34;\n /** RegularExpression Id. */\n int DECR = 35;\n /** RegularExpression Id. */\n int PLUS = 36;\n /** RegularExpression Id. */\n int MINUS = 37;\n /** RegularExpression Id. */\n int STAR = 38;\n /** RegularExpression Id. */\n int SLASH = 39;\n /** RegularExpression Id. */\n int BIT_AND = 40;\n /** RegularExpression Id. */\n int BIT_OR = 41;\n /** RegularExpression Id. */\n int XOR = 42;\n /** RegularExpression Id. */\n int REM = 43;\n /** RegularExpression Id. */\n int LPAREN = 44;\n /** RegularExpression Id. */\n int RPAREN = 45;\n /** RegularExpression Id. */\n int LBRACE = 46;\n /** RegularExpression Id. */\n int RBRACE = 47;\n /** RegularExpression Id. */\n int LBRACKET = 48;\n /** RegularExpression Id. */\n int RBRACKET = 49;\n /** RegularExpression Id. */\n int SEMICOLON = 50;\n /** RegularExpression Id. */\n int COMMA = 51;\n /** RegularExpression Id. */\n int DOT = 52;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<COMMENT>\",\n \"<MULTICOMMENT>\",\n \"\\\"var\\\"\",\n \"\\\"func\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"break\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"return\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<OCTAL_LITERAL>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<EXPONENT>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\"^\\\"\",\n \"\\\"%\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"~\\\"\",\n \"\\\"!\\\"\",\n };\n\n}", "title": "" }, { "docid": "8f39e59211ae0317ac4f7df4dc555b8a", "score": "0.5112307", "text": "public void test0112() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n Type type = (Type) buildAST(\"public class X<E> {\\n\" + \" /*start*/X<String>/*end*/ field;\\n\" + \"}\", this.workingCopy, false);\n ITypeBinding binding = type.resolveBinding().getTypeDeclaration();\n assertBindingEquals(\"LX<TE;>;\", binding);\n }", "title": "" }, { "docid": "5b98d7eb5851d1b3b3b6c789fc32ebfa", "score": "0.5098507", "text": "public interface QuasiBuilder extends AstroBuilder {\n\n /**\n * A kludge because of the current (pre-Antlr) lack of grammar\n * inheritance.\n * <p/>\n * If this is false, then the only production which work are the ones\n * inherited from AstroBuilder, and this is really an AstroBuilder in\n * QuasiBuilder clothing. This flag is also, by default, used to tell the\n * lexer whether to collapse double quasi characters -- '@', '$', and '`'.\n */\n boolean doesQuasis();\n\n /**\n *\n */\n Astro taggedHole(Astro ident, Astro functorHole);\n\n /**\n * Matches anything matched by either leftArg or rightArg.\n * <p/>\n * leftArg and rightArg must be disjoint choices -- it must be statically\n * impossible for anything to match both, though XXX this is not yet\n * enforced.\n * <p/>\n * Adds a \"?\" to the rank of both arguments.\n */\n AstroArg onlyChoice(AstroArg leftArg, AstroArg rightArg);\n\n /**\n * Matches anything matched by either leftArg or rightArg.\n * <p/>\n * leftArg and rightArg are prioritized choices in the sense of \"packrat\n * parsing\" and \"Parsing Expression Grammars\". If both match, then the\n * leftArg match is used.\n * <p/>\n * Adds a \"?\" to the rank of both arguments.\n */\n AstroArg firstChoice(AstroArg leftArg, AstroArg rightArg);\n\n /**\n * Matches any data element between these bounds.\n * <p/>\n * Both args must be data elements of the same type. For example,\n * <tt>'a'..'z'</tt> turns into <tt>b.range(term`'a'`, term`'z'`)</tt>.\n *\n * @return\n */\n AstroArg range(Astro leftArg, Astro rightArg);\n\n /**\n * If test would not match, then match consuming nothing.\n * <p/>\n * If test would match, then fail to match.\n * <p/>\n * This is a negative syntactic predicate in the sense of \"packrat parsing\"\n * and \"Parsing Expression Grammars\". ANTLR has something similar.\n * <p/>\n * A positive syntactic predicate is just a double negative, i.e., a\n * <tt>!!&lt;test&gt;</tt> expression.\n *\n * @return\n */\n AstroArg not(AstroArg test);\n\n /**\n * @return\n */\n AstroArg action(AstroArg syntactic, AstroArg semantic);\n\n /**\n * Matches exactly one term, which can be anything.\n *\n * @return\n */\n AstroArg any();\n\n /**\n * Turns the string into a list of arguments representing each character as\n * a character literal.\n *\n * @return :Args\n */\n AstroArg anyOf(Astro litString);\n\n /**\n * Matches any sequence in which both leftArg and rightArg are matched\n * exactly once.\n * <p/>\n * Does not affect the rank of the arguments, since they are still\n * exactly-once.\n * <p/>\n * XXX rewrite para: If 'leftArg' is itself a bag (the result of a call to\n * interleave), then the new effective bag is rightArg + the members of\n * leftArg. This matches any sequence in which each member of the sequence\n * matches a unique member of the bag, and all the members of the bag are\n * matched.\n * <p/>\n * This is inspired by the '&' of <a href= \"http://www.thaiopensource.com/relaxng/nonxml/syntax.html\"\n * >RELAX-NG's Non-XML Syntax</a>, which expands to <a href=\n * \"http://www.thaiopensource.com/relaxng/design.html#section:12\"\n * >RELAX-NG's \"interleave\" tag</a>, though we don't yet know how closely\n * the semantics of the two can correspond. (If 'interleave' can correspond\n * perfectly to RELAX-NG's interleave tag, then we will so specify.)\n */\n AstroArg interleave(AstroArg leftArg, AstroArg rightArg);\n\n /**\n * Matches a consecutive sequence of Terms matched by optSub, where the\n * number matched is constrained by quant.\n * <p/>\n * Adds quant to the rank of optSub.\n */\n AstroArg some(AstroArg optSub, char quant);\n\n /**\n * Matches a consecutive sequence of Terms matched by optSub separated by\n * sep.\n * <p/>\n * As with {@link #some(AstroArg,char)}, the number matched is\n * constrained by quant. Adds quant to the rank of optSub.\n */\n AstroArg some(AstroArg optSub, char quant, AstroArg sep);\n\n /**\n * On substitution, \"evaluates\" to 'args[litInt]'.\n * <p/>\n * On matching, matches if 'args[litInt] &lt;=&gt; specimen'\n */\n Astro dollarHole(Astro litInt);\n\n /**\n * Matches the specimen by placing it in 'bindings[litInt]'.\n */\n Astro atHole(Astro litInt);\n\n /**\n * Only for use when defining Schema\n *\n * @return\n */\n Astro schema(AstroArg productions);\n\n /**\n * Only for use when defining Schema\n *\n * @return\n */\n Astro production(Astro lhs, AstroArg rhs);\n}", "title": "" }, { "docid": "b22f21d74266d5e92ae1a28032c77965", "score": "0.5066182", "text": "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int num = 1;\n /** RegularExpression Id. */\n int bool = 2;\n /** RegularExpression Id. */\n int letra = 3;\n /** RegularExpression Id. */\n int dig = 4;\n /** RegularExpression Id. */\n int p_ent = 5;\n /** RegularExpression Id. */\n int p_dec = 6;\n /** RegularExpression Id. */\n int p_exp = 7;\n /** RegularExpression Id. */\n int lit_n = 8;\n /** RegularExpression Id. */\n int or = 9;\n /** RegularExpression Id. */\n int and = 10;\n /** RegularExpression Id. */\n int not = 11;\n /** RegularExpression Id. */\n int v_true = 12;\n /** RegularExpression Id. */\n int v_false = 13;\n /** RegularExpression Id. */\n int ID = 14;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"num\\\"\",\n \"\\\"bool\\\"\",\n \"<letra>\",\n \"<dig>\",\n \"<p_ent>\",\n \"<p_dec>\",\n \"<p_exp>\",\n \"<lit_n>\",\n \"\\\"or\\\"\",\n \"\\\"and\\\"\",\n \"\\\"not\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"<ID>\",\n \"<token of kind 15>\",\n \"\\\"&&\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n };\n\n}", "title": "" }, { "docid": "4cf50ad89d6a5baec852e083a8f773de", "score": "0.5055909", "text": "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "4cf50ad89d6a5baec852e083a8f773de", "score": "0.5055909", "text": "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "6f45d59f65f1e76e324f930535c897b3", "score": "0.50325125", "text": "public interface CombinerLogicInterface {\n\n\n static long getResult(String equationString) throws LogicGrammarParsingException {\n CharStream is = CharStreams.fromString(equationString);\n LogicGrammarLexer lex = new LogicGrammarLexer(is);\n CommonTokenStream tokens = new CommonTokenStream(lex);\n LogicGrammarParser parser = new LogicGrammarParser(tokens);\n System.out.println(\"Parsing equation: \" + equationString);\n long final_result;\n try {\n final_result = parser.root().result;\n } catch (RecognitionException | NumberFormatException nfe) {\n throw new LogicGrammarParsingException();\n }\n return final_result;\n }\n}", "title": "" }, { "docid": "b3b946f993a95294823cd8b6a167ff1f", "score": "0.5020525", "text": "public void test0114() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n Type type = (Type) buildAST(\"public class X<E> {\\n\" + \" X</*start*/? extends String/*end*/> field;\\n\" + \"}\", this.workingCopy);\n ITypeBinding binding = type.resolveBinding().getTypeDeclaration();\n assertBindingEquals(\"LX;{0}+Ljava/lang/String;\", binding);\n }", "title": "" }, { "docid": "126e3b678a9a71bdfb350ed173d396b1", "score": "0.50200224", "text": "public void test0062() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"public class X<T> {\\n\" + \" /*start*/X<Class>/*end*/ f;\\n\" + \"}\", this.workingCopy, false);\n IBinding binding = ((Type) node).resolveBinding();\n assertBindingKeyEquals(\"Lp/X<Ljava/lang/Class<>;>;\", binding.getKey());\n }", "title": "" }, { "docid": "c4c38eb38e4040a35340271b8d70adf8", "score": "0.501778", "text": "public interface NuevoParser201820Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 6;\n /** RegularExpression Id. */\n int MINUS = 7;\n /** RegularExpression Id. */\n int MULTIPLY = 8;\n /** RegularExpression Id. */\n int DIVIDE = 9;\n /** RegularExpression Id. */\n int EQ = 10;\n /** RegularExpression Id. */\n int NEQ = 11;\n /** RegularExpression Id. */\n int LT = 12;\n /** RegularExpression Id. */\n int LTE = 13;\n /** RegularExpression Id. */\n int GTE = 14;\n /** RegularExpression Id. */\n int GT = 15;\n /** RegularExpression Id. */\n int INT = 16;\n /** RegularExpression Id. */\n int DIGIT = 17;\n /** RegularExpression Id. */\n int PRINT = 18;\n /** RegularExpression Id. */\n int VAR = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int DEFINE = 21;\n /** RegularExpression Id. */\n int SMALL = 22;\n /** RegularExpression Id. */\n int LARGE = 23;\n /** RegularExpression Id. */\n int NOT = 24;\n /** RegularExpression Id. */\n int AND = 25;\n /** RegularExpression Id. */\n int OR = 26;\n /** RegularExpression Id. */\n int NAME = 27;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\">\\\"\",\n \"<INT>\",\n \"<DIGIT>\",\n \"\\\"print\\\"\",\n \"\\\"var\\\"\",\n \"\\\"if\\\"\",\n \"\\\"define\\\"\",\n \"<SMALL>\",\n \"<LARGE>\",\n \"\\\"not\\\"\",\n \"\\\"and\\\"\",\n \"\\\"or\\\"\",\n \"<NAME>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"=\\\"\",\n \"\\\",\\\"\",\n \"\\\":\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n };\n\n}", "title": "" }, { "docid": "629a95074e99b53aba710e1d7d41b9d6", "score": "0.5008434", "text": "@Test public void testPredicateDependentOnArg2() throws Exception {\n String grammar =\n \"grammar T;\\n\" +\n \"s : a[2] a[1];\\n\" +\n \"a[int i]\" +\n \" : {$i==1}? ID\\n\" +\n \" | {$i==2}? ID\\n\" +\n \" ;\\n\" +\n \"ID : 'a'..'z'+ ;\\n\" +\n \"INT : '0'..'9'+;\\n\" +\n \"WS : (' '|'\\\\n') -> skip ;\\n\";\n\n String found = execParser(\"T.g4\", grammar, \"TParser\", \"TLexer\", \"s\",\n \"a b\", false);\n String expecting =\n \"\";\n assertEquals(expecting, found);\n }", "title": "" }, { "docid": "a09b3c35fcfa7c2f2db1996ef73501aa", "score": "0.49917904", "text": "public interface Upper extends UnaryExpression {\n}", "title": "" }, { "docid": "6eeac4e30d0198dcb551b676ceada6b4", "score": "0.49820143", "text": "@Override\n public void visit(RNopStmt stmt) {\n \n }", "title": "" }, { "docid": "9158fde7c087d9e3796fc27bd0648f73", "score": "0.4964563", "text": "public final void mINT_82() throws RecognitionException {\n try {\n int _type = INT_82;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // com/hipu/date/generated/DateLexer.g:232:8: ( '82' )\n // com/hipu/date/generated/DateLexer.g:232:11: '82'\n {\n match(\"82\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "713e76bc91e664a1d133437733544886", "score": "0.4954691", "text": "interface C0021e {\n /* renamed from: a */\n void mo80a();\n\n /* renamed from: a */\n void mo81a(@C0193h0 String str, Bundle bundle, @C0195i0 C0018c cVar);\n\n /* renamed from: a */\n void mo82a(@C0193h0 String str, Bundle bundle, @C0193h0 C0043k kVar);\n\n /* renamed from: a */\n void mo83a(@C0193h0 String str, @C0195i0 Bundle bundle, @C0193h0 C0046n nVar);\n\n /* renamed from: a */\n void mo84a(@C0193h0 String str, @C0193h0 C0019d dVar);\n\n /* renamed from: a */\n void mo85a(@C0193h0 String str, C0046n nVar);\n\n /* renamed from: b */\n void mo86b();\n\n @C0193h0\n /* renamed from: d */\n Token mo87d();\n\n /* renamed from: g */\n ComponentName mo88g();\n\n @C0195i0\n Bundle getExtras();\n\n @C0193h0\n /* renamed from: h */\n String mo90h();\n\n @C0195i0\n /* renamed from: i */\n Bundle mo91i();\n\n boolean isConnected();\n }", "title": "" }, { "docid": "e026536039d61cfbc1f0b0b4e3e0b5ad", "score": "0.49322498", "text": "public void test0205() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n String contents = \"public class X<E> {\\n\" + \" @I(12)\\n\" + \" @interface I {\\n\" + \" @I(/*start1*/value/*end1*/=13)\\n\" + \" int /*start2*/value/*end2*/();\\n\" + \" }\\n\" + \"}\";\n IBinding[] bindings = resolveBindings(contents, this.workingCopy);\n // generic outer is irrelevant because @interface is implicitly static\n assertTrue(\"Bindings should be the same\", bindings[0] == bindings[1]);\n }", "title": "" }, { "docid": "39cc54a3f1c0304ab6b369cc40a183ab", "score": "0.48833096", "text": "public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {\n \t}", "title": "" }, { "docid": "9af196f5295e8357c7be58333931d44e", "score": "0.48771358", "text": "public void test0276() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n String contents = \"@interface Annot {\\n\" + \" public int value();\\n\" + \"}\\n\" + \"\\n\" + \"public class X {\\n\" + \" @Annot(1) String foo1() { return null; }\\n\" + \" @Annot(1) String foo2() { return null; }\\n\" + \"}\";\n this.workingCopy.getBuffer().setContents(contents);\n class CompilationUnitRequestor extends ASTRequestor {\n\n public void acceptAST(ICompilationUnit source, CompilationUnit node) {\n MethodDeclaration methodDeclaration = (MethodDeclaration) getASTNode(node, 1, 0);\n IMethodBinding methodBinding = methodDeclaration.resolveBinding();\n IAnnotationBinding annoBinding = methodBinding.getAnnotations()[0];\n ASTNode annoNode = node.findDeclaringNode(annoBinding);\n int position1 = annoNode.getStartPosition();\n methodDeclaration = (MethodDeclaration) getASTNode(node, 1, 1);\n methodBinding = methodDeclaration.resolveBinding();\n IAnnotationBinding annoBinding2 = methodBinding.getAnnotations()[0];\n annoNode = node.findDeclaringNode(annoBinding2);\n int position2 = annoNode.getStartPosition();\n assertTrue(\"Anno 2 position <= anno 1 position\", position2 > position1);\n }\n }\n CompilationUnitRequestor requestor = new CompilationUnitRequestor();\n ASTParser parser = ASTParser.newParser(AST.JLS8);\n parser.setResolveBindings(true);\n parser.setProject(getJavaProject(\"Converter15\"));\n parser.setKind(ASTParser.K_COMPILATION_UNIT);\n parser.createASTs(new ICompilationUnit[] { this.workingCopy }, new String[0], requestor, null);\n }", "title": "" }, { "docid": "24dc960a71a7c1f4e5d9fbd616295bd9", "score": "0.4876112", "text": "@Override\r\n\tpublic void visit(Matches arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e10081a12edbbeb678b92bc3b55b7efb", "score": "0.48702413", "text": "public interface AstStatement extends AstNode {\r\n}", "title": "" }, { "docid": "319c8254017ea7395e687ad4766cefbc", "score": "0.48694706", "text": "public interface C6981n extends C4926d<C35996bb>, C4928g {\n}", "title": "" }, { "docid": "8c54811e12f0b095c7b30ade4a269b3c", "score": "0.48651347", "text": "void castLookahead() :\n {}", "title": "" }, { "docid": "9bfa2fa337ed0a933615aef32425436e", "score": "0.48645142", "text": "YYParserState () // EOF token construction\r\n {\r\n this (0, null, 0);\r\n }", "title": "" }, { "docid": "31e7603446587ccfb4b132817b401ebe", "score": "0.48447254", "text": "public void test0061() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"/*start*/public class X<T> {\\n\" + \"}/*end*/\", this.workingCopy);\n IBinding binding = ((TypeDeclaration) node).resolveBinding();\n assertBindingKeyEquals(\"Lp/X<TT;>;\", binding.getKey());\n }", "title": "" }, { "docid": "33674565e90aedf47c924c1cec11647e", "score": "0.4832157", "text": "public interface QueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int AND = 5;\n /** RegularExpression Id. */\n int OR = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int LPAREN = 8;\n /** RegularExpression Id. */\n int RPAREN = 9;\n /** RegularExpression Id. */\n int QUOTED = 10;\n /** RegularExpression Id. */\n int _QUOTED_CHAR = 11;\n /** RegularExpression Id. */\n int TERM = 12;\n /** RegularExpression Id. */\n int PREFIXTERM = 13;\n /** RegularExpression Id. */\n int WILDTERM = 14;\n /** RegularExpression Id. */\n int _TERM_CHAR = 15;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<AND>\",\n \"<OR>\",\n \"<NOT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<QUOTED>\",\n \"<_QUOTED_CHAR>\",\n \"<TERM>\",\n \"<PREFIXTERM>\",\n \"<WILDTERM>\",\n \"<_TERM_CHAR>\",\n };\n\n}", "title": "" }, { "docid": "1d8359f375862cd979804f2b4a7f3493", "score": "0.48117805", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6D-R@:1MjnQKy\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(9, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n }", "title": "" }, { "docid": "79fec6b4ec0efbacca43fce5606270eb", "score": "0.48086086", "text": "public interface AndExpr extends BinaryConstraint {\n}", "title": "" }, { "docid": "478a7f861d83db8fde473efb50f4e4bd", "score": "0.47979537", "text": "private void op2() {\n\t\tenterRule(NonTerminal.OP2);\n\t\texpect(this.currentToken.kind());\n\t\texitRule(NonTerminal.OP2);\n\t\t\n\t}", "title": "" }, { "docid": "41fa7061698b0e1d4f10eea99b64f6c8", "score": "0.47902638", "text": "public interface GoTokenTypes {\n\n IElementType wsWS = new GoElementTypeImpl(\"WHITESPACE\");\n IElementType wsNLS = new GoElementTypeImpl(\"WS_NEW_LINES\");\n\n IElementType litCHAR = new GoElementTypeImpl(\"LITERAL_CHAR\");\n IElementType litSTRING = new GoElementTypeImpl(\"LITERAL_STRING\");\n \n IElementType litOCT = new GoElementTypeImpl(\"LITERAL_OCT\");\n IElementType litINT = new GoElementTypeImpl(\"LITERAL_INT\");\n IElementType litHEX = new GoElementTypeImpl(\"LITERAL_HEX\");\n IElementType litFLOAT = new GoElementTypeImpl(\"LITERAL_FLOAT\");\n IElementType litFLOAT_I = new GoElementTypeImpl(\"LITERAL_IMAGINARY_FLOAT\");\n IElementType litDECIMAL_I = new GoElementTypeImpl(\"LITERAL_IMAGINARY_INTEGER\");\n\n IElementType kBREAK = new GoElementTypeImpl(\"KEYWORD_BREAK\");\n IElementType kDEFAULT = new GoElementTypeImpl(\"KEYWORD_DEFAULT\");\n IElementType kPACKAGE = new GoElementTypeImpl(\"KEYWORD_PACKAGE\");\n IElementType kFUNC = new GoElementTypeImpl(\"KEYWORD_FUNC\");\n IElementType kINTERFACE = new GoElementTypeImpl(\"KEYWORD_INTERFACE\");\n IElementType kSELECT = new GoElementTypeImpl(\"KEYWORD_SELECT\");\n\n IElementType kCASE = new GoElementTypeImpl(\"KEYWORD_CASE\");\n IElementType kDEFER = new GoElementTypeImpl(\"KEYWORD_DEFER\");\n IElementType kGO = new GoElementTypeImpl(\"KEYWORD_GO\");\n IElementType kMAP = new GoElementTypeImpl(\"KEYWORD_MAP\");\n\n IElementType kCHAN = new GoElementTypeImpl(\"KEYWORD_CHAN\");\n\n IElementType kSTRUCT = new GoElementTypeImpl(\"KEYWORD_STRUCT\");\n IElementType kELSE = new GoElementTypeImpl(\"KEYWORD_ELSE\");\n IElementType kGOTO = new GoElementTypeImpl(\"KEYWORD_GOTO\");\n IElementType kSWITCH = new GoElementTypeImpl(\"KEYWORD_SWITCH\");\n IElementType kCONST = new GoElementTypeImpl(\"KEYWORD_CONST\");\n IElementType kFALLTHROUGH = new GoElementTypeImpl(\"KEYWORD_FALLTHROUGH\");\n\n IElementType kIF = new GoElementTypeImpl(\"KEYWORD_IF\");\n IElementType kFOR = new GoElementTypeImpl(\"KEYWORD_FOR\");\n IElementType kRETURN = new GoElementTypeImpl(\"KEYWORD_RETURN\");\n IElementType kIMPORT = new GoElementTypeImpl(\"KEYWORD_IMPORT\");\n IElementType kCONTINUE = new GoElementTypeImpl(\"KEYWORD_CONTINUE\");\n\n IElementType kRANGE = new GoElementTypeImpl(\"KEYWORD_RANGE\");\n IElementType kTYPE = new GoElementTypeImpl(\"KEYWORD_TYPE\");\n IElementType kVAR = new GoElementTypeImpl(\"KEYWORD_VAR\");\n\n IElementType mWRONG = new GoElementTypeImpl(\"WRONG\");\n\n IElementType mSL_COMMENT = new GoElementTypeImpl(\"SL_COMMENT\");\n IElementType mML_COMMENT = new GoElementTypeImpl(\"ML_COMMENT\");\n\n IElementType mIDENT = new GoElementTypeImpl(\"IDENTIFIER\");\n\n IElementType pLCURCLY = new GoElementTypeImpl(\"{\");\n IElementType pRCURLY = new GoElementTypeImpl(\"}\");\n IElementType pLBRACK = new GoElementTypeImpl(\"[\");\n IElementType pRBRACK = new GoElementTypeImpl(\"]\");\n IElementType pLPAREN = new GoElementTypeImpl(\"(\");\n IElementType pRPAREN = new GoElementTypeImpl(\")\");\n\n IElementType oSEMI = new GoElementTypeImpl(\";\");\n\n IElementType oTRIPLE_DOT = new GoElementTypeImpl(\"...\");\n IElementType oDOT = new GoElementTypeImpl(\".\");\n IElementType oCOLON = new GoElementTypeImpl(\":\");\n IElementType oCOMMA = new GoElementTypeImpl(\",\");\n\n IElementType oEQ = new GoElementTypeImpl(\"==\");\n IElementType oASSIGN = new GoElementTypeImpl(\"=\");\n\n IElementType oNOT_EQ = new GoElementTypeImpl(\"!=\");\n IElementType oNOT = new GoElementTypeImpl(\"!\");\n\n IElementType oPLUS_PLUS = new GoElementTypeImpl(\"++\");\n IElementType oPLUS_ASSIGN = new GoElementTypeImpl(\"+=\");\n IElementType oPLUS = new GoElementTypeImpl(\"+\");\n\n IElementType oMINUS_MINUS = new GoElementTypeImpl(\"--\");\n IElementType oMINUS_ASSIGN = new GoElementTypeImpl(\"-=\");\n IElementType oMINUS = new GoElementTypeImpl(\"-\");\n\n IElementType oCOND_OR = new GoElementTypeImpl(\"||\");\n IElementType oBIT_OR_ASSIGN = new GoElementTypeImpl(\"|=\");\n IElementType oBIT_OR = new GoElementTypeImpl(\"|\");\n\n IElementType oBIT_CLEAR_ASSIGN = new GoElementTypeImpl(\"&^=\");\n IElementType oBIT_CLEAR = new GoElementTypeImpl(\"&^\");\n IElementType oCOND_AND = new GoElementTypeImpl(\"&&\");\n\n IElementType oBIT_AND_ASSIGN = new GoElementTypeImpl(\"&=\");\n IElementType oBIT_AND = new GoElementTypeImpl(\"&\");\n\n IElementType oBIT_XOR_ASSIGN = new GoElementTypeImpl(\"^=\");\n IElementType oBIT_XOR = new GoElementTypeImpl(\"^\");\n\n IElementType oMUL_ASSIGN = new GoElementTypeImpl(\"*=\");\n IElementType oMUL = new GoElementTypeImpl(\"*\");\n\n IElementType oQUOTIENT_ASSIGN = new GoElementTypeImpl(\"/=\");\n IElementType oQUOTIENT = new GoElementTypeImpl(\"/\");\n\n IElementType oREMAINDER_ASSIGN = new GoElementTypeImpl(\"%=\");\n IElementType oREMAINDER = new GoElementTypeImpl(\"%\");\n\n IElementType oSEND_CHANNEL = new GoElementTypeImpl(\"<-\");\n IElementType oSHIFT_LEFT_ASSIGN = new GoElementTypeImpl(\"<<=\");\n IElementType oSHIFT_LEFT = new GoElementTypeImpl(\"<<\");\n\n IElementType oSHIFT_RIGHT_ASSIGN = new GoElementTypeImpl(\">>=\");\n IElementType oSHIFT_RIGHT = new GoElementTypeImpl(\">>\");\n\n IElementType oLESS_OR_EQUAL = new GoElementTypeImpl(\"<=\");\n IElementType oLESS = new GoElementTypeImpl(\"<\");\n\n IElementType oGREATER_OR_EQUAL = new GoElementTypeImpl(\">=\");\n IElementType oGREATER = new GoElementTypeImpl(\">\");\n\n IElementType oVAR_ASSIGN = new GoElementTypeImpl(\":=\");\n\n\n}", "title": "" }, { "docid": "2d32a54bffd8d26e3b018ac38de0ae30", "score": "0.47885856", "text": "@Test\n\tpublic void ambiguity_Ranges_4_4_3Part1() {\n\t\tProFormaTerm term = parser.parseString(\"PROT(EOSFORMS)[+19.0523]ISK\");\n\t\tassertEquals(1, term.tags.stream().count());\n\t\tProFormaTag tag = term.tags.get(0);\n\t\tassertEquals(4, tag.zeroBasedStartIndex);\n\t\tassertEquals(11, tag.zeroBasedEndIndex);\n\t}", "title": "" }, { "docid": "d094cf2783e3ea4c8d5d04b0a4a1ffeb", "score": "0.47779098", "text": "public CodeGenRule (int start, int end) { \r\n this.start = start; \r\n this.end = end;\r\n }", "title": "" }, { "docid": "931e6c87e9ca3eadbc1dd2fc5ef953b4", "score": "0.47761956", "text": "public static void main(String[] args) {\n\t\tString str[]=new String[3];\n\t\tstr[0]=\"E->E + T|T\";\n\t\tstr[1]=\"T->T * F|F\";\n\t\tstr[2]=\"F->( E )|id\";\t\t;\n\t\tnew SLR_parsing(new SLR_table(new SLR_Init(str,\"E\")),\"id * id + id\");\n\t}", "title": "" }, { "docid": "acace910d5a77737482445e64c35afdb", "score": "0.47701818", "text": "public void test0113() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n Type type = (Type) buildAST(\"public class X<E> {\\n\" + \" /*start*/X/*end*/ field;\\n\" + \"}\", this.workingCopy, false);\n ITypeBinding binding = type.resolveBinding().getTypeDeclaration();\n assertBindingEquals(\"LX<TE;>;\", binding);\n }", "title": "" }, { "docid": "a28f55dfafaa206d733a15b48efc8bcf", "score": "0.4767248", "text": "public void test0089() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"public class X<T> {\\n\" + \" void foo() {\\n\" + \" }\\n\" + \" void bar(X<?> x) {\\n\" + \" /*start*/x.foo()/*end*/;\\n\" + \" }\\n\" + \"}\", this.workingCopy);\n IBinding binding = ((MethodInvocation) node).resolveMethodBinding();\n assertBindingKeyEquals(\"Lp/X<!Lp/X;{0}*75;>;.foo()V\", binding.getKey());\n }", "title": "" }, { "docid": "bb797a4c4060f8b9eeffd1aa0c028094", "score": "0.47518453", "text": "public void test0115() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n TypeParameter type = (TypeParameter) buildAST(\"public class X</*start*/E/*end*/> {\\n\" + \"}\", this.workingCopy);\n ITypeBinding binding = type.resolveBinding().getTypeDeclaration();\n assertBindingEquals(\"LX;:TE;\", binding);\n }", "title": "" }, { "docid": "84875491d3bce9c19dfb58693ecb970a", "score": "0.47502786", "text": "public interface C6202m extends C0470l {\n /* renamed from: a */\n void mo14023a(View view, int i, int i2, int[] iArr, int i3);\n\n /* renamed from: e */\n boolean mo14024e(View view, int i, int i2);\n\n /* renamed from: i */\n void mo14025i(View view, int i);\n\n /* renamed from: j */\n void mo14026j(View view, int i);\n\n /* renamed from: m */\n void mo14027m(int i, int i2);\n}", "title": "" }, { "docid": "ed672bca0ac43f7133106b2d92768a0e", "score": "0.47434974", "text": "public void mo82a(String str) {\n }", "title": "" }, { "docid": "b48271622f04c68449848d882ebfb332", "score": "0.47408754", "text": "public final void testParse4() {\n throwsParseException(\n \"/* HOISTY2 */for(let [x, x] = ({})-- in <x><y/></x>) {gc()th\"\n );\n }", "title": "" }, { "docid": "d090b5e8bb15850bec2aeed241050212", "score": "0.4727647", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.pipe();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(17, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n }", "title": "" }, { "docid": "261131f2377b16e7ca61c1dd156099a7", "score": "0.47250545", "text": "public interface TokenVisitor {\n void visit(NumberToken token);\n void visit(Brace token);\n void visit(Operation token);\n}", "title": "" }, { "docid": "72136336b5293105824bd6d79ecdba6b", "score": "0.47218004", "text": "@Test\n\tpublic void ambiguity_Ranges_4_4_3Part3() {\n\t\tProFormaTerm term = parser.parseString(\"PROT(EOC[Carbamidomethyl]FORMS)[+19.0523]ISK\");\n\t\tassertEquals(2, term.tags.stream().count());\n\t\tProFormaTag tag = term.tags.get(0);\n//\t\tassertEquals(6, tag.zeroBasedStartIndex);\n\t\tassertEquals(6, tag.zeroBasedEndIndex);\n\t\tassertEquals(\"Carbamidomethyl\", tag.descriptors.get(0).getValue());\n\n\t\tProFormaTag tag2 = term.tags.get(term.tags.size() - 1);\n\t\tassertEquals(4, tag2.zeroBasedStartIndex);\n\t\tassertEquals(11, tag2.zeroBasedEndIndex);\n\t\tassertEquals(\"+19.0523\", tag2.descriptors.get(0).getValue());\n\t}", "title": "" }, { "docid": "b8db7a3804cfd2186ae57b0a44900a1b", "score": "0.4720368", "text": "public void test0348b() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X$.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"/*start*/public class X$ {\\n\" + \"}/*end*/\", this.workingCopy, false);\n IBinding binding = ((TypeDeclaration) node).resolveBinding();\n assertBindingKeyEquals(// should not be Lp/X$~X$;\n \"Lp/X$;\", binding.getKey());\n }", "title": "" }, { "docid": "c9d4cc7297be903c48edc4fb686bb202", "score": "0.47134402", "text": "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"i B2}u\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"i\", token0.getTokenText());\n }", "title": "" }, { "docid": "43ae29c1b05a1ccb318e588eb99dbb54", "score": "0.471272", "text": "public String visit(TypeDeclaration n, String[] argu) {\n return n.f0.accept(this, argu);\n }", "title": "" }, { "docid": "ce277c78bd36d9237d0d1b9d658a6a38", "score": "0.4710818", "text": "interface Tokens {\n\tstatic final int EOF = -1;\n\tstatic final int HTML = 0;\n\tstatic final int JEXPR = 1; // <%= ... %>\n\tstatic final int JSCRIPT = 2; // <% .... %>\n\tstatic final int JDIRECT = 3; // <%@ ... %>\n\tstatic final int JDECLAR = 4; // <%! ... %>\n\tstatic final int GEXPR = 11; // ${ ... }\n\tstatic final int GSCRIPT = 12; // %{ ... }%\n\tstatic final int GDIRECT = 13; // @{ ... }\n\tstatic final int GDECLAR = 14; // !{ ... }!\n}", "title": "" }, { "docid": "d45bafd266c7ba02b382c320ef4fd781", "score": "0.470956", "text": "public abstract Token parse(MatchResult result);", "title": "" }, { "docid": "e8a23da952f14698fe91f78cce7e2b67", "score": "0.47001615", "text": "@Override\n public int getLastTokenTypeOnLine(Segment arg0, int arg1) {\n\treturn 0;\n }", "title": "" }, { "docid": "98ee25309acfac2305b3325a603c637b", "score": "0.46946", "text": "public void test0066() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"public class X<T> {\\n\" + \" /*start*/X/*end*/ field;\" + \"}\", this.workingCopy, false);\n IBinding binding = ((Type) node).resolveBinding();\n assertBindingKeyEquals(\"Lp/X<>;\", binding.getKey());\n }", "title": "" }, { "docid": "3caf6f370c7c9636eb8bf2954ed8b5af", "score": "0.46941337", "text": "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"V['~OhTT^?;?b=g\");\n Token token0 = xPathLexer0.rightBracket();\n assertEquals(\"V\", token0.getTokenText());\n assertEquals(4, token0.getTokenType());\n }", "title": "" }, { "docid": "db96a46c48ef488c5895699f1d3b4863", "score": "0.46937907", "text": "public interface C40929a<T extends C1207m> {\n /* renamed from: e */\n void mo7656e(int i, int i2, String str, T t);\n }", "title": "" }, { "docid": "aad2d5bc0a11976e4c65c2e05c244cd0", "score": "0.46937856", "text": "public interface o0OO0O00 extends O0OO0o {\n}", "title": "" }, { "docid": "cc7785ec6f32bedef3557f4f34a8a243", "score": "0.46933016", "text": "public interface C0809b extends ao {\n}", "title": "" }, { "docid": "a9ae588bff894a6f1808f2b5f47f749d", "score": "0.4680529", "text": "@Override\n public void visit(RGotoStmt stmt) {\n \n }", "title": "" }, { "docid": "9190ffed4a0b11d762f0dad779179111", "score": "0.46804497", "text": "public void parse(CharSequence src, StringBuilder out, int start, int end, TIntSet feats);", "title": "" }, { "docid": "8af2998200594d55c44934e3fc72ac0e", "score": "0.46767887", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"p\");\n Token token0 = xPathLexer0.star();\n assertEquals(\"\", token0.getTokenText());\n assertEquals(20, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"p\", token1.getTokenText());\n }", "title": "" }, { "docid": "c90cb2af3d73e7cd4d20eb565bd19c32", "score": "0.46743664", "text": "@Override\n public Object visit(Func_StrPos n, Object argu) {\n setFunctionInfo(IFunctionID.STRPOS_ID,\n IdentifierHandler.normalizeCase(n.f0.tokenImage));\n n.f2.accept(this, argu);\n n.f4.accept(this, argu);\n return null;\n }", "title": "" }, { "docid": "2c161c2373ff68146b5a3dda7e071fb0", "score": "0.46700022", "text": "public interface BooleanQueryParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMMA = 5;\n /** RegularExpression Id. */\n int COLON = 6;\n /** RegularExpression Id. */\n int DOT = 7;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 8;\n /** RegularExpression Id. */\n int CLOSE_BRACKET = 9;\n /** RegularExpression Id. */\n int EXPRESSION = 10;\n /** RegularExpression Id. */\n int POSITION = 11;\n /** RegularExpression Id. */\n int TYPE = 12;\n /** RegularExpression Id. */\n int STAGE = 13;\n /** RegularExpression Id. */\n int PATTERN = 14;\n /** RegularExpression Id. */\n int LOCATION = 15;\n /** RegularExpression Id. */\n int OPERATOR = 16;\n /** RegularExpression Id. */\n int ORGAN = 18;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int OrganString = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\n\\\"\",\n \"\\\",\\\"\",\n \"\\\":\\\"\",\n \"\\\".\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"<EXPRESSION>\",\n \"<POSITION>\",\n \"<TYPE>\",\n \"<STAGE>\",\n \"<PATTERN>\",\n \"<LOCATION>\",\n \"<OPERATOR>\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"<token of kind 19>\",\n };\n\n}", "title": "" }, { "docid": "a2d3293d32b77e17fcb39693714ac642", "score": "0.4665127", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"y=^Z;DTF\");\n Token token0 = xPathLexer0.pipe();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(17, token0.getTokenType());\n assertEquals(\"y\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "title": "" }, { "docid": "7b2ff06efa6b62275181c71be1cddd63", "score": "0.46642947", "text": "@Test(timeout = 4000)\n public void test087() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"/}Q=?n'GrIs(\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"/\", token0.getTokenText());\n assertEquals(11, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "title": "" }, { "docid": "42b202cad88f68a1d0516d20b26f9965", "score": "0.4662973", "text": "public void test0091() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/p/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"package p;\\n\" + \"@interface X {\\n\" + \"\tint id() default 0;\\n\" + \"}\", this.workingCopy);\n assertEquals(\"Not a compilation unit\", ASTNode.COMPILATION_UNIT, node.getNodeType());\n CompilationUnit compilationUnit = (CompilationUnit) node;\n node = getASTNode(compilationUnit, 0);\n assertEquals(\"Not an annotation type declaration\", ASTNode.ANNOTATION_TYPE_DECLARATION, node.getNodeType());\n AnnotationTypeDeclaration annotationTypeDeclaration = (AnnotationTypeDeclaration) node;\n ITypeBinding binding = annotationTypeDeclaration.resolveBinding();\n assertNotNull(\"No binding\", binding);\n assertTrue(\"Not an annotation\", binding.isAnnotation());\n assertEquals(\"Wrong name\", \"X\", binding.getName());\n node = getASTNode(compilationUnit, 0, 0);\n assertEquals(\"Not an annotation type member declaration\", ASTNode.ANNOTATION_TYPE_MEMBER_DECLARATION, node.getNodeType());\n AnnotationTypeMemberDeclaration memberDeclaration = (AnnotationTypeMemberDeclaration) node;\n IMethodBinding methodBinding = memberDeclaration.resolveBinding();\n assertNotNull(\"No binding\", methodBinding);\n assertEquals(\"Wrong name\", \"id\", methodBinding.getName());\n }", "title": "" }, { "docid": "c52be847bf66d1ee95d858b7e38ff163", "score": "0.46628863", "text": "public void test0196() throws JavaModelException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n ASTNode node = buildAST(\"public class X {\\n\" + \" void foo() {\\n\" + \" /*start*/class Y {\\n\" + \" }/*end*/\\n\" + \" }\\n\" + \"}\", this.workingCopy);\n IBinding binding = ((TypeDeclarationStatement) node).resolveBinding();\n assertNotNull(\"No binding\", binding);\n String key = binding.getKey();\n String signature = new BindingKey(key).toSignature();\n String simpleName = Signature.getSimpleName(Signature.toString(signature));\n assertEquals(\"Unexpected simple name\", \"Y\", simpleName);\n }", "title": "" }, { "docid": "9578a6005444df393dfa96e143262686", "score": "0.46598688", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"i B2}u\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "title": "" }, { "docid": "b681e677105a5e4f6c8820553e6562c3", "score": "0.46587107", "text": "public static void main(String[] args) throws IOException, URISyntaxException {\n\t\tfinal String inputFileName = \"day19.txt\";\n\t\tfinal String outputFileName = \"src/main/java/generated/Day19.g4\";\n\n\t\tClassLoader classLoader = ClassLoader.getSystemClassLoader();\n\t\tPath path = Paths.get(classLoader.getResource(inputFileName).toURI());\n\n\t\tString fileContent = Files.readString(path);\n\n\t\tList<String> ruleStrings = Arrays.asList(fileContent.split(\"\\\\R\\\\R\\\\R\\\\R\")[0].split(\"\\n\").clone());\n\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(outputFileName));\n\t\twriter.write(\"grammar Day19;\");\n\t\twriter.newLine();\n\n\t\tboolean partTwo = true;\n\n\t\tfor (String ruleString : ruleStrings) {\n\t\t\tMatcher terminalMatcher = terminalPattern.matcher(ruleString.trim());\n\t\t\tMatcher ruleMatcher = rulePattern.matcher(ruleString.trim());\n\n\t\t\tif (terminalMatcher.matches()) {\n\t\t\t\twriter.write(String.format(\"rule%s: '%s';\", terminalMatcher.group(1), terminalMatcher.group(2)));\n\t\t\t} else if (ruleMatcher.matches()) {\n\t\t\t\tStringBuilder ruleContent = new StringBuilder();\n\t\t\t\tScanner scanner = new Scanner(ruleMatcher.group(2));\n\t\t\t\twhile (scanner.hasNext()) {\n\t\t\t\t\tString next = scanner.next();\n\t\t\t\t\tif (next.equals(\"|\")) {\n\t\t\t\t\t\truleContent.append(\" |\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\truleContent.append(String.format(\" rule%s\", next));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// For rule 0, match EOF so we can check if the whole input matches the grammar\n\t\t\t\tif (ruleMatcher.group(1).equals(\"0\")) {\n\t\t\t\t\twriter.write(String.format(\"rule%s: %s EOF;\", ruleMatcher.group(1), ruleContent));\n\t\t\t\t} else if (partTwo && ruleMatcher.group(1).equals(\"8\")) {\n\t\t\t\t\twriter.write(\"rule8: rule42 | rule42 rule8;\");\n\t\t\t\t} else if (partTwo && ruleMatcher.group(1).equals(\"11\")) {\n\t\t\t\t\twriter.write(\"rule11: rule42 rule31 | rule42 rule11 rule31;\");\n\t\t\t\t} else {\n\t\t\t\t\twriter.write(String.format(\"rule%s: %s;\", ruleMatcher.group(1), ruleContent));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twriter.newLine();\n\t\t}\n\n\t\twriter.close();\n\t}", "title": "" }, { "docid": "38cc6d3b68d571e780f703743f3665b3", "score": "0.4657017", "text": "@Test(expected = ProFormaParseException.class)\n\tpublic void ambiguity_Ranges_4_4_3Part2() {\n\t\tparser.parseString(\"PROT(EOSFO)RMS[+19.0523]ISK\");\n\t}", "title": "" }, { "docid": "3239a1751dbad6e1c4df22ee84a394d8", "score": "0.46553072", "text": "public CodeGenRule (int start) { this.start = start; }", "title": "" }, { "docid": "53519a5073c04332bbb1e41fd7e68d61", "score": "0.4654683", "text": "String buildGrammar();", "title": "" }, { "docid": "b4d568725e8999ef57ef28b5876cf889", "score": "0.4653297", "text": "public interface QueryParser extends StatementParser {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model dataType=\"org.abchip.mimo.database.query.SQLQueryParseResult\" exceptions=\"org.abchip.mimo.database.DatabaseException\" streamDataType=\"org.abchip.mimo.java.JavaInputStream\" streamRequired=\"true\"\n\t * @generated\n\t */\n\tSQLQueryParseResult parseQuery(InputStream stream) throws SQLException;\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model dataType=\"org.abchip.mimo.database.query.SQLQueryParseResult\" exceptions=\"org.abchip.mimo.database.DatabaseException\" sqlRequired=\"true\"\n\t * @generated\n\t */\n\tSQLQueryParseResult parseQuery(String sql) throws SQLException;\n\n}", "title": "" }, { "docid": "fb8ca129cc93d0c51feaa07b42c26502", "score": "0.46493757", "text": "@Test public void testDepedentPredsInGlobalFOLLOW() throws Exception {\n \t\tString grammar =\n \t\t\t\"grammar T;\\n\" +\n \t\t\t\"@members {\" +\n \t\t\t\"void f(Object s) {System.out.println(s);}\\n\" +\n \t\t\t\"boolean p(boolean v) {System.out.println(\\\"eval=\\\"+v); return v;}\\n\" +\n \t\t\t\"}\\n\" +\n \t\t\t\"s : a[99] ;\\n\" +\n \t\t\t\"a[int i] : e {p($i==99)}? {f(\\\"parse\\\");} '!' ;\\n\" +\n \t\t\t\"b[int i] : e {p($i==99)}? ID ;\\n\" +\n \t\t\t\"e : ID | ;\\n\" + // non-LL(1) so we use ATN\n \t\t\t\"ID : 'a'..'z'+ ;\\n\" +\n \t\t\t\"INT : '0'..'9'+;\\n\" +\n \t\t\t\"WS : (' '|'\\\\n') -> skip ;\\n\";\n\n \t\tString found = execParser(\"T.g4\", grammar, \"TParser\", \"TLexer\", \"s\",\n \t\t\t\t\t\t\t\t \"a!\", false);\n \t\tString expecting =\n \t\t\t\"eval=true\\n\" +\n \t\t\t\"parse\\n\";\n \t\tassertEquals(expecting, found);\n \t}", "title": "" }, { "docid": "56692aeb7ad8ff1c45f9df4d41b1d2cb", "score": "0.46434414", "text": "public final void rule__ActionEnum__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:1112:1: ( ( ( 'forward' ) ) | ( ( 'backward' ) ) | ( ( 'stop' ) ) )\n int alt8=3;\n switch ( input.LA(1) ) {\n case 16:\n {\n alt8=1;\n }\n break;\n case 17:\n {\n alt8=2;\n }\n break;\n case 18:\n {\n alt8=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 8, 0, input);\n\n throw nvae;\n }\n\n switch (alt8) {\n case 1 :\n // InternalDSL.g:1113:2: ( ( 'forward' ) )\n {\n // InternalDSL.g:1113:2: ( ( 'forward' ) )\n // InternalDSL.g:1114:3: ( 'forward' )\n {\n before(grammarAccess.getActionEnumAccess().getFORWARDEnumLiteralDeclaration_0()); \n // InternalDSL.g:1115:3: ( 'forward' )\n // InternalDSL.g:1115:4: 'forward'\n {\n match(input,16,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getFORWARDEnumLiteralDeclaration_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // InternalDSL.g:1119:2: ( ( 'backward' ) )\n {\n // InternalDSL.g:1119:2: ( ( 'backward' ) )\n // InternalDSL.g:1120:3: ( 'backward' )\n {\n before(grammarAccess.getActionEnumAccess().getBACKWARDEnumLiteralDeclaration_1()); \n // InternalDSL.g:1121:3: ( 'backward' )\n // InternalDSL.g:1121:4: 'backward'\n {\n match(input,17,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getBACKWARDEnumLiteralDeclaration_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // InternalDSL.g:1125:2: ( ( 'stop' ) )\n {\n // InternalDSL.g:1125:2: ( ( 'stop' ) )\n // InternalDSL.g:1126:3: ( 'stop' )\n {\n before(grammarAccess.getActionEnumAccess().getSTOPEnumLiteralDeclaration_2()); \n // InternalDSL.g:1127:3: ( 'stop' )\n // InternalDSL.g:1127:4: 'stop'\n {\n match(input,18,FOLLOW_2); \n\n }\n\n after(grammarAccess.getActionEnumAccess().getSTOPEnumLiteralDeclaration_2()); \n\n }\n\n\n }\n break;\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 }", "title": "" }, { "docid": "848bb9aa9bfb1d2b5559496cf4bfecee", "score": "0.46431413", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.doubleColon();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(19, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n }", "title": "" }, { "docid": "44030bbe80e41cd882066c2da6ec4ba4", "score": "0.46413675", "text": "ParsingResult<V> run(InputBuffer inputBuffer);", "title": "" }, { "docid": "618fb2acc573ad1c07e4e26de6602d91", "score": "0.46388867", "text": "interface Lexer { \n\n /**\n * This method tells the lexer how to extract the tokens\n * from the source document. This is given the opening and\n * closing tokens used to identify a segment. Typically\n * with languages such as JSP and PHP code segments are\n * opened with a delimeter like <code>&lt;%</code> for JSP\n * and <code>&lt;?php</code> for PHP. This method allows\n * the lexer to be configured to process such delimeters.\n *\n * @param start this is the opening token for a segment\n * @param finish this is the closing token for a segment\n */\n public void match(String start, String finish);\n\n /**\n * This method tells the lexer how to extract the tokens\n * from the source document. This is given the opening and\n * closing tokens used to identify a segment. Typically\n * with languages such as JSP and PHP code segments are\n * opened with a delimeter like <code>&lt;%</code> for JSP\n * and <code>&lt;?php</code> for PHP. This method allows\n * the lexer to be configured to process such delimeters.\n * <p>\n * With this <code>match</code> method a collection of\n * special characters can be specified. These characters\n * tell the lexer what it should allow whitespace to\n * surround for example take the HTML expressions below.\n * <pre>\n * \n * &lt; script language ='groovy' &gt;\n * &lt;script language='groovy'&gt;\n *\n * </pre>\n * The above two HTML expressions should be considered \n * equals using the special characters <code>&lt;</code>,\n * <code>&gt;</code>, and <code>=</code>. \n *\n * @param start this is the opening token for a segment\n * @param finish this is the closing token for a segment\n */ \n public void match(String start, String finish, String special);\n}", "title": "" }, { "docid": "d16898282f4d4f770615d0feef150a6b", "score": "0.46373308", "text": "@Test(timeout = 4000)\n public void test035() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"com.werken.saxpath.XPathLexer\", token0.getTokenText());\n assertNotNull(token0);\n \n char char0 = xPathLexer0.LA((-1));\n assertEquals('e', char0);\n }", "title": "" }, { "docid": "3ec822e43b9e88e46b97fb8e27357607", "score": "0.46325722", "text": "void sourceSinkType() throws SyntaxException {\n\t\tif(t.kind==KW_url)\n\t\t{\n\t\t\tmatch(KW_url);\n\t\t}\n\t\telse if(t.kind==KW_file)\n\t\t{\n\t\t\tmatch(KW_file);\n\t\t}\n\t\telse\n\t\t\t{String message = \"Incorrect position of \"+t+\" at \" + t.line + \":\" + t.pos_in_line;throw new SyntaxException(t, message);}\n\t}", "title": "" }, { "docid": "c788f26b2e5a6272a6c1dfe0c9ed308e", "score": "0.46205825", "text": "public void test0122() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n MethodDeclaration method = (MethodDeclaration) buildAST(\"public class X {\\n\" + \" /*start*/void foo() {\\n\" + \" }/*end*/\\n\" + \"}\", this.workingCopy);\n IMethodBinding binding = method.resolveBinding().getMethodDeclaration();\n assertBindingEquals(\"LX;.foo()V\", binding);\n }", "title": "" }, { "docid": "498a939914c43d78ce66f3654f70fbcc", "score": "0.46194297", "text": "public void test0019() throws JavaModelException {\n ICompilationUnit sourceUnit = getCompilationUnit(\"Converter15\", \"src\", \"test0019\", \"X.java\");\n ASTNode result = runJLS8Conversion(sourceUnit, true, true);\n char[] source = sourceUnit.getSource().toCharArray();\n assertTrue(\"Not a compilation unit\", result.getNodeType() == ASTNode.COMPILATION_UNIT);\n CompilationUnit compilationUnit = (CompilationUnit) result;\n assertProblemsSize(compilationUnit, 0);\n ASTNode node = getASTNode(compilationUnit, 1, 0, 0);\n assertTrue(\"Not a variable declaration statement\", node.getNodeType() == ASTNode.VARIABLE_DECLARATION_STATEMENT);\n VariableDeclarationStatement statement = (VariableDeclarationStatement) node;\n Type type = statement.getType();\n assertTrue(\"Not a qualified type\", type.getNodeType() == ASTNode.QUALIFIED_TYPE);\n QualifiedType qualifiedType = (QualifiedType) type;\n checkSourceRange(qualifiedType.getName(), \"C\", source);\n Type qualifier = qualifiedType.getQualifier();\n checkSourceRange(qualifier, \"test0019.A<String>.B<Integer>\", source);\n assertTrue(\"Not a parameterized type\", qualifier.getNodeType() == ASTNode.PARAMETERIZED_TYPE);\n ParameterizedType parameterizedType = (ParameterizedType) qualifier;\n List typeArguments = parameterizedType.typeArguments();\n assertEquals(\"wrong size\", 1, typeArguments.size());\n Type typeArgument = (Type) typeArguments.get(0);\n checkSourceRange(typeArgument, \"Integer\", source);\n Type innerType = parameterizedType.getType();\n assertTrue(\"Not a qualified type\", innerType.getNodeType() == ASTNode.QUALIFIED_TYPE);\n qualifiedType = (QualifiedType) innerType;\n checkSourceRange(qualifiedType.getName(), \"B\", source);\n qualifier = qualifiedType.getQualifier();\n checkSourceRange(qualifier, \"test0019.A<String>\", source);\n assertTrue(\"Not a parameterized type\", qualifier.getNodeType() == ASTNode.PARAMETERIZED_TYPE);\n ParameterizedType parameterizedType2 = (ParameterizedType) qualifier;\n typeArguments = parameterizedType2.typeArguments();\n assertEquals(\"wrong size\", 1, typeArguments.size());\n typeArgument = (Type) typeArguments.get(0);\n checkSourceRange(typeArgument, \"String\", source);\n innerType = parameterizedType2.getType();\n assertTrue(\"Not a simple type\", innerType.getNodeType() == ASTNode.SIMPLE_TYPE);\n SimpleType simpleType = (SimpleType) innerType;\n checkSourceRange(simpleType, \"test0019.A\", source);\n Name name = simpleType.getName();\n assertTrue(\"Not a qualified name\", name.getNodeType() == ASTNode.QUALIFIED_NAME);\n QualifiedName qualifiedName = (QualifiedName) name;\n checkSourceRange(qualifiedName.getQualifier(), \"test0019\", source);\n checkSourceRange(qualifiedName.getName(), \"A\", source);\n }", "title": "" }, { "docid": "b5b4e159feb948b0b5129d6184d3f316", "score": "0.46177378", "text": "public void test0120() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n Type type = (Type) buildAST(\"public class X<E> {\\n\" + \" X</*start*/? extends String/*end*/> field;\\n\" + \"}\", this.workingCopy);\n ITypeBinding binding = type.resolveBinding().getErasure();\n assertBindingEquals(\"Ljava/lang/String;\", binding);\n }", "title": "" }, { "docid": "07e3aba7c4df93e38556fc02f3d83bf0", "score": "0.4610234", "text": "public Parser parser()\n\t{\n\t\t// logger.out(Logger.Level.DEBUG, \"paramRangeStr()\");\n\t\t// param = Word range;\n\t\tSequence param = new Sequence(\"param\");\n\t\t// Leave parameter's symbol on the stack\n\t\tparam.add(new Word().setAssembler(factory\n\t\t\t\t.createAssembler(RangeAssemblerID.SYMBOL)));\n\t\tparam.add(range());\n\n\t\t// paramRangeStr = param*;\n\t\tRepetition paramRangeStr = new Repetition(param);\n\t\treturn paramRangeStr;\n\t}", "title": "" }, { "docid": "81d277e0cc84067046894b474b2f4938", "score": "0.46035022", "text": "public void test0118() throws CoreException {\n this.workingCopy = getWorkingCopy(\"/Converter15/src/X.java\", /*resolve*/\n true);\n Type type = (Type) buildAST(\"public class X<E> {\\n\" + \" /*start*/X<String>/*end*/ field;\\n\" + \"}\", this.workingCopy);\n ITypeBinding binding = type.resolveBinding().getErasure();\n assertBindingEquals(\"LX<TE;>;\", binding);\n }", "title": "" }, { "docid": "3171366e0e6318bbe60fa2d21ec24ac0", "score": "0.46013552", "text": "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "3171366e0e6318bbe60fa2d21ec24ac0", "score": "0.46013552", "text": "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "d018323ea60e50fc279649f3b5d28a05", "score": "0.45989403", "text": "private void relation(){\n simpleExpression();\n if (relationalOperator.contains(token.code)){\n token = scanner.nextToken();\n simpleExpression();\n }\n }", "title": "" }, { "docid": "69ad5fc714ff5b67d035242cb9b588f2", "score": "0.45967937", "text": "ContinueStatement continueStatement() :\n {\n Token b, e;\n Token id = null;\n }", "title": "" }, { "docid": "49abdb4381ba33e13925f5bd4c62f4da", "score": "0.45956388", "text": "@Override\n public Object visit(Func_Text n, Object argu) {\n setFunctionInfo(IFunctionID.TEXT_ID,\n IdentifierHandler.normalizeCase(n.f0.tokenImage));\n n.f2.accept(this, argu);\n return null;\n }", "title": "" }, { "docid": "f17d90e5c718d1a9ea102ef9e00e03ba", "score": "0.45911455", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n }", "title": "" }, { "docid": "8d7a34914a08346e62769231fd271f96", "score": "0.45903727", "text": "public final void testParse3() {\n throwsParseException(\n \"with({x: ([Math.sin])})L:switch(((new (true)()++).__iterator\"\n );\n }", "title": "" }, { "docid": "e1274a23e57386d77fee83dc8d454c60", "score": "0.45855588", "text": "public abstract iL1liI m18046OooO00o();", "title": "" }, { "docid": "7ed9d9ec3274a693f0af14741c48f429", "score": "0.457918", "text": "interface C0537a {\n }", "title": "" }, { "docid": "05182b92a34f11bc2059aeb8b17e719a", "score": "0.45734856", "text": "public final void testParse690() {\n throwsParseException(\n \"if((let (x=3,y=4) (true++))) {return; } \" +\n \"else if ( /* Comment */this) import x.*;\"\n );\n }", "title": "" }, { "docid": "27dabc10e80d795de7ae981da5b293c4", "score": "0.45729804", "text": "Grammar createGrammar();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "b7d0efc47c6a6aa3b3f7cad8528d7fc7", "score": "0.0", "text": "@Override\n public long getItemId(int position) {\n return position;\n }", "title": "" } ]
[ { "docid": "ef1b6c3f597a66c59960d73eadee6f25", "score": "0.6904447", "text": "private void apparence()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "4862518dedb9e169c3cc620e5ebe04c5", "score": "0.6696056", "text": "@Override\r\n\tpublic void atura() {\n\t\t\r\n\t}", "title": "" }, { "docid": "651ef6275f1a33ed6582a1599cab78d2", "score": "0.66211534", "text": "@Override\n\tpublic void bekle() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "c56ced5e9768caa7a88a0e86dc1d02eb", "score": "0.6557507", "text": "@Override\n\tpublic void pintate() {\n\t\t\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6546559", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "b4d7f671f527efc3e048a88ada2fe816", "score": "0.6362821", "text": "@Override\n\tpublic void 말한다() {\n\t\t\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "761f5db0b07474bff2090f23a6693efb", "score": "0.6211042", "text": "private void Prodto() {\n\n\t}", "title": "" }, { "docid": "74578344538dd194907dffc0406cacac", "score": "0.6166714", "text": "@Override\n public void suicide() {\n \n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6153736", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "db51ad8e6f15ad35a767d84e1e1eda68", "score": "0.61275035", "text": "@Override\n\t\t\tpublic void cry() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e24a2515146ce17481b567e14f6d3258", "score": "0.6075012", "text": "public void retrievecart() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "fba36b6a112c0dbc3dd5aa61fe730a40", "score": "0.60609394", "text": "@Override\n\tpublic void subir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "280c1f1bfe3582788f566eafe40085dd", "score": "0.60448366", "text": "@Override\n \tpublic void init() {\n \t\t\n \t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "2ba22ff158b6e941041f9460eddd0944", "score": "0.5991409", "text": "@Override\n public void operation() {\n \n }", "title": "" }, { "docid": "afc2a2ef708681a23da24526386fa543", "score": "0.5979341", "text": "@Override\r\n\tpublic void demo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "951638c11e887c3f81bcc83306f4e413", "score": "0.5957303", "text": "@Override\r\n\tpublic void trunon() {\n\r\n\t}", "title": "" }, { "docid": "03a6fa2a6dc40f30e9f67797ea87ac0e", "score": "0.5950196", "text": "@Override\n\tvoid generate() {\n\t\t\n\t}", "title": "" }, { "docid": "86b315eabc97abef1ea325b454b16656", "score": "0.5934478", "text": "@Override\n\tpublic void veneno() {\n\t\t\n\t}", "title": "" }, { "docid": "4f4340003331db95a2feee0084056a02", "score": "0.59033096", "text": "@Override\n\tprotected void inicializar() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58815277", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "a6c80a6456cfc74acaa16a2f9c3063c5", "score": "0.5881057", "text": "@Override\n\t\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "bf75e876384ccbd3516440064d914edb", "score": "0.585407", "text": "@Override\r\n\t\t\tpublic void process() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5850562", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58336115", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "d07c1f5c9d405e36c1ebf9e7e586652e", "score": "0.5830177", "text": "private Solution() {\n /** Not using this function**/\n }", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.5821835", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "2be71c02c2e214eecbe2c8bd5dfe8cb0", "score": "0.58195674", "text": "@Override\n\tpublic void fortify() {\n\t\t\n\t}", "title": "" }, { "docid": "4112f041d618773e927eaf69a897467b", "score": "0.5817743", "text": "@Override\r\n\tpublic void tempup() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "8d9539007d174aa71cae3fdbfe4952c6", "score": "0.5801801", "text": "@Override \n\tpublic void init() {\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "5243b8d363dba36edfd9e64eb96cc9d5", "score": "0.57880706", "text": "@Override\n public int getStatus() {\n return 0;\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.5776792", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5773822", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57732296", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c897821a3b00faa6e582b1c5bd5b3c6", "score": "0.57677484", "text": "@Override\r\n\tpublic void direksiyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "81ea0647fff57e17ec5107049b4dbf8b", "score": "0.57594514", "text": "@Override\n public int size() {\n return 1;\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5755988", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "33572cd017818797318a53dbacbc00b9", "score": "0.57530975", "text": "@Override\r\n\t\t\tpublic void initialize() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.57492036", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.57409", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5736822", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4f5334e4c63e1b16e38cf957e8576a25", "score": "0.5735921", "text": "@Override\n\tpublic void getHaned() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.57304126", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "ba3ff1d644c6b502f46e78f3112e984c", "score": "0.57151", "text": "@Override\r\n\tpublic void toss() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "a1a79ff63f3eb784a0134fc70f7de913", "score": "0.57141805", "text": "@Override\n\tpublic void initdata() {\n\n\t}", "title": "" }, { "docid": "20aa3abef3af4ea8bcf5e834227be04c", "score": "0.57137775", "text": "@Override\n\tpublic void Pessoa() {\n\t\t\n\t}", "title": "" }, { "docid": "6894ea3aa25d3dee3c3dd8331b9a9cdd", "score": "0.57120746", "text": "@Override\n\t public int correr() {\n\t return 7;\n\t }", "title": "" }, { "docid": "d7405dbb7f385c28de1f97859172342b", "score": "0.5705621", "text": "@Override\n\tpublic void affiche() {\n\t}", "title": "" }, { "docid": "f9fa4d6203b441d4a00a824c3219ddb2", "score": "0.5704342", "text": "@Override\n\tprotected void doOperate() {\n\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "af5603f291fb4fc9dd83e46e0602225b", "score": "0.56868714", "text": "@Override\r\n\tpublic void demo3() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.56740177", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "e8efac2ee01f452014413fb75d28b3a6", "score": "0.5659524", "text": "@Override\r\n\tpublic void initState() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1857996533d34551ac38dd34ec5213a3", "score": "0.56573755", "text": "public void koniecReplikacie() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
388e93fcfe0aae071ac6871244970031
If RecyclerView was recently bound, unbind
[ { "docid": "6ac4643ad3859013a4e4faffd5dd38a5", "score": "0.0", "text": "private void setupRecyclerView() {\n if (paginate != null) {\n paginate.unbind();\n }\n newestVideoRecyclerview.setLayoutManager(new GridLayoutManager(applicationContext, ROW_VIEW_COUNT));\n newestVideoViewAdapter = new NewestVideoViewAdapter(getActivity(), new ArrayList(0), new NewestVideoViewAdapter.CallBack() {\n @Override\n public void onItemClick(NewestVideoViewAdapter.ViewHolder viewHolder) {\n Video video = viewHolder.video;\n navigator.goToVideoPlayActivity(getActivity(), video);\n }\n });\n newestVideoRecyclerview.setAdapter(newestVideoViewAdapter);\n\n paginate = Paginate.with(newestVideoRecyclerview, this).build();\n }", "title": "" } ]
[ { "docid": "32881506fc612e56b9247c8aef09455c", "score": "0.7364666", "text": "@Override\n public void unbindView(ViewHolder holder) {\n super.unbindView(holder);\n }", "title": "" }, { "docid": "3683e357d8f65d872f8eb3659a0b0a7a", "score": "0.73221254", "text": "public void unbind(){\n \tbound = false;\n }", "title": "" }, { "docid": "642e57e777e2d6b64cb6a364df288747", "score": "0.70881414", "text": "public void unbind();", "title": "" }, { "docid": "8be328d43f5c97227db734175f1e3743", "score": "0.6823023", "text": "@Override\n public boolean onUnbind(Intent intent) {\n return mAllowRebind;\n }", "title": "" }, { "docid": "29329d2c00364ca53689893b89eeb550", "score": "0.67087775", "text": "@Override\n public void unbindView() {\n DisposableManager.dispose();\n }", "title": "" }, { "docid": "d562274b657d7ddae7b87c4bf2a1f70c", "score": "0.66841936", "text": "public boolean onUnbind(Intent intent) {\n return mAllowRebind;\n }", "title": "" }, { "docid": "ab2e2f06933e7eea374390bcb99f69e0", "score": "0.65522826", "text": "@Override\r\n\tpublic boolean onUnbind(Intent intent) {\n\t\tLog.v(TAG,\"onUnbind\");\r\n\t\tBindFlag = false;\r\n\t\treturn super.onUnbind(intent);\r\n\t}", "title": "" }, { "docid": "5a87ee408230d820da756b1414648894", "score": "0.6478169", "text": "public synchronized boolean unbindWidgetScrollable() {\r\n for (ScrollViewInfos item : mScrollViewCursorInfos.values()) {\r\n if (item.lv != null) {\r\n if (CLEAR_DATA_CACHE) {\r\n \tListAdapter adapter = item.lv.getAdapter();\r\n if (adapter != null) {\r\n \tif (adapter instanceof WidgetListAdapter)\r\n \t\t((WidgetListAdapter)adapter).clearDataCache();\r\n \telse if (adapter instanceof WidgetRemoteViewsListAdapter)\r\n \t\t((WidgetRemoteViewsListAdapter)adapter).dropCache();\r\n }\r\n }\r\n item.lv.setAdapter(null);\r\n }\r\n item.lv = null;\r\n }\r\n ListViewImageManager.getInstance().unbindDrawables();\r\n\r\n if (CLEAR_DATA_CACHE) {\r\n ListViewImageManager.getInstance().clearCache();\r\n }\r\n\r\n if (FORCE_FREE_MEMORY) {\r\n System.gc();\r\n }\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "a20535d3efd3de7fca819c6ae0109486", "score": "0.6395155", "text": "@Override\n public void unbindView(ViewHolder holder) {\n super.unbindView(holder);\n holder.name.setText(null);\n holder.description.setText(null);\n }", "title": "" }, { "docid": "40a87b7fd46ca8d865c3f55623c3a93b", "score": "0.6296406", "text": "@Override\n public void onRebind(Intent intent) {\n Log.i(TAG, \"in onRebind()\");\n stopForeground(true);\n mChangingConfiguration = false;\n isBound = true;\n super.onRebind(intent);\n }", "title": "" }, { "docid": "76266ecd86fd942d03bd16bb98443185", "score": "0.6288521", "text": "@Override\n public void onClick(View v) {\n Runnable pendingRemovalRunnable = pendingRunnables.get(item);\n pendingRunnables.remove(item);\n if (pendingRemovalRunnable != null) handler.removeCallbacks(pendingRemovalRunnable);\n itemsPendingRemoval.remove(item);\n // this will rebind the row in \"normal\" state\n notifyItemChanged(items.indexOf(item));\n }", "title": "" }, { "docid": "37ad8521c3300f1976f779cc6c9e6dbc", "score": "0.62524015", "text": "@Override\n public boolean onUnbind(Intent intent) {\n return false;\n }", "title": "" }, { "docid": "9960396d32b56e4b1995f2a0954dc86c", "score": "0.6248169", "text": "void unbind() {\r\n\t\tif(this.active) {\r\n\t\t\tif (this.prev != null) this.prev.next = this.next;\r\n\t\t\tif (this.next != null) this.next.prev = this.prev;\r\n\t\t\tthis.active = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e880fdf92e339729bdbe684fa4ef75f2", "score": "0.62199754", "text": "public void unbind() throws Exception {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "01bba231ade5378524d1cf91f0b1c0bc", "score": "0.6216252", "text": "@CallSuper\n @Override\n public void onDestroyView() {\n super.onDestroyView();\n if (unbinder != null) {\n unbinder.unbind();\n }\n }", "title": "" }, { "docid": "7568ef6e539a1bfe168566203dc82a07", "score": "0.6202845", "text": "@Override\n public boolean onUnbind(Intent intent){\n\n return false;\n }", "title": "" }, { "docid": "770c30655e9dd75f5210a0efe322ab8d", "score": "0.6180753", "text": "public abstract boolean unbind(ReadHead<DomEvent> $bound);", "title": "" }, { "docid": "c0a3c547e609886564b247d3e259ee2c", "score": "0.61573356", "text": "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "title": "" }, { "docid": "c0a3c547e609886564b247d3e259ee2c", "score": "0.61573356", "text": "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\treturn super.onUnbind(intent);\n\t}", "title": "" }, { "docid": "4481c480981421677889b10dd2ae852b", "score": "0.61142236", "text": "private void unbindWorkspaceAndHotseatItems() {\n if (mModel != null) {\n mModel.unbindWorkspaceItems();\n }\n }", "title": "" }, { "docid": "822027f154ba1644dd9e023b20d7d07e", "score": "0.6110034", "text": "private void resetRecyclerViewToUpdateList() {\n itemTouchHelper.attachToRecyclerView(null);\n itemTouchHelper = null;\n callback = null;\n adapter = null;\n }", "title": "" }, { "docid": "566b78f440e944949b937f8d44228332", "score": "0.61044014", "text": "@Override\n public void onClick(View view) {\n Runnable pendingRemovalRunnable = pendingRunnables.get(canal);\n pendingRunnables.remove(canal);\n if (pendingRemovalRunnable != null) handler.removeCallbacks(pendingRemovalRunnable);\n channelPendingRemoval.remove(canal);\n // this will rebind the row in \"normal\" state\n notifyItemChanged(canales.indexOf(canal));\n }", "title": "" }, { "docid": "6852f4aa7bbdfa923e0cf4124d2edeaa", "score": "0.6096075", "text": "@Override\n\n\tpublic boolean onUnbind(Intent intent) {\n\n\treturn super.onUnbind(intent);\n\n\t}", "title": "" }, { "docid": "d85afb8d6683703530c9da33b9b98584", "score": "0.6067954", "text": "@Override\n public boolean onUnbind(Intent intent) {\n Log.d(TAG, \"onUnbind\");\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "e6783c9d6443dd5e10a486393d2f1555", "score": "0.60623515", "text": "@Override\n public void unbindView(PostView holder) {\n super.unbindView(holder);\n holder.titleView.setText(null);\n holder.descriptionView.setText(null);\n holder.thumbnailView.setImageDrawable(null);\n\n }", "title": "" }, { "docid": "ba386f59bad3cc417361d8808aef1b46", "score": "0.6046691", "text": "public IBinder onUnBind(Intent arg0) {\n return null;\n }", "title": "" }, { "docid": "48e84761a7a3b389b471b46537621c16", "score": "0.59973365", "text": "@Override\n public boolean onUnbind(Intent intent) {\n Log.d(TAG, \"onUnbind()\");\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "13b402fb444ecdee542bca3d97a07a94", "score": "0.5994784", "text": "public void unbind() {\n IAliTVASR asrService = getIAliTVASR(false);\n Context context = getContext();\n if (!(context == null || asrService == null)) {\n try {\n asrService.unregisterCallback(context.getPackageName());\n } catch (Throwable e) {\n e.printStackTrace();\n }\n }\n setAsrService((IAliTVASR) null);\n }", "title": "" }, { "docid": "5f89d4292002d7a7584f86d15158671c", "score": "0.5993575", "text": "@Override\n\tpublic void onRebind(Intent intent) {\n\t\tsuper.onRebind(intent);\n\t}", "title": "" }, { "docid": "5f89d4292002d7a7584f86d15158671c", "score": "0.5993575", "text": "@Override\n\tpublic void onRebind(Intent intent) {\n\t\tsuper.onRebind(intent);\n\t}", "title": "" }, { "docid": "61cdfff7f869f88753cd599ed8f01c36", "score": "0.59821695", "text": "void unbind() {\n synchronized (this) {\n if (!this.wasUnbound()) {\n this.binder = null;\n this.wasUnbound = true;\n try {\n this.context.unbindService((ServiceConnection)this);\n }\n catch (IllegalArgumentException illegalArgumentException) {\n Log.w((String)\"FJD.ExternalReceiver\", (String)(\"Error unbinding service: \" + illegalArgumentException.getMessage()));\n }\n }\n return;\n }\n }", "title": "" }, { "docid": "2e83d0efb36ce3fe91e91d5bf78d90ed", "score": "0.59783703", "text": "@Override\n public void onRebind(Intent intent) {\n super.onRebind(intent);\n Log.d(TAG, \"onRebind\");\n }", "title": "" }, { "docid": "9d85cfe34a697f6530bc318dfe5d50e0", "score": "0.5974539", "text": "@Override\n\tpublic void onRebind(Intent intent) {\n\t\tLog.i(TAG, \"onRebind()\");\n\t\tsuper.onRebind(intent);\n\t}", "title": "" }, { "docid": "4e52a7d3611d432e5b0c00778559922f", "score": "0.5964638", "text": "@Override\n public void onRebind(Intent intent) {\n Log.i(TAG, \"in onRebind()\");\n super.onRebind(intent);\n }", "title": "" }, { "docid": "da233c7d6ff0500ebdbb2e09277e6b5b", "score": "0.5940254", "text": "protected void onUnbound() { }", "title": "" }, { "docid": "07ab8774dd8a13f61ae10f836c18f187", "score": "0.5938668", "text": "@Override\n public void onRebind(Intent intent) {\n\n }", "title": "" }, { "docid": "fed049dbb0a970d01ecc2af37933cdb4", "score": "0.59384847", "text": "@Override\n\tpublic boolean onUnbind(Intent intent) {\n\t\tLog.i(TAG, \"onUnbind()\");\n\t\treturn super.onUnbind(intent);\n\t}", "title": "" }, { "docid": "af193d28865940e53484a5aba974f009", "score": "0.59361273", "text": "@Override\n\tpublic void onRebind( Intent intent ) {\n\t\tLog.d( LOG_TAG, \"onRebind\" );\n\t}", "title": "" }, { "docid": "a4b7d41abebba3dc5237bfc620934050", "score": "0.5917013", "text": "@Override\n public void onDestroyView() {\n super.onDestroyView();\n ButterKnife.unbind(this);\n }", "title": "" }, { "docid": "753a616182b8e0d43585d26a72f568a8", "score": "0.58844614", "text": "@Test\n public void testMaybeRebind_nullViewHolder() {\n mContinuationDriver.bind(mContinuationViewHolder);\n mContinuationDriver.unbind();\n reset(mContinuationViewHolder);\n\n mContinuationDriver.maybeRebind();\n verify(mContinuationViewHolder, never()).unbind();\n verify(mContinuationViewHolder, never())\n .bind(any(OnClickListener.class), any(LoggingListener.class), anyBoolean());\n }", "title": "" }, { "docid": "ae017a8b573687eca6e849ad42531384", "score": "0.58737135", "text": "@Override\r\n\t\t\tpublic void onUnbind() throws RemoteException {\n\t\t\t\tmConnection.unsetBind();\r\n\t\t\t}", "title": "" }, { "docid": "1b792330b91e9c47385bd098063fe93a", "score": "0.5861414", "text": "public void unbind() {\r\n if (ibo != null) {\r\n ibo.unbind();\r\n } else {\r\n for (Buffer buf: buffers) {\r\n buf.unbind();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d6cfa50faf9db02883ee9c54befc940d", "score": "0.58575344", "text": "public void clearRecyclerView(){\n ApplicationClass.rideEstims.clear();\n }", "title": "" }, { "docid": "7bf3400a1690afc738d2ed2096f6f104", "score": "0.585166", "text": "void unbindFromService() {\n \t\tif (isServiceBounded) {\n \t\t\tunbindService(bindConnection);\n \t\t\tisServiceBounded = false;\n \t\t\tLog.i(TAG, \"service unbinded\");\n \t\t}\n \t}", "title": "" }, { "docid": "bd0b0fb95265fc5a46460cbfbc34fb96", "score": "0.58464146", "text": "public void mo4548b() {\n RecyclerView.this.removeCallbacks(this);\n this.f3274V.abortAnimation();\n }", "title": "" }, { "docid": "68abe675233703be514233ec050cf5a8", "score": "0.58354574", "text": "@Override\n public final void onBindViewHolder(DataBoundViewHolder<T> holder, int position,\n List<Object> payloads) {\n if (payloads.isEmpty() || hasNonDataBindingInvalidate(payloads)) {\n bindItem(holder, position, payloads);\n }\n holder.binding.executePendingBindings();\n }", "title": "" }, { "docid": "feff2cc154a6aafb898eec0f1ecce1d5", "score": "0.58213496", "text": "@Override\n public boolean onUnbind(Intent intent) {\n disconnect();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "23a17681cf3d645d33fc6c7350516aea", "score": "0.58191967", "text": "protected void unbindTypedDatumService(TypedDatumService noldTypedDatumService) {\r\n }", "title": "" }, { "docid": "758bd5fc8abb55719c073d91efa88faf", "score": "0.58082724", "text": "@Override\n public void onDestroyView() {\n unbinder.unbind();\n initDestroy();\n super.onDestroyView();\n }", "title": "" }, { "docid": "4b3be3f098a871745d007b9b117b1a17", "score": "0.57098436", "text": "public void clearRecyclerView() {\r\n int size = this.prescriptionsList.size();\r\n if (size > 0) {\r\n for (int i = 0; i < size; i++) {\r\n this.prescriptionsList.remove(0);\r\n }\r\n\r\n\r\n }\r\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "d20bf6e5b395105ae779e723d1eb4177", "score": "0.56956726", "text": "@Override\n public boolean onUnbind(Intent intent) {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "85afee65dc9aae0422721aa2cf088cb3", "score": "0.569453", "text": "@Override\n public void detachView() {\n mSubscriptionList.unsubscribe();\n mSubscriptionList.clear();\n mView = null;\n }", "title": "" }, { "docid": "0148c7bfc6dfeaf0c183a0cc0db2fa9a", "score": "0.5693192", "text": "@Override\n public IBinder onBind(Intent intent) {\n Log.i(TAG, \"in onBind()\");\n stopForeground(true);\n mChangingConfiguration = false;\n isBound = true;\n return mBinder;\n }", "title": "" }, { "docid": "181883788a5cc84c7819eb5d2d521475", "score": "0.56770974", "text": "@Override\n\tpublic String unbind(String arg0) {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "c7606b63e7d0badea9482c0a558647ba", "score": "0.56745064", "text": "@Override\n public boolean onUnbind(Intent intent)\n {\n close();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "f5688ef984e9ef969042158838143a1c", "score": "0.56737113", "text": "private void resetRecyclerView() {\n currentPage = 1;\n /* Reset listener state */\n scrollListener.resetState();\n }", "title": "" }, { "docid": "dff12ae09e64c482778ac4054cb5e89e", "score": "0.5649848", "text": "@Override\n public void onViewRecycled(RecyclerView.ViewHolder holder)\n {\n if(holder instanceof SearchResultRecyclerViewAdapter.GifViewHolder)\n {\n SearchResultRecyclerViewAdapter.GifViewHolder gifHolder = (SearchResultRecyclerViewAdapter.GifViewHolder)holder;\n GlideApp.with(applicationContext_).clear(gifHolder.getImageView());\n }\n }", "title": "" }, { "docid": "321e4027aa508190920495cb8010f92e", "score": "0.5645351", "text": "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (isBounded) {\n unbindService(mConnection);\n }\n }", "title": "" }, { "docid": "8c404f48a658bbd70fe365f98eb5b79f", "score": "0.5631792", "text": "public void doUnbindService() {\n\t\tif (mIsBound) {\n\t\t\t// Detach our existing connection.\n\t\t\tmContext.unbindService(mConnection);\n\t\t\tmIsBound = false;\n\t\t}\n\t}", "title": "" }, { "docid": "36e5520f0ab8c0517017db962f56b9f8", "score": "0.5631735", "text": "@Override\n public void onViewDetachedFromWindow(@NonNull MiAdapterMisVehiculos.ExampleViewHolder holder) {\n super.onViewDetachedFromWindow(holder);\n holder.itemView.clearAnimation();\n }", "title": "" }, { "docid": "2a6bc8bf3f84e5c39d439cd587dd320c", "score": "0.5630308", "text": "private void unbindOCard() {\n iv_logo.setImageResource(R.mipmap.logo);\n iv_animation.setVisibility(GONE);\n if (animator != null && animator.isStarted()) {\n animator.cancel();\n }\n }", "title": "" }, { "docid": "d67bef8338cb68ccfe147fdab6df5622", "score": "0.5627868", "text": "private void recyclerViewBottomDetectionListener() {\n mRecyclerView\n .addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(RecyclerView recyclerView,\n int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n HelpMethods.closeKeyboard(getActivity());\n if (isRecyclerScrollable())\n if (!mRecyclerView.canScrollVertically(1) && !loading) {\n Log.d(TAG, \"recyclerViewBottomDetectionListener: bottom\");\n\n loading = true;\n\n getSavedPosts(adapter.getItemCount() - 1);\n }\n }\n });\n }", "title": "" }, { "docid": "b6959c1f2f7d18acccd797478c8ef7d9", "score": "0.56217915", "text": "public void onDragEnd_Main() {\n this.isDragEnd = false;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "0f91efc894aa5cdc1ad5dcc87d6cda61", "score": "0.561864", "text": "@Override\n public void onRebind(Intent intent) {\n clientBounded = true; // Binding to a client\n super.onRebind(intent);\n }", "title": "" }, { "docid": "ee557f088ba032711354455cffaafb6e", "score": "0.5559429", "text": "@Override\n public void onSwiped(@NonNull final RecyclerView.ViewHolder viewHolder, int direction) {\n\n DatabaseReference databaseReference= FirebaseDatabase.getInstance().getReference().child(\"BloodPressure\").child(FirebaseAuth.getInstance().getUid())\n .child(bloodPressureKey.get(viewHolder.getAdapterPosition()));\n\n Log.e(\"eeeeeeeeeeeeeeeeee2\",\"\"+viewHolder.getAdapterPosition());\n bloodPressureKey.remove(viewHolder.getAdapterPosition());\n data.remove(viewHolder.getAdapterPosition());\n bloodpressureadapter.notifyItemRemoved(viewHolder.getAdapterPosition());\n bloodpressureadapter.notifyDataSetChanged();\n databaseReference.removeValue();\n\n\n// mQuery1.addListenerForSingleValueEvent(new ValueEventListener() {\n// @Override\n// public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n// //for(DataSnapshot ds:dataSnapshot.getChildren()){\n// dataSnapshot.getRef().removeValue();\n// bloodPressureKey.remove(viewHolder.getAdapterPosition());\n// data.remove(viewHolder.getAdapterPosition());\n// bloodpressureadapter.notifyItemRemoved(viewHolder.getAdapterPosition());\n// bloodpressureadapter.notifyDataSetChanged();\n//\n// //}\n// }\n//\n// @Override\n// public void onCancelled(@NonNull DatabaseError databaseError) {\n//\n// }\n// });\n\n }", "title": "" }, { "docid": "1b56aa92d2921adc6079ef56013ce4b9", "score": "0.55494285", "text": "public void setAnimReboundonBindViewHolder(View itemView ,int position){\r\n /** Item's entrance animations during scroll are performed here.*/\r\n if(isAnimRebound)\r\n mAnimator.onBindViewHolder(itemView, position);\r\n }", "title": "" }, { "docid": "1ea74cfdeb9ca9a5322c880955508b79", "score": "0.55411834", "text": "void removeBinderListener(BinderListener l);", "title": "" }, { "docid": "26e7b63cbfde37182a7ec98fa4e01fc0", "score": "0.5538407", "text": "@Override\n\tpublic void unbind(Name arg0) throws NamingException {\n\n\t}", "title": "" }, { "docid": "a611d5b96d718aad5f8dec73bacfdcbc", "score": "0.55222756", "text": "public boolean onUnBind(Intent arg0) {\n\t \tplayer.setLooping(false);\n\t player.stop();\n\t\t player.release();\n\t return false;\n\t }", "title": "" }, { "docid": "1381871db65bf0a98b47189a2afed892", "score": "0.55187434", "text": "public void Unbind()\n {\n GLES30.glBindBuffer(GLES30.GL_ELEMENT_ARRAY_BUFFER, 0);\n }", "title": "" }, { "docid": "6bb06e05b52f888833b42db533113560", "score": "0.5495756", "text": "private void unbindService() {\n\n if (mIsServiceBound) {\n\n unbindService(mServiceConnection);\n mIsServiceBound = false;\n }\n }", "title": "" }, { "docid": "3ffade78752a7bd7ca8a8d2c1a343212", "score": "0.5491075", "text": "@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n removeItem(viewHolder.getAdapterPosition());\n }", "title": "" }, { "docid": "6616cc5584d39b44d217a2a1d6701c11", "score": "0.5486398", "text": "@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder,\n int direction) {\n // Remove the item from the dataset.\n mSportData.remove(viewHolder.getAdapterPosition());\n // Notify the adapter.\n mAdapter.notifyItemRemoved(viewHolder.getAdapterPosition());\n }", "title": "" }, { "docid": "1a6760a476414e5dae6c62e801a00b80", "score": "0.54788476", "text": "private void unbindDrawables(View view) {\n if (view.getBackground() != null) {\n view.getBackground().setCallback(null);\n }\n if (view instanceof ViewGroup && !(view instanceof AdapterView)) {\n for (int i = 0; i < ((ViewGroup) view).getChildCount(); i++) {\n unbindDrawables(((ViewGroup) view).getChildAt(i));\n }\n ((ViewGroup) view).removeAllViews();\n }\n }", "title": "" }, { "docid": "730f76e6c538f04a803ef6b4d3e9be49", "score": "0.54788405", "text": "@Override\n public boolean onLongClick(View view) {\n mDataset.remove(getPosition());\n //notifyDataSetChanged();\n //instead notify that a item is removed to do animation\n notifyItemRemoved(getPosition());\n return false;\n }", "title": "" }, { "docid": "3dca16e2fd35eec39939ca48e0e6f8f4", "score": "0.54762894", "text": "public static void unbind()\n\t{\n\t\tglBindTexture(GL_TEXTURE_2D, 0);\n\t}", "title": "" }, { "docid": "f43730522e8beeb3457c01e807932c41", "score": "0.5472191", "text": "public void binderDied() {\n Slog.d(BluetoothManagerService.TAG, \"Binder is dead - unregister \" + this.mPackageName);\n if (!BluetoothManagerService.this.isBleAppPresent()) {\n Slog.d(BluetoothManagerService.TAG, \"Disabling LE only mode after application crash\");\n try {\n BluetoothManagerService.this.mBluetoothLock.readLock().lock();\n if (BluetoothManagerService.this.mBluetooth != null && BluetoothManagerService.this.mBluetooth.getState() == 15) {\n BluetoothManagerService.this.mEnable = false;\n BluetoothManagerService.this.mBluetooth.onBrEdrDown();\n }\n BluetoothManagerService.this.mBluetoothLock.readLock().unlock();\n } catch (RemoteException e) {\n Slog.e(BluetoothManagerService.TAG, \"Unable to call onBrEdrDown\", e);\n } catch (Throwable th) {\n BluetoothManagerService.this.mBluetoothLock.readLock().unlock();\n }\n }\n }", "title": "" }, { "docid": "4e535ab43fd7247e240545aeb5ec3ad5", "score": "0.54556626", "text": "public void onBindViewHolder(MyListsEmptyViewHolder holder, int position){\n }", "title": "" }, { "docid": "61ec5394d8194c6b9c906e0f930d2a4a", "score": "0.5448265", "text": "@Override\n public void onSearchCleared() {\n ((ArrayAdapter)((ListView)mSearchBox.findViewById(R.id.results)).getAdapter()).notifyDataSetChanged();\n }", "title": "" }, { "docid": "ba115aa731707d8918a4086e4419617e", "score": "0.5436413", "text": "@Override\n public void unregisterDataSetObserver(DataSetObserver arg0) {\n\n }", "title": "" }, { "docid": "df33458de266652c8944fa0f5acec913", "score": "0.5428758", "text": "@Override\n public void onDetach() {\n super.onDetach();\n\n // Removes the refference to the activity.\n listener = null;\n }", "title": "" }, { "docid": "94d317dd536917ff0e14798a4b19fb26", "score": "0.5420578", "text": "@Override\n public void run() {\n ((ScrollWidget) widget).adapter.processInvalidate();\n ((ScrollWidget) widget).adapter.processClear();\n }", "title": "" }, { "docid": "fa5cc7c8e6739e5a90fb4f7d51cac916", "score": "0.5411769", "text": "public void resetAdapter(){\n mItems.clear();\n mSearchResultInfo.reset();\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "6c2a952a4c70f977bd46f50c6385b493", "score": "0.5408744", "text": "@Override\n public boolean onUnbind(Intent intent) {\n Toast.makeText(getApplicationContext(), \"Service: Unbind\", Toast.LENGTH_LONG).show();\n return super.onUnbind(intent);\n }", "title": "" }, { "docid": "893cfa901571dfd1b7a6dbb72a076a78", "score": "0.5406113", "text": "private void doUnbindService() {\n\t\tLog.d(\"HOME ACTIVITY\", \"Service Unbinding\");\n\t\tunbindService(myConnection);\n\t\tisBound = false;\n\t}", "title": "" }, { "docid": "6b48c19495025f190b606c8fdef6befc", "score": "0.5398878", "text": "@Override\r\n public void onDetach() {\r\n super.onDetach();\r\n mListener = null;\r\n }", "title": "" }, { "docid": "b96d2ad357cd81c5b9e4378a5a88b582", "score": "0.5397202", "text": "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\t\tActivityOn = false;\n\t}", "title": "" }, { "docid": "0a10253ec93d6466f44f67a36cb5fc5e", "score": "0.5390046", "text": "@Override\n\tpublic void unbind(String arg0) throws NamingException {\n\n\t}", "title": "" }, { "docid": "a61c5451fbbb975558ccba026866b1c7", "score": "0.5388448", "text": "public void Disconnect(){\n if(Bound) {\n mainActivity.doUnbind(Connection);\n Bound = false;\n Log.d(\"Communicator Disconnect: \",\"unbinding from CallBlockService.\");\n }\n }", "title": "" }, { "docid": "7b652b9ac879df87d3b1955602635141", "score": "0.53842455", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tunbindService(mConnnection);\n\t\t\t\tisbound=false;\n\t\t\t}", "title": "" }, { "docid": "f4f8ba072030c06d6a2feb45e9b2f21c", "score": "0.53803074", "text": "private void recyclerViewListener() {\n fragmentSearch_RecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n GridLayoutManager gridLayoutManager = (GridLayoutManager)fragmentSearch_RecyclerView.getLayoutManager();\n if (searchAdapter.getItemCount() > 0 && isLoading && gridLayoutManager != null && searchAdapter.getItemCount() - 1 == gridLayoutManager.findLastVisibleItemPosition()){\n isLoading = false;\n progressBarVisibility(true);\n SearchViewModel.getInstance().getNewData();//call the viewModel to fetch new data\n\n }\n }\n });\n }", "title": "" }, { "docid": "2247fdb998d4513fbdd0abc7b6a9dc2c", "score": "0.5370891", "text": "@Override\n public void onDestroyView() {\n mBinding = null;\n mMessageAdapter = null;\n super.onDestroyView();\n }", "title": "" }, { "docid": "5e86afb2200fa2c167f1233e6368d87e", "score": "0.5370491", "text": "@Override public void onDestroyView() {\n super.onDestroyView();\n unbinder.unbind();\n AssetUtils.nearbySmooshers.remove(nearbySmooshersCallback );\n }", "title": "" }, { "docid": "af713e898f19f4b4862fcb0e2fad7f3c", "score": "0.53687567", "text": "@Override\n public void onDetach() {\n super.onDetach();\n mListener = null;\n }", "title": "" }, { "docid": "2bad07472c736daff17894c6c7f40099", "score": "0.5365911", "text": "private void refreshScrollBound() {\n if (null != mAdapter) {\n mScrollerBound = (mAdapter.getCount() - 1) * getWidth();\n }\n }", "title": "" }, { "docid": "83d0e97898b41c0ba3c4a09162b6b1bd", "score": "0.53643185", "text": "@CallSuper\n @Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n unbinder = ButterKnife.bind(this, view);\n }", "title": "" } ]
ff0062732bbc7462eb37184f9b112fa1
Waits for the given crawler to stop crawling and notify this spambot.
[ { "docid": "5daf4aadc7844b77cb2f35a8a65c0bfe", "score": "0.69605017", "text": "public synchronized void waitForCrawlerToFinish(Crawler crawler) {\r\n while (crawler.isCrawling()) {\r\n try {\r\n wait();\r\n } catch (InterruptedException e) {\r\n System.out.println(\"Interrupted, oh well...\");\r\n }\r\n System.out.println(\"Crawler ended\");\r\n }\r\n }", "title": "" } ]
[ { "docid": "14323307e66f9b86cc1a72f8bdc814a4", "score": "0.670205", "text": "public void stopCrawler() {\n\t\tstopServer();\n\t\t/*\n\t\t * Stop crawler\n\t\t */\n\t\tfor (Crawler crawlerRunnable : this.m_crawlerRunnables) {\n\t\t\tcrawlerRunnable.stop();\n\t\t}\n\t\twhile(!isCrawlerStopped())\n\t\t\t;\n\t\t\n\t\tDataAccessor.getSingleton().shutdown();\n\t\t\n\t\t// Release blocking queue resource\n\t\tsynchronized (CrawlerManager.m_urlFrontier) {\n//\t\t\tCrawlerManager.m_urlFrontier.clear();;\n\t\t\tCrawlerManager.m_urlFrontier.notifyAll();\n\t\t\tfor (Thread crawlerThread : this.m_crawlerThreads) {\n\t\t\t\tcrawlerThread.interrupt();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Notify master this crawler node has stopped\n\t\t */\n\t\tCrawlerMessage message = new CrawlerMessage(\n\t\t\t\tCrawlerConfiguration.localIP, CrawlerConfiguration.commandPort,\n\t\t\t\tCrawlerConfiguration.masterIPAddr,\n\t\t\t\tCrawlerConfiguration.masterPort, MessageType.WORK_COMPLETED);\n\t\tmessage.setName(CrawlerConfiguration.name);\n\t\tMessagePusher messagePusher = new MessagePusher();\n\t\tmessagePusher.sendMessage(message);\n\n\t\tstopManager();\n\t}", "title": "" }, { "docid": "0597203801081448e37f4d207f6721cb", "score": "0.6388669", "text": "public void stopCrawler() {\n this.thread.interrupt();\n try\n {\n this.thread.join();\n } catch (InterruptedException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "581b8fe2bf3c64757a987cde163764e0", "score": "0.5546776", "text": "public void stopCrawl() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b68e7525308e5503be35ddb12e3962bb", "score": "0.5214101", "text": "public void timedOut (CrawlEvent event) {\n stop ();\n }", "title": "" }, { "docid": "eee3a836c99acd1370c33e6aa2b74d0e", "score": "0.51493335", "text": "public void crawlerFinished();", "title": "" }, { "docid": "6cd3e5d81313fc684682cc95f9883b3b", "score": "0.5122163", "text": "private boolean isCrawlerStopped() {\n//\t\tfor (Crawler crawlerRunnable : this.m_crawlerRunnables) {\n//\t\t\tif (!crawlerRunnable.isWorkCompleted()) {\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t}\n//\t\treturn true;\n\t\tsynchronized (CrawlerManager.m_numOfCrawlerStopped) {\n\t\t\tif (CrawlerManager.m_numOfCrawlerStopped >= CrawlerConfiguration.numOfCrawlerThread) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1e0006dba9ffa52f4ee7cf58ceb0a625", "score": "0.50649685", "text": "void stopWait();", "title": "" }, { "docid": "324a1fcf28960fd7db4fbb3592826252", "score": "0.4995161", "text": "public void stopping() {\n if (m_tracker != null) {\n m_tracker.close();\n m_tracker = null;\n }\n }", "title": "" }, { "docid": "bd7539f64253fab11143f57de72da71d", "score": "0.49625754", "text": "public synchronized void stopped (CrawlEvent event) {\n if (running)\n stop ();\n }", "title": "" }, { "docid": "c52d51819df5a872538b8c116e682be1", "score": "0.4957285", "text": "@Override\n public void stop() {\n if (!isStarted())\n return;\n\n // Notify any currently waiting polls.\n Enumeration keys = currentWaitedRequests.keys();\n while (keys.hasMoreElements()) {\n Object notifier = keys.nextElement();\n synchronized (notifier) {\n notifier.notifyAll(); // Break any current waits.\n }\n }\n currentWaitedRequests = null;\n\n super.stop();\n }", "title": "" }, { "docid": "349111d56ec23f80301ab0f71b22494f", "score": "0.492543", "text": "public void stop(){\n if(!client.downloadComplete){\n downloadTime += System.nanoTime()-startTime;\n }\n else if (downloadCompleteFromStart){\n downloadTime = 0;\n }\n started = false;\n for (int i = 0; i < peerWorkers.size(); i++){\n peerWorkers.get(i).cancel(true);\n }\n chokingHandler.cancel(true);\n trackerTimer.cancel();\n trackerTimer.purge();\n \n announcer.updateEvent(TrackerRequest.EVENT_STOPPED);\n announcer.run();\n \n System.out.println(\"\\n\\n\\nYou have pressed EXIT\");\n \n System.out.println(\"Download time: \" + (downloadTime/1000000000) + \" seconds\");\n System.out.println(\"The program will exit in 5 seconds...\\n\\n\\n\");\n try{\n Thread.sleep(5000);\n }\n catch(InterruptedException ex){\n Thread.currentThread().interrupt();\n }\n System.exit(0);\n }", "title": "" }, { "docid": "1f9eff86b62f69c06ad951e2ba4ee3b9", "score": "0.4907573", "text": "public void stopChildren() {\n downloader.setFinished();\n waitThreadFinish(downloader);\n waitThreadFinish(extractor);\n }", "title": "" }, { "docid": "83806b9bea4060160f431ed376c2a7f9", "score": "0.48270008", "text": "public static void StopCheckingMessages(){\n\t\ttimer.cancel();\n\t}", "title": "" }, { "docid": "8a9a20be992f2de5b6b32c3a744417bc", "score": "0.4822007", "text": "public void stopThread()\n\t{\n\t\tblinker = null;\n\t\tm_isFinished = false;\n\t\tm_isDisconnected = true;\n\t}", "title": "" }, { "docid": "fb55664582d419284623cd29973d05f0", "score": "0.46800542", "text": "public void removeCrawler(Crawler c) {\n crawlers.remove(c);\n }", "title": "" }, { "docid": "0af68ca75e9a645a24b803763fe70e6b", "score": "0.4655976", "text": "private synchronized void waitStop() {\n try {\n while (!stop) wait();\n } catch (InterruptedException ex) {\n // proceed\n }\n }", "title": "" }, { "docid": "b670f7c4f4b9afa2bf97f5fef6184f3e", "score": "0.4505942", "text": "public void abortCollect()\n\t\tthrows Exception\n\t{\n\t\t\n\t\t// This client can become master\n\t\tDcsActiveClient dcsActiveClient = new DcsActiveClient(client.getUser(), \n\t\t\t\t\t\tclient.getSessionId(), \n\t\t\t\t\t\tclient.getBeamline());\n\t\t// Connect to DCSS, wait until DCSS is ready\n\t\t// then start collectWeb operation.\n\t\t// Wait until we receive stog_start_operation collectWeb\n\t\t// as a confirmation before disconnecting\n\t\t// from dcss.\n\t\tdcsActiveClient.abortCollectWeb();\n\t\t\t\t\n\t\t// Free the client\n\t\tdcsActiveClient = null;\n\t\t\n\t\t// If no error is thrown then we can\n\t\t// assume that abortCollectWeb is successful.\n\t\t// Wait until our main thread updates collect.out\n\t\t// and notice that collectWeb is now inactive.\n\t\tint timeout = 10000; // 10 seconds\n\t\tint count = 0;\n\t\twhile (getStatus() <= COLLECT_FINISH) {\n\t\t \tThread.sleep(500);\n\t\t\tcount += 500;\n\t\t\tif (count > timeout)\n\t\t\t\tthrow new Exception(\"Timeout while waiting for collect_msg to indicate that collectWeb has stopped\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8355352449ee2b88e2673fbbb8b28f0c", "score": "0.44940314", "text": "public void crawl() {\n\t\tcontroller.start(Crawler.class, numberOfCrawlers);\n\t}", "title": "" }, { "docid": "2eca0aa8dbcc65731567687412ead131", "score": "0.44778442", "text": "public synchronized void StopBottonPressed() \n\t{\n//\t\tswitch(this.G_GUI.getBtnPause().getText())\n//\t\t{\n//\t\tcase \"Stop\":\n//\t\t\tthis.G_GUI.getBtnPause().setText(\"Continue\");\n//\t\t\tScraper.Pause=true;\n//\t\t\tbreak;\n//\t\tcase \"Continue\":\n//\t\t\tthis.G_GUI.getBtnPause().setText(\"Stop\");\n//\t\t\tScraper.Pause=false;\n//\t\t\tbreak;\n//\t\t}\n\t\tif(this.runningsraper==null)return;\n\t\tthis.runningsraper.interrupt();\n\t\tthis.G_GUI.getBtnStart().setEnabled(true);\n\t\t\n\t}", "title": "" }, { "docid": "eb19f7893e79629178e52161778b306a", "score": "0.44649473", "text": "public void paused (CrawlEvent event) {\n stop ();\n }", "title": "" }, { "docid": "3258fc94d028b53a4fb8a2d64498dd2f", "score": "0.44573906", "text": "private void fetch() throws InterruptedException, IOException {\n \n // wait if Q is empty\n boolean crawlersStillAlive = Crawler.deadCount.get() != TumblrFetchingService.CRAWLER_COUNT; \n while (queue.isEmpty() && crawlersStillAlive && !cancelRequested) {\n synchronized (queue) {\n queue.wait();\n }\n }\n\n // process polled item\n String url = queue.poll();\n if (url == null) {\n return;\n }\n\n // inform other threads about polling\n synchronized (queue) {\n queue.notify();\n }\n\n // download image\n saveImage(url);\n }", "title": "" }, { "docid": "5fdb25eb1d21edafa44bdd5a4f09e5fb", "score": "0.4448635", "text": "public void stopTwfinderThread() {\n isThreadRunning = false;\n }", "title": "" }, { "docid": "238e5bc8fadde2312ca7869590105b74", "score": "0.44476414", "text": "public void wait_until_loader_is_invisible() throws InterruptedException {\n\t\tString res;\r\n\t\ttry {\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t} catch (StaleElementReferenceException e) {\r\n\t\t\tThread.sleep(1000);\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t}\r\n\t\twhile (res.equals(\"block\")) {\r\n\t\t\tThread.sleep(200);\r\n\t\t\tres = pages.Utill().find(\"ctl00_UpdateProgress1\").getCssValue(\"display\");\r\n\t\t\tif (!(res.equals(\"block\"))) {\r\n\t\t\t\t// System.out.println(\"end time\"+java.time.LocalTime.now());\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\t// System.out.println(res);\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f5b236073fc306b4e8c5bdc3a2052846", "score": "0.44161415", "text": "public void waitForNotificationOrFail() {\n new PollingCheck(5000) {\n @Override\n protected boolean check() {\n return mContentChanged;\n }\n }.run();\n mHT.quit();\n }", "title": "" }, { "docid": "b8d25fb5275e8c244b0c38fec685a777", "score": "0.4410342", "text": "private CrawlerManager() {\n\t\tthis.m_isManagerStopped = 0;\n\t\tCrawlerManager.m_numOfCrawlerStopped = 0;\n\t\tCrawlerManager.m_urlFrontier = new BlockingQueue<Link>(\n\t\t\t\tCrawlerConfiguration.numOfCrawlerTask);\n\t\tCrawlerManager.m_searchedURLs = new HashSet<byte[]>();\n\t\tCrawlerManager.m_numOfPageCrawled = 0;\n\t\tCrawlerManager.m_hostToRobots = new HashMap<String, Robots>(\n\t\t\t\tCrawlerManager.m_maxRobotsNum);\n\t\tCrawlerManager.m_hostToLastAccessTime = new HashMap<String, Long>();\n\t\tstartReceivers();\n\t\tthis.m_crawlerRunnables = new ArrayList<Crawler>(\n\t\t\t\tCrawlerConfiguration.numOfCrawlerThread);\n\t\tthis.m_crawlerThreads = new ArrayList<Thread>(\n\t\t\t\tCrawlerConfiguration.numOfCrawlerThread);\n\t\t/*\n\t\t * Initialize threads\n\t\t */\n\t\tfor (int i = 0; i < CrawlerConfiguration.numOfCrawlerThread; i++) {\n\t\t\tCrawler crawler = new Crawler(i + 1);\n\t\t\tthis.m_crawlerRunnables.add(crawler);\n\t\t\tthis.m_crawlerThreads.add(new Thread(crawler));\n\t\t}\n\t\tMessagePusher messagePusher = new MessagePusher();\n\t\tCrawlerMessage message = new CrawlerMessage(\n\t\t\t\tCrawlerConfiguration.localIP, CrawlerConfiguration.commandPort,\n\t\t\t\tCrawlerConfiguration.masterIPAddr,\n\t\t\t\tCrawlerConfiguration.masterPort, MessageType.READY_TO_CRAWL);\n\t\tmessage.setName(CrawlerConfiguration.name);\n\t\tmessage.setOptionalPort(CrawlerConfiguration.linkPort);\n\t\tmessagePusher.sendMessage(message);\n\t}", "title": "" }, { "docid": "9b3a01445c8799329e107a413cf5dd5e", "score": "0.4407816", "text": "public Boolean stopListening();", "title": "" }, { "docid": "ff93efbf058223a7255500984d4259af", "score": "0.4398824", "text": "public void\n\tstopAllDownloads();", "title": "" }, { "docid": "ae53df3a334e0f8d9a355854e37799bf", "score": "0.43956128", "text": "public void stopListening() \n\t{\n\t\tkeepListening = false;\n\t}", "title": "" }, { "docid": "f6887da597c94632c7089d1b00ff6d02", "score": "0.436494", "text": "@Override\n\tprotected void atAgentStop(AgentEvent event) {\n\t\tsuper.atAgentStop(event);\n\t\tpingTimer.cancel();\n\t\tgetAgentLog().lf(\"atAgentStop \");\n\t}", "title": "" }, { "docid": "61d3c12cd657b8bd7f49f37252551ac2", "score": "0.43526658", "text": "public void stopListening() {\n\t\tlistening = false;\n\t}", "title": "" }, { "docid": "c064c142db812ec1a031dbe7bbc7eb8a", "score": "0.43434754", "text": "void stopListening();", "title": "" }, { "docid": "5b2a438c19c9ef6a507cada4d4c15c6c", "score": "0.43330872", "text": "@Override\n protected void end() {\n notifier.stop();\n }", "title": "" }, { "docid": "9fecad30a6725d264232c37f42462506", "score": "0.43306607", "text": "public void stopSearch();", "title": "" }, { "docid": "989c425c68980224774c94a0122301f0", "score": "0.4329667", "text": "private void cancelAsyncTask() {\n if (newsAsyncTask != null) {\n newsAsyncTask.cancel(true);\n }\n }", "title": "" }, { "docid": "4a0c06aa8362804c060802ff26bdbde3", "score": "0.4323441", "text": "private void waitFor(Supplier<Boolean> condition) {\n do {\n uncheckedSleep(100);\n } while (!condition.get());\n }", "title": "" }, { "docid": "795670c49c36412f5c429cd2ff5d2dd3", "score": "0.43128678", "text": "void stopSearch() {\n if (networkDisposable != null && !networkDisposable.isDisposed()) {\n networkDisposable.dispose();\n }\n }", "title": "" }, { "docid": "bcad7f10d213b4b03be6844f563314c7", "score": "0.43083394", "text": "public void stop() {\n\t\tclient.stop();\n\t\t\n\t\t//unsubscribe from observer\n\t\tclient.unsubscribeObserver(mr);\n\t}", "title": "" }, { "docid": "2d2fd1f0850a4b52c6f21824ef25c6dd", "score": "0.42939124", "text": "public void wake(){\n nLock.lock();\n\n try {\n if(sentRequestsQueue.size() > 0)\n sentRequestsQueue.get(0).getCondition().signal();\n }finally {\n nLock.unlock();\n }\n\n }", "title": "" }, { "docid": "adac7e51a1242d25f4319673709f737b", "score": "0.4282091", "text": "public void waitForCoach();", "title": "" }, { "docid": "3ee1ba29e0f36f3a733ef83d9d89969c", "score": "0.4278817", "text": "public void waitForAnswers() {\n while (isWaiting()) {\n try {\n Thread.sleep(200);\n }\n catch (InterruptedException e) {\n }\n }\n }", "title": "" }, { "docid": "81f6cb8947b3f28beeb927adeb68a356", "score": "0.42752606", "text": "private void launchCrawler () {\n\t\tYoutubeApiInterface myAPI = new YoutubeApiInterface(apiKey,numberOfVideos,downloadFlag,license);\n\t\t//myAPI.startSearch(searchQueue);\n\t\tmyAPI.startSearchPaginated(searchQueue);\n}", "title": "" }, { "docid": "5a9bd552c4a6b17cb2abe288b3ebf73a", "score": "0.42718023", "text": "public void poll() {\n try {\n //Update the Agent Settings Cache value\n MessageMonitoringUtil.updateAgentSettingsCacheTimeoutValue();\n mailReceiver.handleMessages(messageHandler);\n } catch (MailClientException e) {\n handleException(e);\n }\n }", "title": "" }, { "docid": "f6d1bcc9238146675736e11ceed7f366", "score": "0.42663333", "text": "protected void waitForTextToDisappear(final String textToWaitToDisappear) {\n webEventController.getWebEventService().waitForTextToDisappear(textToWaitToDisappear);\n }", "title": "" }, { "docid": "30853e3b0393c5aab18b32d568196fb1", "score": "0.4265992", "text": "public void crawlerStarted();", "title": "" }, { "docid": "fa8df45853f21a4f26cc4dd221a8f36d", "score": "0.42650595", "text": "public void stop() {\n Connection<Object> connection = connector.maybeConnect();\n if (connection == null) {\n LOGGER.lifecycle(\"No Gradle daemons are running.\");\n return;\n }\n\n LOGGER.lifecycle(\"At least one daemon is running. Sending stop command...\");\n //iterate and stop all daemons\n while (connection != null) {\n new StopDispatcher().dispatch(clientMetaData, connection);\n LOGGER.lifecycle(\"Gradle daemon stopped.\");\n connection = connector.maybeConnect();\n }\n }", "title": "" }, { "docid": "f94ee29446cf9112a926a22ad2da5189", "score": "0.4257253", "text": "public void stopListener() {\n isRunning = false;\n }", "title": "" }, { "docid": "65fb6b49fd9e38bdb1f9809a3b483662", "score": "0.4244878", "text": "public void m1342b() {\n C0591c.m791a(\"test\", \"livestream stop\");\n this.f1317c.cancelAllRequests(true);\n this.f1318d.stop();\n }", "title": "" }, { "docid": "a1c0ce51cc73c4c70f69b7c934326e2b", "score": "0.42412856", "text": "@Override\n public void onConditionMet(Tracker.TrackerMessage message) {\n if(!waitList.isEmpty())\n {\n new StaticResultProcessingTask(ORIGIN_PREFORM).execute(waitList.toArray(new ApiResult[waitList.size()]));\n waitList.clear();\n }\n\n /**\n * Unsub from the event.\n * */\n JotiApp.MainTracker.postponeUnsubscribe(this);\n }", "title": "" }, { "docid": "6c594e736f54f8e30c5ef1f20a3ec6da", "score": "0.42386967", "text": "protected void stopDiscovering() {\n mIsDiscovering = false;\n Nearby.getConnectionsClient(mContext).stopDiscovery();\n Log.e(TAG,\"Discovery Stopped.\");\n }", "title": "" }, { "docid": "21a987b1b8dfa34c603806de2fa50119", "score": "0.42348832", "text": "public void stopMe() {\n logger.info(\"Stopping\");\n finished = true;\n logger.info(\"Stopped\");\n }", "title": "" }, { "docid": "b6c4ea785b8bbee840bbdc1ea8a9fd66", "score": "0.42307702", "text": "@Override\n\tpublic void suppress() {\n robot.stop();\n\t}", "title": "" }, { "docid": "4924c2c8f1cdc3650ef93392646e4819", "score": "0.4230388", "text": "public void stop(){\n shouldRun = false;\n pollerThread.interrupt();\n }", "title": "" }, { "docid": "9c61b7ede521927679f8f503e0ae4e28", "score": "0.42301783", "text": "public void stopComunication() {\n\t\tLog.d(TAG, \"stopComunication()\");\n\t\tmListener = null;\n\t\tmHeartBeat.stop();\n\n\t\tcloseSocket();\n\t}", "title": "" }, { "docid": "61209dd3f4b8e8e59b2655561fdec233", "score": "0.42230946", "text": "void stopTracker() {\n stats.stopTracker();\n }", "title": "" }, { "docid": "cec2d55165a953e4e80eb44dac297cc5", "score": "0.42108312", "text": "public synchronized void suspend()\r\n\t{\r\n\t\t//only suspend if the agents were never stopped\r\n\t\tif (!agents.get(0).isStopped()) {\r\n\t\t\tfor(Agent a: agents)\r\n\t\t\t{\r\n\t\t\t\ta.suspend();\r\n\t\t\t}\r\n\t\t\tstopTimer();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "840666b451a244f6df43a43bf7ba18ea", "score": "0.42067754", "text": "public boolean waitForStop(long timeoutMS);", "title": "" }, { "docid": "a2afe46283710f609004b49192a8c3f9", "score": "0.41823584", "text": "@Override\n public void stop() {\n turingBot.shutdown();\n }", "title": "" }, { "docid": "08e84c2a880e3c4ba3099e53e569ed24", "score": "0.4166003", "text": "public void stopListening(){\r\n listening=false;\r\n }", "title": "" }, { "docid": "a70de97ca4a77f2fddbb6d496e922b93", "score": "0.41652954", "text": "public synchronized void stop() {\n this.stopRequested.set(true);\n notifyAll(); // Wakes run() if it is sleeping\n }", "title": "" }, { "docid": "e57f325d1ec413eb81164534a965e565", "score": "0.41624865", "text": "public void stopAcceptingConnections();", "title": "" }, { "docid": "738adb3e9beeac0738dccdc71ad4096c", "score": "0.41588303", "text": "public void stop() {\n\t\tisFinished = true;\n\t\texecutor.shutdown();\n\t\t\n while (!executor.isTerminated()) {\n \ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.error(e);\n\t\t\t}\n \tlogger.info(\"Waiting for StreamsMonitor to shutdown\");\n }\n logger.info(\"Streams Monitor stopped\");\n\t}", "title": "" }, { "docid": "adcc439e22aaa6a3dbc5982cd715cedb", "score": "0.4156881", "text": "private void terminateListenerLooper() {\n if (mListenerThread != null) {\n if (mLooper != null) {\n mLooper.quit();\n mLooper = null;\n }\n try {\n mListenerThread.join();\n } catch(InterruptedException e) {\n }\n mListenerThread = null;\n }\n }", "title": "" }, { "docid": "7ebd43602836e2c29e39f56be4b47a3d", "score": "0.41559008", "text": "@SuppressWarnings(\"deprecation\")\n void closeListener() {\n if (listener != null && listener.isListening()) {\n listener.stop();\n\n // Wait until the listener says it has stopped, but don't wait forever\n int count = 0;\n while (listenerThread != null && listenerThread.isAlive() && count < 50) {\n ModbusUtil.sleep(100);\n count++;\n }\n // If the listener is still not stopped, kill the thread\n if (listenerThread != null && listenerThread.isAlive()) {\n listenerThread.stop();\n }\n listenerThread = null;\n }\n isRunning = false;\n }", "title": "" }, { "docid": "2acac5ff68e11273350f177f8a096d63", "score": "0.4149132", "text": "void stopAndWait();", "title": "" }, { "docid": "bde5ffc7ac44c80c872bc5cd0d28fc61", "score": "0.41478997", "text": "public void waitUntillPageLoad(WebDriver driver) {\n\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "5faa13cf57d1f4a4e30cf7fef6edfbe2", "score": "0.41428024", "text": "protected void doStop()\n {\n deregisterServices();\n\n udpConnectorServer.removeMessageListener(udpListener);\n udpConnectorServer.stop();\n\n removeDirectoryAgentListener(this);\n directoryAgents.removeAll();\n }", "title": "" }, { "docid": "80fb4f04bc4d1e2979ac6f3b88c37062", "score": "0.41404733", "text": "public void block()\r\n\t{\r\n\t\tSystem.out.println(\"WEBSEARCH : Blocking Search!\");\r\n\t\tlockSem.P();\r\n\t}", "title": "" }, { "docid": "d95194732e91bd8318e71d3e4175e310", "score": "0.41370085", "text": "public void pauseDownloads();", "title": "" }, { "docid": "c8904709c1a6eb424971b0575f8887e1", "score": "0.41260508", "text": "@Override\n public void stop() {\n waitWakeup();\n }", "title": "" }, { "docid": "f7e5a86bb3c623ad539b7009622e37f2", "score": "0.41223288", "text": "public void killUDPReceiver() {\n\t\tisAlive = false;\n\t}", "title": "" }, { "docid": "8b175f159894b78c0ffe68c132c33d5a", "score": "0.41120282", "text": "public synchronized void stopWaitingForPlayers() {\n isWaitingForPlayers = false;\n }", "title": "" }, { "docid": "df687f22ef4427306a3b426f5a34870f", "score": "0.41074717", "text": "void stopLoop();", "title": "" }, { "docid": "30e9a6a0b2f11f19831f9bbf38f7f5a9", "score": "0.4106604", "text": "public void stop() {\n if (isStart && !this.bukkitTask.isCancelled() && this.bukkitTask != null) {\n this.isStart = false;\n this.bukkitTask.cancel();\n }\n }", "title": "" }, { "docid": "6b49cd039fe72338cb2d90291eed9720", "score": "0.41045398", "text": "public void waitCastDelay()\n\t{\n\t\tMacro.sleep((int) (cooldown * 1000d)); //convert to seconds\n\t}", "title": "" }, { "docid": "e44cb80aff64f4c2d0ffe875d839489d", "score": "0.41035908", "text": "public void stop() {\n // Set the flag that causes the run() method to end\n pleaseStop = true;\n }", "title": "" }, { "docid": "e295a49cbcb3de5bb9ef1ce841e5a6b4", "score": "0.41030997", "text": "private void startCountDownATimer()\r\n {\r\n Toast.makeText(this, \"Please wait while we try to find you a driver\", Toast.LENGTH_SHORT).show();\r\n countDownTimer = new CountDownTimer(60000, 1000)\r\n {\r\n public void onTick(long millisUntilFinished)\r\n {}\r\n \r\n public void onFinish()\r\n {\r\n // Cancelling the request if driver wasn't assigned\r\n if(!isDriverAssigned)\r\n {\r\n cancelUberRequest();\r\n }\r\n }\r\n }.start();\r\n }", "title": "" }, { "docid": "d2a82eeb6793758f3cc8ae8a53bba219", "score": "0.41020393", "text": "public void stop() {\r\n\t\tnetworkIO.disconnect();\r\n\t}", "title": "" }, { "docid": "89e84352005febedeeeb36f378029b1e", "score": "0.40950137", "text": "public void stopSearch()\r\n\t{\r\n\t\ttimer.cancel();\r\n\t\tsearching = false;\r\n\t}", "title": "" }, { "docid": "3d03ac743a94f87850ce6bf4f849b37a", "score": "0.40920854", "text": "public void stop() {\n detector.disable();\n }", "title": "" }, { "docid": "a0c643d3943faa8634c6cf9aa27d3e5e", "score": "0.40884998", "text": "private synchronized void notifyStop() {\n stop = true;\n notifyAll();\n }", "title": "" }, { "docid": "a6102e263bc62586d76a879f9424201d", "score": "0.40821677", "text": "public void stop() {\r\n\t\tDebug.show(Debug.EVENTS, \"TimingMonitor.stop()\");\r\n\t\twaitLock.wakeUp();\r\n\t}", "title": "" }, { "docid": "20448f907496d0e1daa53e2d11b041c2", "score": "0.4073624", "text": "protected void stopListener(){\n\t\tif(listenerStopped == false){ // prevents multiple interruptions\n\t\t\tlistenerStopped = true;\n\t\t\texitListener.interrupt();\n\t\t}\n\t}", "title": "" }, { "docid": "1111ff4d360470ce21626fa5dec748ac", "score": "0.40732238", "text": "private void stopWatcher() {\n\t\tif ( watcherThread != null ) {\n\t\t\twatcherThread.stopThread();\n\t\t\twatcherThread = null;\n\t\t}\n\t}", "title": "" }, { "docid": "bcd85510dce5f95bee3f350c667b72b0", "score": "0.4066987", "text": "public void Stop() {\n StopRTCPSenderThread();\n }", "title": "" }, { "docid": "8c402b52bee78539739641638ea7ec61", "score": "0.40640908", "text": "public void askToStopCall() {\n stopCall();\n\n //send(new StopCall(friend));\n }", "title": "" }, { "docid": "da9ae6c754d3d04bed88e631292ccf3a", "score": "0.4063838", "text": "@Override\r\n public void stop() {\r\n if (messenger != null) {\r\n messenger.stop();\r\n }\r\n }", "title": "" }, { "docid": "da815498a274e3bc935cdfa57e0417ea", "score": "0.40610552", "text": "public void stopMusicThread() {\n\t\t\ttry {\n\t\t\t\tsleep(500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tradioStation.stop();\n\t\t\tinterrupt();\n\t\t}", "title": "" }, { "docid": "69a7adf9adba4195695a3f7664942391", "score": "0.40545812", "text": "protected void stop() {\n\t\tforgeAhead = false;\n\t\ttry {\n\t\t\tnew Socket(\"localhost\", port); //this connects to the server as a client to exit statement\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}", "title": "" }, { "docid": "3c6f3faa482119a518d7f0207929983a", "score": "0.40523648", "text": "public static void stopListening () {\n try {\n listener.close();\n server_thread.shutdownNow();\n server_thread = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7acf2d64570299c89e53fcca2a6ed97a", "score": "0.4046662", "text": "public static void stopNotifyToDriverList() {\n if (driversRefChildEventListener != null) {\n driversRef.removeEventListener(driversRefChildEventListener);\n driversRefChildEventListener = null;\n }\n\n }", "title": "" }, { "docid": "aeb415690834afe961698ba78cbf43d0", "score": "0.4046126", "text": "public void stopTimeoutLoop() {\n logger.info(\"Stopping timeout loop of SessionWatchdog.\");\n checkTimeouts = false;\n }", "title": "" }, { "docid": "8faacd1bb9fce7f0fa494f22472b0556", "score": "0.40402114", "text": "public void stopLoop() {\r\n\t\tpcap.breakloop();\r\n\t}", "title": "" }, { "docid": "34f3d093f8207f2ed49321f010d76edf", "score": "0.40363663", "text": "public void cancelDiscovery() {\n baBTAdapter.cancelDiscovery();\n }", "title": "" }, { "docid": "04a53499080c9fdaf2c48e902e8be43e", "score": "0.4034663", "text": "synchronized void breakLinks() {\n if (links != null) {\n Link[] l = links.clearLinks();\n\n if (l != null) {\n\tint len = l.length;\n\n\tfor (int i=0; i<len; i++) {\n\t // send exit \"from\" remote pids to local ones\n\t self.deliver(new OtpMsg(OtpMsg.exitTag,l[i].remote(),l[i].local(),\n\t\t\t\t new OtpErlangAtom(\"noconnection\")));\n\t}\n }\n }\n }", "title": "" }, { "docid": "ece92955d88c34fdd6e23598a493eece", "score": "0.40326253", "text": "public void stopPollThread() {\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tpollingThread.join();\r\n\t\t} catch (InterruptedException ex) {\r\n\t\t\tassert(false) : \"Grid scheduler stopPollThread was interrupted\";\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "39209884df79ddf2cc8aaa287147fb48", "score": "0.40309566", "text": "public void stop() {\r\n\t\tif (monitor != null) {\r\n\t\t\tsynchronized (monitor) {\r\n\t\t\t\tmonitor.cancel();\r\n\t\t\t\ttry {\r\n\t\t\t\t\twhile (! monitor.isDone()) {\r\n\t\t\t\t\t\tmonitor.wait();\t\r\n\t\t\t\t\t}\t\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\tLogging.error(getClass(), \"Thread got interrupted.\", e);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "15f6ba5e50d15c5badb521050931af8a", "score": "0.40297642", "text": "public static void stopHeartBeat() {\n start.set(false);\n if (heartBeat != null) {\n heartBeat.cancel();\n heartBeat.purge();\n }\n }", "title": "" }, { "docid": "21a5f53cb48f09b25a01766ebbf523a5", "score": "0.40272826", "text": "public void cancelDownload() {\n if (mTask != null) {\n mTask.cancel(true);\n mTask = null;\n }\n }", "title": "" }, { "docid": "7cb5eab7596625389ef4c2ae5fa9aea0", "score": "0.40246695", "text": "public void stop() {\n this.magnet.set(0);\n }", "title": "" }, { "docid": "722f12502981ffd0c729e4ef0b6e58eb", "score": "0.4024065", "text": "private void clickLeaveMessage() {\n if(lastTarget != null && lastTarget.startsWith(\"music\")){\n driver.get(\"https://www.google.com\");\n driver.switchTo().alert().accept();\n }\n }", "title": "" } ]
9ce23dbff741ef4ea23a8f81f66370ce
Parse the event call trace from the supplied reader. The expectation is that all the calls are reported in sequential order
[ { "docid": "571b17dc4fa228b04e94c79d53f45289", "score": "0.7317481", "text": "private ProfilingResults parseFromReader(BufferedReader reader) throws Exception {\r\n ProfilingResults results = new ProfilingResults();\r\n Event currentEvent = results.getRootEvent();\r\n while (reader.ready()) {\r\n String line = reader.readLine();\r\n if (eventParser.isOpeningEvent(line)) {\r\n Event event = eventParser.parseEventFromOpeningLine(line);\r\n currentEvent.addEvent(event);\r\n currentEvent = event;\r\n } else {\r\n eventParser.updateEventFromEndingLine(currentEvent, line);\r\n currentEvent = currentEvent.getParent();\r\n }\r\n }\r\n return results;//.aggregate();\r\n }", "title": "" } ]
[ { "docid": "fc9db7359b454817e55e5e9dc61dd3e6", "score": "0.531572", "text": "public int splitTrace(int traceIndex, int eventIndex);", "title": "" }, { "docid": "0d73c56cded5090b61b7dfd64f58f84e", "score": "0.523741", "text": "@Override\n\tprotected void readElementsFromXml(EwsServiceXmlReader reader)\n\t\t\tthrows Exception {\n\t\treader.readStartElement(XmlNamespace.Messages,\n\t\t\t\tXmlElementNames.PhoneCallId);\n\t\tthis.phoneCallId.loadFromXml(reader, XmlNamespace.Messages,\n\t\t\t\tXmlElementNames.PhoneCallId);\n\t\treader.readEndElementIfNecessary(XmlNamespace.Messages,\n\t\t\t\tXmlElementNames.PhoneCallId);\n\t}", "title": "" }, { "docid": "68ce8b7e46420769c0683cb98b0e0659", "score": "0.5185897", "text": "public static RetrieveTpEventsForEntityState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveTpEventsForEntityState object =\n new RetrieveTpEventsForEntityState();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveTpEventsForEntityState\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveTpEventsForEntityState)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"entityStateID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "505b91166dd25b2b0f44ebc2eb75e09a", "score": "0.50987595", "text": "public static RetrieveTpEventsForEntityStateResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveTpEventsForEntityStateResponse object =\n new RetrieveTpEventsForEntityStateResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveTpEventsForEntityStateResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveTpEventsForEntityStateResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RetrieveTpEventsForEntityStateResult\").equals(reader.getName())){\n \n object.setRetrieveTpEventsForEntityStateResult(ArrayOfTpEventDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "75b6b690e2b15befd8fa58573cebb33f", "score": "0.50954556", "text": "public static ChangeState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ChangeState object =\n new ChangeState();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ChangeState\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ChangeState)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"requestID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"entityStateID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "fee514cf2c79b4c5573a80f841f9af17", "score": "0.50859165", "text": "public static TpEventDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n TpEventDTO object =\n new TpEventDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"TpEventDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (TpEventDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"ID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"TpEventID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setTpEventID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setTpEventID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"ActionType\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setActionType(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setActionType(ActionTypeEnum.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityTypeName\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityTypeName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityStateID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setEntityStateID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"StateName\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setStateName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityTypeID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityTypeID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setEntityTypeID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"StateID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setStateID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"ProcessID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setProcessID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setProcessID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"ProcessName\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setProcessName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityStateName\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateName(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "030fc83bbfd550839a1225d207ed2a2c", "score": "0.50816375", "text": "public static ObtenerSeriesResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ObtenerSeriesResponse object =\n new ObtenerSeriesResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"obtenerSeriesResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ObtenerSeriesResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://xml.netbeans.org/schema/esquemaSecundario\",\"series\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(Serie.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://xml.netbeans.org/schema/esquemaSecundario\",\"series\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(Serie.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setSeries((Serie[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n Serie.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "7b1c382af815c470c00784bb1beb0272", "score": "0.50687873", "text": "@Override\n\tpublic IParseResult parse(RuleCall ruleCall, Reader reader,\n\t\t\tint initialLookAhead) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1d0cd1dcbd897b05ba1bb893c71626a3", "score": "0.5062956", "text": "public static AddTpEventToEntityState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AddTpEventToEntityState object =\n new AddTpEventToEntityState();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"AddTpEventToEntityState\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AddTpEventToEntityState)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"entityStateID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"tpEvent\").equals(reader.getName())){\n \n object.setTpEvent(TpEventDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "9b87c19387be80d752de1e95b7de2916", "score": "0.5055874", "text": "public static Loggear parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Loggear object =\n new Loggear();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"loggear\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Loggear)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://webservice\",\"args0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArgs0(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setArgs0(AdministradorVO.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "9ae4e98aa6059628d84cc9bd180b4d2d", "score": "0.50444615", "text": "public static ArrayOfphoneInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfphoneInfoE object =\n new ArrayOfphoneInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfphone-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfphoneInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfphoneInfo(ArrayOfphoneInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "b90d2e7f93319b3a8d54cf118db8e759", "score": "0.5036032", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic parseFile(JsonReader reader){\n\t\tJsonElement jelement = new JsonParser().parse(reader);\n\t\tJsonObject allThings = jelement.getAsJsonObject();\n\t\t\n\t\tJsonArray initialJsonArray = allThings.getAsJsonArray(\"trail\");\n\t\tinitialJavaArray = new coords[initialJsonArray.size()];\n\t\tdouble lon;\n\t\tdouble lat;\n\t\tString lon1;\n\t\tString lat1;\n\t\tString timestamp;\n\t\tJsonObject temp;\n\t\t\n\t\t//sets an array of coordinates for a certain flight\n\t\tfor(int i=0; i<initialJavaArray.length; i++){\n\t\t\ttemp = initialJsonArray.get(i).getAsJsonObject();\n\t\t\tSet<Entry<String, JsonElement>> keys = temp.entrySet();\n\t\t\t\n\t\t\ttimestamp = ((Entry<String, JsonElement>)(keys.toArray())[0]).getKey();\n\t\t\tlon1 = ((Entry<String, JsonElement>)(keys.toArray())[0]).getValue().getAsJsonArray().get(1).getAsString();\n\t\t\tlat1 = ((Entry<String, JsonElement>)(keys.toArray())[0]).getValue().getAsJsonArray().get(0).getAsString();\n\t\t\tlon = Float.valueOf(lon1);\n\t\t\tlat = Float.valueOf(lat1);\n\t\t\t\n\t\t\tinitialJavaArray[i] = new coords(lon, lat, Long.parseLong(timestamp, 10));\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "7a5fab2bed61ef11e41f82abff5523e3", "score": "0.5035963", "text": "@Test\n public void testParseEventTypeUnknown() {\n String unmappedLogLine = \"11-11 00:00:00.001 123 321 I update_engine: foo bar baz\";\n mParser.parseEvents(new String[] {unmappedLogLine});\n assertNull(mParser.pollForEvent());\n unmappedLogLine = \"11-11 00:00:00.001 123 321 I foobar_engine: Update succeeded\";\n mParser.parseEvents(new String[] {unmappedLogLine});\n assertNull(mParser.pollForEvent());\n unmappedLogLine = \"11-11 00:00:00.001 123 321 I foobar_engine: foo bar baz\";\n mParser.parseEvents(new String[] {unmappedLogLine});\n assertNull(mParser.pollForEvent());\n }", "title": "" }, { "docid": "950c9208b9045bde00b18ee5fc8d6402", "score": "0.50192815", "text": "public static ArrayOfTpEventDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfTpEventDTO object =\n new ArrayOfTpEventDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfTpEventDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfTpEventDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"TpEventDTO\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(TpEventDTO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"TpEventDTO\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(TpEventDTO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setTpEventDTO((TpEventDTO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n TpEventDTO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "020ca1450bbe33096c5e9cfc935e6116", "score": "0.5016614", "text": "public static GetDiagnoseDetail parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDiagnoseDetail object =\n new GetDiagnoseDetail();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetDiagnoseDetail\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDiagnoseDetail)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"PatientID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setPatientID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "2ecacf2be25648f6b50fa7273185c779", "score": "0.49791402", "text": "public static ArrayOfalarmInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfalarmInfoE object =\n new ArrayOfalarmInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfalarm-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfalarmInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfalarmInfo(ArrayOfalarmInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "949820c09b8cb25c805fc4d8fe0b5b0b", "score": "0.49784046", "text": "@Override\n protected final void readNode() {\n String functionName;\n String arguments;\n String line = readLine();\n if(!line.startsWith(\"call \")) {\n throw new ParsingException(\"Not a call statement: \" + line);\n }\n String statementText = line.substring(5);\n if(!statementText.contains(\"(\")) {\n throw new ParsingException(\"Call statement without named function: \" + line);\n }\n functionName = statementText.substring(0, statementText.indexOf(\"(\"));\n arguments = trimParenthesis(statementText.substring(statementText.indexOf(\"(\")));\n this.functionName = functionName + \"(\" + arguments + \")\";\n this.callArgument = new Argument(new Scanner(statementText), context);\n }", "title": "" }, { "docid": "a5d5d47e16f9c6391a2273b7cef5d29d", "score": "0.49770364", "text": "public static PhoneRecordSearchResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneRecordSearchResponse object =\n new PhoneRecordSearchResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"PhoneRecordSearchResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (PhoneRecordSearchResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"count\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"count\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setCount(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setCount(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"phone-info-array\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setPhoneInfoArray(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setPhoneInfoArray(ArrayOfphoneInfo.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "272467816d6910379b8ba42f5b3525e8", "score": "0.49759194", "text": "public static ChangeState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ChangeState object =\n new ChangeState();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ChangeState\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ChangeState)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"entityID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"stateID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"comment\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setComment(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "ad7b8452cb3403586b8cf09d7d642839", "score": "0.49655294", "text": "public static RequestSourceEnum parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RequestSourceEnum object = null;\n // initialize a hash map to keep values\n java.util.Map attributeMap = new java.util.HashMap();\n java.util.List extraAttributeList = new java.util.ArrayList();\n \n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()){\n \n java.lang.String content = reader.getElementText();\n \n if (content.indexOf(\":\") > 0) {\n // this seems to be a Qname so find the namespace and send\n prefix = content.substring(0, content.indexOf(\":\"));\n namespaceuri = reader.getNamespaceURI(prefix);\n object = RequestSourceEnum.Factory.fromString(content,namespaceuri);\n } else {\n // this seems to be not a qname send and empty namespace incase of it is\n // check is done in fromString method\n object = RequestSourceEnum.Factory.fromString(content,\"\");\n }\n \n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "09d945ec4f59019212ebe0d0a26ad634", "score": "0.49628183", "text": "public static Curr172 parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n Curr172 object = new Curr172();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()) {\n if (reader.isStartElement() || reader.hasText()) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n throw new org.apache.axis2.databinding.ADBException(\n \"The element: \" + \"curr17.2\" +\n \" cannot be null\");\n }\n\n java.lang.String content = reader.getElementText();\n\n object.setCurr172(org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(\n content));\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1b2c03a1394367e9092a86b545f87937", "score": "0.49614453", "text": "public static BuildSegmentModify parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentModify object =\n new BuildSegmentModify();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"BuildSegmentModify\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentModify)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-segment-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setBuildSegmentInfo(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setBuildSegmentInfo(BuildSegmentInfo.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"session-id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSessionId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "b4a102a8593d33b7b5b4dcf8dd8c79fb", "score": "0.49537885", "text": "public static ArrayOfbuildSegmentInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfbuildSegmentInfo object =\n new ArrayOfbuildSegmentInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfbuild-Segment-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfbuildSegmentInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-Segment-info\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(BuildSegmentInfo.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-Segment-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(BuildSegmentInfo.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setBuildSegmentInfo((BuildSegmentInfo[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n BuildSegmentInfo.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "6b749b7d34bcc1f4a52f450c1c692dab", "score": "0.495275", "text": "public LexParser(Reader reader) {\n this.reader = new PushbackReader(reader);\n }", "title": "" }, { "docid": "3c208f732440bca5ca034ad1a56d282d", "score": "0.49497697", "text": "public static ArrayOfbuildSegmentInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfbuildSegmentInfoE object =\n new ArrayOfbuildSegmentInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfbuild-Segment-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfbuildSegmentInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfbuildSegmentInfo(ArrayOfbuildSegmentInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "581917413a21b13c28da70c4cbe4d405", "score": "0.49474877", "text": "@Test\n public void testParseEventTypeMatchOrder() {\n mParser.registerEventTrigger(\n \"update_engine\",\n \"finished with ErrorCode::kSuccess\",\n LogcatEventType.PATCH_COMPLETE);\n mParser.registerEventTrigger(\n \"update_engine\", \"finished with ErrorCode\", LogcatEventType.ERROR);\n String notError =\n \"11-11 00:00:00.001 123 321 I update_engine: finished with ErrorCode::kSuccess\";\n mParser.parseEvents(new String[] {notError});\n assertEquals(LogcatEventType.PATCH_COMPLETE, mParser.pollForEvent().getEventType());\n }", "title": "" }, { "docid": "098c3619649043d84db47351c75dedb1", "score": "0.49350023", "text": "public static GetDiagnoseDetailResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetDiagnoseDetailResponse object =\n new GetDiagnoseDetailResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetDiagnoseDetailResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetDiagnoseDetailResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DiagnoseList\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDiagnoseList(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setDiagnoseList(DiagnoseList.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "c97f911670b7b2fc626622717b568983", "score": "0.49262938", "text": "public static PhoneRecordSearchRequest parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneRecordSearchRequest object =\n new PhoneRecordSearchRequest();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"PhoneRecordSearchRequest\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (PhoneRecordSearchRequest)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"session-id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSessionId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"PhoneRecord-search-cond\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setPhoneRecordSearchCond(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setPhoneRecordSearchCond(PhoneSearchCond.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "3227fde351d4528ef47a059048a5398a", "score": "0.49223384", "text": "public static GetBuildRuleDependenciesResponse parse(javax.xml.stream.XMLStreamReader reader) throws Exception{\n GetBuildRuleDependenciesResponse object =\n new GetBuildRuleDependenciesResponse();\n\n int event;\n String nillableValue = null;\n String prefix =\"\";\n String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"getBuildRuleDependenciesResponse\".equals(type)){\n //find namespace for the prefix\n String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetBuildRuleDependenciesResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://services.get.buildrule.dependencies.governance.carbon.wso2.org\",\"return\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n list1.add(reader.getElementText());\n \n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // Ensure we are at the EndElement\n while (!reader.isEndElement()){\n reader.next();\n }\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://services.get.buildrule.dependencies.governance.carbon.wso2.org\",\"return\").equals(reader.getName())){\n list1.add(reader.getElementText());\n \n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.set_return((String[])\n list1.toArray(new String[list1.size()]));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "a931b0091d22c5a68743226977ad3595", "score": "0.4916937", "text": "public static PhoneInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneInfo object =\n new PhoneInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"phone-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (PhoneInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"Operator\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setOperator(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"call_time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"call_time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setCall_time(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"callid\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setCallid(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"hangup_time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"hangup_time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setHangup_time(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"id\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setId(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"imagePath\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setImagePath(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"imagebyte\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setImagebyte(null);\n reader.next();\n } else {\n \n object.setImagebyte(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(reader));\n \n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"is_unlock\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"is_unlock\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setIs_unlock(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"recv_time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"recv_time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRecv_time(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"recverid\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRecverid(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"sid\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"sid\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSid(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setSid(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"unlock_time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"unlock_time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setUnlock_time(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "4bdc3eead6e26fd3c24a6943eecc4ca6", "score": "0.49161056", "text": "public static RemoveTpEventFromEntityState parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RemoveTpEventFromEntityState object =\n new RemoveTpEventFromEntityState();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RemoveTpEventFromEntityState\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RemoveTpEventFromEntityState)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"entityStateID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEntityStateID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"tpEventID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setTpEventID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "c299bbaeb8b89af0de5d35c75fdc4fb5", "score": "0.49154967", "text": "public static ArrayOfphoneInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfphoneInfo object =\n new ArrayOfphoneInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfphone-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfphoneInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"phone-info\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(PhoneInfo.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"phone-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(PhoneInfo.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setPhoneInfo((PhoneInfo[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n PhoneInfo.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1c7b43975a649d5d33f6a158d285965a", "score": "0.49072742", "text": "S parse(Reader reader, Object... params) throws IOException;", "title": "" }, { "docid": "efc2bbe1aac7fcf4f4aa5c83c2a2794c", "score": "0.48954424", "text": "public static ArrayOfalarmInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfalarmInfo object =\n new ArrayOfalarmInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfalarm-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfalarmInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"alarm-info\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(AlarmInfo.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"alarm-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(AlarmInfo.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setAlarmInfo((AlarmInfo[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n AlarmInfo.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1a7319cee9c7fd14ddfe9dbdfbbe8b0e", "score": "0.48884806", "text": "public static BuildSegmentInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentInfo object =\n new BuildSegmentInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"build-Segment-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"GateWay\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGateWay(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"mask\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setMask(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"segment\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSegment(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "a004ce5f0b6c7a77f435e4cc368d3095", "score": "0.48869166", "text": "public static ArrayOfmsgInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfmsgInfoE object =\n new ArrayOfmsgInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfmsg-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfmsgInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfmsgInfo(ArrayOfmsgInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "a8433e69ad616fcbeb76f376a84e6706", "score": "0.48818135", "text": "public static ChangeStateResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ChangeStateResponse object =\n new ChangeStateResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ChangeStateResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ChangeStateResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"ChangeStateResult\").equals(reader.getName())){\n \n object.setChangeStateResult(ArrayOfAnyType.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "16d1feece628b1b1cf08a7de22d63b6d", "score": "0.4880665", "text": "public static Fault parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Fault object =\n new Fault();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.bea.com/wsdl/wlcp/wlng/session_manager/service\",\"fault\").equals(reader.getName())){\n \n object.setFault(GeneralException.Factory.parse(reader));\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "3c96bd071bf585b60d1a3696006646d5", "score": "0.48764122", "text": "public static BuildSegmentAdd parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentAdd object =\n new BuildSegmentAdd();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"BuildSegmentAdd\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentAdd)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-segment-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setBuildSegmentInfo(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setBuildSegmentInfo(BuildSegmentInfo.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"session-id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setSessionId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "f1b67f88e09c1d15468e52a9cb627b4c", "score": "0.48740292", "text": "public static BuildSegmentModifyResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentModifyResponse object =\n new BuildSegmentModifyResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"BuildSegmentModifyResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentModifyResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "6255788f0cdd1b6aeb92d4b7262d11cd", "score": "0.48539075", "text": "public static AddTpEventToEntityStateResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AddTpEventToEntityStateResponse object =\n new AddTpEventToEntityStateResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"AddTpEventToEntityStateResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AddTpEventToEntityStateResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"AddTpEventToEntityStateResult\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setAddTpEventToEntityStateResult(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "ee2580f27d47c61c9f83c8c858faafd8", "score": "0.48533857", "text": "public static ObtenerSeriesRequest parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ObtenerSeriesRequest object =\n new ObtenerSeriesRequest();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"obtenerSeriesRequest\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ObtenerSeriesRequest)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://xml.netbeans.org/schema/esquemaSecundario\",\"nombreGrupo\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setNombreGrupo(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1826ce8f646a1e5d5538951b9e238bcd", "score": "0.48470542", "text": "public static RetrieveRequestersForRequestResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveRequestersForRequestResponse object =\n new RetrieveRequestersForRequestResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveRequestersForRequestResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveRequestersForRequestResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RetrieveRequestersForRequestResult\").equals(reader.getName())){\n \n object.setRetrieveRequestersForRequestResult(ArrayOfRequestRequesterDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1a7f297d88302812f41ca19b47a298bc", "score": "0.4838868", "text": "public static FiltrarCambioHistorico parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n FiltrarCambioHistorico object =\n new FiltrarCambioHistorico();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"filtrarCambioHistorico\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (FiltrarCambioHistorico)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://webservice\",\"args0\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArgs0(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setArgs0(ClienteVO.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "25289d9dcdd204e41fb49fa20c97ee44", "score": "0.48383766", "text": "public static ChangeStateResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ChangeStateResponse object =\n new ChangeStateResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ChangeStateResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ChangeStateResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "fc14b4b421b7e88b93a2b27576e50c3c", "score": "0.48344314", "text": "public void processTrace(Object o)\r\n/* 71: */ {\r\n/* 72: */ try\r\n/* 73: */ {\r\n/* 74: 71 */ BetterSignal signal = BetterSignal.isSignal(o);\r\n/* 75: 72 */ if (signal == null) {\r\n/* 76: 73 */ return;\r\n/* 77: */ }\r\n/* 78: 76 */ String json = (String)signal.get(0, String.class);\r\n/* 79: 77 */ Gson gson = new Gson();\r\n/* 80: 78 */ JsonReader reader = new JsonReader(new StringReader(json));\r\n/* 81: 79 */ reader.setLenient(true);\r\n/* 82: 80 */ JsonParser parser = new JsonParser();\r\n/* 83: */ \r\n/* 84: 82 */ JsonObject object = parser.parse(reader).getAsJsonObject();\r\n/* 85: */ \r\n/* 86: 84 */ int frameid = object.get(\"frameid\").getAsInt();\r\n/* 87: */ \r\n/* 88: 86 */ ArrayList<BoundingBox> boundingBoxes = new ArrayList();\r\n/* 89: 87 */ JsonElement activeids_elt = object.get(\"activeids\");\r\n/* 90: 88 */ if (!(activeids_elt instanceof JsonNull))\r\n/* 91: */ {\r\n/* 92: 89 */ Mark.say(new Object[] {activeids_elt });\r\n/* 93: 90 */ JsonArray objects = activeids_elt.getAsJsonArray();\r\n/* 94: 91 */ for (JsonElement elt : objects)\r\n/* 95: */ {\r\n/* 96: 92 */ BoundingBox box = (BoundingBox)gson.fromJson(elt.toString(), BoundingBox.class);\r\n/* 97: 93 */ boundingBoxes.add(box);\r\n/* 98: */ }\r\n/* 99: */ }\r\n/* 100: 97 */ if (frameid == 810) {\r\n/* 101: 98 */ Mark.say(new Object[] {\"Trace Recieved...\", object });\r\n/* 102: */ }\r\n/* 103:107 */ Connections.getPorts(this).transmit(\"frame stamp\", new BetterSignal(new Object[] { \"frame stamp\", Integer.valueOf(frameid), boundingBoxes }));\r\n/* 104: */ }\r\n/* 105: */ catch (Exception e)\r\n/* 106: */ {\r\n/* 107:110 */ e.printStackTrace();\r\n/* 108:111 */ Mark.err(new Object[] {\"JSON problem likely\" });\r\n/* 109: */ }\r\n/* 110: */ }", "title": "" }, { "docid": "bc0fc24487bf182fb98c25d59f2b6aab", "score": "0.48281273", "text": "public static RetrieveCommentsForRequestResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveCommentsForRequestResponse object =\n new RetrieveCommentsForRequestResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveCommentsForRequestResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveCommentsForRequestResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RetrieveCommentsForRequestResult\").equals(reader.getName())){\n \n object.setRetrieveCommentsForRequestResult(ArrayOfCommentDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "b991be748fdaa9dc927fc0f085bc7a4d", "score": "0.48256573", "text": "public static ChangeEffort parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ChangeEffort object =\n new ChangeEffort();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ChangeEffort\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ChangeEffort)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"requestID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"roleID\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setRoleID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"effort\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setEffort(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "45506b01df4a6eaf001a46983f1abda2", "score": "0.48244777", "text": "public static PhoneInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneInfoE object =\n new PhoneInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"phone-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setPhoneInfo(null);\n reader.next();\n \n }else{\n \n object.setPhoneInfo(PhoneInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "34af481b963a10a299d56e85d4c9faaa", "score": "0.48230913", "text": "public static BuildSegmentSearchResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentSearchResponse object =\n new BuildSegmentSearchResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"BuildSegmentSearchResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentSearchResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-segment-array\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setBuildSegmentArray(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setBuildSegmentArray(ArrayOfbuildSegmentInfo.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"count\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"count\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setCount(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setCount(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "3b461ede749b90c4b773a5ca795f717b", "score": "0.482299", "text": "public static RefutationEvent parse(java.io.Reader inpt) throws persistentPG.ParseException{\n return new persistentPG.TheParser(inpt).parse_RefutationEvent();\n }", "title": "" }, { "docid": "58e72de09d78c459f7d6aa80a3e5845d", "score": "0.48225343", "text": "public static LoggearResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n LoggearResponse object =\n new LoggearResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"loggearResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (LoggearResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://webservice\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.set_return(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.set_return(LoginVO.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "49f3d2689943e85f5a7db0764bc77251", "score": "0.48196584", "text": "public static Trace getRawTrace(String traceFile){\n\t\tTrace trace = new Trace();\n\t\tParse parser = new Parse();\n\t\tString line = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(traceFile);\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\tlong cnt = 0;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\ttry{\n\t\t\t\t\tArrayList<EventInfo> strList = parser.getInfoList(line);\n\t\t\t\t\tfor(int i = 0; i < strList.size(); i ++){\n\t\t\t\t\t\tcnt ++;\n\t\t\t\t\t\tEventInfo str = strList.get(i);\n\t\t\t\t\t\tEventType type = str.type;\n\t\t\t\t\t\tString thread = str.thread;\n\t\t\t\t\t\tString aux = str.decor;\n\t\t\t\t\t\tEvent e = getEvent(type,thread, aux, cnt, (int)cnt); //LocId is useless here, hence 0\n\t\t\t\t\t\ttrace.addEvent(e);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (CannotParseException e){\n\t\t\t\t\t//It could be a comment \n\t\t\t\t}\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t} catch (FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + traceFile + \"'\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Error reading file '\" + traceFile + \"'\");\n\t\t}\n\t\treturn trace;\n\t}", "title": "" }, { "docid": "5b4388a6cdf793703e7761e934a51d24", "score": "0.48153016", "text": "public static PhoneSearchCond parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneSearchCond object =\n new PhoneSearchCond();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"phone-search-cond\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (PhoneSearchCond)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"DevId\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDevId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"devType\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDevType(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"end-time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"end-time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setEndTime(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"search-range\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setSearchRange(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setSearchRange(SearchRangeType.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"start-time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"start-time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setStartTime(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "4e3424124e6fcda6aaf0d677d8726ff9", "score": "0.48024413", "text": "public static GetRequestersCount parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRequestersCount object =\n new GetRequestersCount();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetRequestersCount\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRequestersCount)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"requestID\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n java.lang.String content = reader.getElementText();\n \n object.setRequestID(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n } else {\n \n \n object.setRequestID(java.lang.Integer.MIN_VALUE);\n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "008b9b9dbfbe22d96a186b4427d2b272", "score": "0.48013288", "text": "public static DiagnoseList parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DiagnoseList object =\n new DiagnoseList();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"DiagnoseList\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DiagnoseList)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"DiagnoseItem\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n list1.add(Diagnose.Factory.parse(reader));\n \n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"\",\"DiagnoseItem\").equals(reader.getName())){\n list1.add(Diagnose.Factory.parse(reader));\n \n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setDiagnoseItem((Diagnose[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n Diagnose.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "4c0982ef609243560d172224da9c9998", "score": "0.48012108", "text": "public static FiltrarCambioHistoricoResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n FiltrarCambioHistoricoResponse object =\n new FiltrarCambioHistoricoResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"filtrarCambioHistoricoResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (FiltrarCambioHistoricoResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://webservice\",\"return\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(ClienteHistoricoVO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://webservice\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(ClienteHistoricoVO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.set_return((ClienteHistoricoVO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n ClienteHistoricoVO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "94411d0c8afa6245b73be4da82e4511f", "score": "0.47972035", "text": "public static BuildSegmentAddResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentAddResponse object =\n new BuildSegmentAddResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"BuildSegmentAddResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (BuildSegmentAddResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "4683a5d01f231fbc603cec241ca0eb4b", "score": "0.47900414", "text": "public static GBAltSeqItem_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GBAltSeqItem_type0 object =\n new GBAltSeqItem_type0();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GBAltSeqItem_type0\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GBAltSeqItem_type0)gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_interval\").equals(reader.getName())){\n \n object.setGBAltSeqItem_interval(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBAltSeqItem_interval_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_isgap\").equals(reader.getName())){\n \n object.setGBAltSeqItem_isgap(gov.nih.nlm.ncbi.www.soap.eutils.efetch_seq.GBAltSeqItem_isgap_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_gap-length\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_gap-length\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_gapLength(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInteger(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_gap-type\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_gap-type\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_gapType(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_gap-linkage\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_gap-linkage\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_gapLinkage(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_gap-comment\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_gap-comment\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_gapComment(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_first-accn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_first-accn\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_firstAccn(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_last-accn\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_last-accn\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_lastAccn(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_seq\",\"GBAltSeqItem_value\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"GBAltSeqItem_value\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setGBAltSeqItem_value(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "ba016c379458fa88e029e385128dc995", "score": "0.47884005", "text": "public static ArrayOfdevStatusInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfdevStatusInfoE object =\n new ArrayOfdevStatusInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfdev-status-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfdevStatusInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfdevStatusInfo(ArrayOfdevStatusInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "9001486bf1fcb1c01b65a65d7e01fda4", "score": "0.47874072", "text": "public static ArrayOfmsgInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfmsgInfo object =\n new ArrayOfmsgInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfmsg-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfmsgInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"msg-info\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(MsgInfo.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"msg-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(MsgInfo.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setMsgInfo((MsgInfo[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n MsgInfo.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "b172a8639f272e5b1a99c4a4d2ebae35", "score": "0.47831726", "text": "public static PhoneSearchCondE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n PhoneSearchCondE object =\n new PhoneSearchCondE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"phone-search-cond\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setPhoneSearchCond(null);\n reader.next();\n \n }else{\n \n object.setPhoneSearchCond(PhoneSearchCond.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "935d35652d52c98275ae61d4708f865b", "score": "0.47826412", "text": "public static BuildSegmentInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n BuildSegmentInfoE object =\n new BuildSegmentInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"build-Segment-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setBuildSegmentInfo(null);\n reader.next();\n \n }else{\n \n object.setBuildSegmentInfo(BuildSegmentInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "0344e2a3acb2b76581bfa108ccbb8921", "score": "0.4773685", "text": "public static ArrayOfRequestersCount parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfRequestersCount object =\n new ArrayOfRequestersCount();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfRequestersCount\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfRequestersCount)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestersCount\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestersCount.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestersCount\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestersCount.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setRequestersCount((RequestersCount[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n RequestersCount.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "f4477ce2a01f310a0b4bc810f2a6aa4a", "score": "0.4773644", "text": "private Object[] readNextPosition(String aTracePath) {\t\t\n\t\tObject[] result = new Object[KPLNumInfo];\n\t\tfor (int ii=0 ; ii < KPLNumInfo; ii++) {\n\t\t\tresult[ii] = null;\n\t\t}\n\t\t// Create a new traces reader if necessary\n\t\tif (iTracesReader == null) { \n\t\t\ttry {\n\t\t\t\tiTracesReader = new BufferedReader(new FileReader(aTracePath));\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Try to read a line\n\t\ttry {\n\t\t\tif (iTracesReader.ready()) {\n\t\t\t\ttry {\n\t\t\t\t\tString traceLine = iTracesReader.readLine();\n\t\t\t\t\tif (traceLine != null) {\n\t\t\t\t\t\tString[] traceFields = traceLine.split(\" \");\n\t\t\t\t\t\tfloat lat = Float.valueOf(traceFields[KLatField]);\n\t\t\t\t\t\tfloat lon = Float.valueOf(traceFields[KLonField]);\n\t\t\t\t\t\tif (traceFields.length > 3) {\n\t\t\t\t\t\t\t// Format <SIZE(long)>-<ID(string)>-<KIND(char)>\n\t\t\t\t\t\t\tString[] rawRequest = traceFields[KRequestField].split(\"-\");\n\t\t\t\t\t\t\tlong requestSize = MadnetSim.config.getFixedRequestSize();\n\t\t\t\t\t\t\tString requestKindStr = \"B\";\n\t\t\t\t\t\t\tString requestId = null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (rawRequest.length >= 1 && requestSize == 0) // In the configuration the value was set to 0...\n\t\t\t\t\t\t\t\trequestSize = Long.valueOf(rawRequest[0]);\n\t\t\t\t\t\t\tif (rawRequest.length >= 2)\n\t\t\t\t\t\t\t\trequestId = String.valueOf(rawRequest[1]);\n\t\t\t\t\t\t\tif (rawRequest.length >= 3)\n\t\t\t\t\t\t\t\trequestKindStr = String.valueOf(rawRequest[2]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tContent c;\n\t\t\t\t\t\t\tif (requestId != null)\n\t\t\t\t\t\t\t\tc = new Content(requestSize,requestId);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tc = new Content(requestSize);\n\t\t\t\t\t\t\tresult[KPLReqContent] = c;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (traceFields.length > 4)\n\t\t\t\t\t\t\tresult[KPlReqLookahead] = Integer.valueOf(traceFields[KLookaheadField]);\n\t\t\t\t\t\tint traceTime = Integer.valueOf(traceFields[KTimeField]);\n\t\t\t\t\t\tPoint tracePosition = new Point(lon,lat);\n\t\t\t\t\t\tresult[KPLTimedPosition] = new TimedPoint(tracePosition,traceTime);\n\t\t\t\t\t} else { // End of Stream Reached\n\t\t\t\t\t\tiTracesReader.close();\n\t\t\t\t\t\tresult = null;\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// no more traces to read\n\t\t\t\t\tresult = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// do nothing\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ccb299c960dc2b3041737b8ac8052905", "score": "0.47721627", "text": "public static ArrayOfunlockRecordInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfunlockRecordInfoE object =\n new ArrayOfunlockRecordInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfunlock-record-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfunlockRecordInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfunlockRecordInfo(ArrayOfunlockRecordInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "be58cec03ed81acfb8d3c770bf1692b8", "score": "0.477137", "text": "@Override\n\t\tpublic boolean advance() throws TotalADSReaderException {\n\t\t boolean isAdvance=false;\n\t\t try {\n\t\t\t\tdo {\n\t\t\t\t \tevent=bufferedReader.readLine();\n\n\t\t\t\t\t if (event==null){\n\t\t\t\t\t\t bufferedReader.close();\n\t\t\t\t\t\t isClose=true;\n\t\t\t\t\t\t isAdvance=false;\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t\t isAdvance=true;\n\t\t\t\t\t\t event=event.trim();\n\t\t\t\t\t }\n\t\t\t\t}while(event!=null && event.isEmpty());// if there are empty lines or there is no match on regex on a line, no need to send an event.\n\t\t\t\t\t\t\t\t\t\t// keep looping till the end of file.\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\tthrow new TotalADSReaderException(e.getMessage());\n\t\t\t}\n\t\t return isAdvance;\n\t\t}", "title": "" }, { "docid": "687c4831855d421e9125162dc0054e86", "score": "0.47683305", "text": "public static GetRequestersCountArrayResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetRequestersCountArrayResponse object =\n new GetRequestersCountArrayResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetRequestersCountArrayResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetRequestersCountArrayResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"GetRequestersCountArrayResult\").equals(reader.getName())){\n \n object.setGetRequestersCountArrayResult(ArrayOfRequestersCount.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "f83d4f0ca22409edd686ec98fec89ab5", "score": "0.47677705", "text": "@Override\r\n\tpublic void read() {\n\t\tif(currentEvent.isJsonArray()) {\r\n\t\t\t/*if(Interpreter.interpretConditional(currentEvent.getAsJsonArray().get(0).getAsJsonObject())) {\r\n\t\t\t\tcurrentEvent = \r\n\t\t\t}*/\r\n\t\t}\r\n\t\tif(currentEvent.isJsonObject()) {\r\n\t\t\tInterpreter.interpret(currentEvent.getAsJsonObject());\r\n\t\t} else {\r\n\t\t\t// XXX Shouldn't happen\r\n\t\t\tresetEvent();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "833a3da7e0af50e5867cde1d2339198f", "score": "0.4764169", "text": "public static ArrayOfCommentDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfCommentDTO object =\n new ArrayOfCommentDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfCommentDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfCommentDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"CommentDTO\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(CommentDTO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"CommentDTO\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(CommentDTO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setCommentDTO((CommentDTO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n CommentDTO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "ec669e7632b6c2ce090643bbc7ece648", "score": "0.475683", "text": "public static Entrezgene_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Entrezgene_type0 object =\n new Entrezgene_type0();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"Entrezgene_type0\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Entrezgene_type0)gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_track-info\").equals(reader.getName())){\n \n object.setEntrezgene_trackInfo(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_trackInfo_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_type\").equals(reader.getName())){\n \n object.setEntrezgene_type(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_type_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_source\").equals(reader.getName())){\n \n object.setEntrezgene_source(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_source_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_gene\").equals(reader.getName())){\n \n object.setEntrezgene_gene(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_gene_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_prot\").equals(reader.getName())){\n \n object.setEntrezgene_prot(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_prot_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_rna\").equals(reader.getName())){\n \n object.setEntrezgene_rna(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_rna_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_summary\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"Entrezgene_summary\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setEntrezgene_summary(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_location\").equals(reader.getName())){\n \n object.setEntrezgene_location(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_location_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_gene-source\").equals(reader.getName())){\n \n object.setEntrezgene_geneSource(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_geneSource_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_locus\").equals(reader.getName())){\n \n object.setEntrezgene_locus(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_locus_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_properties\").equals(reader.getName())){\n \n object.setEntrezgene_properties(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_properties_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_refgene\").equals(reader.getName())){\n \n object.setEntrezgene_refgene(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_refgene_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_homology\").equals(reader.getName())){\n \n object.setEntrezgene_homology(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_homology_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_comments\").equals(reader.getName())){\n \n object.setEntrezgene_comments(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_comments_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_unique-keys\").equals(reader.getName())){\n \n object.setEntrezgene_uniqueKeys(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_uniqueKeys_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_xtra-index-terms\").equals(reader.getName())){\n \n object.setEntrezgene_xtraIndexTerms(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_xtraIndexTerms_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_xtra-properties\").equals(reader.getName())){\n \n object.setEntrezgene_xtraProperties(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_xtraProperties_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_xtra-iq\").equals(reader.getName())){\n \n object.setEntrezgene_xtraIq(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_xtraIq_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_gene\",\"Entrezgene_non-unique-keys\").equals(reader.getName())){\n \n object.setEntrezgene_nonUniqueKeys(gov.nih.nlm.ncbi.www.soap.eutils.efetch_gene.Entrezgene_nonUniqueKeys_type0.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "d9df760d05b40171429cf84bab0ba2fd", "score": "0.4755911", "text": "public static ArrayOfEntityStateDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfEntityStateDTO object =\n new ArrayOfEntityStateDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfEntityStateDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfEntityStateDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityStateDTO\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(EntityStateDTO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"EntityStateDTO\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(EntityStateDTO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setEntityStateDTO((EntityStateDTO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n EntityStateDTO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "800134abd74198b24175ec39ece22c8f", "score": "0.4737461", "text": "private void readEvent() {\n try {\n while (true) {\n String data = in.readUTF();\n Event event = new Event(data);\n events.add(event);\n historyWriter.write(events);\n\n switch (event.getType()) {\n case AUTH_OK:\n hideError();\n setAuthorized(true);\n currentUser = event.getAuthor();\n continue;\n case ERROR:\n showError(StringUtils.join(event.getArgs(), \",\"));\n case PRIVATE_MESSAGE:\n case MESSAGE:\n appendMessage(event);\n continue;\n case STICKER:\n case IMAGE: {\n appendImage(event);\n continue;\n }\n case HELP: {\n appendHelpInfo();\n continue;\n }\n case CLIENT_LIST: {\n appendUsers(event.getArgs());\n continue;\n }\n case BLOCK_USER:\n isBlocked = true;\n continue;\n default:\n continue;\n case SERVER_CLOSED:\n case END:\n break;\n }\n }\n } catch (IOException e) {\n LOGGER.error(\"Read event error.\" + e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n LOGGER.error(\"Socket close error.\" + e);\n }\n }\n }", "title": "" }, { "docid": "20cc32be674152f34f3fd3a939cc7f1e", "score": "0.4732903", "text": "public static GetPriorities parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetPriorities object =\n new GetPriorities();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetPriorities\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetPriorities)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "71677cd4be930c671cb70e52e3269f31", "score": "0.47296768", "text": "public static StatusChange parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception {\n StatusChange object = new StatusChange();\n\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n try {\n\n // Verify <Updates> is first element.\n while (!reader.isStartElement() && !reader.isEndElement()) {\n reader.next();\n }\n log4j.trace(\"StatusChange.Factory.parse - Looking for Element = {}, found = {}\", \"StatusChange\", reader.getName());\n\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\") != null) {\n java.lang.String fullTypeName = reader\n .getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"type\");\n if (fullTypeName != null) {\n log4j.trace(\"StatusChange.Factory.parse - fullTypeName = {}\", fullTypeName);\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1) {\n nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix == null ? \"\" : nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\") + 1);\n\n if (!\"StatusChange\".equals(type)) {\n // find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n log4j.trace(\n \"StatusChange.Factory.parse - Could not find opening StatusChange element. Delegating to org.tempuri.imports.ExtensionMapper.getTypeObject({}, {}, reader)\",\n nsUri, type);\n return (StatusChange) org.tempuri.imports.ExtensionMapper.getTypeObject(nsUri, type, reader);\n }\n\n }\n\n }\n\n // Skip the current tag\n reader.next();\n\n // Initialize required element list\n ArrayList<QName> requiredQN = new ArrayList<>(Arrays.asList(\n QN_SITEID,\n QN_RUNID,\n QN_MESSAGETIME,\n QN_TRANSACTIONTIME,\n QN_ACTION\n ));\n\n // Initialize required element list\n ArrayList<QName> allQNs = new ArrayList<>(Arrays.asList(\n QN_SITEID,\n QN_RUNID,\n QN_MESSAGETIME,\n QN_TRANSACTIONTIME,\n QN_EVENTID,\n QN_RACEID,\n QN_SOURCE,\n QN_ACTION,\n QN_STATUS,\n QN_MTP,\n QN_SOURCEIDS\n ));\n\n boolean done = false;\n while (!done) {\n\n // Get next element\n while (!reader.isStartElement() && !reader.isEndElement() && reader.hasNext()) {\n reader.next();\n }\n log4j.trace(\"StatusChange.Factory.parse - In while loop, Element = {}\", reader.getName());\n\n if (reader.isEndElement()) {\n // We are done!\n log4j.trace(\"StatusChange.Factory.parse - Found End element, exiting while loop\");\n done = true;\n break;\n }\n\n if (!reader.isStartElement()) {\n // A start element was expected, but was not what we encountered.\n throw new org.apache.axis2.databinding.ADBException(\n \"StatusChange.Factory.parse - Unexpected subelement \" + reader.getName());\n }\n\n // Is it an expected element\n if (!allQNs.contains(reader.getName())) {\n // A start element was expected, but was not what we encountered.\n throw new org.apache.axis2.databinding.ADBException(\n \"StatusChange.Factory.parse - Unexpected Element QN \" + reader.getName());\n\n }\n\n // See if it is nil'able\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\", \"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)) {\n reader.getElementText(); // throw away text nodes if any\n reader.next();\n continue;\n }\n\n java.lang.String content = reader.getElementText();\n if (QN_SITEID.equals(reader.getName())) {\n object.setSiteId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n // Remove found requirement\n requiredQN.remove(QN_SITEID);\n } else if (QN_RUNID.equals(reader.getName())) {\n if (null == content) {\n content = Integer.toString(ToteLinkUpdateServiceHandler.getLastRunId());\n }\n object.setRunId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n // Remove found requirement\n requiredQN.remove(QN_RUNID);\n } else if (QN_MESSAGETIME.equals(reader.getName())) {\n object.setMessageTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n // Remove found requirement\n requiredQN.remove(QN_MESSAGETIME);\n } else if (QN_TRANSACTIONTIME.equals(reader.getName())) {\n object.setTransactionTime(org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n // Remove found requirement\n requiredQN.remove(QN_TRANSACTIONTIME);\n } else if (QN_EVENTID.equals(reader.getName())) {\n object.setEventId(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n } else if (QN_RACEID.equals(reader.getName())) {\n object.setRaceId(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n } else if (QN_SOURCE.equals(reader.getName())) {\n object.setSource(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n } else if (QN_ACTION.equals(reader.getName())) {\n object.setAction(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n // Remove found requirement\n requiredQN.remove(QN_ACTION);\n } else if (QN_STATUS.equals(reader.getName())) {\n object.setStatus(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n } else if (QN_MTP.equals(reader.getName())) {\n object.setMTP(org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content));\n } else if (QN_SOURCEIDS.equals(reader.getName())) {\n object.setSource(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n }\n\n // Done with this node, on to the next\n reader.next();\n\n }\n\n log4j.trace(\"Updates - After Element search loop\");\n if (requiredQN.size() > 0) {\n throw new org.apache.axis2.databinding.ADBException(\n \"Updates.Factory.parse - Missing required element(s): \" + requiredQN.toString());\n }\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n log4j.exit(object);\n return object;\n }", "title": "" }, { "docid": "540c5209a3a4f50d21c267c908d4ee59", "score": "0.47295943", "text": "public static RetrieveTeamsForRequests parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveTeamsForRequests object =\n new RetrieveTeamsForRequests();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveTeamsForRequests\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveTeamsForRequests)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"requestIDs\").equals(reader.getName())){\n \n object.setRequestIDs(ArrayOfInt.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "8e3a891b25e952e5e1ef3133be5c9b81", "score": "0.47281966", "text": "public static AlarmInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AlarmInfo object =\n new AlarmInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"alarm-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AlarmInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"deal-result\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDealResult(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"deal-status\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"deal-status\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDealStatus(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"deal-user-id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"deal-user-id\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDealUserId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"def-addr\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDefAddr(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"def-area\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"def-area\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDefArea(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"def-type\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDefType(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"dev-id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDevId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"id\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"id\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setId(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"time\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"time\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setTime(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "30e25fcda0e3059741425aa9c77d9e21", "score": "0.4724207", "text": "public static ArrayOfunlockRecordInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfunlockRecordInfo object =\n new ArrayOfunlockRecordInfo();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfunlock-record-info\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfunlockRecordInfo)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"unlock-record-info\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(UnlockRecordInfo.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"unlock-record-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(UnlockRecordInfo.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setUnlockRecordInfo((UnlockRecordInfo[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n UnlockRecordInfo.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "671d4519d742737d7f1d500b9009910e", "score": "0.4724142", "text": "public static RetrieveRoleEffortsForRequestResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RetrieveRoleEffortsForRequestResponse object =\n new RetrieveRoleEffortsForRequestResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RetrieveRoleEffortsForRequestResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RetrieveRoleEffortsForRequestResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RetrieveRoleEffortsForRequestResult\").equals(reader.getName())){\n \n object.setRetrieveRoleEffortsForRequestResult(ArrayOfRoleEffortDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "bff4e14f61bc5a0da8601a301e9eb0ae", "score": "0.47223437", "text": "public static ArrayOfRequestRequesterDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfRequestRequesterDTO object =\n new ArrayOfRequestRequesterDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfRequestRequesterDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfRequestRequesterDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestRequesterDTO\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestRequesterDTO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestRequesterDTO\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestRequesterDTO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setRequestRequesterDTO((RequestRequesterDTO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n RequestRequesterDTO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "f636a2fb21e84b8d6a6eb4db09e2816e", "score": "0.4721611", "text": "public static MsgInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n MsgInfoE object =\n new MsgInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"msg-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setMsgInfo(null);\n reader.next();\n \n }else{\n \n object.setMsgInfo(MsgInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "4c30e8b7f8896a94d91a6633d340c215", "score": "0.47180516", "text": "private void readNext(){\r\n\t\t\tString line;\r\n\t\t\tpair=null;\r\n\t\t\tdo {\r\n\t\t\t\tline=reader.readLine();\r\n\t\t\t\tpair=parseLine(line);\r\n\t\t\t}while(pair==null && line!=null);\r\n\t\t\t\r\n\t\t\tif (line==null){\r\n\t\t\t\treader.close();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "53a6db3993d4a72ce5e821a2456e3b55", "score": "0.47151172", "text": "public static AddCommentToRequestResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AddCommentToRequestResponse object =\n new AddCommentToRequestResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"AddCommentToRequestResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AddCommentToRequestResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"AddCommentToRequestResult\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setAddCommentToRequestResult(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "cf85ff2d55c02b2d592f48239451b86b", "score": "0.47034153", "text": "public static String parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n String object = new String();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement() || reader.hasText()) {\n if (reader.isStartElement() || reader.hasText()) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n throw new org.apache.axis2.databinding.ADBException(\n \"The element: \" + \"string\" +\n \" cannot be null\");\n }\n\n java.lang.String content = reader.getElementText();\n\n object.setString(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\n content));\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "0791ee310be0f8a4df00d50fbff074a6", "score": "0.46963668", "text": "public static GetPrioritiesResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n GetPrioritiesResponse object =\n new GetPrioritiesResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"GetPrioritiesResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (GetPrioritiesResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"GetPrioritiesResult\").equals(reader.getName())){\n \n object.setGetPrioritiesResult(ArrayOfPriorityDTO.Factory.parse(reader));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "c5e2cc0f589ac66b08629eecfc8d489d", "score": "0.46763217", "text": "public static RatesResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RatesResponse object =\n new RatesResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ratesResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RatesResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://monash.edu/xsd\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"return\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.set_return(java.lang.Double.NaN);\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "1c9ba9d7c97945d028327c9792f2d087", "score": "0.46758145", "text": "public static AlarmInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AlarmInfoE object =\n new AlarmInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"alarm-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setAlarmInfo(null);\n reader.next();\n \n }else{\n \n object.setAlarmInfo(AlarmInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "6988bc810d6617c9924a33a7fccfeaf9", "score": "0.46751675", "text": "public static RemoveTpEventFromEntityStateResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n RemoveTpEventFromEntityStateResponse object =\n new RemoveTpEventFromEntityStateResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"RemoveTpEventFromEntityStateResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (RemoveTpEventFromEntityStateResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "7d6e250750a3b7e38d25de37d5f031fe", "score": "0.46730426", "text": "public List<LevelInformation> fromReader(Reader reader) {\r\n\r\n List<LevelInformation> levelInformationList = new ArrayList<>();\r\n\r\n char[] charBuffer = new char[2000];\r\n\r\n try {\r\n reader.read(charBuffer);\r\n String levelsInfo = String.valueOf(charBuffer).replace(\"\\r\\n\", \"\\n\");\r\n String[] separatedLevels = levelsInfo.split(\"START_LEVEL\");\r\n\r\n for (String level : separatedLevels) {\r\n if (!level.isEmpty() && !level.substring(0, 2).contains(\"#\")) {\r\n levelInformationList.add(getLevelInfoFromString(level));\r\n }\r\n }\r\n } catch (IOException e) {\r\n System.err.println(\"Failed reading object\");\r\n e.printStackTrace(System.err);\r\n } finally {\r\n try {\r\n if (reader != null) {\r\n reader.close();\r\n }\r\n } catch (IOException e) {\r\n System.err.println(\"Failed closing file\");\r\n }\r\n }\r\n\r\n return levelInformationList;\r\n }", "title": "" }, { "docid": "80f5fe4bc1988e953c7a5ed3d2a2ec97", "score": "0.46712416", "text": "public static AddRequestRequesterToRequestResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AddRequestRequesterToRequestResponse object =\n new AddRequestRequesterToRequestResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"AddRequestRequesterToRequestResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AddRequestRequesterToRequestResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"AddRequestRequesterToRequestResult\").equals(reader.getName())){\n \n java.lang.String content = reader.getElementText();\n \n object.setAddRequestRequesterToRequestResult(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "91d2d112a8dc29ac8ba48a043575e233", "score": "0.46685255", "text": "public static MsgSendResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n MsgSendResponse object =\n new MsgSendResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"MsgSendResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (MsgSendResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "b0333711937856f496f42ee1d87f1599", "score": "0.46678102", "text": "public static ArrayOfdevInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfdevInfoE object =\n new ArrayOfdevInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"ArrayOfdev-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setArrayOfdevInfo(null);\n reader.next();\n \n }else{\n \n object.setArrayOfdevInfo(ArrayOfdevInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "2d2fb5ce20fbc6a14daf89349216ca74", "score": "0.46658897", "text": "public static Diagnose parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n Diagnose object =\n new Diagnose();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"Diagnose\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (Diagnose)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"Description\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"Description\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setDescription(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"Quantity\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"Quantity\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setQuantity(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "59e62fdfb9f269ee00d7922db213faf7", "score": "0.46650857", "text": "History parseChanges(Reader fileHistory) throws IOException {\n List<HistoryEntry> entries = new ArrayList<>();\n HistoryEntry entry = null;\n StringBuilder messageBuilder = new StringBuilder();\n try (BufferedReader reader = new BufferedReader(fileHistory)) {\n String line;\n while ((line = reader.readLine()) != null) {\n Matcher matcher = CHANGE_PATTERN.matcher(line);\n if (matcher.find()) {\n entry = parseEntryLine(entries, entry, messageBuilder, matcher);\n } else if (line.startsWith(\"\\t\")) {\n messageBuilder.append(line.substring(1));\n messageBuilder.append(\"\\n\");\n }\n }\n }\n /* ... an entry can also finish when the log is finished */\n if (entry != null) {\n entry.setMessage(messageBuilder.toString().trim());\n entries.add(entry);\n }\n\n History history = new History();\n history.setHistoryEntries(entries);\n return history;\n }", "title": "" }, { "docid": "99751e4390897a56f05b3d545fff94ca", "score": "0.46643302", "text": "@Override\n public AbstractPhoneBill parse() throws ParserException {\n\n List<String> args_method;\n int line_number = 1;\n String line = \"\";\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n while((line = reader.readLine()) != null) {\n String [] items = line.split(\",\");\n args_method = Arrays.asList(items);\n map.put(line_number,args_method);\n line_number++;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Collection<PhoneCall> calls = new ArrayList<>();\n\n for (Map.Entry<Integer, List<String>> entry : map.entrySet()) {\n Integer key = entry.getKey();\n List<String> values = entry.getValue();\n if (values.get(0).matches(this.customer_name)) {\n String[] start_date = values.get(3).split(\" \");\n String[] end_date = values.get(4).split(\" \");\n // the values of the file are passed to the validation class.\n // passing cusotmer name as an argument from file.\n Validation val = new Validation(values.get(0), values.get(1), values.get(2), start_date[0], start_date[1], end_date[0], end_date[1],start_date[2], end_date[2]);\n PhoneCall call = new PhoneCall(val);\n ((ArrayList<PhoneCall>) calls).add(call);\n } else {\n System.out.println(\"Passed customer name and the file name doesn't correlate.\");\n System.exit(0);\n }\n }\n\n // create the phone bill by adding the existing call which are read from the file.\n PhoneBill bill = new PhoneBill(customer_name);\n for (PhoneCall c: calls) {\n bill.addPhoneCall(c);\n }\n\n return bill;\n }", "title": "" }, { "docid": "39f4d027d7c3b04562df5649428def80", "score": "0.46626234", "text": "public static DevStatusInfoE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DevStatusInfoE object =\n new DevStatusInfoE();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n \n return object;\n \n\n }\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n while(!reader.isEndElement()) {\n if (reader.isStartElement() ){\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"dev-status-info\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setDevStatusInfo(null);\n reader.next();\n \n }else{\n \n object.setDevStatusInfo(DevStatusInfo.Factory.parse(reader));\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n } else {\n reader.next();\n } \n } // end of while loop\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "e94b209bca9c594d15344cf738a962ce", "score": "0.46623442", "text": "public CompilationUnitTree parse(final String name, Reader reader, final DiagnosticListener listener) throws IOException, NashornException;", "title": "" }, { "docid": "a59ea64d5805ffc2f55d5fd9a02e87c7", "score": "0.46513402", "text": "public static ArrayOfRequestTypeDTO parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n ArrayOfRequestTypeDTO object =\n new ArrayOfRequestTypeDTO();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"ArrayOfRequestTypeDTO\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (ArrayOfRequestTypeDTO)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n java.util.ArrayList list1 = new java.util.ArrayList();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestTypeDTO\").equals(reader.getName())){\n \n \n \n // Process the array and step past its final element's end.\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestTypeDTO.Factory.parse(reader));\n }\n //loop until we find a start element that is not part of this array\n boolean loopDone1 = false;\n while(!loopDone1){\n // We should be at the end element, but make sure\n while (!reader.isEndElement())\n reader.next();\n // Step out of this element\n reader.next();\n // Step to next element event.\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n if (reader.isEndElement()){\n //two continuous end elements means we are exiting the xml structure\n loopDone1 = true;\n } else {\n if (new javax.xml.namespace.QName(\"http://targetprocess.com\",\"RequestTypeDTO\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n list1.add(null);\n reader.next();\n } else {\n list1.add(RequestTypeDTO.Factory.parse(reader));\n }\n }else{\n loopDone1 = true;\n }\n }\n }\n // call the converter utility to convert and set the array\n \n object.setRequestTypeDTO((RequestTypeDTO[])\n org.apache.axis2.databinding.utils.ConverterUtil.convertToArray(\n RequestTypeDTO.class,\n list1));\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getLocalName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "e7b8b3c70ec5959800cb51dcf565e69e", "score": "0.4650126", "text": "public static AlarmSearchResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n AlarmSearchResponse object =\n new AlarmSearchResponse();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"AlarmSearchResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (AlarmSearchResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"alarm-info-array\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setAlarmInfoArray(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setAlarmInfoArray(ArrayOfalarmInfo.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else {\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"count\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"count\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setCount(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setCount(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"retval\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"retval\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.setRetval(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n object.setRetval(java.lang.Integer.MIN_VALUE);\n \n }\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://www.evideostb.com\",\"error-desc\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\n \n\n java.lang.String content = reader.getElementText();\n \n object.setErrorDesc(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\n \n } else {\n \n \n reader.getElementText(); // throw away text nodes if any.\n }\n \n reader.next();\n \n } // End of if for expected property start element\n \n else {\n \n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "cb86c3229c1650eb05e252e12c92cc58", "score": "0.464175", "text": "public static void nextType(XmlPullParser xmlReader) throws Exception {\n //TEXT or WHITESPACE\n xmlReader.next();\n int event = xmlReader.next();\n Assert.assertEquals(XmlPullParser.END_TAG, event);\n event = xmlReader.next();\n Assert.assertEquals(XmlPullParser.START_TAG, event);\n }", "title": "" } ]
12a84d7466bd55e6cf5c65303b0c47dc
this is one of the reference solutio to this question, which sort two arrays and use two pointers.
[ { "docid": "060aa6485f17ecf3460b684e9d47f4bc", "score": "0.61549175", "text": "public static int[] solutionRef(int[] nums1, int[] nums2) {\n Arrays.sort(nums1);\n Arrays.sort(nums2);\n int i = 0;\n int j = 0;\n Set<Integer> set = new HashSet<Integer>();\n while (i < nums1.length && j < nums2.length) {\n if (nums1[i] < nums2[j]) {\n i++;\n } else if (nums1[i] > nums2[j]) {\n j++;\n } else {\n set.add(nums1[i]);\n i++;\n j++;\n }\n }\n int[] result = new int[set.size()];\n int k = 0;\n for (Integer num : set) {\n result[k++] = num;\n }\n return result;\n }", "title": "" } ]
[ { "docid": "27c302d7c3b428052b71a0e84d8f4eb8", "score": "0.72652215", "text": "public static void sortedarray(final int[] x, final int[] y) {\n int[] z = new int[x.length + y.length];\n int j = 0;\n int k = 0;\n int l = 0;\n int flag = 0;\n for (int i = 0; i < z.length - 1; i++) {\n if (x[j] <= y[k]) {\n z[l] = x[j];\n j += 1;\n l += 1;\n if (x.length == j) {\n flag = 1;\n break;\n }\n } else {\n z[l] = y[k];\n k += 1;\n l += 1;\n if (y.length == k) {\n flag = 2;\n break;\n }\n }\n }\n if (flag == 1) {\n int j1 = j;\n for (int s = k; s < z.length - j1; s++) {\n z[j + k] = y[s];\n j++;\n }\n } else if (flag == 2) {\n int k1 = k;\n for (int r = j; r < z.length - k1; r++) {\n z[k + j] = x[r];\n k++;\n }\n }\n System.out.println(Arrays.toString(z));\n }", "title": "" }, { "docid": "2be84a2fdce52145a5f948eb0320a7f1", "score": "0.70938945", "text": "private void sortPointers(){\n\t\tpointers.sort((p1, p2) -> { return p1.pointsAt() - p2.pointsAt(); });\n\t}", "title": "" }, { "docid": "4fe2325865250ecb68bdb6dd1e9842a1", "score": "0.70241547", "text": "public int[] relativeSortArray(int[] arr1, int[] arr2) {\n TreeMap<Integer, Integer> map = new TreeMap<>();\n for (int i : arr1) map.put(i, map.getOrDefault(i, 0) + 1);\n int index = 0;\n for (int j : arr2) {\n for (int k = 0; k < map.get(j); k++) {\n arr1[index++] = j;\n }\n map.remove(j);\n }\n for (int i : map.keySet()) {\n for (int k = 0; k < map.get(i); k++) {\n arr1[index++] = i;\n }\n }\n return arr1;\n }", "title": "" }, { "docid": "09c881dc70eb4ea803be5126ff138101", "score": "0.69801515", "text": "public int[] relativeSortArray1(int[] arr1, int[] arr2) {\n int[] count = new int[1001];\n for (int i : arr1) count[i]++;\n int index = 0;\n for (int j : arr2) {\n while (count[j]-- > 0) {\n arr1[index++] = j;\n }\n }\n for (int i = 0; i < count.length; i++) {\n while (count[i]-- > 0) {\n arr1[index++] = i;\n }\n }\n return arr1;\n }", "title": "" }, { "docid": "f4fbdacba2873610195afbdbfcc94f22", "score": "0.67425275", "text": "@Override\n public int compare(double[] a, double[] b)\n {\n double x, y;\n \n if (a[0] != b[0])\n {\n x = a[0];\n y = b[0];\n }\n else\n {\n x = a[1];\n y = b[1];\n }\n \n if(x < y)\n return -1;\n else if(x == y)\n return 0;\n else\n return 1;\n }", "title": "" }, { "docid": "690f18b225374f228ba7edcf2083d6d2", "score": "0.67349726", "text": "private static void merge(int[] a, int[] temp, int low1, int up1, int low2, int up2) {\n\n\t\tint i = low1;\n\t\tint j = low2;\n\t\tint k = low1;\n\n\t\twhile ((i <= up1) && (j <= up2)) {\n\t\t\tif (a[i] <= a[j]) {\n\t\t\t\ttemp[k++] = a[i++];\n\t\t\t} else {\n\t\t\t\t// a1[i]>a2[j]\n\t\t\t\ttemp[k++] = a[j++];\n\t\t\t}\n\t\t}\n\n\t\t/* Copying the remaining elements of a1, array a2 is finished */\n\t\twhile (i <= up1) {\n\t\t\ttemp[k++] = a[i++];\n\t\t}\n\n\t\t/* Copying the remaining elements if a2, array a1 is finished */\n\t\twhile (j <= up2) {\n\t\t\ttemp[k++] = a[j++];\n\t\t}\n\n\t}", "title": "" }, { "docid": "e2585632e189bd2df8ba67f794c36346", "score": "0.66729474", "text": "private static <T extends Comparable<T>> void merge(T[] first, T[] second, T[] a)\n {\n int iFirst = 0;\n int iSecond = 0;\n int j = 0;\n\n // As long as neither iFirst nor iSecond past the end,\n // move the smaller element into a\n\n while (iFirst < first.length && iSecond < second.length)\n {\n if (first[iFirst].compareTo(second[iSecond]) < 0)\n {\n a[j] = first[iFirst];\n iFirst++;\n }\n else\n {\n a[j] = second[iSecond];\n iSecond++;\n }\n j++;\n }\n\n // Copy any remaining entries of the first array\n\n while (iFirst < first.length)\n {\n a[j] = first[iFirst];\n iFirst++;\n j++;\n }\n\n // Copy any remaining entries of the second half\n\n while (iSecond < second.length)\n {\n a[j] = second[iSecond];\n iSecond++;\n j++;\n }\n }", "title": "" }, { "docid": "b346197161e0c532f53eb935207e1096", "score": "0.6659294", "text": "public static void main(String[] args) {\n int [] x = {1,3,5,7,9};\n int [] y = {2,4,6,8,10,12,14};\n int [] z = new int[x.length + y.length];\n int j = 0;\n int k = 0;\n int k1;\n int j1;\n int flag = 0;\n int size = 0;\n for (int i = 0; i < z.length; i++) {\n if (x[j] <= y[k]) {\n z[size++] = x[j];\n j++;\n if (j == x.length) {\n flag = 1;\n break;\n }\n } else {\n z[size++] = y[k];\n k++;\n if (k == y.length) {\n flag = 2;\n break;\n }\n }\n }\n if (flag == 1) {\n j1 = j;\n for (int p1 = k; p1 < z.length-j1; p1++) {\n z[j+k] = y[p1];\n j++;\n }\n } else if (flag == 2) {\n k1 = k;\n for (int p = j; p < z.length-k1; p++) {\n z[k+j] = x[p];\n k++; \n }\n }\n System.out.println(Arrays.toString(z));\n }", "title": "" }, { "docid": "d6569461c51d312d0bf410dced696c62", "score": "0.6622894", "text": "@Override // java.util.Comparator\n public int compare(long[] jArr, long[] jArr2) {\n long[] jArr3 = jArr;\n long[] jArr4 = jArr2;\n int min = Math.min(jArr3.length, jArr4.length);\n for (int i = 0; i < min; i++) {\n int compare = Longs.compare(jArr3[i], jArr4[i]);\n if (compare != 0) {\n return compare;\n }\n }\n return jArr3.length - jArr4.length;\n }", "title": "" }, { "docid": "a742073e2a755f94cc008e8700aa3a56", "score": "0.66145104", "text": "public int compare(int[] a, int[] b) {\n return (a[0] + a[1]) - (b[0] + b[1]);\n }", "title": "" }, { "docid": "3228fd4b17e61df1caee35c046c571b2", "score": "0.65306395", "text": "public static void sort2(Comparable[] a) {\n Comparable[] aux = new Comparable[a.length];\n int n = a.length;\n int end = n - 1;\n for (int i = 1; i < n; i <<= 1) {\n for (int j = 0; j < n / i; j += 2) {\n int lo = j * i;\n int mid = (j + 1) * i - 1;\n int hi = Math.min((j + 2) * i - 1, end);\n merge(a, aux, lo, mid, hi);\n }\n }\n }", "title": "" }, { "docid": "87a961bc70d91544c00fbdf6cc876bdf", "score": "0.651259", "text": "@Override\r\n \t\t\tpublic int compare(int[] lhs, int[] rhs) {\n \t\t\treturn lhs[1] > rhs[1] ? 1 : (lhs[1] < rhs[1]) ? -1 : 0;\r\n \t\t\t}", "title": "" }, { "docid": "c70b652d7442e6d525dc1d83a6d489bc", "score": "0.64720035", "text": "@Override // java.util.Comparator\n public final /* synthetic */ int compare(byte[] bArr, byte[] bArr2) {\n byte[] bArr3 = bArr;\n byte[] bArr4 = bArr2;\n if (bArr3 == null && bArr4 == null) {\n return 0;\n }\n if (bArr3 == null) {\n return -1;\n }\n if (bArr4 == null) {\n return 1;\n }\n int min = Math.min(bArr3.length, bArr4.length);\n for (int i = 0; i < min; i++) {\n if (bArr3[i] != bArr4[i]) {\n return bArr3[i] - bArr4[i];\n }\n }\n return bArr3.length - bArr4.length;\n }", "title": "" }, { "docid": "c94a14da8c248f7cb5bac675931e8944", "score": "0.64701927", "text": "private static void swapArray(double[] a, int p1, int p2) {\n int N=a.length;\n for(int i=0;i<N;i++){\n double hold = a[p1];\n a[p1]=a[p2];\n a[p2]=hold;\n }\n }", "title": "" }, { "docid": "5dd243848085e4ab5ab6d7745cb14550", "score": "0.64538044", "text": "public static void merge(int[] result, int[] left, \n int[] right) {\n int i1 = 0; // index into left array\n int i2 = 0; // index into right array\n\n for (int i = 0; i < result.length; i++) {\n compCount++;\n if (i2 >= right.length ||\n (i1 < left.length && left[i1] <= right[i2])) {\n result[i] = left[i1]; // take from left\n i1++;\n //swapCount++;\n } else {\n result[i] = right[i2]; // take from right\n i2++;\n //swapCount++;\n }\n }\n System.out.println(\"merge sort \" + compCount + \" \" + swapCount);\n}", "title": "" }, { "docid": "c89de6574791f47b0def4e8ae0241409", "score": "0.6434019", "text": "public void sortedMerge(int[] a, int[] b, int lastA, int lastB) {\n\t\tint indexA = lastA - 1;\n\t\tint indexB = lastB - 1;\n\t\tint index = lastA + lastB - 1;\n\t\twhile (indexB >= 0) {\n\t\t\tif (indexA > 0 && a[indexA] > b[indexB]) {\n\t\t\t\ta[index] = a[indexA];\n\t\t\t\tindexA--;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta[index] = b[indexB];\n\t\t\t\tindexB--;\n\t\t\t}\n\t\t\tindex--;\n\t\t}\n\t}", "title": "" }, { "docid": "90cc33ef4a18606b4a5380dcd2f0f27c", "score": "0.64179367", "text": "private static void merge(int[] nums1, int[] nums2) {\t\t\t\n\t\t\n\t\tint p1 = getNonZeroElementsLen(nums1);\n\t\tint p2 = getNonZeroElementsLen(nums2);\n\t\t\n\t\tint writeIdx = p1 + p2 + 1;\n\t\t\n\t\twhile(p1 >= 0 && p2 >= 0) {\t\t\t\n\t\t\t\n\t\t\tnums1[writeIdx--] = ((nums1[p1] > nums2[p2])) ? nums1[p1--] : nums2[p2--];\t\t\t\n\t\t}\n\t\t\n\t\t// if we have elements remaining in nums2 array, copy those!\n\t\twhile(p2 >= 0) {\n\t\t\t\n\t\t\tnums1[writeIdx--] = nums2[p2--];\n\t\t}\n\t}", "title": "" }, { "docid": "4f20d5917073d7db5441fcb7cb546a06", "score": "0.63937056", "text": "public int[] merge(int[] arr1, int[] arr2){\n int ptr1=-1;\n for(int i=0 ; i<arr1.length ; i++){\n if(arr1[i]!=0){\n ptr1++;\n }else{\n break;\n }\n }\n int ptr2 = arr2.length-1;\n\n int finalIndex = arr1.length-1;\n\n while(ptr1 >= 0 && ptr2 >= 0){\n if(arr1[ptr1] > arr2[ptr2]){\n arr1[finalIndex--] = arr1[ptr1--];\n }else{\n arr1[finalIndex--] = arr2[ptr2--];\n }\n }\n\n while(ptr1 >= 0){\n arr1[finalIndex--] = arr1[ptr1--];\n }\n\n while(ptr2 >= 0){\n arr1[finalIndex--] = arr2[ptr2--];\n }\n \n return arr1;\n\n }", "title": "" }, { "docid": "ff78c0da4e0c6d3c2828415271e553a6", "score": "0.6382028", "text": "@Override\r\n\tprotected void sort(T[] array, int leftIndex, int rightIndex) {\n\t}", "title": "" }, { "docid": "9ba029cf1031069ae97228793bd376bd", "score": "0.6373261", "text": "static void mergeSort(Object src[], Object dest[], int low, int high) {\r\n\t final int length = high - low;\r\n\t // Insertion sort on smallest arrays\r\n\t if (length < 7) {\r\n\t\t /* Original\r\n\t for (int i = low; i < high; i++)\r\n\t for (int j = i; j > low\r\n\t && dest[j - 1].hashCode() > dest[j].hashCode(); j--)\r\n\t swap(dest, j, j - 1);\r\n\t\t */\r\n\t\t // Shell sort pass with SHELL_INCREMENT\r\n\t\t for (int i = low+SHELL_INCREMENT, j=low; i < high; i++, j++) {\r\n\t\t\t final int iHash = dest[i].hashCode(); \r\n\r\n\t\t\t // Find out if dest[i] should be somewhere else\r\n\t\t\t final int jHash = dest[j].hashCode();\r\n\t\t\t if (jHash > iHash) {\r\n\t\t\t\t swap(dest, i, j);\t\t\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t // i is the element being inserted into the sorted part of the array\r\n\t\t // dest[low] is already \"sorted\" by default\r\n\t\t for (int i = low+1; i < high; i++) {\r\n\t\t\t final int iHash = dest[i].hashCode(); \r\n\r\n\t\t\t // Find out if dest[i] should be somewhere else\r\n\t\t\t for (int j = i; j > low\r\n\t\t\t && dest[j - 1].hashCode() > iHash; j--) \r\n\t\t\t {\r\n\t\t\t\t swap(dest, j, j - 1);\t\t\t\r\n\t\t\t }\r\n\t\t }\r\n\t\t return;\r\n\t }\r\n\t // Recursively sort halves of dest into src\r\n\t final int mid = (low + high) / 2;\r\n\t mergeSort(dest, src, low, mid);\r\n\t mergeSort(dest, src, mid, high);\r\n\t // If list is already sorted, just copy from src to dest. This is an\r\n\t // optimization that results in faster sorts for nearly ordered lists.\r\n\t if (src[mid - 1].hashCode() <= src[mid].hashCode()) {\r\n\t\t System.arraycopy(src, low, dest, low, length);\r\n\t\t return;\r\n\t }\r\n\t // Merge sorted halves (now in src) into dest\r\n\t /* Original\r\n for (int i = low, p = low, q = mid; i < high; i++) {\r\n if (q >= high || p < mid && src[p].hashCode() <= src[q].hashCode())\r\n dest[i] = src[p++];\r\n else\r\n dest[i] = src[q++];\r\n }\r\n\t */\r\n\t // Based on initial values of p and q\r\n\t int pHash = src[low].hashCode();\r\n\t int qHash = src[mid].hashCode();\r\n\t final int len = (src.length < dest.length) ? src.length : dest.length;\r\n\r\n\t for (int i = low, p = low, q = mid; i < high; i++) {\r\n\t\t if (q >= high || p < mid && pHash <= qHash) {\r\n\t\t\t dest[i] = src[p++]; \r\n\t\t\t pHash = src[p].hashCode(); // updated whenever p changes \r\n\t\t } else {\r\n\t\t\t dest[i] = src[q++];\r\n\t\t\t qHash = (q < len /*Same as src.length*/) ? src[q].hashCode() : 0;\r\n\t\t }\r\n\t }\t\t\r\n }", "title": "" }, { "docid": "4735c539df95367423b3b6dee69674ea", "score": "0.63730806", "text": "private void mergeDown(int a, Node tmp1,Node tmp2)\r\n\t{\r\n\t\tNode tmp3=tmp2.next;\r\n\t\tint i=0,j=0,k=0;\r\n\t\tComparable[] b= new Comparable[2*a];\r\n\r\n\t\t//Merge Both the arrays\r\n\t\twhile((i<a)&&(j<a))\r\n\t\t{\r\n\t\t\tif(tmp1.array[i].compareTo(tmp2.array[j])>0)\r\n\t\t\t{\r\n\t\t\t\tb[k]=tmp2.array[j];\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tb[k]=tmp1.array[i];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\twhile((i==a)&&(j<a)){\r\n\t\t\tb[k]=tmp2.array[j];\r\n\t\t\tj++;\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\twhile((j==a)&&(i<a)){\r\n\t\t\tb[k]=tmp1.array[i];\r\n\t\t\ti++;\r\n\t\t\tk++;\r\n\t\t}\r\n\r\n\t\ttmp1.array=b;\r\n\t\ttmp1.next=tmp3;\r\n\t}", "title": "" }, { "docid": "f6382f73964a60d2b839f15872ef184a", "score": "0.63686544", "text": "public static void main(String[] args) {\n int array1[] = {1200, 200, 450, 600, 40};\n String array2[] = {\"abc\", \"zfg\", \"acb\", \"bbb\", \"zzz\"};\n System.out.println(\"Original numeric array : \"+ Arrays.toString(array1));\n Arrays.sort(array1);\n System.out.println(\"Sorted array: \"+Arrays.toString(array1));\n System.out.println(\"Original Character array : \"+Arrays.toString(array2));\n Arrays.sort(array2);\n System.out.println(\"Sorted character array : \"+Arrays.toString(array2));\n }", "title": "" }, { "docid": "31d3ab784874ebdd84a4a1de7403d898", "score": "0.63601786", "text": "public int[] merge(int[] a, int[] b) {\n int[] res = new int[a.length + b.length];\n\n if (a.length + b.length <= INSERTION_THRESHOLD){\n System.arraycopy(a, 0 ,res, 0, a.length);\n System.arraycopy(b, 0, res, a.length, b.length);\n InsertionSort isort = new InsertionSort();\n res = isort.sort(res);\n }\n\n else {\n int i = 0;\n int j = 0;\n\n while (i < a.length && j < b.length) {\n res[i + j] = Math.min(a[i], b[j]);\n if (a[i] < b[j]) {\n i++;\n } else {\n j++;\n }\n }\n if (i == a.length) {\n while (j < b.length) {\n res[i + j] = b[j];\n j++;\n }\n }\n if (j == b.length) {\n while (i < a.length) {\n res[i + j] = a[i];\n i++;\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "f729c2febd34e38841588c5c5d04fb58", "score": "0.6357852", "text": "public abstract int[] sort();", "title": "" }, { "docid": "5d48d7b5f6401c53dde58c13ba87f6b1", "score": "0.63405323", "text": "public void sort(long[] array);", "title": "" }, { "docid": "32ee3c8c59b98d6bd424c4e31670e107", "score": "0.6306613", "text": "static void sort3(Object a[]) {\r\n //! right now, use simple bubble sort.\r\n boolean done;\r\n do {\r\n done = true;\r\n for (int i=1; i < a.length; ++i) {\r\n\t//! we should cache the calls to hashCode\r\n\tif (a[i].hashCode() < a[i-1].hashCode()) {\r\n\t Object tmp = a[i];\r\n\t a[i] = a[i-1];\r\n\t a[i-1] = tmp;\r\n\t done = false;\r\n\t}\r\n }\r\n } while (!done);\r\n }", "title": "" }, { "docid": "a52ee74e5d8ff2ab6ce163ab5a368fb7", "score": "0.6260307", "text": "@Test\r\n\tpublic void UnionOfSprtedArray(){\r\n\t\t\r\n\t\tint[] a = {1,2,3,4,5,6,7,8,9};\r\n\t\tint[] b = {1,2,3,4,11,12,13};\r\n\t\t\r\n\t\tint m = a.length;\r\n\t\tint n = b.length;\r\n\t\tint i=0 , j = 0;\r\n\t\t\r\n\t\twhile(i < m && j <n){\r\n\t\t\tif(a[i] < b[j]){\r\n\t\t\t\tSystem.out.println(a[i]);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\telse if(a[i] > b[j]){\r\n\t\t\t\tSystem.out.println(b[j]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(a[i]);\r\n\t\t\t\ti++;\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\twhile(i < m){\r\n\t\t\tSystem.out.println(a[i]);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\t\r\n\t\twhile(j < n){\r\n\t\t\tSystem.out.println(b[j]);\r\n\t\t\tj++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8ba19d72ed44de0dceeece2e0b77ff13", "score": "0.62466884", "text": "private Entry[] pointsOrPercentageSelectionSort(Entry[] data) {\n for (int i = 0; i < data.length - 1; i++) {\n int smallest = i;\n for (int index = i + 1; index < data.length; index++) {\n // compare two Entries and sort in descending order\n if(compare(data[i], data[index]) < 0) {\n smallest = index;\n }\n }\n // swapping the smallest value into position\n Entry temp = data[i];\n data[i] = data[smallest];\n data[smallest] = temp;\n }\n return data;\n }", "title": "" }, { "docid": "ef0b692c72c72ca2be8f54c468f6293d", "score": "0.6241797", "text": "private static int[] merge(int[] a, int[] b) {\n int[] merged = new int[a.length + b.length];\n\n int aCount = 0;\n int bCount = 0;\n int i = 0;\n\n while (true) {\n if (a[aCount] < b[bCount]) {\n merged[i] = a[aCount];\n aCount++;\n } else {\n merged[i] = b[bCount];\n bCount++;\n }\n i++;\n if (aCount == a.length || bCount == b.length) break;\n }\n\n while (i != merged.length) {\n if (aCount == a.length) {\n merged[i] = b[bCount];\n bCount++;\n } else {\n merged[i] = a[aCount];\n aCount++;\n }\n i++;\n }\n\n return merged;\n }", "title": "" }, { "docid": "226a7b8b6968a502e9ef787015de6ffe", "score": "0.62376946", "text": "public Comparable[] mergeTheTwoArrays(int[] a, int[] b){\n\n Comparable[] combinedArray = new Comparable[a.length+b.length];\n int k=0;\n\n for(int i=0;i<a.length;i++){\n\n combinedArray[k++]=a[i];\n }\n for(int j=0;j<b.length;j++){\n\n combinedArray[k++]=b[j];\n }\n\n return combinedArray;\n }", "title": "" }, { "docid": "c1b53e486a0aa3de33c25777d01f3741", "score": "0.6236704", "text": "public void sort() {\n\t\tint tempVar; //Temporary variable to hold the value while the sorting takes place\n\t\tint n = array1.length;\n\n\t for (int i = 0; i < n; i++) {\n\t for (int j = 1; j < (n - i); j++) {\n\n\t if (array1[j - 1] > array1[j]) {\n\t tempVar = array1[j - 1];\n\t array1[j - 1] = array1[j];\n\t array1[j] = tempVar;\n\t }\n\n\t }\n\t }\n\t}", "title": "" }, { "docid": "1f08d7837c11f208a4d09d00b79517c1", "score": "0.6220438", "text": "protected void swapArrayElements(int index1, int index2) {\n int tmp = sorting[index1];\n sorting[index1] = sorting[index2];\n sorting[index2] = tmp;\n }", "title": "" }, { "docid": "90c73af6e2908af651354145f6f3e5c3", "score": "0.62195677", "text": "public void sort(long[] array, int from, int to);", "title": "" }, { "docid": "11297756e8f5c1fc75faaff75b0c8e4f", "score": "0.62123865", "text": "@Override\n\tpublic int[] sort(int[] b) {\n\t\tfor(int i = 0; i < b.length;i++) {\n\t\t\tint min = b[i];\n\t\t\tint pos = i;\n\t\t\tfor(int j = i+1; j < b.length;j++) {\n\t\t\t\tif(b[j] < min) {\n\t\t\t\t\tmin = b[j];\n\t\t\t\t\tpos= j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (min != b[i]) {\n\t\t\t\tb[pos] = b[i];\n\t\t\t\tb[i] = min;\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}", "title": "" }, { "docid": "7dc1779c0a3c442b054d6a3f147049f1", "score": "0.62062144", "text": "private static void merge(int[] left, int[] right, int[] result) {\n int iFirst = 0;\n\n // Index Position in second array - starting with first element\n int iSecond = 0;\n\n // Index Position in merged array - starting with first position\n int iMerged = 0;\n\n // Compare elements at iFirst and iSecond,\n // and move smaller element at iMerged\n while (iFirst < left.length && iSecond < right.length) {\n if (left[iFirst] < right[iSecond]) {\n result[iMerged] = left[iFirst];\n iFirst++;\n } else {\n // if elems are equal, add left to maintain stability\n result[iMerged] = right[iSecond];\n iSecond++;\n }\n iMerged++;\n }\n // copy remaining elements from both halves - each half will have already sorted\n // elements\n System.arraycopy(left, iFirst, result, iMerged, left.length - iFirst);\n System.arraycopy(right, iSecond, result, iMerged, right.length - iSecond);\n }", "title": "" }, { "docid": "a54a3339748905c36288d4dffa49d704", "score": "0.61883056", "text": "private static Long[] sortTimestamps(Long[] ts) {\n\t\tfor (int i = 0; i < ts.length - 1; i++) {\n\t\t\tfor (int j = 1; j < ts.length; j++) {\n\t\t\t\tif (ts[j] < ts[i]) {\n\t\t\t\t\tlong temp = 0;\n\t\t\t\t\ttemp = ts[i];\n\t\t\t\t\tts[i] = ts[j];\n\t\t\t\t\tts[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ts;\n\t}", "title": "" }, { "docid": "218bc4b6f1f27abd32399ba799ee33d3", "score": "0.6183595", "text": "private void sort(int[] array) {\n\t\t// right pointer\n\t\tint r = 1;\n\t\t// central pointer\n\t\tint c = 0;\n\t\t// left pointer\n\t\tint l = 0;\n\t\t// Keep looping until right pointer reaches the end of the array\n\t\twhile (r <= array.length - 1)\n\t\t\t// if element in the right pointer is greater than the central one, advance both pointers\n\t\t\tif (array[c] < array [r]) {\n\t\t\t\tc++; r++; \n\t\t\t}\n\t\t\telse {\n\t\t\t\tswapElements(array, c, r);\n\t\t\t\t// element initially pointed by right pointer will need to go as far to the left as needed.\n\t\t\t\t// As long as central pointer - 1 is not beyond the start of the index, start left pointer at central position - 1\n\t\t\t\tif (c - 1 >= 0) l = c - 1;\n\t\t\t\t// As long as element at central location is smaller than the one in the middle pointer, keep swaping them and moving both pointers left until index 0 is reached\n\t\t\t\twhile (array[c] < array [l]) {\n\t\t\t\t\tswapElements(array, l, c);\n\t\t\t\t\tif (l - 1 >= 0) {\n\t\t\t\t\t\tl--; c--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// return central pointer to last know position of right pointer - 1\n\t\t\t\tc = r - 1; \n\t\t\t}\n\t}", "title": "" }, { "docid": "dd986592fe9763578f29a578a7e3df50", "score": "0.61715746", "text": "protected static void sort(final double[] x, final double[] y, final double[] w) {\n int index = 0;\n int lastIndex = -1;\n final int n = x.length;\n double holdx = 0.0D;\n double holdy = 0.0D;\n double holdw = 0.0D;\n\n while (lastIndex < n - 1) {\n index = lastIndex + 1;\n for (int i = lastIndex + 2; i < n; i++) {\n if (x[i] < x[index]) {\n index = i;\n }\n }\n lastIndex++;\n holdx = x[index];\n x[index] = x[lastIndex];\n x[lastIndex] = holdx;\n holdy = y[index];\n y[index] = y[lastIndex];\n y[lastIndex] = holdy;\n holdw = w[index];\n w[index] = w[lastIndex];\n w[lastIndex] = holdw;\n }\n }", "title": "" }, { "docid": "388515ff222c7c38462a07b597fd7d91", "score": "0.6166027", "text": "private int _versionCompare( int [] a1, int[] a2 )\n {\n for( int i=0; i<a1.length && i<a2.length; i++ )\n {\n if( a1[i] < a2[i] )\n {\n return -1;\n }\n else if( a1[i] > a2[i] )\n {\n return 1;\n }\n }\n\n // if no more values in either array they must be equal\n if( a1.length == a2.length )\n {\n return 0;\n }\n\n // a1 is shorter\n if( a1.length < a2.length )\n {\n for( int i=a1.length; i<a2.length; i++ )\n {\n if( 0 < a2[i] )\n {\n return -1;\n }\n else if( 0 > a2[i] )\n {\n return 1;\n }\n }\n return 0;\n }\n\n // a2 is shorter\n else\n {\n for( int i=a2.length; i<a1.length; i++ )\n {\n if( a1[i] < 0 )\n {\n return -1;\n }\n else if (a1[i] > 0 )\n {\n return 1;\n }\n }\n return 0;\n }\n }", "title": "" }, { "docid": "2f63600dc52139f94ca0c51611e1995f", "score": "0.61658895", "text": "public int[] connectSortedArrays(int[] arfirst, int[] arsecond) {\n int[] arcommon = new int[arfirst.length + arsecond.length];\n int i = 0, j = 0, count = 0;\n while (count < arcommon.length) {\n if (i < arfirst.length && j < arsecond.length) {\n if (arfirst[i] < arsecond[j]) {\n arcommon[count++] = arfirst[i];\n i++;\n } else {\n arcommon[count++] = arsecond[j];\n j++;\n }\n }\n if (i == arfirst.length) {\n arcommon[count++] = arsecond[j];\n j++;\n } else if (j == arsecond.length) {\n arcommon[count++] = arsecond[i];\n i++;\n }\n }\n return arcommon;\n }", "title": "" }, { "docid": "083451653d3fab4a78cf3421d13ba94b", "score": "0.61432534", "text": "private static int[] merge(int[] leftArray, int[] rightArray) {\n\t\tint[] target = new int[leftArray.length + rightArray.length];\n\t\tint leftArrayIndex = 0;\n\t\tint rightArrayIndex = 0;\n\t\tint targetIndex = 0;\n\n\t\twhile (leftArrayIndex < leftArray.length && rightArrayIndex < rightArray.length) {\n\t\t\tif (leftArray[leftArrayIndex] < rightArray[rightArrayIndex]) {\n\t\t\t\ttarget[targetIndex] = leftArray[leftArrayIndex];\n\t\t\t\tleftArrayIndex++;\n\t\t\t} else {\n\t\t\t\ttarget[targetIndex] = rightArray[rightArrayIndex];\n\t\t\t\trightArrayIndex++;\n\t\t\t}\n\t\t\ttargetIndex++;\n\t\t}\n\n\t\tif (leftArrayIndex != leftArray.length) {\n\t\t\tSystem.arraycopy(leftArray, leftArrayIndex, target, targetIndex, leftArray.length-leftArrayIndex);\n\t\t} else {\n\t\t\tSystem.arraycopy(rightArray, rightArrayIndex, target, targetIndex, rightArray.length-rightArrayIndex);\n\t\t}\n\t\t//System.out.println(\"Merged Result : \" + Arrays.toString(target));\n\t\treturn target;\n\t}", "title": "" }, { "docid": "4dd3a0c39982a03a0587b51c33702a7e", "score": "0.613835", "text": "private void sortData() {\n for (int i = 0; i < sizee; i++) {\n for (int j = i + 1; j < sizee; j++) {\n if (arr[i].dist > arr[j].dist) {\n swap(i, j);\n }\n }\n }\n }", "title": "" }, { "docid": "17b6e2a4150f4c6f0e2afc21bcadecb5", "score": "0.61351645", "text": "public static int[] merge(int[] arr1, int[] arr2) {\n int[] output_array = new int[arr1.length + arr2.length];\n int length_1 = arr1.length;\n int length_2 = arr2.length;\n int i, j;\n i = j = 0;\n while(i < length_1 && j < length_2){\n int var_1 = arr1[i];\n int var_2 = arr2[j];\n if(var_1>var_2){\n output_array[i+j] = var_2;\n j++;\n }\n else if(var_2>var_1){\n output_array[i+j] = var_1;\n i++;\n }\n}\n while(i<length_1){\n int var_1 = arr1[i];\n output_array[i+j] = var_1;\n i++;\n }\n while(j<length_2){\n int var_2 = arr2[j];\n output_array[i+j] = var_2;\n j++;\n }\n return output_array;\n}", "title": "" }, { "docid": "f23dd2fdcb7e1a645ea8f1bc6edc3b25", "score": "0.61218834", "text": "public static int[] sortArray2(int[] nums){\n for(int i = 0; i < nums.length; i++){\n int newVal = nums[i];\n int j = i - 1;\n while(j >= 0 && nums[j] > newVal){\n nums[j + 1] = nums[j];\n j--;\n }\n nums[j + 1] = newVal;\n }\n return nums;\n }", "title": "" }, { "docid": "387aa795f6007f2bc82895715b7045f7", "score": "0.612083", "text": "public abstract long sort(Comparable[] array) throws IllegalArgumentException;", "title": "" }, { "docid": "8d41635c85b5d8d9aefa312355fd14e2", "score": "0.6084857", "text": "public void sort(long[] array, boolean ascending);", "title": "" }, { "docid": "c2aa31612935ef13c77d00e1e36150c0", "score": "0.608458", "text": "private static void sort(Comparable[] src, Comparable[] dst, int lo, int hi) {\n if (hi <= lo + CUTOFF) { \n insertionSort(dst, lo, hi);\n return;\n }\n int mid = lo + (hi - lo) / 2;\n sort(dst, src, lo, mid);\n sort(dst, src, mid+1, hi);\n\n // if (!less(src[mid+1], src[mid])) {\n // for (int i = lo; i <= hi; i++) dst[i] = src[i];\n // return;\n // }\n\n // using System.arraycopy() is a bit faster than the above loop\n if (!less(src[mid+1], src[mid])) {\n System.arraycopy(src, lo, dst, lo, hi - lo + 1);\n return;\n }\n\n merge(src, dst, lo, mid, hi);\n }", "title": "" }, { "docid": "fa20786ac6914b61316045c128d35fdd", "score": "0.6084304", "text": "public static void main(String[] args) {\n\t\tint[] a={2,8,12,24,34,88,110,113,116,119,125,138,145,167,254,376,857,999,1045,2322,3214};\n\t\tint[] b={21,24,45,66,68,72,90,108,222,534,656,777,1023,2098,3454};\n\t\tlong startTime = System.nanoTime();\n\t\tint len=a.length+b.length;\n\t\tint[] c=new int[len];\n\t\t\n\t\tint aCount=0,bCount=0;\n\t\tfor(int i=0;i<len;i++)\n\t\t{\n\t\t\tc[i]=a[aCount]<b[bCount]?a[aCount]:b[bCount];\n\t\t\tif(c[i]==a[aCount])\n\t\t\t{\n\t\t\t\tif(aCount<a.length-1)\n\t\t\t\t\taCount++;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor(int k=bCount;k<b.length;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tc[i+1]=b[k];\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(bCount<b.length-1)\n\t\t\t\tbCount++;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor(int k=aCount;k<a.length;k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tc[i+1]=a[k];\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int k=0;k<len;k++)\n\t\t\tSystem.out.print(\" \"+c[k]+\" \");\n\t\tlong endTime = System.nanoTime();\n\t\tSystem.out.println(\"\\n\"+(endTime-startTime));\n\t}", "title": "" }, { "docid": "acde2e7d8a43e8e1246d38e0160fcd30", "score": "0.6083391", "text": "public void sortPandV(int[] nums){\n\t for(int i=1;i<nums.length-1;i=i+2){\n\t\t if(nums[i]>nums[i-1]){\n\t\t\t int tmp = nums[i];\n\t\t\t nums[i]=nums[i-1];\n\t\t\t nums[i-1]=tmp;\n\t\t }\n\t\t if(nums[i]>nums[i+1]){\n\t\t\t int tmp = nums[i];\n\t\t\t nums[i]=nums[i+1];\n\t\t\t nums[i+1]=tmp;\n\t\t }\n\t }\n }", "title": "" }, { "docid": "c7883ac240c5246c7c609cf51c14eb8a", "score": "0.608181", "text": "public int compare(int[] v1, int[] v2)\r\n/* 244: */ {\r\n/* 245:277 */ double norm1 = Math.sqrt(v1[0] * v1[0] + v1[1] * v1[1] + v1[2] * v1[2]);\r\n/* 246:278 */ double norm2 = Math.sqrt(v2[0] * v2[0] + v2[1] * v2[1] + v2[2] * v2[2]);\r\n/* 247:304 */ if (Tools.cmpr(norm1, norm2) < 0) {\r\n/* 248:304 */ return -1;\r\n/* 249: */ }\r\n/* 250:305 */ if (Tools.cmpr(norm1, norm2) > 0) {\r\n/* 251:305 */ return 1;\r\n/* 252: */ }\r\n/* 253:306 */ if (v1[0] > v2[0]) {\r\n/* 254:306 */ return 1;\r\n/* 255: */ }\r\n/* 256:307 */ if (v1[0] < v2[0]) {\r\n/* 257:307 */ return -1;\r\n/* 258: */ }\r\n/* 259:308 */ if (v1[1] > v2[1]) {\r\n/* 260:308 */ return 1;\r\n/* 261: */ }\r\n/* 262:309 */ if (v1[1] < v2[1]) {\r\n/* 263:309 */ return -1;\r\n/* 264: */ }\r\n/* 265:310 */ if (v1[2] > v2[2]) {\r\n/* 266:310 */ return 1;\r\n/* 267: */ }\r\n/* 268:311 */ if (v1[2] < v2[2]) {\r\n/* 269:311 */ return -1;\r\n/* 270: */ }\r\n/* 271:312 */ return 0;\r\n/* 272: */ }", "title": "" }, { "docid": "8d0a18a7ecfd75a87e6937466b1206c5", "score": "0.60791105", "text": "private static Integer[] merge(Integer[] a, Integer[] b) {\r\n \t\r\n \tif(a.equals(null))\r\n \t{\r\n \t\tthrow new NullPointerException();\r\n \t}\r\n \t\r\n \t\r\n \tArrayList<Integer> merged = new ArrayList<>();\r\n \tint i = 0;\r\n \tint j = 0;\r\n \t\r\n \twhile(i < a.length && j < b.length)\r\n \t{\r\n \t\tif(a[i] < b[j])\r\n \t\t{\r\n \t\t\tmerged.add(a[i]);\r\n \t\t\ti++;\r\n \t\t\t\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tmerged.add(b[j]);\r\n \t\t\tj++;\r\n \t\t}\r\n \t}\r\n \twhile(i < a.length)\r\n \t{\r\n \t\tmerged.add(a[i]);\r\n \t\ti++;\r\n \t}\r\n \twhile(j < b.length)\r\n \t{\r\n \t\tmerged.add(b[j]);\r\n \t\tj++;\r\n \t}\r\n \t\r\n \treturn merged.toArray(a);\r\n \t\r\n }", "title": "" }, { "docid": "74ddb5f9b096036ecf7fc0aa4114c9b5", "score": "0.6076819", "text": "public void sort(long[] array, boolean ascending, int from, int to);", "title": "" }, { "docid": "8391dd76cba5abe7b70183dbaf3de020", "score": "0.6076595", "text": "static void merge(int[] arr,int[] temp1,int lowptr,int highptr,int upperbound)\r\n\t{\r\n\t\tint tempArrPtr=0;\r\n\t\tint middleIndex=highptr;\r\n\t\tint lowerIndex = lowptr;\r\n\t\tint higherIndex = upperbound-lowptr+1;\r\n\r\n/*\r\n\t\ttotal 3 pointers \r\n\t\ttemp arr pointer - tempArrPtr\r\n\t\tleft array pointer - lowptr\r\n\t\tright array pointer - highptr\r\n*/\t\t\r\n/*\t\tint temp1[] = new int[higherIndex];\r\n\t\tSystem.out.println(\"temp--\"+(count=count+temp1.length));\r\n\t\tSystem.out.println(\"temp1--\"+temp1.length);*/\r\n\t\t\r\n\t\twhile(lowptr<middleIndex && highptr<=upperbound)\r\n\t\t{\r\n\t\t\tif(arr[lowptr]>arr[highptr])\r\n\t\t\t\ttemp1[tempArrPtr++] = arr[lowptr++];\r\n\t\t\telse\r\n\t\t\t\ttemp1[tempArrPtr++] = arr[highptr++];\r\n\t\t}\r\n\t\twhile(lowptr<middleIndex)\r\n\t\t{\r\n\t\t\ttemp1[tempArrPtr++] = arr[lowptr++];\r\n\t\t}\r\n\t\twhile(highptr<=upperbound)\r\n\t\t{\r\n\t\t\ttemp1[tempArrPtr++] = arr[highptr++];\r\n\t\t}\r\n\t\tfor (int l = 0; l < higherIndex; l++) \r\n\t\t{\r\n\t\t\tarr[lowerIndex+l]=temp1[l];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f4ddcef2da4c5809fa7dd273a5c6b7b5", "score": "0.6075795", "text": "public void bubbleSort( int array2[] )\n { \n // loop to control number of passes\n for ( int pass = 1; pass < array2.length; pass++ ) { \n\n // loop to control number of comparisons\n for ( int element = 0; \n element < array2.length - 1;\n element++ ) {\n\n // compare side-by-side elements and swap them if \n // first element is greater than second element\n if ( array2[ element ] > array2[ element + 1 ] )\n swap( array2, element, element + 1 );\n\n } // end loop to control comparisons\n\n } // end loop to control passes\n\n }", "title": "" }, { "docid": "608b60c631047c408ede6ffd0e668dee", "score": "0.6073975", "text": "private static void sort(Object[] src, Object[] dst, int lo, int hi, Comparator c) {\n if (hi <= lo + CUTOFF) { \n insertionSort(dst, lo, hi, c);\n return;\n }\n int mid = lo + (hi - lo) / 2;\n sort(dst, src, lo, mid, c);\n sort(dst, src, mid+1, hi, c);\n\n // if (!less(src[mid+1], src[mid])) {\n // for (int i = lo; i <= hi; i++) dst[i] = src[i];\n // return;\n // }\n\n // using System.arraycopy() is a bit faster than the above loop\n if (!less(c,src[mid+1], src[mid])) {\n System.arraycopy(src, lo, dst, lo, hi - lo + 1);\n return;\n }\n\n merge(src, dst, lo, mid, hi, c);\n }", "title": "" }, { "docid": "e9642b5c6b855b75ab9dfec12fc0aff7", "score": "0.6072668", "text": "static int[] merge(int[] a, int[] b, int k){\n int indexOfA = k-1;\n int indexOfB = b.length-1;\n int finalIndex = a.length-1;\n //now we compare the arrays from the right end and find the proper position of the items\n while(indexOfA>=0 && indexOfB>=0){\n //check which element will move\n if(a[indexOfA]>b[indexOfB]){ //a will be shifted to the finalIndex\n a[finalIndex] = a[indexOfA];\n finalIndex--; //update the index to point to the next position to update\n indexOfA--; //update the index to point to next element of a\n }else{\n a[finalIndex] = b[indexOfB];\n finalIndex--;\n indexOfB--;\n }\n }\n //it might be the case that array a is exhausted before array b (elements of a greater than elements of b), \n //so we need to insert all the elements of b into the array a, starting from the finalIndex\n System.out.println(\"finalIndex is \"+finalIndex);\n System.out.println(\"\"+Arrays.toString(a));\n while(indexOfB>=0){\n a[finalIndex] = b[indexOfB];\n finalIndex--;\n indexOfB--;\n }\n return a;\n }", "title": "" }, { "docid": "8de41e3215aa98f011ce9a01b0de493a", "score": "0.6066073", "text": "private void sort(Comparable[] v)\n {\n if (v.length < 2)\n return;\n \n int mid = v.length / 2;\n \n Comparable[] left = new Comparable[mid];\n Comparable[] right = new Comparable[v.length - mid];\n System.arraycopy(v, 0, left, 0, left.length);\n System.arraycopy(v, mid, right, 0, right.length);\n \n sort(left); \n sort(right);\n \n merge(v, left, right);\n }", "title": "" }, { "docid": "ba6dbf5e3869392f946ee8c5598b90bc", "score": "0.6062223", "text": "public int[] mergeSortedArrays(int[] arr1, int arr2[]) {\n int i = 0;\n int j = 0;\n int k = 0;\n int length1 = arr1.length;\n int length2 = arr2.length;\n int[] result = new int[length1 + length2];\n\n while ((i < length1) && (j < length2)) {\n if (arr1[i] <= arr2[j]) {\n result[k++] = arr1[i++];\n } else { // (arr1[i] > arr2[j])\n result[k++] = arr2[j++];\n }\n }\n\n while (i < length1) {\n result[k++] = arr1[i++];\n }\n\n while (j < length2) {\n result[k++] = arr2[j++];\n }\n\n return result;\n }", "title": "" }, { "docid": "600bdae231b9a19689e76dea634e61d5", "score": "0.606059", "text": "void merge(int A[], int p, int q, int r)\r\n {\r\n int leftN = q - p + 1;\r\n int rightN = r - q;\r\n//\r\n// int T1[] = new int [leftN]; //test with huge numbers, test with these hard allocated with A[]\r\n// int T2[] = new int [rightN]; //probably \r\n \r\n //populate temp arrays\r\n for (int i=0; i < leftN; i++)\r\n T1[i] = A[(p+i)];\r\n \r\n for (int i=0; i < rightN; i++)\r\n T2[i] = A[(q+i+1)];\r\n \r\n \r\n //i, j, and k are indexes for T1, T2, and A respectively\r\n int i = 0;\r\n int j = 0;\r\n int k = p;\r\n \r\n while (i < leftN && j < rightN)\r\n {\r\n //puts in place smaller element, increments to move through that temp array\r\n if (T1[i] <= T2[j])\r\n {\r\n A[k] = T1[i];\r\n i++;\r\n }else{\r\n A[k] = T2[j];\r\n j++;\r\n }\r\n k++; //always increment the permanent array's index\r\n }//end while\r\n \r\n //copy remaining elements (if any)\r\n while (i < leftN)\r\n {\r\n A[k] = T1[i];\r\n i++;\r\n k++;\r\n }\r\n \r\n while (j < rightN)\r\n {\r\n A[k] = T2[j];\r\n j++;\r\n k++;\r\n }\r\n \r\n }", "title": "" }, { "docid": "3de5fe68f0564e87773b7c90d9c2b549", "score": "0.6038886", "text": "private static void sortStudents(ArrayList<Student> studentArray2) {\n\t\t\n\t\t\n\t\t\n\t\tint j, first;\n\t\tfor(int i=studentArray2.size() - 1; i > 0; i--)\n\t\t{\n\t\t\tfirst = 0;\n\t\t\t\n\t\t\tfor(j = 1; j <= i; j++)\n\t\t\t{\n\t\t\t\tif((studentArray2.get(j).getLength()) < (studentArray2.get(first).getLength()))\n\t\t\t\t\tfirst = j;\n\t\t\t\t}\n\t\t\tStudent temp = studentArray2.get(first);\n\t\t\tstudentArray2.set(first, studentArray2.get(i));\n\t\t\tstudentArray2.set(i, temp);\n\t\t\n\t}\n\t\t\n\tfor(int i=0; i < studentArray2.size(); i++)\n\t{\n\t\tSystem.out.println(studentArray2.get(i));\n\t}\n\n}", "title": "" }, { "docid": "22d543f5cf10603aacb114631dcffa34", "score": "0.60344166", "text": "public void mergeApparch2(int[] nums1, int m, int[] nums2, int n) {\n\n int tail1=m-1;\n int tail2=n-1;\n int pointer=n+m-1;\n\n while(tail1>=0 && tail2>=0)\n {\n nums1[pointer--]= (nums1[tail1]>nums2[tail2])?nums1[tail1--]:nums2[tail2--];\n }\n\n while(tail2>=0)\n {\n nums1[pointer--]=nums2[tail2--];\n }\n\n }", "title": "" }, { "docid": "0ff3d27462c3a21b1c6df61b90cd489f", "score": "0.6027988", "text": "public static void main(String[] args) {\n int[] data = {11, 1, 2, 3, 4, 5, 6, 7};\n int[] data1 = {11, 1, 0, 9, 4, 9, 2};\n// System.out.println((char) 27 + \"[97;43m\" + \"selection sort\\n\" + Arrays.toString(selectionSort(data)) + (char) 27 + \"[0m\");\n// insertionSortRecursive(data, data.length -1);\n// System.out.println((char) 27 + \"[97;43m\" + Arrays.toString(data) + (char) 27 + \"[0m\");\n\n// insertionSortLoop(data, data.length - 1);\n// System.out.println((char)27 + \"[97;43m\"+ Arrays.toString(data) +(char)27+\"[0m\");\n// System.out.println((char) 27 + \"[97;43m\" + Arrays.toString(selectionSort(data)) + (char) 27 + \"[0m\");\n\n// int[] sorted = mergeSort(data);\n// System.out.println((char) 27 + \"[97;43m\" + Arrays.toString(sorted) + (char) 27 + \"[0m\");\n\n quickSort(data, 0, data.length -1);\n System.out.println((char) 27 + \"[97;43m\" + \"quick sort \" + Arrays.toString(data) + (char) 27 + \"[0m\");\n\n\n// System.out.println((char)27 + \"[97;43m\"+ Arrays.toString(sortWith2Pointers(data1)) +(char)27+\"[0m\");\n }", "title": "" }, { "docid": "70fb52004f21ffdd3698b3220a1c7362", "score": "0.60207903", "text": "@Override\r\n public int compare(Integer index1, Integer index2) {\n return -(array[index1] - array[index2]);\r\n }", "title": "" }, { "docid": "fe11af7793be6afea2b637e3a109129f", "score": "0.6013961", "text": "public static int[] mergen(int[] lijst1, int[] lijst2) {\n\n// Nieuwe array aanmaken zo groot als ijst 1 en 2 samen.\n int[] klaar = new int[lijst1.length + lijst2.length];\n\n int i = 0, j = 0, k = 0;\n\n // Zolang i kleiner is dan de lengte van lijst 1 en lijst 2.\n while (i < lijst1.length && j < lijst2.length) {\n\n // Dan gaan we kijken of het getal in lijst 1 op plek i,\n // kleiner is dan het getal in lijst 2 op plek j.\n // Als dat zo is, voegen we het kleinste getal, dus het getal uit lijst1, toe aan klaar.\n if (lijst1[i] < lijst2[j]) {\n klaar[k] = lijst1[i];\n\n i++;\n }\n // Anders voegen we het getal uit lijst2 toe aan klaar.\n else {\n klaar[k] = lijst2[j];\n\n j++;\n }\n k++;\n }\n\n// Als een van de twee lijsten leeg is, dan voegen we het overgebleven getal/getallen toe aan klaar.\n while (i < lijst1.length) {\n klaar[k] = lijst1[i];\n i++;\n k++;\n }\n\n while (j < lijst2.length) {\n klaar[k] = lijst2[j];\n j++;\n k++;\n }\n\n return klaar;\n }", "title": "" }, { "docid": "790f91dd6298661f4a834fa3d220aec7", "score": "0.6008633", "text": "static double[] mergeSort (double a[]) {\r\n \t\r\n \t// make an auxiliary array\r\n \tdouble[] aux = new double[a.length];\r\n \t// call recursive sort method\r\n \tsort(a, aux, 0, a.length-1);\r\n \treturn a;\r\n\r\n }", "title": "" }, { "docid": "de918b27984e4f29a37cf216ce6d354b", "score": "0.60081744", "text": "private static void mergesortWithBothIdeas(int low, int high) \n\t{\n\t\tif (isSorted(low,high)) \n\t\t{\n\t\t\t// do nothing //return;\n\t\t}\n\t\telse if(high-low<100)\n\t\t{\n\t\t\tinsertSort(low,high);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Get the index of the element which is in the middle\n\t\t\tint middle = low + (high - low) / 2;\n\t\t\t// Sort the left side of the array\n\t\t\tmergesortWithBothIdeas(low, middle);\n\t\t\t// Sort the right side of the array\n\t\t\tmergesortWithBothIdeas(middle + 1, high);\n\t\t\t// Combine them both\n\t\t\tmerge(low, middle, high);\n\n\t\t}\n\t}", "title": "" }, { "docid": "fc81873973eb38e872c7263545a9fe74", "score": "0.6003873", "text": "@Override\n\tpublic int[] descending(int[] a) {\n\t\tint n = a.length;\n\t\t//loop 1 checks that the order is correct.\n\t\tfor (int y = 0; y < n; y++){\n\t\t\t//loop 2 compares and swaps pairs until it reaches the end.\n\t\t\tfor (int x = 0; x < n - 1; x++){\n\t\t\t\tif (a[x] < a[x + 1]){\n\t\t\t\t\tint temp = a[x];\n\t\t\t\t\ta[x] = a[x + 1];\n\t\t\t\t\ta[x + 1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "title": "" }, { "docid": "57cc968c1271760a7b803789de2bc9a0", "score": "0.60024965", "text": "static void sort(int[] arr1) {\n\t\tint n = arr1.length;\n\t\t// One by one move boundary of unsorted subarray\n\t\tfor (int i = 0; i < (n - 1); i++) {\n\t\t\t// Find the minimum element in unsorted array\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < n; j++)\n\t\t\t\tif (arr1[j] < arr1[index])\n\t\t\t\t\tindex = j;\n\t\t\t// Swap the found minimum element with the first\n\t\t\t// element\n\t\t\tint temp = arr1[index];\n\t\t\tarr1[index] = arr1[i];\n\t\t\tarr1[i] = temp;\n\t\t}\n\t}", "title": "" }, { "docid": "6818ba754bca1bdbc77fd9bde3956578", "score": "0.6001953", "text": "public static int[] mergeArray(int[] a, int[] b) {\n\t\tint c[] = new int[a.length + b.length];\n\t\tint indexA = 0;\n\t\tint indexB = 0;\n\t\tint indexC = 0;\n\n\t\twhile (indexA < a.length && indexB < b.length) {\n\t\t\tif (a[indexA] <= b[indexB]) {\n\t\t\t\tc[indexC] = a[indexA];\n\t\t\t\tindexA++;\n\t\t\t} else {\n\t\t\t\tc[indexC] = b[indexB];\n\t\t\t\tindexB++;\n\t\t\t}\n\n\t\t\tindexC++;\n\t\t}\n\n\t\t// System.out.println(Arrays.toString(c));\n\n\t\tif (indexA == a.length) {\n\t\t\tfor (int i = indexC; i < c.length && indexB < b.length; i++) {\n\t\t\t\tc[i] = b[indexB];\n\t\t\t\tindexB++;\n\t\t\t}\n\t\t}\n\t\tif (indexB == b.length) {\n\t\t\tfor (int i = indexC; i < c.length && indexA < a.length; i++) {\n\t\t\t\tc[i] = a[indexA];\n\t\t\t\tindexA++;\n\t\t\t}\n\t\t}\n\n\t\treturn c;\n\t}", "title": "" }, { "docid": "9163717d1f262c5d739683d7783502d7", "score": "0.59857726", "text": "public static void main(String[] args) {\n\n int[] arr1 ={1,2,3};\n int[] arr2 ={4,5,6,7,8};\n int size1 = arr1.length;\n int size2 = arr2.length;\n\n int[] result = new int[size1+size2] ;\n\n for(int i= 0; i <arr1.length; i++){\n result[i]= arr1[i];\n\n }\n\n for (int i = size1; i < result.length; i++) {\n result[i] = arr2[i-size1];\n }\n\n\n System.out.println(\"Result: \"+Arrays.toString(result));\n }", "title": "" }, { "docid": "c4ec8b10b5c37f5901b54570a206e300", "score": "0.59760666", "text": "public void sort();", "title": "" }, { "docid": "68ac85b52470ea6763ed44eb44618b7d", "score": "0.5975336", "text": "public static void main(String[] args) {\n\t\tint[] array1 = { 3, 31, 48, 73, 8, 11, 20, 29, 65, 15 };\n\t\tint[] array2 = { 3, 31, 48, 73, 8, 11, 20, 31, 29, 65, 3, 15 };\n\n\t\tInsertionSort(array1, true);\n\t\tInsertionSort(array2, true);\n\t\tprintArrayValue(array1);\n\t\tprintArrayValue(array2);\n\n\t\tInsertionSort(array1, false);\n\t\tInsertionSort(array2, false);\n\t\tprintArrayValue(array1);\n\t\tprintArrayValue(array2);\n\n\t}", "title": "" }, { "docid": "a39ad51248b448fd2a076fadb5b747bc", "score": "0.5967061", "text": "@Test\n public void shellSort() {\n int[] array = {57, 68, 59, 52, 72, 28, 96, 33, 24};\n int[] arrayEx = {24, 28, 33, 52, 57, 59, 68, 72, 96};\n for (int gap = array.length / 2; gap > 0; gap = gap / 2) {\n for (int i = gap; i < array.length; i++) {\n int tmp = array[i];\n int j = i;\n\n for (; j >= gap && tmp < array[j - gap]; j -= gap) {\n array[j] = array[j - gap];\n }\n array[j] = tmp;\n }\n }\n\n printResult(array, arrayEx);\n\n }", "title": "" }, { "docid": "74eb98b95778d4f2d81c5c12da81c4ba", "score": "0.5954085", "text": "private static void sort(Comparable[] a, int[] index, int[] aux, int lo, int hi) {\n if (hi <= lo) return;\n int mid = lo + (hi - lo) / 2;\n sort(a, index, aux, lo, mid);\n sort(a, index, aux, mid + 1, hi);\n merge(a, index, aux, lo, mid, hi);\n }", "title": "" }, { "docid": "aec0fbd05b38531cf24357781941615e", "score": "0.59500825", "text": "private static void sort(int[] data, int left, int right) {\n\t\tif(left>=right)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//find the mid number;\r\n\t\tint center=(left+right)/2;\r\n\t\t//recursion on the left array\r\n\t\tsort(data,left,center);\r\n\t\t//recursion on the right array\r\n\t\tsort(data,center+1,right);\r\n\t\t//merge, wait, when you realize the sort\r\n\t\tmerge(data,left,center,right);\r\n\t\tprint(data);\r\n\t}", "title": "" }, { "docid": "a4ae3d92c783621063c7845de36f5de1", "score": "0.5940984", "text": "void sortMethod(List<String> arrayNames, List<Long> arrayTins, List<Client> clients, int dummy);", "title": "" }, { "docid": "f72b9a3c520a1f3fb67d2a3875041c93", "score": "0.5939556", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate Object[] merge(IComparable<T> comparable, Object[] a, Object[] b)\r\n\t{\r\n\t\tObject[] c = null;\r\n\t\t\r\n\t\t/*\r\n\t\t * If this is the last array (the last two halves are getting merged),\r\n\t\t * this method copies the values directly to the array (which is an T[]\r\n\t\t * and can therefore be returned without any casting related problems)\r\n\t\t */\r\n\t\tif(a.length + b.length == elements.length)\r\n\t\t{\r\n\t\t\tc = elements;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tc = new Object[a.length + b.length];\r\n\t\t}\r\n\t\t\r\n\t\tint i_a = 0;\r\n\t\tint i_b = 0;\r\n\t\tint i_c = 0;\r\n\t\t\r\n\t\twhile(i_a < a.length && i_b < b.length)\r\n\t\t{\r\n\t\t\tif(Utils.isBefore((T) b[i_b], (T) a[i_a], comparable))\r\n\t\t\t{\r\n\t\t\t\tc[i_c] = a[i_a];\r\n\t\t\t\ti_a++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tc[i_c] = b[i_b];\r\n\t\t\t\ti_b++;\r\n\t\t\t}\r\n\t\t\ti_c++;\r\n\t\t}\r\n\t\t\r\n\t\twhile(i_a < a.length)\r\n\t\t{\r\n\t\t\tc[i_c] = a[i_a];\r\n\t\t\ti_a++;\r\n\t\t\ti_c++;\r\n\t\t}\r\n\t\t\r\n\t\twhile(i_b < b.length)\r\n\t\t{\r\n\t\t\tc[i_c] = b[i_b];\r\n\t\t\ti_b++;\r\n\t\t\ti_c++;\r\n\t\t}\r\n\t\t\r\n\t\treturn c;\r\n\t}", "title": "" }, { "docid": "794093e8a19670e6e370024dfd912df4", "score": "0.5933095", "text": "public static void merge(int[] arr, int p, int q, int r){\n int n1 = q - p + 2; // size of left sorted array\n int n2 = r - q + 1; // size of right sorted array\n int[] left = new int[n1];\n int[] right = new int[n2];\n int inf = Integer.MAX_VALUE; // sentinel card value\n // initialising left array\n for(int i = 1; i < n1; i++){\n left[i - 1] = arr[p + i - 1];\n }\n // initialising right array\n for(int j = 1; j < n2; j++){\n right[j - 1] = arr[q + j];\n }\n // initialising last value as sentinel\n left[n1 - 1] = inf;\n right[n2 - 1] = inf;\n int i = 0;\n int j = 0;\n for(int k = p; k <= r; k++){\n // compare top cards of the two arrays, lowest value goes to the\n // the original array from index p to r\n if(left[i] < right[j]){\n arr[k] = left[i];\n i++;\n }else{\n arr[k] = right[j];\n j++;\n }\n }\n }", "title": "" }, { "docid": "277ef7b13f903ce2c72a9062c8c1cfa6", "score": "0.5931225", "text": "private void mergeSort(int[] a, int[] tmp, int left, int right) {\n\t\tif (left < right) {\r\n\t\t\t// Get middle\r\n\t\t\tint center = (left + right) / 2;\r\n\t\t\t// Take left part of the array (left of part of the array)\r\n\t\t\tmergeSort(a, tmp, left, center);\r\n\t\t\t// Take right part in same logic\r\n\t\t\tmergeSort(a, tmp, center + 1, right);\r\n\t\t\t// Eventually join the two parts together\r\n\t\t\tmerge(a, tmp, left, center + 1, right);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5f0467ddde0c7851b8ee8136b7e10353", "score": "0.5931033", "text": "public void sort() {\n for (int k = 2; k <= data.length; k *= 2) { // k is one bit, marching to the left\n // j is the distance between the first and second halves of the merge\n // corresponds to 1<<p in textbook\n for (int j = k / 2; j > 0; j /= 2) { // j is one bit, marching from k to the right\n // i is the merge element\n for (int i = startIndex; i <= endIndex; i++) {\n int ixj = i ^ j; // xor: all the bits that are on in one and off in the other\n // only compare if ixj is to the right of i\n if (ixj > i) {\n if ((i & k) == 0 && data[i] > data[ixj])\n swap(i, ixj);\n if ((i & k) != 0 && data[i] < data[ixj])\n swap(i, ixj);\n }\n }\n try {\n if (j >= endIndex - startIndex + 1)\n smallBarrier.await(); // will stop when needing to access members outside of its range\n else if (k >= endIndex - startIndex + 1)\n largeBarrier.await(); // will stop when needing to access members outside of its range\n } catch (InterruptedException ex) {\n return;\n } catch (BrokenBarrierException ex) {\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "aa3a2a4122f7c106638ea8cc044e702d", "score": "0.5927067", "text": "public static void main(String[] args) {\n System.out.println(\"=================================================================\");\n System.out.println(\"Method-1: Worst Case(O(n^2))\");\n int[] arr1 = {1,3,5,7};\n int[] arr2 = {0,2,6,8,9};\n int size1 = arr1.length;\n int size2 = arr2.length;\n System.out.println(\"Given Array 1: \" + Arrays.toString(arr1));\n System.out.println(\"Given Array 2: \" + Arrays.toString(arr2));\n\n for(int i=0; i<size1; i++){\n for(int j=0; j<size2; j++){\n if(arr1[i] > arr2[j]){\n int temp = arr1[i];\n arr1[i] = arr2[j];\n arr2[j] = temp;\n }\n }\n }\n Arrays.sort(arr2);\n\n System.out.println(\"Sorted Array 1: \" + Arrays.toString(arr1));\n System.out.println(\"Sorted Array 2: \" + Arrays.toString(arr2));\n System.out.println(\"=================================================================\");\n\n //Method - 2 Gap Method\n //Time Complexity = O (nlog n)\n //Space Complexity = O (1)\n System.out.println(\"=================================================================\");\n System.out.println(\"Method-2 \");\n int[] array1 = {1,5,9,10,15,20};\n int[] array2 = {2,3,8,13};\n System.out.println(\"Given Array 1: \" + Arrays.toString(array1));\n System.out.println(\"Given Array 2: \" + Arrays.toString(array2));\n\n MergeArrays(array1, array2, array1.length, array2.length);\n\n System.out.println(\"Merged Array 1: \" + Arrays.toString(array1));\n System.out.println(\"Merged Array 2: \" + Arrays.toString(array2));\n\n System.out.println(\"=================================================================\");\n }", "title": "" }, { "docid": "fa1631a9ac9d292ba9c7bfa02335fb6f", "score": "0.5925153", "text": "public static void merge(long arr1[], long arr2[], int n, int m) \n {\n // code here \n int i = n-1;\n int j=0;\n while(i>=0 && j<m)\n {\n if(arr1[i] <=arr2[j])\n break;\n \n else\n {\n long temp = arr1[i];\n arr1[i] =arr2[j];\n arr2[j] =temp;\n i--; j++;\n }\n \n }\n Arrays.sort(arr1);\n Arrays.sort(arr2);\n }", "title": "" }, { "docid": "0fda128df4ab5443009c4f09bd4518c5", "score": "0.5917726", "text": "private static void merge(int [] arr, int[] subA, int[] subB){\n\t\tint indexA = 0; \n\t\tint indexB = 0;\n\n\t\t//while indexA is less than the length of the entire array:\n\t\tfor (int i = 0; i <arr.length; i++) {\n\t\t\t//if first subarray pointer is equal to the length of subB OR \n\t\t\t//first pointer is less than size of subB but the indexA-th element of subA is less than\n\t\t\t//the indexB-th element of subB, set the indexA-th element of array equal to the indexA-th\n\t\t\t//element of subA\n\t\t\t//then increment indexA\n\t\t\tif (indexB == subB.length || (indexA < subA.length && subA[indexA] < subB[indexB])) {\n\t\t\t\tarr[i] = subA[indexA];\n\t\t\t\tindexA++;\n\t\t\t}\n\t\t\t//otherwise, set the indexA-th element of array equal to the indexB-th element of subB, and increment indexB\n\t\t\telse {\n\t\t\t\tarr[i] = subB[indexB];\n\t\t\t\tindexB++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "78fa891db68cd8366de1ff53ab283b2b", "score": "0.5917344", "text": "private static <T> T[] merge(T[] arr, T[] left, T[] right,\n Comparator<T> comparator) {\n int l = 0;\n int r = 0;\n int i = 0;\n int max = Math.max(left.length, right.length);\n for (; l < left.length && r < right.length; i++) {\n if (comparator.compare(left[l], right[r]) <= 0) {\n arr[i] = left[l];\n l++;\n } else {\n arr[i] = right[r];\n r++;\n }\n }\n\n if (l < left.length) {\n for (; l < left.length; i++) {\n arr[i] = left[l];\n l++;\n }\n } else if (r < right.length) {\n for (; r < right.length; i++) {\n arr[i] = right[r];\n r++;\n }\n }\n\n return arr;\n }", "title": "" }, { "docid": "0aa52f6f74527fbcd937148c8421c0ff", "score": "0.5912375", "text": "void sort();", "title": "" }, { "docid": "f00ffad4b9e5642698051a1baaec1fd4", "score": "0.59107554", "text": "private void sortPairs(ArrayList<VMpair> pairlistcopy) {\n\t\tint n = pairlistcopy.size() ;\r\n for (int i = 0; i < n-1; i++) \r\n for (int j = 0; j < n-i-1; j++) \r\n if (pairlistcopy.get(j).comrate < pairlistcopy.get(j+1).comrate) \r\n { \r\n // swap arr[j+1] and arr[j] \r\n VMpair temp = pairlistcopy.get(j); \r\n pairlistcopy.set(j, pairlistcopy.get(j+1));\r\n // arr[j] = arr[j+1]; \r\n pairlistcopy.set(j+1, temp);\r\n // arr[j+1] = temp; \r\n } \r\n\t\t\r\n\t}", "title": "" }, { "docid": "025c3aedb8ecc751a5b0a31a90340a0d", "score": "0.59057224", "text": "public static void sort4(int[] a) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6af2d1d314807aaf0e3eb4bbe85bd578", "score": "0.5903519", "text": "@Override\n\tpublic int[] ascending(int[] a) {\n\t\tint n = a.length;\n\t\t//loop 1 checks that the order is correct.\n\t\tfor (int y = 0; y < n; y++){\n\t\t\t//loop 2 compares and swaps pairs until it reaches the end.\n\t\t\tfor (int x = 0; x < n - 1; x++){\n\t\t\t\tif (a[x] > a[x + 1]){\n\t\t\t\t\tint temp = a[x];\n\t\t\t\t\ta[x] = a[x + 1];\n\t\t\t\t\ta[x + 1] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "title": "" }, { "docid": "6c6c0c39b4e4a09b1032727e597ccaec", "score": "0.5899123", "text": "public static void order (int[] pages){\n int temp;\n int i = 0;\n int j = 0;\n for (i = 0; i<pages.length-1;i++){\n int min_i = i;\n for (j = i+1; j<pages.length;j++){\n if (pages[j]<pages[min_i]){\n min_i = j;\n }\n }\n if (min_i !=i){\n temp = pages[i];\n pages[i]=pages[min_i];\n pages[min_i] = temp;\n }\n }\n \n }", "title": "" }, { "docid": "2180293402df7aa4f42766eb1762b3e4", "score": "0.5894057", "text": "public void sort(Integer[] array,int leftIndex, int rightIndex) {\r\n\t\tif(array.length <= 1)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tint maxValueOfArray = getMaxValue(array); // obtem o maior elemento dentro do array\r\n\t\r\n\t\tInteger[] vetorContador = new Integer[maxValueOfArray + 1]; //inicia o vetor auxiliar\r\n\t\tInteger[] vetorAux = new Integer[array.length]; //array final com valores ordenados\t\t\r\n\t\tArrays.fill(vetorContador, 0); //preenche os elementos do vetor com 0\r\n\r\n\t\t/*Contagem de elemetos*/\r\n\t\tfor(int i = 0; i < array.length; i++) {\r\n\t\t\tvetorContador[array[i]]++;\r\n\t\t}\r\n\t\t\r\n\t\t/*Soma acumulativa*/\r\n\t\tfor(int i = 1; i < vetorContador.length; i++) {\r\n\t\t\tvetorContador[i] = vetorContador[i-1] + vetorContador[i];\r\n\t\t}\r\n\t\t/*ordena os valores com base no vetor auxiliar e o vetor original*/\r\n\t\tfor(int i = array.length - 1; i >= 0; i--){\r\n\t\t\tvetorAux[vetorContador[array[i]] - 1] = array[i];\r\n\t\t\tvetorContador[array[i]]--;\r\n\t\t}\r\n\t\t/*copia os valores do vetor aux para o vetor original*/\r\n\t\tfor(int i = 0; i < array.length; i++) {\r\n\t\t\tarray[i] = vetorAux[i];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0904786c6708ef8b885a3bdfb756c988", "score": "0.5885928", "text": "private void v1(Comparable[] array) {\n if (array.length == 1) return;\n\n int midIndex = (array.length - 1) / 2;\n\n // Note: These 2 cloned arrays stay in memory because this function not returns yet.\n // They can't be GC until last recursive call returns\n Comparable[] leftArray = new Comparable[midIndex + 1];\n System.arraycopy(array, 0, leftArray, 0, leftArray.length);\n\n Comparable[] rightArray = new Comparable[array.length - leftArray.length];\n System.arraycopy(array, midIndex + 1, rightArray, 0, rightArray.length);\n\n // Sort 2 partitions\n v1(leftArray);\n v1(rightArray);\n\n // Merge\n int leftIndex = 0;\n int rightIndex = 0;\n for (int i = 0; i < array.length; i++) {\n if (rightIndex > rightArray.length - 1 || leftIndex < leftArray.length && Util.less(leftArray[leftIndex], rightArray[rightIndex])) {\n array[i] = leftArray[leftIndex];\n leftIndex++;\n } else if (leftIndex > midIndex || rightIndex < rightArray.length && Util.less(rightArray[rightIndex], leftArray[leftIndex])) {\n array[i] = rightArray[rightIndex];\n rightIndex++;\n }\n }\n\n // Note: Now the cloned arrays can be GC\n }", "title": "" }, { "docid": "4e4c953de89d0d51e11fa4eb146fdafc", "score": "0.58805627", "text": "public static void main(String[] args) {\n int arr1[] = {3,2,11,4,6,7};\r\n int arr2[] = {1,2,8,4,9,7};\r\n int newarr[] = new int[6];\r\n \r\n for(int i=0; i<arr1.length; i++)\r\n {\r\n \t for(int j=0; j<arr2.length;j++)\r\n \t {\r\n \t\t int a = arr1[i];\r\n \t\t int b =arr2[j];\r\n \t\t if (a == b)\r\n \t\t {\r\n \t\t\t \r\n \t\t\t newarr[j] = a;\r\n \t\t\t \t\t\t \t\t\t \r\n \t\t }\r\n \t\t \t\t\t \r\n \t }\r\n \t \r\n }\r\n System.out.println(\"Initial Array:\\n\"+ Arrays.toString(newarr));\r\n\t}", "title": "" }, { "docid": "20707d7e171cac45efe7b4a943cef60f", "score": "0.58803993", "text": "public int[] sort(int[] ans) {\n\n int j = 0;\n int tmp;\n for(int i=0; i<ans.length; i++){\n j = i;\n for(int k = i; k<ans.length; k++){\n if(ans[j]>ans[k]){\n j = k;\n }\n }\n tmp = ans[i];\n ans[i] = ans[j];\n ans[j] = tmp;\n }\n return ans;\n }", "title": "" }, { "docid": "56ec5ecd1f452da044a4949079b2af75", "score": "0.5877509", "text": "private static List<Double> sort(List<Double> array) {\n int size = array.size();\n if (size == 1) {\n return array;\n }\n\n // split\n List<Double> first, second;\n if (size % 2 == 0) {\n first = array.subList(0, size / 2);\n second = array.subList(size / 2, size);\n } else {\n first = array.subList(0, (size + 1) / 2);\n second = array.subList((size + 1) / 2, size);\n }\n\n // recursive sort call\n first = sort(first);\n second = sort(second);\n\n // merge\n List<Double> sortedArray = new ArrayList<>();\n\n int j = 0, k = 0;\n for (int i = 0; i < size; ++i) {\n if (j >= first.size()) {\n sortedArray.add(second.get(k));\n k++;\n } else if (k >= second.size()) {\n sortedArray.add(first.get(j));\n j++;\n } else if (first.get(j) < second.get(k)) {\n sortedArray.add(first.get(j));\n j++;\n } else {\n sortedArray.add(second.get(k));\n k++;\n }\n }\n\n return sortedArray;\n }", "title": "" }, { "docid": "3b008c1634eba24839d72116fc27eba4", "score": "0.58743334", "text": "@Test\n\tpublic void testFunctionalityWithConsole() {\n\t\tInteger[] temp = { 7,9,-2,5,4,6,3,8,-1 };\n\t\tInteger[] temp2 = Arrays.copyOf(temp, 9);\n\t\talgo.sortArray(temp);\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tSystem.out.print(temp[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tArrays.sort(temp2);\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tassertEquals(temp2[i], temp[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "5b38e474ef67d796e399ca8089964f61", "score": "0.5870957", "text": "@Override\r\n\t\t\t\tpublic int compare(int[] o1, int[] o2) {\n\t\t\t\t\treturn (Math.abs(o1[0] - r0) + Math.abs(o1[1] - c0))\r\n\t\t\t\t\t\t\t- (Math.abs(o2[0] - r0) + Math.abs(o2[1] - c0));\r\n\t\t\t\t}", "title": "" }, { "docid": "29f1585807f669dedbcd322e5ed5b432", "score": "0.58683556", "text": "public static void main(String[] args){\n int[] arr = {10,9,0,2,4,1,99,20,21,5};\n //Bubble_Sort(arr);\n //Insertion_Sort(arr);\n //Selection_Sort(arr);\n \n /*int[] first = {1,4,5,6};\n int[] second = {2,3,9};*/\n //System.out.println(Arrays.toString(MergeSort(arr)));\n Quick_Sort(arr, 0, arr.length-1 );\n System.out.println(Arrays.toString(arr));\n }", "title": "" }, { "docid": "582363d69472f4baa3d916e19817cbdb", "score": "0.58667654", "text": "@Override\n @SuppressWarnings(\"SubtractionInCompareTo\")\n public int compare(final byte[] keyArray1, final byte[] keyArray2)\n {\n\n int comparableBytesStartPosition1 = firstFieldPosition;\n int comparableBytesStartPosition2 = firstFieldPosition;\n\n boolean ascending = true;\n int field = 0;\n\n for (int numFields : ascDescRunLengths) {\n if (numFields > 0) {\n final int nextField = field + numFields;\n final int comparableBytesEndPosition1 = RowKeyReader.fieldEndPosition(keyArray1, nextField - 1);\n final int comparableBytesEndPosition2 = RowKeyReader.fieldEndPosition(keyArray2, nextField - 1);\n\n int cmp = FrameReaderUtils.compareByteArraysUnsigned(\n keyArray1,\n comparableBytesStartPosition1,\n comparableBytesEndPosition1 - comparableBytesStartPosition1,\n keyArray2,\n comparableBytesStartPosition2,\n comparableBytesEndPosition2 - comparableBytesStartPosition2\n );\n\n if (cmp != 0) {\n return ascending ? cmp : -cmp;\n }\n\n field = nextField;\n comparableBytesStartPosition1 = comparableBytesEndPosition1;\n comparableBytesStartPosition2 = comparableBytesEndPosition2;\n }\n\n ascending = !ascending;\n }\n\n return 0;\n }", "title": "" }, { "docid": "8bceabeaedc3d4c2bcfedfd15ca7002e", "score": "0.5866669", "text": "public static void sort(Comparable[] a) {\n int N = a.length;\n Comparable[] aux = new Comparable[N];\n for (int n = 1; n < N; n = n+n) {\n for (int i = 0; i < N-n; i += n+n) {\n int lo = i;\n int m = i+n-1;\n int hi = Math.min(i+n+n-1, N-1);\n merge(a, aux, lo, m, hi);\n }\n }\n }", "title": "" }, { "docid": "1193a3a67f9788932353c1a98f5043f4", "score": "0.5864602", "text": "public static double findMedianSortedArrays(int a[], int b[]) {\n \n int sizeA = a.length;\n \tint sizeB = b.length;\n if (sizeA == 0 && sizeB == 0) {\n return 0.0;\n }\n else if(sizeA == 0) {\n return findMedianInArray(b);\n }\n else if (sizeB ==0) {\n return findMedianInArray(a);\n }\n\t\tdouble temp = 0.0;\n\t\t// even \n\t\tif ((sizeA + sizeB)%2 == 0) {\n\n\t\t\tint indexA = 0;\n\t\t\tint indexB = 0;\n\t\t\tfor(int i=0; i<=(sizeA+sizeB)/2; i++){\n\t\t\t\tif(a[indexA] < b[indexB]) {\n\t\t\t\t\tif(i == (sizeA + sizeB)/2 -1){\n\t\t\t\t\t\ttemp+= a[indexA];\t\n\t\t\t\t\t}\n\t\t\t\t\tif(i == (sizeA + sizeB)/2 ){\n\t\t\t\t\t\ttemp+= a[indexA];\t\n\t\t\t\t\t}\n\t\t\t\t\tindexA ++;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\tif(i == (sizeA + sizeB)/2 -1){\n\t\t\t\t\t\ttemp+= b[indexB];\n\t\t\t\t\t}\n\t\t\t\t\tif(i == (sizeA + sizeB)/2 -1){\n\t\t\t\t\t\ttemp+= b[indexB];\t\n\t\t\t\t\t}\n\t\t\t\t\tindexB++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp/2;\n\t\t}\n\t\t// odd\n\t\telse {\n\t\t\tint indexA = 0;\n\t\t\tint indexB = 0;\n\t\t\tfor(int i=0; i<=(sizeA+sizeB)/2 ; i++){\n\t\t\t\tif(a[indexA] < b[indexB]) {\t\t\t\t\n\t\t\t\t\tif (i == (sizeA+sizeB)/2) {\n\t\t\t\t\t\ttemp = a[indexA];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tindexA++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif (i == (sizeA+sizeB)/2) {\n\t\t\t\t\t\ttemp = b[indexB];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\tindexB++;\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n \n }", "title": "" } ]
b5a0b270772b99e873cff66a1f7ce75a
Called by the ClientConnection. Calls the ServerModel's register
[ { "docid": "1ef6c713eadc8885147558056b170435", "score": "0.0", "text": "public String register(String user, String pass, ClientConnection con){\n\t\treturn servModel.register(user, pass, con);\n\t}", "title": "" } ]
[ { "docid": "58ebfd49e3a5f94a5da4bc0c8b76db2a", "score": "0.67352", "text": "void registerServer(@Nonnull ServerInfo server);", "title": "" }, { "docid": "302b55d5045bdf8b63c4ee53f4ce18f8", "score": "0.6410615", "text": "@Override public void registerClient(ClientModel clientToRegister)\n {\n clientsForBroadcast.add(clientToRegister);\n }", "title": "" }, { "docid": "960e00a92cf7dd737df2a3fa561ebcb8", "score": "0.6398308", "text": "void serverStarted(final RegisterPersonServer server);", "title": "" }, { "docid": "29817f2637e1791edab055c5d05b82f9", "score": "0.6321506", "text": "private void sendRegistrationIdToBackend() {\t\r\n\t\tServerUtilities.register(context, name, email, regid);\r\n\t}", "title": "" }, { "docid": "1539051e7e550203e6fbee937a845217", "score": "0.63167363", "text": "public void interestedToListen(){\n this.storeModelService.register(this);\n }", "title": "" }, { "docid": "2ae87e1182a8329773ea0a47d198231d", "score": "0.6298544", "text": "private void register() throws IOException {\n\n NetworkObject register = new NetworkObject(Command.REGISTER);\n register.addVariable(\"port\", Integer.toString(localPort));\n register.addVariable(\"pseudo\", clientViewController.getPseudo());\n NetworkObject registerResponse = serverConnection.GET(register);\n\n if(registerResponse.getCommand() == Command.ACKNOWLEDGE) {\n\n state = State.REST_API;\n uuid = registerResponse.getVariable(\"uuid\");\n\n System.out.println(\"client registered with server\");\n\n if(!\"empty\".equals(registerResponse.getVariable(\"neighbours\"))) {\n System.out.println(\"getting neighbour data\");\n neighbourhood = Neighbourhood.fromSerialisedString(registerResponse.getVariable(\"neighbours\"));\n neighbourhood.print();\n }\n else {\n neighbourhood = new Neighbourhood();\n }\n\n isConnected = true;\n Platform.runLater(() -> {\n //clientViewController.checkConnectToServerButtonValidity();\n clientViewController.setServerStatusFlags(StaticData.SERVER_STATUS_RUNNING);\n clientViewController.setServerStatus(\"Connected\");\n clientViewController.lockConnectionUI();\n });\n\n }\n else {\n System.out.println(\"unable to register with server\");\n clientViewController.setServerStatusFlags(StaticData.SERVER_STATUS_CLOSED);\n clientViewController.setServerStatus(\"Unavailable\");\n clientViewController.unlockConnectionUI();\n }\n }", "title": "" }, { "docid": "42d9f940ad2845c1d196fc8a02e8fe1c", "score": "0.62550503", "text": "@Override\n public void registerServer(String hostport) throws TException {\n servers.add(hostport);// thread safe\n // when registering the server, we open the client conn\n clients.put(hostport, generateClient(hostport));\n }", "title": "" }, { "docid": "6702a8d9dc72419ecd8bc5c4e635984a", "score": "0.61047286", "text": "public void register() {\r\n\t\tSocket socket = null;\r\n\t\tObjectInputStream inputStream = null;\r\n\t\tObjectOutputStream outputStream = null;\r\n\r\n\t\ttry {\r\n\t\t\t/* create message object to send it to index server */\r\n\t\t\tMessage msg = new Message();\r\n\t\t\t/* to indicate its a peer registration request */\r\n\t\t\tmsg.setAction(CommonUtil.ACTION_REGISTER);\r\n\t\t\tList<String> fileList_1 = new ArrayList<String>();\r\n\t\t\tfor (int i = 1; i <= 10; i++) {\r\n\t\t\t\tfileList_1.add(i + \"kb_p1.txt\");\r\n\t\t\t}\r\n\t\t\tfileList_1.add(\"common_p1_p2.txt\");\r\n\t\t\tfileList_1.add(\"common_p1_p3.txt\");\r\n\t\t\t\r\n\t\t\tsocket = new Socket(indexServerHostName, 5555);\r\n\t\t\tSystem.out.println(\"Registering peer 1\");\r\n\t\t\toutputStream = new ObjectOutputStream(socket.getOutputStream());\r\n\t\t\t/* peerModel hold the details of the peer Object */\r\n\t\t\tPeerModel p1 = new PeerModel(InetAddress.getLocalHost().getHostName(), \"1111\", fileList_1, \"\");\r\n\t\t\tmsg.setModel(p1);\r\n\t\t\t/* write to output stream */\r\n\t\t\toutputStream.writeObject(msg);\r\n\t\t\toutputStream.flush();\r\n\t\t\t/* input stream for the response received from Index server */\r\n\t\t\tinputStream = new ObjectInputStream(socket.getInputStream());\r\n\t\t\tSystem.out.println(\"peer 1 have been registered at Index server successfully at \" + msg.getModel().getId());\r\n\t\t\tThread.sleep(1000);\r\n\r\n\t\t} catch (SocketException se) {\r\n\t\t\tse.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f605a2ebeff5fb2788ee415b6b876499", "score": "0.6099188", "text": "private void startListeningToRegisters(){\n // client\n sms.registerCompletableOperation(\"clientRegister\", (a,b)->{\n System.out.println(id + \": register request arrived\");\n MessageAuth msg = s.decode(b);\n return publisher.register(msg.getUsername(), msg.getPassword())\n .thenApply(s::encode);\n });\n }", "title": "" }, { "docid": "6fa027ba073df0e2564653d6991ca34b", "score": "0.60522574", "text": "@Override\n\tpublic void regApp(IAppServer appServer) {\n\t\tsender = appServer;\n\t\toldSyncServer=new OldSyncServer();\n\t\tnewSyncServer=new NewSyncServer();\n\t\t\n\t}", "title": "" }, { "docid": "b379a5ac76d01d1a672b007854a3bd4e", "score": "0.5996165", "text": "private void getConnectionToServer() {\n try {\n String rmiUrl = \"rmi://localhost:8888/RegistrationServer\";\n registrationInterface = (RegistrationInterface) Naming.lookup(rmiUrl);\n } catch (Exception e) {\n System.out.println(\"Error while connecting to server...\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "2dedaa983d2f78085b40c7895fa6105b", "score": "0.5983687", "text": "public void addModel(ServerModel _model){this.model = _model;}", "title": "" }, { "docid": "82a9f381b90a141bf17eca14e333e419", "score": "0.5939764", "text": "public ClientRegistration() {\r\n\t\tinitialize();\r\n\t}", "title": "" }, { "docid": "dc0ddd4b3b50719fe9f4c7cf1579ba24", "score": "0.5862225", "text": "public void createServerEntry() {\n try {\n // we don't need to create a Middleware object, since 'this' already is one\n\n // Dynamically generate the stub (client proxy)\n IResourceManager resourceManager = (IResourceManager)UnicastRemoteObject.exportObject(this, 0);\n\n // Bind the remote object's stub in the registry\n Registry l_registry;\n try {\n l_registry = LocateRegistry.createRegistry(1099);\n } catch (RemoteException e) {\n l_registry = LocateRegistry.getRegistry(1099);\n }\n final Registry registry = l_registry;\n registry.rebind(s_rmiPrefix + s_serverName, resourceManager);\n\n Runtime.getRuntime().addShutdownHook(new Thread() {\n public void run() {\n try {\n registry.unbind(s_rmiPrefix + s_serverName);\n System.out.println(\"'\" + s_serverName + \"' resource manager unbound\");\n }\n catch(Exception e) {\n }\n System.out.println(\"'\" + s_serverName + \"' Shut down\");\n }\n });\n System.out.println(\"'\" + s_serverName + \"' resource manager server ready and bound to '\" + s_rmiPrefix + s_serverName + \"'\");\n }\n catch (Exception e) {\n System.err.println((char)27 + \"[31;1mServer exception: \" + (char)27 + \"[0mUncaught exception\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "title": "" }, { "docid": "525efb07d366846871e0fa5fd3241777", "score": "0.5858069", "text": "public interface MesswertServer extends Remote {\n\n public void registerClient(MesswertClient client, int start, int end) throws RemoteException;\n\n}", "title": "" }, { "docid": "9093501746c9f9a3b653e4e0db578edb", "score": "0.58350265", "text": "public void onNewClientRegister(ReplicationSubscriber subscriber) {\n if (registeredSubscribers.contains(subscriber)) {\n log.warn(\"Client {} with model {} already registered!\", subscriber.getClientName(), subscriber.getModel());\n return;\n }\n // TODO (V2): Currently we add a default subscriber for logical group use case instead of listening on client\n // registration. Subscriber should be added upon registration after grpc stream for session creation is added.\n registeredSubscribers.add(subscriber);\n }", "title": "" }, { "docid": "b6470c77926bca8a3ae3581b367d7c36", "score": "0.57768685", "text": "private void sendRegistrationIdToBackend() {\n // Your implementation here.\n }", "title": "" }, { "docid": "d37b635ceedd5054cd38e85e1511bf8b", "score": "0.57410413", "text": "public void registered() {}", "title": "" }, { "docid": "b4dc8a8526597cfd9aee35c41e4ace5e", "score": "0.5717943", "text": "public void onRegister();", "title": "" }, { "docid": "cb2b5ca1a581f3eb8a9801a0d2ec99e2", "score": "0.57172334", "text": "@Override\n\tpublic void setServer(Server arg0) {\n\n\t}", "title": "" }, { "docid": "9f7faab6f1b5c3b534290a8e844e1a63", "score": "0.56684947", "text": "@Override\n protected void register(Request request, Builder response) {\n String objectParam =\n request.getBundle().containsKey(Request.Parameter.OBJECT_ID) ?\n Request.Parameter.OBJECT_ID :\n Request.Parameter.OBJECT_ID_LIST;\n validateRequest(request, Request.Action.REGISTER, Message.Parameter.ACTION,\n Message.Parameter.CLIENT, objectParam);\n if (!validateClient(request)) {\n response.setStatus(Response.Status.INVALID_CLIENT);\n return;\n }\n response.setStatus(Response.Status.SUCCESS);\n }", "title": "" }, { "docid": "5928fe680c26add0bac67a4e70832ff1", "score": "0.5656021", "text": "@Override\n\tpublic void registerMOs(final MOServer server, final OctetString context)\n\t\t\tthrows DuplicateRegistrationException {\n\t\tserver.register(this.entPhysicalEntry, context);\n\t\tserver.register(this.entPhysicalContainsEntry, context);\n\t}", "title": "" }, { "docid": "795db51c02821cc1ee884f9cc45ec181", "score": "0.5638762", "text": "public interface RegisterPersonServerListener {\n\n /**\n * Notify when the server has been started.\n *\n * @param server\n */\n void serverStarted(final RegisterPersonServer server);\n\n /**\n * Notify when the server has been disconnected.\n *\n * @param server\n */\n void serverShutdown(final RegisterPersonServer server);\n\n}", "title": "" }, { "docid": "acd1b50f5371d2bcd47d69a6f9db7515", "score": "0.5598724", "text": "public void init() {\n\n if (defaultHost != null) {\n mapper.setDefaultHostName(defaultHost);\n }\n\n try {\n\n mBeanServer = Registry.getRegistry(null, null).getMBeanServer();\n\n // Query hosts\n String onStr = domain + \":type=Host,*\";\n ObjectName objectName = new ObjectName(onStr);\n Set<ObjectInstance> set = mBeanServer.queryMBeans(objectName, null);\n Iterator<ObjectInstance> iterator = set.iterator();\n while (iterator.hasNext()) {\n ObjectInstance oi = iterator.next();\n registerHost(oi.getObjectName());\n }\n\n // Query contexts\n onStr = domain + \":j2eeType=WebModule,*,J2EEServer=\" + myInstance;\n objectName = new ObjectName(onStr);\n set = mBeanServer.queryMBeans(objectName, null);\n iterator = set.iterator();\n while (iterator.hasNext()) {\n ObjectInstance oi = iterator.next();\n registerContext(oi.getObjectName());\n }\n\n // Query wrappers\n onStr = domain + \":j2eeType=Servlet,*,J2EEServer=\" + myInstance;\n objectName = new ObjectName(onStr);\n set = mBeanServer.queryMBeans(objectName, null);\n iterator = set.iterator();\n while (iterator.hasNext()) {\n ObjectInstance oi = iterator.next();\n registerWrapper(oi.getObjectName());\n }\n\n onStr = \"JMImplementation:type=MBeanServerDelegate\";\n objectName = new ObjectName(onStr);\n /* SJSAS 6313044\n mBeanServer.addNotificationListener(objectName, this, null, null);\n */\n // START SJSAS 6313044\n mBeanServer.addNotificationListener(objectName, this, this, null);\n // END SJSAS 6313044\n } catch (Exception e) {\n log.log(Level.WARNING, \"Error registering contexts\", e);\n }\n\n }", "title": "" }, { "docid": "7f35cd063590e7794ef49000625862a2", "score": "0.5582621", "text": "@Listener(order = Order.EARLY)\n\tpublic void onServerStart(GameStartedServerEvent event) {\n\t\tthis.registerLastUsedChannelController();\n\t\tthis.registerPlayerChannelController();\n\t\tthis.registerRangedChannelController();\n\t}", "title": "" }, { "docid": "95ae3fbacfb1542f940ab11f8c3e5856", "score": "0.5570891", "text": "public void initModel(String _nomeServer)\n\t{\n\t\tmodel.setServerName(_nomeServer);\n\t\tmodel.setServerRef(this);\n\t\tmodel.setLogColor(Color.RED);\n\t\tmodel.addLogText(\"[Server \" + _nomeServer + \"] Log di sistema:\");\n\t}", "title": "" }, { "docid": "d13134912cf4040c0659ca612fab431a", "score": "0.5560597", "text": "@Override\r\n\t\t\t\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\t\t\t\tServerUtilities.register(context, name, email, regId);\r\n\t\t\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "13c633ff46bd972d367a7fe01d1487d2", "score": "0.5558036", "text": "protected ServiceRegisterSupport(Settings settings, Messages messages, ServerSupport serverSupport) {\n\t\tsuper(settings);\n\t\tthis.messages = messages;\n\t\tthis.serverSupport = serverSupport;\n\t}", "title": "" }, { "docid": "22e57f44505bb643c9237d65ba0c60e7", "score": "0.555111", "text": "void newServerConnected(Server s) throws RemoteException;", "title": "" }, { "docid": "c36138e65af89492cbe43e35e078925d", "score": "0.5532461", "text": "public ServerRegisterGit(Socket cliente){\n\t\tthis.service = cliente;\n\t}", "title": "" }, { "docid": "d0b69751626dfd9bab1f689decae9039", "score": "0.54922533", "text": "private void register() throws Exception{\n\t\t// on registration, get a service discovery layer object\n\t\t// register the service and triggers/actions\n\t\t// these information will be registered to android communication process \n\t\tsdl = new ServiceDiscoveryLayer(true);\n\t\tsdl.registerApp(this, \"RegistrationService\", getApplicationContext());\n\n\t\t// register the service \"RegistrationService\" whose intent filter name is \"RegistrationService\"\n\t\tserviceId = sdl.registerNewService(\"RegistrationService\");\n\n\t\tsdl.registerTriggers(\"getInfoReceived\", \"getInfo\", this.getClass());\n\t}", "title": "" }, { "docid": "6d28976cf3b18de2668b437d14af34c3", "score": "0.54780746", "text": "private void addToServer() {\n try {\n Socket socket = new Socket(SERVER_IP, ChatServer.SERVER_PORT);\n\n requestToServer(socket, ChatServer.ADD);\n sendScreen(socket, screen);\n sendIP(socket, socket.getLocalAddress().getAddress());\n sendPort(socket, serverSocket.getLocalPort());\n\n socket.close();\n }\n catch (UnknownHostException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8f38214b5e4cbd188fec7fdb427459a5", "score": "0.5476269", "text": "public ServerRegisterGit(){}", "title": "" }, { "docid": "1fb75c84b5dcb55aa0ffb184a62e9015", "score": "0.54489625", "text": "abstract protected void onNewClientConnected(MS_ClientOfServer client);", "title": "" }, { "docid": "22d6e073dfe0a3609ea50cace7586701", "score": "0.54470885", "text": "@Override\n\tprotected void onRegistered(Context cntxt, String id) {\n\t\tif(!mIsEnabled) return;\n\t\ttry {\n\t\t\tmRestClient.put(null, Constants.REST_CONTROL_PATH, id);\n\t\t} catch (RestException ex) {\n\t\t\t// TODO repeat authentication to server\n\t\t\tLog.w(LOG_TAG, \"Registration id has not been send to server successfully.\");\n\t\t}\n\t}", "title": "" }, { "docid": "7b8dfee4b2924aab6bfe74fbd498a493", "score": "0.54461765", "text": "public void connectToClientServer(){\n this.isConnectedToClientServer = true;\n }", "title": "" }, { "docid": "90eac62e18b8b69c8a7210daa9fa7985", "score": "0.54452926", "text": "@Override\n\tpublic String registerServer(String address) throws RemoteException {\n\t\tServerInfo server = new ServerInfo();\n\t\tString name = \"server\" + Integer.toString(nServers);\n\t\tserver.address = address;\n\t\tserver.name = name;\n\t\tnServers++;\n\t\treturn name;\n\t}", "title": "" }, { "docid": "bef15d6fb4c198a0571e65dea80ee178", "score": "0.5439149", "text": "public void serverInit()\n\t{\n\t\t//inizio le operazioni di avvio del server...\n\t\tint logPos = model.addLogText(\"inizializzazione server...\");\t\t\n\t\tserverRebind(model.getServerName(),this);\t\t//pubblico il mio nome cosi' i clients possono collegarsi\n\t\tmodel.addLogTextToLine(logPos,\" completata!\");\n\t\tmodel.setLogColor(Color.BLUE);\n\t\tconnect2server();\t\t\t\t\t\t\t\t//controllo i server online e mi connetto ad essi\n\t\tstartBackgroundThreads();\t\t\t\t\t\t//avvio i threads che girano in background\n\t}", "title": "" }, { "docid": "5db7641dc137f21d70f1871479298d7e", "score": "0.54066616", "text": "public void serve() {\n try {\n //server listens to port 9090\n ServerSocket s = new ServerSocket(9090);\n while (true) {\n Socket socket = s.accept();\n //Stream to receive client objects\n ObjectInputStream i = new ObjectInputStream(socket.getInputStream());\n Object method = i.readObject();\n \n //server sends RemoteObjectReference object first \n //client sends String object first\n //checking object type will reveal if request is from server/client\n if (method instanceof RemoteObjectReference) {\n \n //Additionally server sends String object to bind\n myServer.bind((String) i.readObject(), (RemoteObjectReference)method);\n socket.close();\n \n } else if (method instanceof String) {\n //stream to send objects to client\n ObjectOutputStream o = new ObjectOutputStream(socket.getOutputStream());\n //lookup string in treemap of myServer and send to client\n o.writeObject(myServer.lookup((String) method));\n o.flush();\n socket.close();\n }\n }\n } catch (Exception t) {\n System.out.println(\"Error \" + t);\n System.exit(0);\n }\n }", "title": "" }, { "docid": "0f50775beb44fbd05aad7cdb1594b173", "score": "0.5397833", "text": "public Binder_Skeleton(Binder s) {\n myServer = s;\n }", "title": "" }, { "docid": "5365b1f86be779cb870904d72b7e18d8", "score": "0.5397467", "text": "@Override\n\t\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\t\tServerUtilities.register(context, \"nothing\",\n\t\t\t\t\t\t\t\t\t\"nothing\", regId);\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}", "title": "" }, { "docid": "d0bcd3e1110c51f4c424610e6b015006", "score": "0.53971565", "text": "public ChannelFuture register()\r\n/* 158: */ {\r\n/* 159:224 */ validate();\r\n/* 160:225 */ return initAndRegister();\r\n/* 161: */ }", "title": "" }, { "docid": "89a9b315c2c20a85520d208e5596daee", "score": "0.53788394", "text": "@Override\n\tpublic void start() throws Throwable{\n\t\tregistry.export(this, IServer.class);\n\t\tregistry.export(registry, IRegistry.class);\n\t\tregistry.export(serverGC, IServerGC.class);\n\t\tregistry.export(clientGC,IClientGC.class);\n\t\n\t\tserver=new ServerBootstrap();\n\t\tserver.group(group)\n\t\t\t .channel(NioServerSocketChannel.class)\n\t\t\t .localAddress(serverAddress.getHost(), serverAddress.getPort())\n\t\t\t .childHandler(new ChannelInitializer<Channel>() {\n\t\t\t\t public void initChannel(Channel c) throws Exception{\n\t\t\t\t\t Injector injector=provider.get();\n\n\t\t\t\t\t c.pipeline().addLast(injector.getInstance(ServerErrorHandler.class));\n\t\t\t\t\t c.pipeline().addLast(injector.getInstance(ObjectDecoder.class));\n\t\t\t\t\t \n\t\t\t\t\t ObjectEncoder objectEncoder=new ObjectEncoder(null);\n\t\t\t\t\t injector.injectMembers(objectEncoder);\n\t\t\t\t\t c.pipeline().addLast(objectEncoder);\n\n\t\t\t\t\t c.pipeline().addLast(injector.getInstance(ServerDecoder.class));\n\t\t\t\t }\n\t\t\t});\n\t\tChannelFuture future=server.bind().sync();\n\t\tif (!future.isSuccess()){\n\t\t\tthrow future.cause();\n\t\t}\n\t\tserverChannel=future.channel();\n\t\t\n\t\t//setting the port again in case the port is 0 and an anonymous one is used\n\t\tserverAddress.setPort(((InetSocketAddress)server.config().localAddress()).getPort());\n\t\t\n\t\tlocalServers.put(serverAddress.getPort(), this);\n\t}", "title": "" }, { "docid": "d39025eaf766fe98fd1d414f7285feb4", "score": "0.5378603", "text": "public void xtestRegister() throws Exception {\n EJBServiceContext ctx = new EJBServiceContext(map);\n ServiceProxy p = ctx.create( \"SessionServer\");\n Object[] args = new Object[]{\n \"emn\", \"hello info\"\n };\n System.out.println(\"session is ->\"+p.invoke( \"register\", args ));\n }", "title": "" }, { "docid": "484be140ac65a8d70396fe1ff728c8bf", "score": "0.5371578", "text": "public void registerClient(cMsgClientInfo info) throws cMsgException;", "title": "" }, { "docid": "80838908fcaf8798a6476393fdeb403d", "score": "0.53641367", "text": "public void onStartServer();", "title": "" }, { "docid": "b9453aa4e947d10de463849504ffae39", "score": "0.5361852", "text": "private void sendRegister(){\n\t\t//Send command to server and wait till server gets it\n\t\tsynchronize = true;\n\t\tout.println(\"REGISTER\");\n\t\tout.flush();\n\t\twhile(synchronize){\n\t\t\ttry{\n\t\t\t\tprocessCommand(in.readLine());\n\t\t\t}catch(Exception e){\n\t\t\t\t//Handle the error\n\t\t\t}\t\n\t\t}\t\n\t}", "title": "" }, { "docid": "e855d2da3a5846a220f65de164eb1a2d", "score": "0.5361501", "text": "@Override\r\n\tpublic void modelChanged() \r\n\t{\r\n\t\t//Transmit model to other side\r\n\t\tsynchronized(this.model)\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tthis.sendObject(model);\r\n\t\t\t}\r\n\t\t\tcatch (IOException e) \r\n\t\t\t{\r\n\t\t\t\tSystem.err.println(\"SOCKET ERROR - CLOSING CONNECTION\");\r\n\t\t\t\t//TODO close connection and delete player\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "92258f004399815aaafe229d9e129ab4", "score": "0.5361071", "text": "public void setupServer() {\n TaskItServer.setupServerJob setup = new TaskItServer.setupServerJob();\n setup.execute();\n }", "title": "" }, { "docid": "9cc9d64af2da61fcc61bf7140fdfb419", "score": "0.534845", "text": "@Override\n\tpublic void registerOn(Controller c) {\n\t\t\n\t}", "title": "" }, { "docid": "f947239b13f7201fed3dae228c9f427f", "score": "0.5345931", "text": "private void initChatServer() {\n\t\talgo.setCmd(IAddCmdMsg.class, new AddCmdCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(IAddMeMsg.class, new AddMeCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(ILeaveMsg.class, new LeaveCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(INewCmdReqMsg.class, new NewCmdReqCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(IInvite2RoomMsg.class, new Invite2RoomCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(ITextMsg.class, new TextCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(ImageMsg.class, new ImageCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(GameInfo.class, new GameInfoCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(StartGameMsg.class, new StartGameCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(AvatarUpdateInfo.class, new AvatarUpdateCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(CityUpdateInfo.class, new CityUpdateCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(EndGameMsg.class, new EndGameCmd(localCmd2ModelAdapter));\n\t\talgo.setCmd(DiceMsg.class, new DiceCmd(localCmd2ModelAdapter));\n\t}", "title": "" }, { "docid": "8cefbf70842b8636917e08a6495630ef", "score": "0.5342943", "text": "private void setControllerServer() {\n\t\tString connectedServer = Store.get(\"saved_ip\", this.context);\n\t\tif(! Pattern.matches(\"^http://.*\", connectedServer))\n\t\t\tconnectedServer = \"http://\" + connectedServer;\n\t\t\n\t\tthis.controllerServer = connectedServer;\n\t}", "title": "" }, { "docid": "6a866449813368a71d728159d1d43210", "score": "0.53241277", "text": "public interface RegisterModelListener {\n void success(RegisterBean registerBean);\n}", "title": "" }, { "docid": "4d87adac169f2c2d5c4b5060002d841e", "score": "0.53202605", "text": "static public void register(EndPoint endPoint) {\n Kryo kryo = endPoint.getKryo();\n kryo.register(Login.class);\n kryo.register(AddCharacter.class);\n kryo.register(UpdateCharacter.class);\n kryo.register(RemoveCharacter.class);\n kryo.register(ChatMessage.class);\n kryo.register(Player.class);\n kryo.register(AddMonster.class);\n kryo.register(UpdateMonster.class);\n kryo.register(RemoveMonster.class);\n kryo.register(MoveCharacter.class);\n kryo.register(HitEffect.class);\n }", "title": "" }, { "docid": "7420ed9a4bd168a4e2bec99b465c9b66", "score": "0.53181607", "text": "public void registerModule(Object objClient, String SymbolicName)\n throws InitializationException\n {\n ((IEventInterface)objClient).registerClientManager();\n }", "title": "" }, { "docid": "c81925f2ea20d8b16236de84d96faf45", "score": "0.53167593", "text": "public SoulServerMetaDataRegisterEventHandler(final SoulClientRegisterService soulClientRegisterService) {\n this.soulClientRegisterService = soulClientRegisterService;\n }", "title": "" }, { "docid": "54555763174a6079611dcbd673137187", "score": "0.5310355", "text": "String registerModel(Model model);", "title": "" }, { "docid": "a70ae54e633c1616a226b379224dc271", "score": "0.53050417", "text": "@Override\n public void startServerConnections() throws RemoteException {\n MixingProxyUserService mixingProxyUserServiceStub = (MixingProxyUserService) UnicastRemoteObject\n .exportObject((MixingProxyUserService) mixingProxyUserServer, 0);\n\n Registry mixingProxyUserServiceRegistry = LocateRegistry.createRegistry(mixingProxyUserRMIServerPort);\n mixingProxyUserServiceRegistry.rebind(\"MixingProxyUserService\", mixingProxyUserServiceStub);\n\n //Start the mixing proxy registrar server\n MixingProxyRegistrarService mixingProxyRegistrarServiceStub = (MixingProxyRegistrarService) UnicastRemoteObject\n .exportObject((MixingProxyRegistrarService) mixingProxyRegistrarServer, 0);\n\n Registry mixingProxyRegistrarServiceRegistry = LocateRegistry.createRegistry(mixingProxyRegistrarRMIServerPort);\n mixingProxyRegistrarServiceRegistry.rebind(\"MixingProxyRegistrarService\", mixingProxyRegistrarServiceStub);\n\n\n System.out.println(\"Started all RMI server instances\");\n }", "title": "" }, { "docid": "3084088029830a1c0a3805ad679fefe6", "score": "0.5303668", "text": "public Register() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "5f8beae1637c51846f6cf949d7bca9b9", "score": "0.5301346", "text": "public void onServerStarted(Server server);", "title": "" }, { "docid": "2c2226c2af63ceb7e6045befab27f438", "score": "0.52978116", "text": "void initServerEndpoint();", "title": "" }, { "docid": "39c04b5e44e4d3d3786342d3a39ad100", "score": "0.52975917", "text": "public interface Server {\n void setRegiterCenter(ConcreteRegiterCenter regiterCenter);\n\n void update(HashMap<String, String> map);\n}", "title": "" }, { "docid": "1a7d15e058ea3fef618b42ebf53f7729", "score": "0.52923506", "text": "@Override\n\tpublic void addRegister() {\n\t}", "title": "" }, { "docid": "18c4c988433d8da3b3067f7465c18fbd", "score": "0.5291729", "text": "public void startRegistration() {\n }", "title": "" }, { "docid": "ac9eef285325bf1ca08dc5fa623c6350", "score": "0.52916", "text": "public interface ServerModel {\r\n\r\n\t/**\r\n\t * @return Returns the uniqueId.\r\n\t */\r\n\tpublic ServerId getServerId();\r\n\t\t\t\r\n\t/**\r\n\t * @return Returns the threadManager.\r\n\t */\r\n\tpublic ThreadManager getThreadManager();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Returns the interfaceManagerFactory.\r\n\t */\r\n\tpublic ServerInterfaceManagerFactory getInterfaceManagerFactory();\r\n\t\r\n\r\n\t/**\r\n\t * Getter for log format.\r\n\t * \r\n\t * @return The log format.\r\n\t */\r\n\tpublic String getLogFormat();\r\n}", "title": "" }, { "docid": "e3a72c4acd1307127a7c41e19f020227", "score": "0.52906233", "text": "private void registerBindings(){\t\t\r\n\t}", "title": "" }, { "docid": "d8850dff6fb6ba2e25d0994408dc1493", "score": "0.52819455", "text": "@Override\n protected void startPncRegister() {\n }", "title": "" }, { "docid": "f9fe58f6ff770944ba52cb96c68ace8a", "score": "0.527406", "text": "public static void register(EndPoint ep){\n\t Kryo kryo = ep.getKryo();\n\t kryo.register(Request.class);\n\t kryo.register(Response.class);\n\t kryo.register(HashMap.class);\n\t kryo.register(ArrayList.class);\n }", "title": "" }, { "docid": "ba8b369a3a0782db82f475bceb2d6c53", "score": "0.52715033", "text": "@Override\r\n\tpublic void start() {\r\n\t\tLog.write(LogType.NET, \"Connecting to \" + ClientConfig.SERVER_IP + \":\" + ClientConfig.COMM_PORT + \"...\");\r\n\t\t\r\n\t\tfor(Class serial : ClientGlobal.SERIAL_OBJECTS) {\r\n\t\t\tclient.getKryo().register(serial);\r\n\t\t\tLog.write(LogType.NET, \"Client registered serialized object :: \" + serial.getSimpleName());\r\n\t\t}\r\n\t\t\r\n\t try {\r\n\t \t//Start the kryonet client's multithreading\r\n\t\t\tclient.start();\r\n\t\t\t\r\n\t\t\t//Attempt connection to server ip with port in config file\r\n\t\t\tclient.connect(5000, ClientConfig.SERVER_IP, ClientConfig.COMM_PORT);\r\n\t\t} catch (IOException e) {\r\n\t\t\t//Connection failed\r\n\t\t\tLog.write(LogType.NET, \"Fatal error while connecting to server\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t \r\n\t if(client.isConnected()) {\r\n\t \t//Connection successful, start the remote listeners\r\n\t \tLog.write(LogType.NET, \"Connected to remote server, starting listeners...\");\r\n\t \thookListeners();\r\n\t } else {\r\n\t \t//Connection failed, but no exceptions were thrown\r\n\t \tLog.write(LogType.NET, \"Connection to remote server not formed (unspecific error)\");\r\n\t \treturn;\r\n\t }\r\n\t}", "title": "" }, { "docid": "c066c50128b9957434547dff021d3212", "score": "0.5270945", "text": "private void registerWithRegistry(String hostName, int portNum)\n {\n try\n {\n\n /**\n * Socket to the registry\n */\n Socket clientSocket = new Socket(hostName, portNum);\n\n\n /**\n * Set the ip address of this node (wasn't able to do via the ServerSocket)\n * as well as initialize the node's ID with this registration request.\n */\n _listeningIP = clientSocket.getLocalAddress().getCanonicalHostName();\n _ID = _listeningIP + \":\" + _listeningPort;\n\n /**\n * TCPSender to send a message to the client\n */\n TCPSender sender = new TCPSender(clientSocket);\n\n\n /**\n * This is sort of confusing, but we are creating the message with the connection info from this socket.\n * The listening IP is the same no matter if its the ServerSocket or a normal Socket, but the port used\n * by the Registry to verify REGISTRATION_REQUEST messages is specific to the current outgoing socket.\n */\n RegistrationRequest registrationMessage = (RegistrationRequest) EventFactory.getFactoryInstance()\n .createEvent(Protocol\n .REGISTRATION_REQUEST, getListeningIP(), clientSocket.getLocalPort(), getID());\n\n /**\n * Set the field in the message for the port that other messaging nodes should initially connect to;\n * to be later used by the Registry when creating MessagingNodeLists to send to the Overlay.\n */\n registrationMessage.setNodeServerPort(getListeningPort());\n\n // send the message\n sender.sendData(registrationMessage.getBytes());\n\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "ee7c9340fbe155411da5b2ee90408f3c", "score": "0.5264237", "text": "@Override\n\tpublic void registerModels() \n\t{\n\t\tMain.proxy.registerItemRenderer(this, 0, \"inventory\");\n\t}", "title": "" }, { "docid": "382e293b0e92f9e9d1f0615e2843ac6c", "score": "0.52617913", "text": "private void registerZooKeeper() throws ZooKeeperBindFailedException, ZooKeeperUnbindFailedException, ServerBindFailedException, ServerAlreadyStartedException, ServerThreadInterruptedException {\n\t\tZKNaming zkNaming = null;\n\t\ttry {\n\t\t\tzkNaming = new ZKNaming(zooHost, zooPort);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tzkNaming.rebind(path, host, port);\n\t\t\t} catch (ZKNamingException e) {\n\t\t\t\tthrow new ZooKeeperBindFailedException(zooHost, zooPort, host, port, path);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Server binded to ZooKeeper\");\n\t\t\t\n\t\t\tRuntime.getRuntime().addShutdownHook(getShutdownThread(zkNaming));\n\t\t\t\n\t\t\trunServer();\n\t\t} finally {\n\t\t\tif (zkNaming != null) {\n\t\t\t\ttry {\n\t\t\t\t\tzkNaming.unbind(path, host, port);\n\t\t\t\t} catch (ZKNamingException e) {\n\t\t\t\t\tthrow new ZooKeeperUnbindFailedException(zooHost, zooPort, host, port, path);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Server unbinded from ZooKeeper\");\n\t\t\t\t\n\t\t\t\tRuntime.getRuntime().removeShutdownHook(shutdownThread);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "18ae0c43dbaea50f8989940b31c8a106", "score": "0.52564675", "text": "public MyController(Model model, Server server) {\r\n\t\tsuper(model, server);\r\n\t}", "title": "" }, { "docid": "c4e610224737e6fe945ee44a40cd8f4a", "score": "0.52546227", "text": "public ServerAdapter(List<ServerModel> myServers) {\n this.myServers = myServers;\n }", "title": "" }, { "docid": "7971f987b08bf118bef1884570645f12", "score": "0.52520984", "text": "private void lookupRegisterEvent(){\n \t// Check if there is an error\n \tif(packetFromLookup.error_code == MazePacket.ERROR_LOOKUP_PORT){\n \t\tSystem.out.println(\"Try a different port!\");\n \t\tMazewar.quit();\n \t}\n \t\n // Get the current lookup table\n lookupTable = new ConcurrentHashMap();\n lookupTable = packetFromLookup.lookupTable;\n\n myId = packetFromLookup.client_id;\n //data.addSocketOutToList(myId, out);\n\n // Connect to all currently existing users\n // Save their out ports!\n if(!lookupTable.isEmpty()){\n Object[] keys = lookupTable.keySet().toArray();\n int size = lookupTable.size(); \n\n // Connect to all client listeners, except for yourself\n for(int i = 0; i < size; i++){\n int key = Integer.parseInt(keys[i].toString());\n\n if (key == myId) continue;\n\n System.out.println(\"Adding client \" + key);\n\n ClientData client_data = lookupTable.get(key);\n String client_host = client_data.client_host;\n int client_port = client_data.client_port;\n\n Socket socket = null;\n ObjectOutputStream t_out = null;\n ObjectInputStream t_in = null;\n\n // Save socket out!\n try{\n socket = new Socket(client_host, client_port);\n\n t_out = new ObjectOutputStream(socket.getOutputStream());\n //t_in = new ObjectInputStream(socket.getInputStream());\n\n data.addSocketOutToList(key, t_out);\n\n System.out.println(\"Success!\");\n } catch(Exception e){\n System.err.println(\"ERROR: Couldn't connect to currently existing client\");\n }\t\t\t\t \n }\n broadcastNewClient();\n }\n }", "title": "" }, { "docid": "8dc5c7d97eb78dbfd6192078681ab9a8", "score": "0.52511877", "text": "@Override\n public String registerAndGetId() throws RemoteException {\n StringBuilder id = new StringBuilder();\n for(int i=0;i<32;i++)\n id.append((char)('0' + Rand.nextInt(10)));\n\n String ids = id.toString();\n ClientConnRMI conn = new ClientConnRMI(this, ids);\n if(Server.getInstance().addClient(conn))\n mMap.put(ids, conn);\n else\n conn.disconnect();\n return ids;\n }", "title": "" }, { "docid": "f09e998bc79f5631fc53ece8beec9a26", "score": "0.52439857", "text": "List<InetSocketAddress> registerServer(InetSocketAddress serverAddress);", "title": "" }, { "docid": "e97722e26b78bece4ff3ba8bad8ef829", "score": "0.52415216", "text": "void register();", "title": "" }, { "docid": "1da0784bfb1deeb834cfc081accc7fa4", "score": "0.52407753", "text": "private void registerBindings(){\t\t\n\t}", "title": "" }, { "docid": "1da0784bfb1deeb834cfc081accc7fa4", "score": "0.52407753", "text": "private void registerBindings(){\t\t\n\t}", "title": "" }, { "docid": "1da0784bfb1deeb834cfc081accc7fa4", "score": "0.52407753", "text": "private void registerBindings(){\t\t\n\t}", "title": "" }, { "docid": "1da0784bfb1deeb834cfc081accc7fa4", "score": "0.52407753", "text": "private void registerBindings(){\t\t\n\t}", "title": "" }, { "docid": "4a053fa5ddf9d1d466cccc1e21d430dc", "score": "0.52367777", "text": "@Override\n public void onEnable() {\n registerManagers();\n registerListeners();\n registerCommands();\n }", "title": "" }, { "docid": "2801e708432ed748b890e9a9fd632bd0", "score": "0.5234907", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tserver.nomClients.add(nomClient + \" - \" + clientSocket.getRemoteSocketAddress());\n\n\t\t\t\t\t}", "title": "" }, { "docid": "da0135f9da1d80be5b1f0f4273e5358a", "score": "0.5233639", "text": "@Override\n public void prepare(FusekiServer.Builder builder, Set<String> datasetNames, Model configModel) {\n builder.registerOperation(myOperation, new MyCustomService());\n datasetNames.forEach(name->builder.addEndpoint(name, \"extra\", myOperation));\n }", "title": "" }, { "docid": "a9414f94b5550056926ffd9cc6f80f37", "score": "0.52303994", "text": "public boolean registerModelRemoteObserver(ModelObserverInfo observerInfo) {\n if (getRemoteService() == null) {\n DSLog.e(\"Failed to register observer, error: not connected to data service.\", new Object[0]);\n return false;\n }\n try {\n if (((IDataServiceCall) getRemoteService()).registerModelObserver(observerInfo, new RemoteModelObserver(observerInfo), null) == 0) {\n DSLog.d(\"Register observer for %s.\", observerInfo.getModelClazz().getSimpleName());\n return true;\n }\n DSLog.e(\"Failed to register observer for %s.\", observerInfo.getModelClazz().getSimpleName());\n return false;\n } catch (RemoteException | RuntimeException e) {\n DSLog.e(\"Failed to register observer for %s, error: %s.\", observerInfo, e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "f81982747482743443af126f7938a0c2", "score": "0.52291673", "text": "private void clientSetup() {\n \n \n \n }", "title": "" }, { "docid": "a875fdf8a942020ebaf9e19430b36d4e", "score": "0.5227024", "text": "public void registry() {\r\n\t\t// Spawn System:\r\n\t\tgetCommand(\"setspawn\").setExecutor(new SetSpawn(this));\r\n\t\tgetCommand(\"spawn\").setExecutor(new Spawn(this));\r\n\t\tgetCommand(\"remspawn\").setExecutor(new RemoveSpawn(this));\r\n\r\n\t\t// Other:\r\n\t\tgetCommand(\"admin\").setExecutor(new AdminMode(this));\r\n\r\n\t\t// Speed:\r\n\t\tgetCommand(\"walkspeed\").setExecutor(new WalkSpeed(this));\r\n\t\tgetCommand(\"flyspeed\").setExecutor(new Flyspeed(this));\r\n\r\n\t\t// Jack\r\n\t\tthis.getServer().getPluginManager().registerEvents(new Kick(this), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new Help(this, new JackMethods(this)), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new Kill(this, new JackMethods(this)), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new opmehpls(this), this);\r\n\r\n\t\t// Chat Related:\r\n\t\tthis.getServer().getPluginManager().registerEvents(new Spam(this), this);\r\n\r\n\t\t// Join / Quit related:\r\n\t\tthis.getServer().getPluginManager().registerEvents(new JoinMessage(this), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new QuitMessages(this), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new AltAccounts(this), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new AdminMode(this), this);\r\n\t\tthis.getServer().getPluginManager().registerEvents(new DynamicMOTD(this), this);\r\n\r\n\t\t// File writer:\r\n\t\tgetCommand(\"fw\").setExecutor(new FileCommand(this));\r\n\t}", "title": "" }, { "docid": "14bbb9c38cad122ef360318252e32615", "score": "0.5224176", "text": "public void sendRegistrationIdToBackend() {\n API.getInstance(mContext).requestRegPNID(new PNRegRequest(regid),regIDSuccessListener, regIDErrorListener);\n }", "title": "" }, { "docid": "8ed077da58f2e5e6a49d62ac55c1a3b0", "score": "0.52228564", "text": "public void registerRenderInformation()\n {\n // unused server side. -- see ClientProxyPokecubeTemplate for\n // implementation\n }", "title": "" }, { "docid": "45d63a27f51fdb9e510cbd65b20437b8", "score": "0.52163255", "text": "@Override\n\tpublic Long Registration(Client client) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c0118724a446facbe5ce7512a72e1216", "score": "0.52158827", "text": "@Override\n protected void initChannel(SocketChannel sc) throws Exception {\n sc.pipeline().addLast(MarshallingCodeCFactory.buildMarshallingDecoder());\n sc.pipeline().addLast(MarshallingCodeCFactory.buildMarshallingEncoder());\n sc.pipeline().addLast(new ClientHandler());\n }", "title": "" }, { "docid": "25e9b4d6b198b345a6209517e80fe4da", "score": "0.52110696", "text": "void setServer(java.lang.String server);", "title": "" }, { "docid": "7b24784745b18732e5b092ab1ed90d24", "score": "0.5204514", "text": "@Override\n\tpublic void onRegistered(Context context, String registration) {\n\t\tboolean alreadyRegisteredWithEndpointServer = false;\n\t\ttry {\n\t\t\t// Insert core data\n\t\t\tDataHandler dataHandler = new DataHandler(getBaseContext());\n\t\t\tdataHandler.open();\n\t\t\tList<Map<String, String>> restaurants = new ArrayList<Map<String, String>>();\n\t\t\tMap<String, String> restaurant = new HashMap<String, String>();\n\t\t\trestaurant.put(\"lat\", \"0\");\n\t\t\trestaurant.put(\"lng\", \"0\");\n\t\t\trestaurant.put(\"name\", \"dummy\");\n\n\t\t\tdataHandler.insertUser(fbid, email, fbfirstname,\n\t\t\t\t\tfblastname, fbgender, (new LunchDateStatus(\n\t\t\t\t\t\t\tLunchDateStatus.STATUS_DEFAULT, \"name\", \"email\", \n\t\t\t\t\t\t\trestaurants, \"100\", \"100\")).\n\t\t\t\t\t\t\ttoJSON().toString());\n\t\t\tdataHandler.close();\n\t\t\t// Insert to backend\n\t\t\tUser createUser = new User().setEduEmail(email)\n\t\t\t\t\t.setName(fbfirstname + \" \" + fblastname)\n\t\t\t\t\t.setGender(fbgender).setFbId(fbid).setDeviceRegistrationId(registration);\n\n\t\t\t// Async task endpoint\n\t\t\tnew CreateUserTask(createUser).execute();\n\n\t\t\t/*\n\t\t\t * Using cloud endpoints, see if the device has already been\n\t\t\t * registered with the backend\n\t\t\t */\n\t\t\tDeviceInfo existingInfo = endpoint.getDeviceInfo(registration)\n\t\t\t\t\t.execute();\n\n\t\t\tif (existingInfo != null && registration.equals(existingInfo.getDeviceRegistrationID())) {\n\t\t\t\talreadyRegisteredWithEndpointServer = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Ignore\n\t\t}\n\n\t\ttry {\n\t\t\tif (!alreadyRegisteredWithEndpointServer) {\n\t\t\t\t/*\n\t\t\t\t * We are not registered as yet. Send an endpoint message\n\t\t\t\t * containing the GCM registration id and some of the device's\n\t\t\t\t * product information over to the backend. Then, we'll be\n\t\t\t\t * registered.\n\t\t\t\t */\n\t\t\t\tDeviceInfo deviceInfo = new DeviceInfo();\n\t\t\t\tendpoint.insertDeviceInfo(\n\t\t\t\t\t\tdeviceInfo\n\t\t\t\t\t\t.setDeviceRegistrationID(registration)\n\t\t\t\t\t\t.setTimestamp(System.currentTimeMillis())\n\t\t\t\t\t\t.setDeviceInformation(\n\t\t\t\t\t\t\t\tURLEncoder\n\t\t\t\t\t\t\t\t.encode(android.os.Build.MANUFACTURER\n\t\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t\t+ android.os.Build.PRODUCT,\n\t\t\t\t\t\t\t\t\t\t\"UTF-8\"))).execute();\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(GCMIntentService.class.getName(),\n\t\t\t\t\t\"Exception received when attempting to register with server at \"\n\t\t\t\t\t\t\t+ endpoint.getRootUrl(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "d2f9929c0e115b6cf891d2822a9cf177", "score": "0.519779", "text": "public void addServerField() {\n\t\taddField(SERVER_KEY, \"jaws/1.0\");\n\t}", "title": "" }, { "docid": "1cba3442c2dbbc7718f1ce34ff150d0a", "score": "0.5195795", "text": "private void registerTCPNetServer(NetServer server) throws IOException {\n ServerSocketChannel tcpServer = ServerSocketChannel.open();\n tcpServer.configureBlocking(false);\n InetSocketAddress tcpAddress = new InetSocketAddress(server.getPort());\n tcpServer.socket().bind(tcpAddress);\n registerChannel(tcpServer, SelectionKey.OP_ACCEPT, server);\n tcpServers.add(tcpServer);\n }", "title": "" }, { "docid": "70e4f15f2f886a2bf6e5e4fcc3671e51", "score": "0.51945233", "text": "public void starten() {\n\t\tMain.debug.println(\"INVOKED (\"+this.hashCode()+\", T\"+this.getId()+\") \"+getClass()+\" (ServerAnwendung), starten()\");\n\t\tsuper.starten();\n\t\tmitarbeiter = new LinkedList<ServerMitarbeiter>();\n\n\t\tausfuehren(\"annehmenVerbindungen\", null);\n\t}", "title": "" }, { "docid": "3605af9897e3ee5996ae85e21636e66e", "score": "0.51883405", "text": "@Override\n\tpublic void registerModels() {\n\t\tMain.proxy.registerItemRenderer(this, 0, \"Inventory\");\n\t}", "title": "" }, { "docid": "42a2eae962b23fb13d50c08ac1d0fced", "score": "0.5168805", "text": "public void addClient (ChatClient client) {\nrmiClientsement (client);\r\n}", "title": "" }, { "docid": "ffe95e94fb06ae6741ddc0b0fceff2ab", "score": "0.516778", "text": "public static void register(Register r) throws IOException\n\t{\n\t\tSocket register = null;\n PrintWriter out = null;\n BufferedReader input = null;\n\n try {\n\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\n\n register = new Socket(\"bluenose.cs.dal.ca\", 10000);\n out = new PrintWriter(register.getOutputStream(), true);\n out.flush();\n //out.write(\"REGISTER barney@cs.dal.ca SIPL/1.0\\nTo: barney@cs.dal.ca\\nFrom: barney@cs.dal.ca\\nCall-ID: a83fb\\nCSeq: 0\\nExpires 200\\nContact: 129.173.67.10:20120\\n\");\n out.write(r.createInfo());\n } catch (IOException e) {\n\t System.err.println(\"Couldn't open socket for the connection.\");\n\t System.exit(1);\n }\n //input.close();\n out.close();\n register.close();\n\t}", "title": "" }, { "docid": "1bb4b7ae6d21cd783e645b816738974a", "score": "0.51633054", "text": "void registerService(String serviceName) {\n List<ServiceDesc> services = myServer.services();\n List<ServiceDesc> newServices = new LinkedList<ServiceDesc>();\n for (ServiceDesc service : services) {\n if (\"workshop-service\".equals(service.service())) {\n newServices.add(service.subService(serviceName));\n }\n }\n for (ServiceDesc service : newServices) {\n myServer.registerService(service);\n }\n }", "title": "" } ]
8d966ed3d959d9a7f031022c1e0b41be
Method to return the full name of this simulation signal. The full name includes the context, if any.
[ { "docid": "9e958e5038b3ea709c92ca447ce8b329", "score": "0.6523488", "text": "@Override\n public String getFullName() {\n return ((EpicAnalysis)getAnalysis()).makeName(getIndexInAnalysis(), true);\n }", "title": "" } ]
[ { "docid": "7cc34f52aeda473552bed51f2dddf051", "score": "0.699305", "text": "public String getName() {\n\t\treturn traceValue(\"name\");\n\t}", "title": "" }, { "docid": "e43f1c1ae5107105f187b046695e5cb8", "score": "0.6910404", "text": "@Override\n public String getSignalContext() {\n return ((EpicAnalysis)getAnalysis()).makeName(getIndexInAnalysis(), false);\n }", "title": "" }, { "docid": "1084b25daaf1a14ec9a954bb1d7fed83", "score": "0.6906709", "text": "public String getName() {\n return getSignature().getName();\n }", "title": "" }, { "docid": "fca50e625bfea680d344c7be4a41659c", "score": "0.68801934", "text": "public String getName() {\n return this.sname;\n }", "title": "" }, { "docid": "b8a340c821a94da49b45ec6a8f15d77a", "score": "0.6873009", "text": "public String getName() {\n\t\tSystem.out.println(name);\n\t\treturn name;\n\t}", "title": "" }, { "docid": "ba1c0b61fbe5b026028c495ca30cc97a", "score": "0.68641806", "text": "public String getName() {\n return event.getValue().getName();\n }", "title": "" }, { "docid": "affd26022e9562c9ba2dab2bfa3cb2d9", "score": "0.6837281", "text": "public String getName() {\t//IGraph graph,\n \tStringBuffer name = new StringBuffer();\n \tgetNameRecur(name);\n \treturn name.toString();\n }", "title": "" }, { "docid": "72d4d1f70ad87cfa5968617e684d935d", "score": "0.68277043", "text": "public void getName()\n {\n System.out.println(instrumentName);\n \n }", "title": "" }, { "docid": "9647bea125e55154bf9238fb79df46b9", "score": "0.6816582", "text": "public String getName() {\n return \"\";\n }", "title": "" }, { "docid": "fc5eb4ecc5155c1e6f370c469f4e4366", "score": "0.6794528", "text": "public String getName() {\n\t\treturn toString().toLowerCase();\n\t}", "title": "" }, { "docid": "1158e6f2da81213914343d54486882ab", "score": "0.67938995", "text": "public String getAdjustedName() {\n var name = this.getProperties().getName();\n if (this.condition.equals(ArmInstructionCondition.NONE)) {\n return name;\n } else {\n return name + \".\" + this.condition.getShorthandle();\n }\n }", "title": "" }, { "docid": "388d35cede22d05c2b05966fa2e0f7af", "score": "0.6747164", "text": "public String getName()\n\t{\n\t\treturn name.toString();\n\t}", "title": "" }, { "docid": "e92ccf48a941e9aef47d9c124a857e80", "score": "0.67425925", "text": "public String getName() {\n\t\treturn this.getClass().getSimpleName();\n\t}", "title": "" }, { "docid": "d503005ebe71c8be10f0055db31d3732", "score": "0.67399645", "text": "public String getName() {\n\n if (needsSyncData()) {\n synchronizeData();\n }\n \treturn name;\n\n }", "title": "" }, { "docid": "9d8bb7b77f6a873280a4e03145614e80", "score": "0.6734374", "text": "public String toString() {\n\t\treturn getName();\n\t}", "title": "" }, { "docid": "ee367cdf56431a04a01cc98d93a1d3e2", "score": "0.6733214", "text": "public String getName() {\n if(graph != null)\n return graph.getSourceName();\n else\n return \"\";\n }", "title": "" }, { "docid": "395ce99e78bdead2d1127e4e540c3c45", "score": "0.67163116", "text": "public String getName() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(sectionID);\r\n\t\tsb.append(blockID);\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "df4f4930a11a0ea9af414f37d921024f", "score": "0.66942877", "text": "public final String getFullname()\n {\n return name + type.suffix();\n }", "title": "" }, { "docid": "449cea9c5d0d0cc1c9f084f64da5ee23", "score": "0.6693713", "text": "public java.lang.String getName() {\n return instance.getName();\n }", "title": "" }, { "docid": "4e4a86e488470d682ef894a4d0837de1", "score": "0.6686586", "text": "public StringBuffer getName() {\n return name;\n }", "title": "" }, { "docid": "b4225e7e6d35d36b48f42932da6016d3", "score": "0.66773224", "text": "public String getName() {\n return baseName;\n }", "title": "" }, { "docid": "d2ed58c79c3b07cd33040186f36f6ffe", "score": "0.6671953", "text": "public static String getName() {\r\n\t\treturn Name;\r\n\t}", "title": "" }, { "docid": "3e45acb9842b7de6116848eeb2e9bc30", "score": "0.6670727", "text": "public String getName()\r\n\t{\r\n\t\treturn (this._name);\r\n\t}", "title": "" }, { "docid": "0f379edfc79725a9362f0b9e846ca19b", "score": "0.6669621", "text": "public String toString() {\n return getName();\n }", "title": "" }, { "docid": "55662b0fc1c00cf17a5a2dc6e513808b", "score": "0.66623795", "text": "public final String getFullname()\n {\n return name + type.suffix();\n }", "title": "" }, { "docid": "19dddc0426525e90da237f53d2d8f1ec", "score": "0.6649173", "text": "public String toString() {\n return getName();\n }", "title": "" }, { "docid": "9e626d10b644625475c377c9470b13d3", "score": "0.66474825", "text": "public String getName() {\n this.checkRep();\n return this._name;\n }", "title": "" }, { "docid": "2e66c4a7c1e035856d29f8da80d8ef85", "score": "0.66446227", "text": "public String getName() {\n return new String(name);\n }", "title": "" }, { "docid": "e7e58f080aa3de2c8d929a56056c368a", "score": "0.6628481", "text": "public String GetName()\r\n\t{\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "48ab0e9498e7b95b3af03b6b0cf99b17", "score": "0.66180974", "text": "public String toString() {\n\t\treturn name();\n\t}", "title": "" }, { "docid": "cbc5e966027bde95ef71b04da95bf53e", "score": "0.66147995", "text": "public String getName() {\n\t\treturn this.getClass().getName();\n\t}", "title": "" }, { "docid": "969297dbceb36b0a843563a289fdd4b7", "score": "0.66121763", "text": "public String name() {\r\n\t\treturn _self;\r\n\t}", "title": "" }, { "docid": "bb1432ef72a8bc076aadda7313a5a821", "score": "0.6588559", "text": "public String getName() {\n return Name.get();\n }", "title": "" }, { "docid": "68ae82b6e065c4ab1cdb15b67d14f337", "score": "0.65876704", "text": "public String GetName() {\n\t\treturn _name;\n\t}", "title": "" }, { "docid": "1cfcaf3ce3e9c55af4cbb58dda60dd5f", "score": "0.65719146", "text": "public String getName() {\n return getClass().getSimpleName();\n }", "title": "" }, { "docid": "52b773a387a91c9fd57385fbbd2b9ffc", "score": "0.65622777", "text": "public String getName()\n {\n String sName = __m_Name;\n return sName == null ? \"\" : sName;\n }", "title": "" }, { "docid": "9c48a9f7986ec5f2806c7f21b8fe4f15", "score": "0.6552498", "text": "public String getNameValue() {\r\n return AttributeUtil.getStringValue(this);\r\n }", "title": "" }, { "docid": "6caf52352cfe68641a01b41944db4f6c", "score": "0.6552081", "text": "public String getName() {\n\t\treturn name.getText();\n\t}", "title": "" }, { "docid": "fc110b8f6525014a1265b4e172a4ff4e", "score": "0.65459615", "text": "protected String getName() {\n\t\t\treturn name;\n\t\t}", "title": "" }, { "docid": "c81d0347b569ef42cb2ea94b6c5b7705", "score": "0.65381336", "text": "@Override\n public String getName() {\n return resource.getLocalname();\n }", "title": "" }, { "docid": "bdc769e72858223b3b673be589f125fe", "score": "0.6537692", "text": "public String getName() {\n if (_command.length >= 1)\n return _command[0];\n return \"\";\n }", "title": "" }, { "docid": "c7f0169c7e3e13b32cf481a558a9de06", "score": "0.6536317", "text": "public String getName()\r\n\t{\r\n\t\treturn \"Student name is: \" + this.name;\r\n\t}", "title": "" }, { "docid": "4acc048e289ea2479ecdc380267d46c7", "score": "0.65328795", "text": "public String toString() {\n \treturn name();\n }", "title": "" }, { "docid": "4e4be1f9af10f8069aec771a6f8b441b", "score": "0.653286", "text": "public String getName() {\n if(name == null)\n return \"\";\n return name;\n }", "title": "" }, { "docid": "387d36d03703f5391b61d5f44d4669f2", "score": "0.6527635", "text": "public String toString() {\n\t\treturn this.getName();\n\t}", "title": "" }, { "docid": "387d36d03703f5391b61d5f44d4669f2", "score": "0.6527635", "text": "public String toString() {\n\t\treturn this.getName();\n\t}", "title": "" }, { "docid": "4280e403bac306d1acccf4e0d7fa095c", "score": "0.6524398", "text": "public final String toString() {\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "eb608e57ffa5c4be8ad470949329bd9a", "score": "0.65215147", "text": "protected String getName() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "7a9f1b49303d9d53c8c96ac7bec7363c", "score": "0.65206164", "text": "public String getName()\r\n {\r\n \t//Returning the name.\r\n \treturn name;\r\n }", "title": "" }, { "docid": "2c39cc55f6cf813525ca51d0809dd9de", "score": "0.6518228", "text": "public String getFullname() {\n\t\tLOGGER.debug(LOG_PREFIX + \"getFullname [fullname=\" + this.fullname + \"]\");\n\n\t\treturn this.fullname;\n\t}", "title": "" }, { "docid": "75c6462e1cb16cf91ca81ab3de7dc7dc", "score": "0.6515346", "text": "@Override\n public String name()\n {\n return state.systemName().get();\n }", "title": "" }, { "docid": "9d0a3279cbf4cefa3d19b1484162e63f", "score": "0.65150756", "text": "public final StringValue getName() {\n return name;\n }", "title": "" }, { "docid": "3eb670c5168f17cae20882b931eb2301", "score": "0.65083075", "text": "public String toString( ){\n return name;\n }", "title": "" }, { "docid": "5a268557c16c75757f64a14be6096b2d", "score": "0.6504873", "text": "public String GetName()\n {\n return this.name;\n }", "title": "" }, { "docid": "7a8598831af92a385839d98b892f4254", "score": "0.6503659", "text": "public String getName() {\n\t\treturn this.NAME;\n\t}", "title": "" }, { "docid": "def11626c51218e215b13d37511c3f17", "score": "0.65001196", "text": "public String GetName(){\n\t\treturn Name;\n\t}", "title": "" }, { "docid": "5dc3bd0446cfb8ee6f71f25e0030017f", "score": "0.6493352", "text": "@Override\n\tpublic String getName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}", "title": "" }, { "docid": "206753c6ae709997507372de49c33f1a", "score": "0.6489425", "text": "public String getName() {\n if (name == null) {\n return \"\";\n }\n return name;\n }", "title": "" }, { "docid": "a168e35cbdf989662544bc17eb7f37d7", "score": "0.6488331", "text": "public String getName() {\n return name;// + suffix;\n }", "title": "" }, { "docid": "e8a2720af3a64766e17eb286e253ff94", "score": "0.6483515", "text": "public String getName() {\n return (_name != null ? _name : \"\");\n }", "title": "" }, { "docid": "b4fc9cd161391289f41c36a1bf4272d1", "score": "0.64817804", "text": "public String getName() {\r\n\t\tString name = \"\";\r\n\t\tname = name.concat(fname);\r\n\t\tname = name.concat(\" \");\r\n\t\tname = name.concat(lname);\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "ef294dc737291410e96ae0c9af32ace6", "score": "0.6479335", "text": "public final String name() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "c30b07e98b5ec937c657d65117bd0234", "score": "0.6478837", "text": "static String getName() {\n return NAME;\n }", "title": "" }, { "docid": "15a8ebeb2c7470b03dbf797eefc5dcc3", "score": "0.6475984", "text": "@Override\n\tpublic String getName() {\n\t\treturn this.getClass().getName();\n\t}", "title": "" }, { "docid": "025230624c81d72a065df17c638e9073", "score": "0.6475416", "text": "public java.lang.String name() {\n return this._delegate.name(\n );\n }", "title": "" }, { "docid": "6e69b488c1fb767b2d744701d73c091f", "score": "0.64741117", "text": "public String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6e69b488c1fb767b2d744701d73c091f", "score": "0.64741117", "text": "public String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6e69b488c1fb767b2d744701d73c091f", "score": "0.64741117", "text": "public String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6e69b488c1fb767b2d744701d73c091f", "score": "0.64741117", "text": "public String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6e69b488c1fb767b2d744701d73c091f", "score": "0.64741117", "text": "public String toString() {\n\t\treturn name;\n\t}", "title": "" }, { "docid": "1964e433a482331e70c37605411e684e", "score": "0.64667904", "text": "public String getName() {\n return NAME;\n }", "title": "" }, { "docid": "9b4d8e71c0e342de0fa6f2e527bb6f84", "score": "0.6466306", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn getName();\r\n\t}", "title": "" }, { "docid": "0862b58e41ebce41947e978e559d957f", "score": "0.64620626", "text": "public final String toString() {\n return name;\n }", "title": "" }, { "docid": "2d2b418376f3234c3b97f98f2fc4dafc", "score": "0.64608985", "text": "@Override\n\t\tpublic String getName() {\n\t\t\treturn name;\n\t\t}", "title": "" }, { "docid": "7050e288354a555d9fa1b369eeb56a2c", "score": "0.6459581", "text": "public String getName()\n {\n return mString;\n }", "title": "" }, { "docid": "b5712bb711f39b0a71ee64dc7a42a821", "score": "0.6458106", "text": "public String GetName()\n {\n return Name;\n }", "title": "" }, { "docid": "822a3e7bc3b97ad4b6be71029c94e8fc", "score": "0.64575225", "text": "public String getName() {\n return this.name().toLowerCase();\n }", "title": "" }, { "docid": "4b476e8629c47e1b96c0bfbdba8edc2d", "score": "0.645674", "text": "public String getName() {\n return this.NAME;\n }", "title": "" }, { "docid": "606358642736043e75f53c733216561f", "score": "0.64531314", "text": "public String getsName() {\n return sName;\n }", "title": "" }, { "docid": "606358642736043e75f53c733216561f", "score": "0.64531314", "text": "public String getsName() {\n return sName;\n }", "title": "" }, { "docid": "be86cf8e0628a3b3046118265db48f20", "score": "0.6445741", "text": "public final String getName() {\n return this.name;\n }", "title": "" }, { "docid": "be86cf8e0628a3b3046118265db48f20", "score": "0.6445741", "text": "public final String getName() {\n return this.name;\n }", "title": "" }, { "docid": "be86cf8e0628a3b3046118265db48f20", "score": "0.6445741", "text": "public final String getName() {\n return this.name;\n }", "title": "" }, { "docid": "08ebabc5ef0b7d6dd8087721ccb09057", "score": "0.6444337", "text": "public String getName() {\n return getClass().getName();\n }", "title": "" }, { "docid": "08ebabc5ef0b7d6dd8087721ccb09057", "score": "0.6444337", "text": "public String getName() {\n return getClass().getName();\n }", "title": "" }, { "docid": "de905fccd8151969e339e40d4c229a76", "score": "0.6443069", "text": "public String getName() {\n\t\treturn this.eventName;\n\t}", "title": "" }, { "docid": "372868e4738fdfb99a85e156eec477ad", "score": "0.6441146", "text": "public String toString() {\n return name;\n }", "title": "" }, { "docid": "372868e4738fdfb99a85e156eec477ad", "score": "0.6441146", "text": "public String toString() {\n return name;\n }", "title": "" }, { "docid": "372868e4738fdfb99a85e156eec477ad", "score": "0.6441146", "text": "public String toString() {\n return name;\n }", "title": "" }, { "docid": "bf50bcd836881ce65d8a63024e06fad6", "score": "0.6439582", "text": "public String name()\n\t{\n\t\treturn name;\n\t}", "title": "" }, { "docid": "eb8a4e51de2829f00b337132e419997c", "score": "0.643663", "text": "public String toString() {\n return name;\n }", "title": "" }, { "docid": "f20a9ad3161113edfa52f16e837eb5c4", "score": "0.64334214", "text": "public String getName() {\n switch(value) {\n case 0:\n return \"esp\";\n case 1:\n return \"ah\";\n case 2:\n return \"ah-esp\";\n default:\n return \"\";\n }\n }", "title": "" }, { "docid": "48d7e661d6dfd5567c70ec0e022b70b2", "score": "0.64305574", "text": "public String getName() {\n\t\treturn _name == null ? \"\" : _name;\n\t}", "title": "" }, { "docid": "48d7e661d6dfd5567c70ec0e022b70b2", "score": "0.64305574", "text": "public String getName() {\n\t\treturn _name == null ? \"\" : _name;\n\t}", "title": "" }, { "docid": "86ba44377d42370b3f8860954a077d2e", "score": "0.6430158", "text": "public String getName_s() {\n return name_s;\n }", "title": "" }, { "docid": "df53b715e833666a26a1c8a9a8efa9d8", "score": "0.64272004", "text": "public String getPName() {\n\t\treturn Misc.formatText(getName());\n\t}", "title": "" }, { "docid": "6068ccdafac7031185c1a71b208de8a9", "score": "0.64270216", "text": "public String getModuleFullName() {\n\t\tif (getCurrModule() == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\treturn getCurrModule().getName();\n\t}", "title": "" }, { "docid": "2fb0c72263ec774d17fb5d60d3f39c44", "score": "0.64266247", "text": "@Override\n\tpublic String getName() {\n\t\treturn model.getName();\n\t}", "title": "" }, { "docid": "e95e8661157946fcbda9bdf1f1eb7b5e", "score": "0.6420707", "text": "public String getName() {\n if (null!=name && name.contains(SENSOR_NAME_TYPE_DELIMITER)){\n return name.substring(0,name.indexOf(SENSOR_NAME_TYPE_DELIMITER));\n }\n return name;\n }", "title": "" }, { "docid": "d4ae7d072ea8683ca072b40574346f53", "score": "0.64183694", "text": "public String getName() {\n return this._name;\n }", "title": "" } ]
ecc1c3ae34e40cd8b8d5123070cf3545
void save IMG ================================================================>
[ { "docid": "fbc48558aa37f628f501b3ac59de72f3", "score": "0.61163753", "text": "private void saveIMG()\n {\n File file = saveBitMap(this, linearLayout); //which view you want to pass that view as parameter\n if (file != null) {\n Toast.makeText(this, \"Đã lưu ảnh thành công\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(),ThuKi_CreateQR_Activity.class));\n } else {\n Toast.makeText(this, \"Lỗi lưu ảnh\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" } ]
[ { "docid": "17941646924529b63876275a75680bed", "score": "0.7932465", "text": "public void saveFile() {\n\t\t\n\t\tString format = this.image.getFormat();\n\t\tString fileName = this.image.getPath();\n\n\t\tthis.save(fileName, format);\n\t}", "title": "" }, { "docid": "7a3ea33ca89413951b0c9272ca8dc9bb", "score": "0.7736605", "text": "@Override\n\tpublic void saveImage(String imageRealPath) {\n\n\t}", "title": "" }, { "docid": "2db95ed1fb3160ba65350f80e076c9e6", "score": "0.75834537", "text": "static void saveImage(Image img, String imgOutAddr, int w, int h) {\n BufferedImage outImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n Graphics2D biContext = outImg.createGraphics();\n biContext.drawImage(img, 0, 0, null);\n\n try {\n ImageIO.write(outImg, imgOutAddr.substring(imgOutAddr.length() - 3, imgOutAddr.length()), new File(imgOutAddr));\n } catch (IOException ex) {\n Logger.getLogger(ImageUtils.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n// System.out.println(imgOutAddr +\" saved.\");\n }", "title": "" }, { "docid": "a03f5db75201ec20f68e6f0c2884209d", "score": "0.7490172", "text": "@Override\n public void saveImage(ImageInterface imageObject, String filePath, String saveAsFileName) {\n log.append(\"Image saved\" + \" \" + saveAsFileName + \" done. \");\n }", "title": "" }, { "docid": "b613a5ccde1caf5650891a962bc0ac7f", "score": "0.7420981", "text": "private void saveImage() {\r\n\t\tif (_Image == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\r\n\t\tString fname = _Config.getLastSavedFile(null);\r\n\r\n\t\t// Ask user for the location of the image file\r\n\t\tif (fname != null) {\r\n\t\t\tfileChooser.setSelectedFile(new File(fname));\r\n\t\t}\r\n\t\tif (fileChooser.showSaveDialog(_JFrame) != JFileChooser.APPROVE_OPTION) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Load the image\r\n\t\tFile imgFile = fileChooser.getSelectedFile();\r\n\t\tString path = imgFile.getAbsolutePath();\r\n\t\tHighgui.imwrite(path, _Image);\r\n\t\t_Config.setLastSavedFile(path);\r\n\t}", "title": "" }, { "docid": "38a056add3d7252d697a48ddde9085fd", "score": "0.73316836", "text": "public void saveImage()\r\n\t{\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"In the following dialog, type in the name of the file you'd like to save to, OR choose a file to overwrite.\" +\r\n\t\t\t\t\"\\nPlease do NOT include the file extension--images are automatically saved as .png files.\");\r\n\t\t\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tfc.showDialog(null, \"Save\");\r\n\r\n\t\tif (fc.getSelectedFile() == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tString fileName = fc.getSelectedFile().toString();\r\n\t\t\r\n\t\tFile outputFile = fc.getSelectedFile();\r\n\t\t\r\n\t\tif (outputFile.exists())\r\n\t\t{\r\n\t\t\tint choice = JOptionPane.showConfirmDialog(null, \"The selected file already exists! Overwrite?\", \"Warning\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n\t\t\tif (choice == JOptionPane.NO_OPTION)\r\n\t\t\t{\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!outputFile.getName().contains(\".png\"))\r\n\t\t{\r\n\t\t\toutputFile = new File(fileName + \".png\");\r\n\t\t}\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tImageIO.write(backbuffer, \"png\", outputFile);\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f1516a0dd7060f79fe755bfefa8bf10d", "score": "0.71996593", "text": "@Override\n public void saveFileFromGUI() {\n if (!this.model.hasImage()) {\n this.view.displayError(\"An image must be loaded or generated before \"\n + \"performing this operation.\");\n return;\n }\n File toSaveAs = this.view.getFileToSaveAs();\n if (toSaveAs == null) {\n return; // user closed the dialog box\n }\n\n // Get file name and check if it is a valid file type\n String filename = toSaveAs.getName();\n if (!hasValidFileExtension(filename)) {\n this.view.displayError(\"Save Error: Specified file extension not supported.\");\n return;\n }\n\n try {\n // write image\n ImageUtil.writeImage(this.model.getImage(), this.model.getImageWidth(),\n this.model.getImageHeight(), toSaveAs.getAbsolutePath());\n } catch (IOException e) {\n // could not write file\n this.view.displayError(\"Image could not be saved. Write Error.\");\n }\n }", "title": "" }, { "docid": "13e2d82c7fff963d20757a30db79fdaf", "score": "0.7189956", "text": "public static void writeImage(BufferedImage img) {\r\n\t\t\r\n\t\tString format = JOptionPane.showInputDialog(\"Enter the extension of the image to be saved: jpg, png, gif, bmp \");\r\n\t\tif(format != \"\")\r\n\t\t{\r\n\t\t\tFile saveFile = new File(\"savedimage.\" + format);\r\n\t JFileChooser chooser = new JFileChooser();\r\n\t FileNameExtensionFilter filter=new FileNameExtensionFilter(\"JPG & images\",\"jpg\",\"gif\",\"bmp\",\"png\",\"wbmp\",\"jpeg\");\r\n\t\t\tchooser.setFileFilter(filter);\r\n\t chooser.setSelectedFile(saveFile);\r\n\t int rval = chooser.showSaveDialog(null);\r\n\t if (rval == JFileChooser.APPROVE_OPTION) {\r\n\t saveFile = chooser.getSelectedFile();\r\n\t /* Write the filtered image in the selected format,\r\n\t * to the file chosen by the user.\r\n\t */\r\n\t try {\r\n\t \t\r\n\t \tImageIO.write(img, format, saveFile);\r\n\t \tJOptionPane.showMessageDialog(null, \"Saved Succesfully!!\");\r\n\t \tJavaIDE.ip.crop(saveFile);\r\n\t \tJavaIDE.ip.repaint();\r\n\t \t\r\n\t } catch (IOException ex) {\r\n\t \tex.printStackTrace();\r\n\t }\r\n\t }\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Cropped Image was not saved !!\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d67a632a388eeae6e7b89c7056dafc7e", "score": "0.7168182", "text": "private void saveCanvas()\n {\n if (internalFrame != null) {\n BufferedImage image = internalFrame.getCanvas2D().getImage(true);\n if (image != null) {\n JFileChooser dlg = new JFileChooser();\n dlg.setFileFilter(new FileNameExtensionFilter(\n \"Imagenes [jpg, bmp, gif, png, jpeg, wbmp]\",\n \"jpg\", \"bmp\", \"gif\", \"png\", \"jpeg\", \"wbmp\"));\n int resp = dlg.showSaveDialog(this);\n if (resp == JFileChooser.APPROVE_OPTION) {\n try {\n File file = dlg.getSelectedFile();\n ImageIO.write(image, this.getExtension(\n file.getName()), file);\n internalFrame.setTitle(file.getName());\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(\n null, \n \"Error al guardar la imagen\", \n \"Error\", \n JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "190151450d989850cd4bae4fe375c5ef", "score": "0.7162503", "text": "void save(Photo photo);", "title": "" }, { "docid": "4719039adfe5bce2daa657a9c7c696a2", "score": "0.7149559", "text": "public static void saveImage(BufferedImage img, Component listener) {\n JFileChooser fc = new JFileChooser();\n int returnVal = fc.showSaveDialog(listener);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fc.getSelectedFile();\n String ext = file.getAbsolutePath();\n ext = ext.substring(ext.length() - 3, ext.length());\n try {\n ImageIO.write(img, ext, file);\n } catch (IOException ex) {\n Logger.getLogger(ImageUtils.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "da3e3b7007c9dbbe0d47071ed7d69dad", "score": "0.71171707", "text": "public void saveImage(View v){\r\n ConstraintLayout savingLayout = (ConstraintLayout)findViewById(R.id.saveImageLayout);\r\n SaveImage save = new SaveImage(this, savingLayout);\r\n save.run();\r\n }", "title": "" }, { "docid": "5066fcebea889b846a2c07d2434bacc9", "score": "0.70709175", "text": "private void saveImage(List<String> args) throws IllegalStateException, IllegalArgumentException {\n if (!this.model.hasImage()) {\n throw new IllegalStateException(\"Cannot save until an image has been loaded or generated.\");\n }\n if (args.size() < 1) {\n throw new IllegalArgumentException(\"Filename to save not specified.\");\n }\n String filename = args.get(0);\n if (!hasValidFileExtension(filename)) {\n throw new IllegalArgumentException(\"Save Error: Specified file extension not supported.\");\n }\n\n try {\n ImageUtil.writeImage(\n this.model.getImage(), this.model.getImageWidth(),\n this.model.getImageHeight(), filename);\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Could not save file as \" + filename + \".\");\n }\n }", "title": "" }, { "docid": "f8deb642644a3694a955188081563caa", "score": "0.7068587", "text": "public void save(String filename)\n {\n displayImg.save(filename);\n }", "title": "" }, { "docid": "fef8f806b05d274b5c8f1afa243ab5f5", "score": "0.7039711", "text": "public static void saveImage(SSImage image) {\n\t\tFile file = new File(getPath(image.getBasepath(), image.getFilename()));\n\t\ttry {\n\t\t\tImageIO.write(image.getBufferedImage(), image.getExtension(), file);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "e90f4957d1a293bca78f20095ff44903", "score": "0.703144", "text": "private void saveFile(){\n \t\t\n \t}", "title": "" }, { "docid": "d5d8af6c78e4b9956ab2f0fcb4af14ad", "score": "0.69876325", "text": "public static File saveImage(Image img)\n {\n try\n {\n BufferedImage newImage = new BufferedImage((int)img.getWidth(), (int)img.getHeight(), BufferedImage.TYPE_INT_RGB);\n PixelReader pr = img.getPixelReader();\n for(int x = 0; x < img.getWidth(); x++)\n {\n for(int y = 0; y < img.getHeight(); y++)\n {\n Color c = pr.getColor(x, y);\n java.awt.Color awtColor = new java.awt.Color((float)c.getRed(), (float)c.getGreen(), (float)c.getBlue(), 0);\n newImage.setRGB(x, y, awtColor.getRGB());\n }\n }\n File temp = new File(\"temp.jpg\");\n ImageIO.write(newImage, \"jpg\", temp);\n return temp;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return null;\n }", "title": "" }, { "docid": "68993f516737ddefdd5fed45096b86e6", "score": "0.6923213", "text": "public void writeToimage() {\n File outFile = new File(PROJECT_PATH + \"/\" + _imageName + \".jpg\");\n try {\n ImageIO.write(_image, \"jpg\", outFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "221db57dd6b131534274c48f6812a218", "score": "0.69214875", "text": "public void save(){\n\t\tIntStream.range(0, slices.size())\n\t\t\t.mapToObj(i -> new Pair<>(i, slices.get(i)))\n\t\t\t.forEach(pair -> ImageSaver.saveImage(pair.getValue(), this.buildTarget(pair.getKey())));\n\t\t\t\n\t}", "title": "" }, { "docid": "78be7aa648aa910f3008b61cab8c71bf", "score": "0.68998075", "text": "@Override\n public void save(String imageOutFile) throws IOException {\n this.model.save(imageOutFile);\n }", "title": "" }, { "docid": "2d6498a927067c2827ecff9fbb341b31", "score": "0.68913734", "text": "private void save(String option){\r\n\t\tBufferedImage img = new BufferedImage(dimX(), dimY(), 3);\r\n\t\tfor(int i = 0; i < dimX(); i++)\r\n\t\t\tfor(int j = 0; j < dimY(); j++)\r\n\t\t\t\timg.setRGB(i, j, pixels[i][j]);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile outputfile = new File(\"ausgabe-\" + option + \".png\");\r\n\t\t\tImageIO.write(img, \"png\", outputfile);\r\n\t\t} catch (Exception e) {}\r\n\t}", "title": "" }, { "docid": "0c631e0b6aa56608a97c9428858241c7", "score": "0.68767655", "text": "Image save(Image.Nature nature, ImageType type, String name, InputStream in);", "title": "" }, { "docid": "6dc11c9f20f1a805c76f5361b9981cad", "score": "0.6869908", "text": "private void exportImg(String fileName) {\n Bitmap img = mMainView.getBitmap();\n\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q) {\n File destFile = new File( mFileHelper.PICTURES_FOLDER, fileName + FileHelper.IMG_EXTENSION );\n if (destFile.exists()) //because we're saving this file as an image, we don't want to update the editorView's\n warnOverwrite( img, destFile, false );\n else {\n FileHelper.writeFile( img, destFile, this );\n Toast.makeText( this,R.string.file_saved_in + destFile.getAbsolutePath(), Toast.LENGTH_SHORT ).show();\n }\n }\n else {\n if (!checkPermission())\n requestPermission();\n if (!checkPermission()) {\n Toast.makeText( this, R.string.permission_necessary_message, Toast.LENGTH_SHORT ).show();\n return;\n }\n String ImagePath = MediaStore.Images.Media.insertImage(\n getContentResolver(),\n img,\n fileName,\n \"\"\n );\n Toast.makeText( this, R.string.successfully_exported, Toast.LENGTH_SHORT ).show();\n }\n }", "title": "" }, { "docid": "c5c8ba17294257d09320061b5919cf04", "score": "0.6809401", "text": "private void saveLevelToFile(){\r\n\t\ttry{\r\n\t\t\tImageIO.write(image, \"png\", new File(Level.class.getResource(this.imagePath).getFile()));\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d7f77a98c93d746da575eb002d383e0e", "score": "0.6792081", "text": "public void guardar() {\n borde = false;\r\n toBufferedImage(pa);\r\n borde = true;\r\n Image imagen = bi.getScaledInstance(100, 100, Image.SCALE_SMOOTH);\r\n imagetoBuffered(imagen);\r\n JFileChooser fileChooser = new JFileChooser();\r\n Component JPanel = pa;\r\n try {\r\n if (fileChooser.showSaveDialog(JPanel) == JFileChooser.APPROVE_OPTION) {\r\n File outputfile = new File(fileChooser.getSelectedFile() + \".jpg\");\r\n ImageIO.write(bi, \"jpeg\", outputfile);\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"ERROR: \" + e.getMessage());\r\n }\r\n\r\n }", "title": "" }, { "docid": "593be9905a0787263f8c31b4903e9354", "score": "0.6787551", "text": "public boolean saveImageOnFileSystem(Stone_inspection_image img, byte[] image, StringBuilder response, String image_type, String image_path);", "title": "" }, { "docid": "e335b5901de398a026382d0a5dbaaab2", "score": "0.6770785", "text": "private static void saveImage(BufferedImage biOutput, String sDirectory , String sFileName){\n\t\t// Save the given image.\n\t\tFile fileOutput = new File(sDirectory + sFileName);\n\t\ttry{\n\t\t\tImageIO.write(biOutput, \"png\", fileOutput);\n\t\t\t\n\t\t\tSystem.out.println(\"File saved to \" + sDirectory + OUTPUT_FILENAME);\n\t\t\t\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "767b7002a90d1955fcfc492c364e6614", "score": "0.67678994", "text": "private void saveImage(TaggedImage image) {\r\n if (image.tags == null && image.pix == null) {\r\n dataSink_.finish();\r\n eventsFinished_ = true; //should have already been done, but just in case\r\n } else {\r\n //this method doesn't return until all images have been written to disk\r\n dataSink_.putImage(image);\r\n }\r\n }", "title": "" }, { "docid": "699e164799dff536bfa7c930d948a9d9", "score": "0.6767627", "text": "private void saveImage(Shell shell) {\n FileDialog dlg = new FileDialog(shell, SWT.SAVE);\n\n Calendar now = Calendar.getInstance();\n String fileName = String.format(\"device-%tF-%tH%tM%tS.png\",\n now, now, now, now);\n\n dlg.setText(\"Save image...\");\n dlg.setFileName(fileName);\n\n String lastDir = \"D:\\\\\";\n// String lastDir = DdmUiPreferences.getStore().getString(\"lastImageSaveDir\");\n// if (lastDir.length() == 0) {\n// lastDir = DdmUiPreferences.getStore().getString(\"imageSaveDir\");\n// }\n dlg.setFilterPath(lastDir);\n dlg.setFilterNames(new String[] {\n \"PNG Files (*.png)\"\n });\n dlg.setFilterExtensions(new String[] {\n \"*.png\" //$NON-NLS-1$\n });\n\n fileName = dlg.open();\n if (fileName != null) {\n // FileDialog.getFilterPath() does NOT always return the current\n // directory of the FileDialog; on the Mac it sometimes just returns\n // the value the dialog was initialized with. It does however return\n // the full path as its return value, so just pick the path from\n // there.\n if (!fileName.endsWith(\".png\")) {\n fileName = fileName + \".png\";\n }\n\n// String saveDir = new File(fileName).getParent();\n// if (saveDir != null) {\n// DdmUiPreferences.getStore().setValue(\"lastImageSaveDir\", saveDir);\n// }\n\n Log.d(\"ddms\", \"Saving image to \" + fileName);\n ImageData imageData = mImageLabel.getImage().getImageData();\n\n try {\n org.eclipse.swt.graphics.ImageLoader loader =\n new org.eclipse.swt.graphics.ImageLoader();\n\n loader.data = new ImageData[] { imageData };\n loader.save(fileName, SWT.IMAGE_PNG);\n }\n catch (SWTException e) {\n Log.w(\"ddms\", \"Unable to save \" + fileName + \": \" + e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "920b919654a9d7f61a2c0bfc4b867f0d", "score": "0.67633593", "text": "private void saveImage(JPanel panel, File saveAs){\n\t BufferedImage imagebuf=null;\n\t try {\n\t imagebuf = new Robot().createScreenCapture(panel.getBounds());\n\t } catch (AWTException e1) {\n\t error(\"AWT error capturing screen\");\n\t } \n\t Graphics2D graphics2D = imagebuf.createGraphics();\n\t panel.paint(graphics2D);\n\t try {\n\t ImageIO.write(imagebuf,\"jpeg\", saveAs);\n\t } catch (IOException e) {\n\t error(\"Error writing file \"+saveAs.getAbsolutePath());\n\t }\n\t}", "title": "" }, { "docid": "f6e266ad74ba998722eb155cd49b96cb", "score": "0.6739381", "text": "public String file_save(Context context){\n return MediaStore.Images.Media.insertImage(context.getContentResolver(), getDrawingCache(),UUID.randomUUID().toString()+\".png\", \"drawn notes\");\n }", "title": "" }, { "docid": "f560e504c3dea711606929d35c62b923", "score": "0.6732", "text": "public void saveAs() {\r\n if(displayPanel == null) return;\r\n BufferedImage image = imagePanel.getImage();\r\n if(image == null) {\r\n Utils.errMsg(\"No image\");\r\n return;\r\n }\r\n\r\n // Get the file name\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setCurrentDirectory(new File(currentDir));\r\n int result = chooser.showSaveDialog(null);\r\n if(result != JFileChooser.APPROVE_OPTION) return;\r\n\r\n // Process the file\r\n String fileName = chooser.getSelectedFile().getPath();\r\n File newFile = new File(fileName);\r\n if(newFile.exists()) {\r\n int selection = JOptionPane.showConfirmDialog(null,\r\n \"File already exists:\" + LS + fileName + \"\\nOK to replace?\",\r\n \"Warning\", JOptionPane.OK_CANCEL_OPTION,\r\n JOptionPane.WARNING_MESSAGE);\r\n if(selection != JOptionPane.OK_OPTION) return;\r\n }\r\n\r\n Cursor oldCursor = getCursor();\r\n try {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n if(readMode == ReadMode.JAI) {\r\n String type = \"\";\r\n String ext = Utils.getExtension(newFile);\r\n if(ext.equalsIgnoreCase(\"jpeg\") || ext.equalsIgnoreCase(\"jpg\")) {\r\n type = \"JPEG\";\r\n } else if(ext.equalsIgnoreCase(\"png\")) {\r\n type = \"PNG\";\r\n } else if(ext.equalsIgnoreCase(\"gif\")) {\r\n type = \"GIF\";\r\n } else if(ext.equalsIgnoreCase(\"tiff\")\r\n || ext.equalsIgnoreCase(\"tif\")) {\r\n type = \"TIFF\";\r\n } else if(ext.equalsIgnoreCase(\"bmp\")) {\r\n type = \"BMP\";\r\n } else {\r\n Utils.errMsg(\"Unsupported format: \" + ext);\r\n return;\r\n }\r\n try {\r\n selectWriteMode();\r\n BufferedImage newImage;\r\n switch(writeMode) {\r\n case IMAGEIO:\r\n newImage = image;\r\n ImageUtils.saveImage(image, newFile);\r\n break;\r\n case JAI_NOCONVERT:\r\n newImage = image;\r\n JAI.create(\"FileStore\", newImage, newFile.getPath(),\r\n type);\r\n break;\r\n case JAI_NOASSIGN:\r\n newImage = convertToProfile(image, ICC_FILENAME, false);\r\n JAI.create(\"FileStore\", newImage, newFile.getPath(),\r\n type);\r\n break;\r\n case JAI_ASSIGN:\r\n newImage = convertToProfile(image, ICC_FILENAME, true);\r\n JAI.create(\"FileStore\", newImage, newFile.getPath(),\r\n type);\r\n break;\r\n }\r\n } catch(Exception ex) {\r\n Utils.excMsg(\"Save failed\", ex);\r\n }\r\n } else {\r\n ImageUtils.saveImageToFile(image, currentDir);\r\n }\r\n if(newFile != null && newFile.exists()) {\r\n // Set the currentDirectory based on what was saved\r\n File parent = newFile.getParentFile();\r\n if(parent != null && parent.exists()) {\r\n currentDir = parent.getPath();\r\n } else {\r\n currentDir = newFile.getPath();\r\n }\r\n }\r\n } finally {\r\n setCursor(oldCursor);\r\n }\r\n }", "title": "" }, { "docid": "ad7f4dc84f98ffc8d6504728b90bbd87", "score": "0.67097634", "text": "private void saveImage(String fileName, ImageView image) throws FileNotFoundException {\n\n Bitmap bitmapImage = ((BitmapDrawable) image.getDrawable()).getBitmap();\n File path = Environment.getExternalStorageDirectory();\n File dir = new File(path + \"/PopularMovie/\");\n dir.mkdirs();\n\n file = new File(dir + \"/\" + fileName + \".png/\");\n Log.i(\"File path \", \"File Path \" + file);\n\n if (image == image_tv) {\n data.setImage(file.toString());\n }\n\n\n data.setBackdrop(file.toString());\n\n FileOutputStream out = null;\n\n try {\n out = new FileOutputStream(file);\n bitmapImage.compress(Bitmap.CompressFormat.PNG, 100, out);\n out.flush();\n out.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d8ece7cd830ed8e4ded4bbe0fc5b957c", "score": "0.6671652", "text": "private static void saveImage(Path pathToImage, PathType type, PPMImage image) {\n// System.out.println(\"Attempting to save image\");\n try {\n OutputStream outputStream = Files.newOutputStream(pathToImage);\n Writer writer = new OutputStreamWriter(outputStream);\n\n writer.write(image.getType() + '\\n');\n writer.write(Integer.toString(image.getWidth()));\n writer.write(\" \");\n writer.write(Integer.toString(image.getHeight()));\n writer.write(\"\\n\");\n writer.write(Integer.toString(image.getMaxVal()));\n writer.write(\"\\n\");\n\n PPMImage.Pixel[][] pixels = image.getPixels();\n\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n writer.write(Integer.toString(pixels[j][i].getR()));\n writer.write(\"\\n\");\n writer.write(Integer.toString(pixels[j][i].getG()));\n writer.write(\"\\n\");\n writer.write(Integer.toString(pixels[j][i].getB()));\n writer.write(\"\\n\");\n }\n }\n\n writer.close();\n// System.out.println(\"Saved image :)\");\n } catch (IOException e) {\n throw new FailedProcessImageException(\"Something went wrong, may have had something to do with the path name\", e);\n }\n }", "title": "" }, { "docid": "5a24c6c6e79844f4009737b900a52f2e", "score": "0.6665439", "text": "private static void saveImageFile(WritableImage image, String fileName) {\n try {\n Files.createDirectories(Paths.get(\"imgOut\"));\n ImageIO.write(SwingFXUtils.fromFXImage(image, null), \"png\", new File(fileName + \".png\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "cd143894c92cb496de40f3a0644f3670", "score": "0.6659658", "text": "public void save() {\n\n\n //====================================================\n // Let the user pick a file using a GUI\n //====================================================\n try {\n FileChooser getFile = new FileChooser();\n getFile.setInitialDirectory(new File(\"H:/var/gist/8010/\"));\n File graphicFile = getFile.showSaveDialog(pane.getScene().getWindow());\n\n if (graphicFile != null) {\n //=======================================\n // do something with the file\n //=======================================\n\n int[] graphicsIDs = graphicLayer.getGraphicIDs();\n FileOutputStream fos = new FileOutputStream(graphicFile);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n\n for (int i = 0; i < graphicsIDs.length; i++) {\n oos.writeObject(graphicLayer.getGraphic(graphicsIDs[i]));\n }\n\n oos.close();\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "b0f95d3704d3dc62bae6a8da2caf4a67", "score": "0.6653772", "text": "private void performSave() {\n\t\t// send ubc\n\t\tReportUtil.reportPicSave(getApplicationContext());\n\t\t// do save\n\t\tif (this.mIsFromScreenShot || this.mIsUserModify) {\n\t\t\tsaveCurrentPic(mSaveFilePath);\n\t\t}else{\n\t\t\tString msg = String.format(getString(R.string.edit_save_no_need), mSaveFilePath);\n\t\t\tToast.makeText(this, msg, Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\n\t\tString msg = String.format(getString(R.string.edit_save_success), mSaveFilePath);\n\t\tToast.makeText(this, msg, Toast.LENGTH_LONG).show();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "82c687f1958c0d267f262edee1d979d8", "score": "0.66327417", "text": "private void saveCurrentImage()\n {\n // get executor to be able to run insert on separate thread\n ImageExecutor.getInstance().mDiskIO().execute(() -> {\n mDb.getImageDao().insertPhotoEntry(createDatabaseObject());\n });\n }", "title": "" }, { "docid": "9d42c891cb6825ba97694a0ee99558bd", "score": "0.66247004", "text": "private void saveImage() {\r\n\t\tConditionEntry nowImage = new ConditionEntry(initImage);\r\n\t\tString curName = tags.toString();\r\n\t\tnowImage.setImage(imageName);\r\n\t\tnowImage.setTag(curName);\r\n\t\tnowImage.setDate(date);\r\n\t\tnowImage.setComment(edittextComments.getText().toString());\r\n\t\t// disallow empty names\r\n\t\tif (curName.equals(\"\")) {\r\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\t\t\tbuilder.setMessage(\"Tag name cannot be empty.\");\r\n\t\t\tbuilder.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbuilder.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// check for repeat data\r\n\t\tint status = initImage.compareTo(nowImage);\r\n\t\tswitch (status) {\r\n\t\tcase ConditionTag.IDENTICAL:\r\n\t\t\tbreak;\r\n\t\tcase ConditionEntry.DUMMY_ID:\r\n\t\t\tmodel.saveImage(nowImage); break;\r\n\t\tcase ConditionEntry.DIFF_COMMENT:\r\n\t\t\tmodel.overwriteImage(nowImage); break;\r\n\t\t}\r\n\t\tfinish();\r\n\t}", "title": "" }, { "docid": "7444ffc7d198c1c08e81606627d76bba", "score": "0.65990365", "text": "@Override\n public void execute(Editor editor) {\n Image image = editor.getImage();\n if (image == null) {\n editor.print(\"noImageLoaded\");\n return;\n }\n\n if (!this.hasWord(2)) {\n editor.print(\"saveWhere\");\n return;\n }\n\n String outputName = this.getWord(2);\n try {\n File outputFile = new File(outputName);\n ImageIO.write(image.getImage(), \"jpg\", outputFile);\n editor.print(\"imageSavedTo\", outputName);\n System.out.println();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "dfe16b55e367df45b96eb0c0cbc41849", "score": "0.6595751", "text": "public void savePNG(String filename)\n {\n try {\n //(new BitmapGenerator(this.activeView.getView())).savePNGAs(filename);\n }\n catch (Exception ex) {\n fireMessageEvent(ex.toString());\n }\n }", "title": "" }, { "docid": "7c87cf04fce2f5d307467c06b6572f51", "score": "0.6590916", "text": "private String save() {\n\t\tmeme.setDrawingCacheEnabled(false);\n\t\tmeme.setDrawingCacheEnabled(true);\n\n\t\tBitmap bitmap = Bitmap.createBitmap(meme.getDrawingCache());\n\t\treturn MediaStore.Images.Media.insertImage(getContentResolver(),\n\t\t\t\tbitmap, \"meme\", \"meme\");\n\t}", "title": "" }, { "docid": "ba4da08038d0211d87459ebeb0db328a", "score": "0.65892357", "text": "public SaveImage(UMLWindow parent) {\n\t\tsuper(\"Save as Image\");\n\t\tthis.parent = parent;\n\t}", "title": "" }, { "docid": "7cd4e8ca472b914aa585da83e4f4127f", "score": "0.6561066", "text": "private void saveImageToFile(File file, BufferedImage image) {\n\t\ttry {\n\t\t\tImageIO.write(image, \"png\", file);\n\t\t} catch(IOException e) {}\n\t}", "title": "" }, { "docid": "725a6ab881f2705a82c3cc255c80841d", "score": "0.65600944", "text": "public void saveReceivedImage(){\r\n\t\tFile newImage = new File(\"Received Image.\"+\"png\");\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setSelectedFile(newImage);\r\n int rval = chooser.showSaveDialog(ClientGUI.this);\r\n if (rval == JFileChooser.APPROVE_OPTION) {\r\n \tnewImage = chooser.getSelectedFile();\r\n try {\r\n ImageIO.write(client.getReceivedPicture(),\"png\", newImage);\r\n } catch (IOException e) {\r\n \tshowOnChat(\"Unable to save the image!\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ff723ea998c5e050862e491d4f1a0393", "score": "0.6553019", "text": "@RequiresApi(api = Build.VERSION_CODES.M)\n public void save() {\n // Verification of permissions\n if (ContextCompat.checkSelfPermission(getApplicationContext(),\n Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {\n Bitmap bitmap = ((BitmapDrawable) imageView1.getDrawable()).getBitmap();\n\n ContentResolver cr = getContentResolver();\n String title = \"Bitmap\";\n String description = \" New Bitmap\";\n String savedURL = MediaStore.Images.Media.insertImage(cr, bitmap, title, description);\n\n Toast.makeText(MainActivity.this, savedURL, Toast.LENGTH_LONG).show();\n } else {\n requestPermissions(\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE\n }, REQUEST_EXTERNAL_STORAGE);\n }\n }", "title": "" }, { "docid": "0c5380d2c10874cdcf5aa7df718c7e0e", "score": "0.6508458", "text": "public void saveItemData() {\n HashMap<String, Object> data = new HashMap<>();\n data.put(\"name\", name);\n data.put(\"id\", id);\n data.put(\"locale\", localeID);\n File localeData = new File(Constants.ITEM_DATA + \"/\" + id);\n FileOutputStream fout;\n ObjectOutputStream oout;\n try {\n fout = new FileOutputStream(localeData);\n oout = new ObjectOutputStream(fout);\n oout.writeObject(data);\n fout.close();\n oout.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n //Store image into file system\n File imageData = new File(Constants.ITEM_IMAGES + \"/\" + id);\n try {\n fout = new FileOutputStream(imageData);\n picture.compress(Bitmap.CompressFormat.PNG, 100, fout); // bmp is your Bitmap instance\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6d85b05a253ad34465e0313570fbee56", "score": "0.65055704", "text": "private String saveImage(String imgLink, String destPath, String savename) {\r\n\t\tFile imgDIR = new File(destPath);\r\n\t\tif (!imgDIR.exists()) {\r\n\t\t\timgDIR.mkdir();\r\n\t\t}\r\n\r\n\t\tString imageName = savename;\r\n\r\n\t\tFile imgFile = new File(imgDIR + \"/\" + imageName + \".jpg\");\r\n\t\ttry {\r\n\t\t\tURL imageURL = new URL(imgLink);\r\n\t\t\tHttpURLConnection conn = (HttpURLConnection) imageURL\r\n\t\t\t\t\t.openConnection();\r\n\t\t\tDataInputStream in = new DataInputStream(conn.getInputStream());\r\n\t\t\tDataOutputStream out = new DataOutputStream(new FileOutputStream(\r\n\t\t\t\t\timgFile.getAbsoluteFile()));\r\n\t\t\tbyte[] buffer = new byte[4096];\r\n\t\t\tint count = 0;\r\n\t\t\twhile ((count = in.read(buffer)) > 0)/* 将输入流以字节的形式读取并写入buffer中 */\r\n\t\t\t{\r\n\t\t\t\tout.write(buffer, 0, count);\r\n\t\t\t}\r\n\t\t\tout.close();/* 后面三行为关闭输入输出流以及网络资源的固定格式 */\r\n\t\t\tin.close();\r\n\t\t\tconn.disconnect();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\twarn.warn(Thread.currentThread().getName() + e.getMessage() + \"\\t\"\r\n\t\t\t\t\t+ imgLink + \" is not valid url\" + \"\\t\"\r\n\t\t\t\t\t+ Arrays.toString(e.getStackTrace()));\r\n\t\t\t// e.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (IOException e2) {\r\n\t\t\twarn.warn(Thread.currentThread().getName() + \"\\t\" + imgLink + \"\\t\"\r\n\t\t\t\t\t+ e2.toString());\r\n\t\t\t// e2.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn imgFile.getAbsolutePath();\r\n\t}", "title": "" }, { "docid": "d6e8380bfa06dd9d6c934e0e1b1101ee", "score": "0.6504844", "text": "public void guardar() throws IOException {\n try {\n\n String formato = (String) Formatos.getSelectedItem();\n File saveFile = new File(\"Imagen.\" + formato);\n JFileChooser chooser = new JFileChooser();\n chooser.setSelectedFile(saveFile);\n int rFormato = chooser.showSaveDialog(Formatos);\n if (rFormato == JFileChooser.APPROVE_OPTION) {\n saveFile = chooser.getSelectedFile();\n ImageIO.write(obj.getBi(), formato, saveFile);\n mos_msj(\"Se guardó correctamente\");\n }\n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "94e8f7ea1489b0ed9748e0ca12fd4f73", "score": "0.6499399", "text": "public void save(String fileName) {\n\t\ttry {\n\t\t\tImageIO.write(image, \"bmp\", new File(fileName));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error: could not write to file \" + fileName);\n\t\t}\n\t}", "title": "" }, { "docid": "389618a2a8ca47c2ac76efd497f403f5", "score": "0.6485042", "text": "public static void saveJpg(BufferedImage bi, String filename) {\r\n try {\r\n ImageIO.write(bi, \"jpg\", new File(filename));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "43a66329913b20ad01a509a7cea49334", "score": "0.6453952", "text": "public static void saveImageAs(BufferedImage image, File file, String type)\n throws Exception\n {\n if (image == null) {\n throw new NullPointerException(\"The source image is null.\");\n }\n \n \tImageIO.write(image, type, file);\n }", "title": "" }, { "docid": "3b05da4a4bbd356835740497618be650", "score": "0.64321285", "text": "public boolean savePicture () {\n Date now = new Date();\n String fileName = new SimpleDateFormat(\"ddMMyyyyHHmm\", Locale.ENGLISH).format(now);\n String nameFinal = fileName + nameExtension;\n BitmapDrawable changed = (BitmapDrawable) imageView.getDrawable();\n Bitmap filtered = changed.getBitmap();\n\n try {\n Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), filtered, nameFinal, description));\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "e8e2f2aff0ea213285323a7d39bd15e7", "score": "0.6416681", "text": "public void exportMapToImage()\r\n\t{\r\n\t\tJFileChooser chooser = new JFileChooser();\r\n\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\"png\", \r\n\t \t\t\"png\" );//static method provides all image types known by ImageIo\r\n\t chooser.setFileFilter(filter);\r\n\t int returnValue=chooser.showSaveDialog(this);\r\n\t if (returnValue==JFileChooser.APPROVE_OPTION)\r\n\t {\r\n\t \tFile imageFile=chooser.getSelectedFile();\r\n\t \ttry {\r\n\t \t\tBufferedImage mapCopy=new BufferedImage(this.ActiveViewer.getWidth(), ActiveViewer.getHeight(), BufferedImage.TYPE_INT_ARGB);\r\n\t \t\tGraphics g = mapCopy.getGraphics();\r\n\t \t\tActiveViewer.paint(g);\r\n\t \t\tg.dispose();\r\n\t \t\tboolean iio=ImageIO.write(mapCopy, \"png\", imageFile);\r\n\t \t\tSystem.out.print(iio);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(this, e.getMessage(), \"File Exception\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t }\r\n\t}", "title": "" }, { "docid": "125105ab4fed99c14df6069f363777af", "score": "0.64000297", "text": "public void saveImage(File picPath, Bitmap bitmap) {\n try {\n FileOutputStream fo = new FileOutputStream(picPath);\n bitmap.compress(Bitmap.CompressFormat.PNG, 90, fo);\n fo.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e7b33f25b6f69476e8be78a25daa1ebb", "score": "0.63781047", "text": "public void saveImage (String name,String description, Context context){\n\n Bitmap temp = Bitmap.createBitmap(canvasBitmap.getWidth(),canvasBitmap.getHeight(),canvasBitmap.getConfig());\n temp.eraseColor(Color.WHITE);\n Canvas canvas = new Canvas(temp);\n canvas.drawBitmap(canvasBitmap,0f,0f,null);\n canvas.setBitmap(temp);\n MediaStore.Images.Media.insertImage(context.getContentResolver(), temp , name, description);\n\n }", "title": "" }, { "docid": "9050d6fdd825d1e8ddb91070db49b0ed", "score": "0.6371953", "text": "static void saveImage(String pathToImage, String imageName, Image image) {\n File outputFile = new File(pathToImage + imageName + \".jpg\");\n BufferedImage bImage = SwingFXUtils.fromFXImage(image, null);\n try {\n ImageIO.write(bImage, \"jpg\", outputFile);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "d235d8d3877f19aaad5363cae5dc8639", "score": "0.6356504", "text": "private void saveFile(String filename){\n \t\t\n \t}", "title": "" }, { "docid": "0ea8243d78b2934cedf2eb786b754017", "score": "0.63512516", "text": "public static void saveFile() throws IOException {\n FileWriter fileWriter2 = new FileWriter(\"image.txt\");\n BufferedWriter bufferedWriter2 = new BufferedWriter(fileWriter2);\n for (int i = 0; i < width; i++) {\n for (int j = 0; j < height; j++) {\n bufferedWriter2.write(Matriximage[i][j] + \" \");\n }\n bufferedWriter2.newLine();\n }\n bufferedWriter2.close();\n\n }", "title": "" }, { "docid": "bef5d7420e25f35642371f2d7a4a105a", "score": "0.6348508", "text": "private void saveImage( BufferedImage bi, String outdir, String filename, String graphicsformat, Color color )\n throws LegendException, IOException, Exception {\n\n File file = new File( outdir, filename + \".\" + graphicsformat );\n FileOutputStream fos = new FileOutputStream( file );\n\n // PNG\n if ( graphicsformat.equalsIgnoreCase( \"PNG\" ) ) {\n\n BufferedImage outbi = new BufferedImage( bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_INT_ARGB );\n Graphics g = outbi.getGraphics();\n g.drawImage( bi, 0, 0, color, null );\n ImageUtils.saveImage( outbi, fos, \"png\", 1 );\n // BMP\n } else if ( graphicsformat.equalsIgnoreCase( \"BMP\" ) ) {\n BufferedImage outbi = new BufferedImage( bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_3BYTE_BGR );\n\n Graphics g = outbi.getGraphics();\n // transparency\n if ( color == null ) {\n this.lecgui.addDebugInformation( \"BMP-NOTIFY:\\n\"\n + \"Requested transparency (transp.) isn't available for BMP-images.\\n\"\n + \"Using default background color WHITE.\\n\" );\n color = Color.WHITE;\n }\n g.drawImage( bi, 0, 0, color, null );\n ImageUtils.saveImage( outbi, fos, \"bmp\", 1 );\n // GIF\n } else if ( graphicsformat.equalsIgnoreCase( \"GIF\" ) ) {\n BufferedImage outbi = new BufferedImage( bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_INT_ARGB );\n Graphics g = outbi.getGraphics();\n g.drawImage( bi, 0, 0, color, null );\n ImageUtils.saveImage( outbi, fos, \"gif\", 1 );\n // JPEG\n } else if ( graphicsformat.equalsIgnoreCase( \"JPEG\" ) || graphicsformat.equalsIgnoreCase( \"JPG\" ) ) {\n BufferedImage outbi = new BufferedImage( bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_INT_RGB );\n Graphics g = outbi.getGraphics();\n\n // transparency\n if ( color == null ) {\n this.lecgui.addDebugInformation( \"JPEG-NOTIFY:\\n\"\n + \"Requested transparency (transp.) isn't available for JPG-images.\\n\"\n + \"Using default background color WHITE.\\n\" );\n color = Color.WHITE;\n }\n\n g.drawImage( bi, 0, 0, color, null );\n ImageUtils.saveImage( outbi, fos, \"jpeg\", 1 );\n // TIFF\n } else if ( graphicsformat.equalsIgnoreCase( \"TIFF\" ) || graphicsformat.equalsIgnoreCase( \"TIF\" ) ) {\n BufferedImage outbi = new BufferedImage( bi.getWidth(), bi.getHeight(), BufferedImage.TYPE_BYTE_BINARY );\n Graphics g = outbi.getGraphics();\n g.drawImage( bi, 0, 0, color, null );\n ImageUtils.saveImage( outbi, fos, \"tif\", 1 );\n } else {\n throw new Exception( \"Can't save output image because no graphic-encoder found for:\\n\" + \"filetype: '\"\n + graphicsformat + \"' for file: '\" + file + \"'\" );\n }\n LOG.logInfo( \"-- \" + file + \" saved.\" );\n }", "title": "" }, { "docid": "b9b61d41f7ea8829f2692f9e5d34e48f", "score": "0.63362134", "text": "public static void savePng(BufferedImage bi, File filename) {\r\n try {\r\n ImageIO.write(bi, \"png\", filename);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "34f1a4d3085eda83281f8a7cc118896c", "score": "0.63201237", "text": "private void saveScreenAsImage(int width, int height, Bitmap.CompressFormat format)\n throws FileNotFoundException {\n\n // must nullify the tool;\n if (mCurrentLayer != null) {\n mCurrentLayer.setStop();\n mDrawingStack.add(mCurrentLayer);\n mCurrentLayer = null;\n }\n\n Bitmap output = Bitmap.createBitmap(width, height,\n Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(output);\n\n this.draw(canvas);\n\n File file = new File(FileUtils.getImagesDirectory()+FileUtils.getUniqueTempFilename(format.name()));\n\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(file);\n } catch (FileNotFoundException e) {\n //TODO\n }\n\n output.compress(format, 100, fos);\n\n try{\n if (fos != null){\n fos.close();\n }\n }catch(IOException e){\n //TODO\n }\n }", "title": "" }, { "docid": "b6105a99bc86a619285190495127598a", "score": "0.6319745", "text": "ServerImage saveImageFromServer(String friendlyName, String idOrName, SaveImageOptions... options);", "title": "" }, { "docid": "54ca43b39879b6846e03b12ef63011c8", "score": "0.63107526", "text": "public void save(){\r\n\t\tJOptionPane.showMessageDialog(null, \"Choose where to save the file.\",\"Information\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\ttry {\r\n\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\tchooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"Portable Pixmap Format (.ppm)\", \"ppm\");\r\n\t\t\tchooser.addChoosableFileFilter(filter);\r\n\t\t\tFileNameExtensionFilter filter2 = new FileNameExtensionFilter(\"Text File (.txt)\", \"txt\");\r\n\t\t\tchooser.addChoosableFileFilter(filter2);\r\n\t\t\tchooser.setFileFilter(filter);\r\n\t\t\tchooser.setAcceptAllFileFilterUsed(false);\r\n\r\n\t\t\tint option = chooser.showSaveDialog(null);\r\n\t\t\tif(option == JFileChooser.APPROVE_OPTION){\r\n\t\t\t\tString[] ext = chooser.getFileFilter().getDescription().split(\"[(]\");\r\n\t\t\t\text = ext[1].split(\"[)]\");\r\n\t\t\t\tString extension=ext[0];\r\n\t\t\t\ttry(FileWriter fw = new FileWriter(chooser.getSelectedFile()+extension)) {\r\n\t\t\t\t\tbyte[] bytesou =Files.readAllBytes(Paths.get(\"output.txt\"));\r\n\r\n\t\t\t\t\tfw.write(new String(bytesou, \"UTF-8\"));\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(),\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "a0659e4001c2c30109a74efeb85fe352", "score": "0.63088655", "text": "private void saveProfile() {\n profilePhoto.buildDrawingCache();\n Bitmap profile = profilePhoto.getDrawingCache();\n try {\n FileOutputStream fos = getContext().openFileOutput(\n getString(R.string.profileFileName), MODE_PRIVATE);\n profile.compress(Bitmap.CompressFormat.PNG, 100, fos);\n fos.flush();\n fos.close();\n Toast.makeText(getActivity().getApplicationContext(), getString(R.string.profileSaveText),\n Toast.LENGTH_SHORT).show();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "title": "" }, { "docid": "7e0eb6a1a569827bfa6492b54780a431", "score": "0.6295869", "text": "public static Optional<String> saveImage(BufferedImage image) {\n JFileChooser fileChooser = getFileChooser();\n int status = fileChooser.showSaveDialog(null);\n if (status == JFileChooser.APPROVE_OPTION) {\n String fileName = fileChooser.getSelectedFile().getAbsolutePath();\n System.out.println(fileName);\n String ext = DEFAULT_EXT;\n if (fileName.matches(\".*\\\\.(png|bmp|ppm|raw)$\")) {\n ext = fileName.split(\"\\\\.\")[1];\n }\n File outputFile = new File(fileName.split(\"\\\\.\")[0] + \".\" + ext);\n try {\n ImageIO.write(image, ext, outputFile);\n } catch (IOException e) {\n // TODO: Auto-generated code.\n e.printStackTrace();\n }\n }\n return Optional.empty();\n }", "title": "" }, { "docid": "8da4d58da77726f3ecfe0b31a01fa7fb", "score": "0.6292576", "text": "public static void paintImage(BufferedImage img, String addr) {\n// System.out.println(\"Saving \" + addr);\n File outFile = new File(addr);\n try {\n ImageIO.write((RenderedImage) img, addr.substring(addr.length() - 3), outFile);\n } catch (IOException ex) {\n Logger.getLogger(ImageUtils.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "bbcf2653b0c3836e957f38b019a3a057", "score": "0.6291101", "text": "public void saveClick(View view) {\n imageElement.setTitle(mTitle.getText().toString());\n imageElement.setDescription(mDescription.getText().toString());\n mViewModel.update(imageElement);\n finish();\n }", "title": "" }, { "docid": "84307ad6f117a828ec2a048d008ba974", "score": "0.62903744", "text": "public void save(File dir, String fileName) {\n if (!dir.exists()) {\n throw new IllegalArgumentException(\"Error: directory \" + dir.getName() + \" doesn't exists.\");\n }\n if (!dir.isDirectory()) {\n throw new IllegalArgumentException(\"Error: \" + dir.getName() + \" is not a directory.\");\n }\n String dirName = dir.getAbsolutePath();\n if (!dirName.endsWith(SEPARATOR)) {\n dirName += SEPARATOR;\n }\n for (int i = 0; i < pathNames.length; i++) {\n File outDir = new File(dirName + pathNames[i]);\n outDir.mkdir();\n File out = new File(dirName + pathNames[i] + SEPARATOR + fileName);\n BufferedImage icon = getImage(sizes[i]);\n try {\n ImageIO.write(icon, \"PNG\", out);\n } catch (IOException ioe) {\n\n }\n }\n }", "title": "" }, { "docid": "99cdeef6e56491493824e1e90d24ee09", "score": "0.6281157", "text": "public String saveImage() throws IOException {\n // Write image.ckpt\n Storage storage = new Storage(this.imageDir);\n File curFile = storage.getImageFile(replayedJournalId.get());\n File ckpt = new File(this.imageDir, Storage.IMAGE_NEW);\n saveImage(ckpt, replayedJournalId.get());\n\n // Move image.ckpt to image.dataVersion\n LOG.info(\"Move \" + ckpt.getAbsolutePath() + \" to \" + curFile.getAbsolutePath());\n if (!ckpt.renameTo(curFile)) {\n curFile.delete();\n throw new IOException();\n }\n return curFile.getAbsolutePath();\n }", "title": "" }, { "docid": "09f9cf145ca64ac2b0cf25c1dda562f9", "score": "0.6273152", "text": "public static void writeImage(BufferedImage img, String fileLocation,\n\t\t\tString extension) {\n\t\ttry {\n\t\t\t//BufferedImage bi = img;\n\t\t\tImage bi=img;\n\t\t\tFile outputfile = new File(fileLocation);\n\t\t\t//ImageIO.write(bi, extension, outputfile);\n\t\t\tImageIO.write((RenderedImage) bi, extension, outputfile);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "1d3d9d7d9f6abea0193b89c5ffbc92b0", "score": "0.6269713", "text": "public void saveBitmap(Bitmap bitmap) throws IOException {\n File file = new File(\"/mnt/sdcard/Pictures/ScreenShot.png\");\r\n if(!file.exists()){\r\n file.createNewFile();\r\n }\r\n FileOutputStream out;\r\n try {\r\n out = new FileOutputStream(file);\r\n if (bitmap.compress(Bitmap.CompressFormat.PNG, 70, out)) {\r\n out.flush();\r\n out.close();\r\n }\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "6d4b0a12d1d8df21bdc117b7e2f9a862", "score": "0.62672883", "text": "private void outputImage() throws IOException {\r\n\t\tFile ouptut = new File(OUTPUT_FILE_NAME);\r\n\t\tImageIO.write(image, \"bmp\", ouptut);\r\n\t}", "title": "" }, { "docid": "9028e495ee91edf1982129b1f6499a53", "score": "0.6258091", "text": "public void saveBitmap(Bitmap bitmap)\n {\n Date now=new Date();\n android.text.format.DateFormat.format(\"yyyy-MM-dd_hh:mm:ss\",now);\n\n //Setting the path, for the external directory saving of the created bitmap(Taken format .JPEG format)\n String mPath= Environment.getExternalStorageDirectory().toString()+\"/\"+now+\".jpeg\";\n File imagePath=new File(mPath);\n\n //The output stream\n FileOutputStream fos;\n\n try {\n\n //Trying tosave the screenhot\n\n fos=new FileOutputStream(imagePath);\n\n bitmap.compress(Bitmap.CompressFormat.PNG,100,fos);\n\n fos.flush();\n fos.close();\n\n\n Toast.makeText(this, imagePath.getAbsolutePath()+\" \", Toast.LENGTH_SHORT).show();\n\n\n\n\n\n } catch (FileNotFoundException e) {\n Toast.makeText(this, e.toString(), Toast.LENGTH_LONG).show();\n } catch (IOException e) {\n Toast.makeText(this, e.toString(), Toast.LENGTH_LONG).show();\n }\n\n }", "title": "" }, { "docid": "e325ce63aa14c12bb982fce99f43ea74", "score": "0.62504214", "text": "public void savePicture(String path, String format, String str, int fontSize){\n\t\tBufferedImage image = new BufferedImage(sizeX*fontSize, sizeY*fontSize, BufferedImage.TYPE_INT_ARGB);\r\n\t\tGraphics g = image.getGraphics();\r\n\t\tchar[] strArr = str.toCharArray();\r\n\t\tint strLength = str.length();\r\n\t\tint x, y, counter=0;\r\n\t\tFont font = new Font(\"simsun\", Font.PLAIN, fontSize);\r\n\t\tg.setFont(font);\r\n\t\tfor (y=0; y<sizeY; y++){\r\n\t\t\tfor (x=0; x<sizeX; x++){\r\n\t\t\t\tint dx = x*fontSize, dy = y*fontSize;\r\n\t\t\t\tg.setColor( monocolour(tiles[x][y]) );\r\n\t\t\t\tg.drawString(strArr[counter%strLength]+\"\", dx, dy);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tImageIO.write(image, format, new File(path));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce006a63f6f1b149caa5aa9767f39c16", "score": "0.62422115", "text": "public void save(String fileName, String format) {\n\t\ttry {\n\t\t\tSystem.out.println(\"[i] Saving file '\"+this.image.getName()+\"' to '\"+fileName+\"'\");\n\t\t\t\n\t\t\tFile outputfile = new File(fileName);\n\t\t\t//ImageIO\n\t\t\tif (!ImageIO.write(this.image.getImage(), format, outputfile)) {\n\t\t\t\tSystem.out.println(\"Error while saving file : \"+format+\" is not a supported format\");\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Error while saving file : \"+format+\" is not a supported format\",\n\t\t\t\t\t \"Error\",\n\t\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Update every info\n\t\t\tthis.reload(fileName);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[x] Error while saving file : \"+e.getLocalizedMessage());\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t \"Error while saving file : \"+e.getLocalizedMessage(),\n\t\t\t\t \"Error\",\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "deb7723dce3b47090d59ab58ccc8b364", "score": "0.62177205", "text": "public void saveMapAsPNG() {\n\r\n\t\tString selectedPNGPath;\r\n\t\tif(!(selectedPNGPath = queryPrintPNGDialog(frame)).equals(\"\")) {\r\n\t\t\tSystem.out.println(selectedPNGPath);\r\n\t\t\tfor (int pageNum = 0; pageNum < PAGE_SCALES_W_H[mode][0]*PAGE_SCALES_W_H[mode][1]; pageNum ++) {\r\n\t\t\t\tBufferedImage bufferedImage = new BufferedImage(PAPER_WIDTH,PAPER_HEIGHT, BufferedImage.TYPE_INT_ARGB);\r\n\t\t\t\tif (isTransposed()) bufferedImage = new BufferedImage(PAPER_HEIGHT,PAPER_WIDTH, BufferedImage.TYPE_INT_ARGB);\r\n\t\t\t\tgetFrame().getPanel().getMapPanel().getMapArea().printablePaint(bufferedImage.createGraphics(), pageNum);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tImageIO.write(bufferedImage, \"PNG\", new File(addPNG(selectedPNGPath + \"_Page\"+(pageNum+1))));\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9b8eb6101e0f2d157a1698c10c4c4a58", "score": "0.6213534", "text": "public void save() throws IOException;", "title": "" }, { "docid": "eb7a62e517bf5695466414684101001b", "score": "0.6204687", "text": "public final void saveOutput(Bitmap bitmap) {\r\n if (this.saveUri != null) {\r\n OutputStream outputStream = null;\r\n try {\r\n ContentResolver contentResolver = getContentResolver();\r\n Uri uri = this.saveUri;\r\n if (uri == null) {\r\n Intrinsics.throwNpe();\r\n }\r\n outputStream = contentResolver.openOutputStream(uri);\r\n if (outputStream != null) {\r\n bitmap.compress(CompressFormat.JPEG, 90, outputStream);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (Throwable th) {\r\n CropUtil.INSTANCE.closeSilently(null);\r\n throw th;\r\n }\r\n CropUtil.INSTANCE.closeSilently(outputStream);\r\n Intent intent = new Intent();\r\n String str = OUTPUT_PATH;\r\n Uri uri2 = this.saveUri;\r\n if (uri2 == null) {\r\n Intrinsics.throwNpe();\r\n }\r\n setResult(-1, intent.putExtra(str, uri2.getPath()));\r\n }\r\n this.handler.post(new ImageCropActivity$saveOutput$1(bitmap));\r\n finish();\r\n }", "title": "" }, { "docid": "eefe86be1e5e8ef4471c91f8d5f66bf2", "score": "0.6201532", "text": "public SaveImage() {\n initComponents();\n if (Ontology.loadOntology(\"ontologies/futbol.owl\")) {\n drawCharImage();\n drawContentImage();\n } else {\n this.dispose();\n }\n }", "title": "" }, { "docid": "c19a621a9a817a1b8bc22c84cc20f2fe", "score": "0.6200828", "text": "public boolean saveCanvasImage(boolean bSaveOnlyForegroundImage) {\n\t\tBitmap bmCanvas = mSCanvas.getCanvasBitmap(false);//bSaveOnlyForegroundImage);\n\t\t\n\t\t//make bmCanvas of the original image dimension\n\t\t//if(this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n\t\t//\tbmCanvas = Bitmap.createScaledBitmap(bmCanvas, (mSrcImageRect.right - mSrcImageRect.left), (mSrcImageRect.bottom - mSrcImageRect.top), true);\n\t\t//}\n\t\t\n\t\tif (saveBitmapJPEG(bmCanvas)) {\n\t\t\t//saveBitmapBase64(bmCanvas) && \n\t\t\tLog.d(\"S Pen\", \"Saved image successfully\");\n\t\t\treturn true;\n\t\t} \n\t\telse {\n\t\t\tToast.makeText(mContext, \"Error occured to save image.\", Toast.LENGTH_SHORT).show();\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "67405295920b034b51c0b8689f1bb49d", "score": "0.61988544", "text": "private void saveCurrentPic(String path) {\n\t\tBitmap bitmap = mEditPicView.getCurrentBitmap();\n\t\tBitmapHelper.saveBitmap(bitmap, path);\n\t\t\n\t\t/** add file scanner update to album */\n\t\tFileScanUtil.scanFileAsync(this, path);\n\t}", "title": "" }, { "docid": "d73278a214de6cdc97beda3eac69bbe1", "score": "0.6184006", "text": "public void saveAs(Path path) throws IOException {\n graphics.dispose();\n graphics = null;\n\n try (OutputStream os = Files.newOutputStream(path)) {\n // Instead of ImageIO.write(image, \"png\", os)\n createPNG(image, os, resolution);\n }\n }", "title": "" }, { "docid": "d4dcb538c1813cef99ed37a673fa1b47", "score": "0.6179047", "text": "private void saveBitmapToFile(Bitmap bmp) throws IOException {\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"PNG_\" + timeStamp + \"_\";\n File storageDir = getFilesDir();\n File image = File.createTempFile(\n imageFileName, /* prefix */\n \".png\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n currentPhotoPath_ = image.getAbsolutePath();\n Log.d(\"debug\", \"current photo path: \" + currentPhotoPath_);\n FileOutputStream out = null;\n try {\n out = new FileOutputStream(currentPhotoPath_);\n bmp.compress(Bitmap.CompressFormat.PNG, 100, out); // bmp is your Bitmap instance\n // PNG is a lossless format, the compression factor (100) is ignored\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (out != null) {\n out.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "title": "" }, { "docid": "eb884f7db9eda93e04a7cffb39c86c06", "score": "0.61765313", "text": "private static void saveImages(ProblemInstance pi, Individual ind) {\n\t\tind.updateSegmentRepresentation();\n\t\t\n\t\tint numSegments = ind.getSegments().size();\n\t\t\n\t\tBufferedImage[] images = ImageUtils.generateImages(pi, ind);\n\t try {\n\t \t// Create directories\n\t \tnew File(config.get(\"evaluationDir\")).mkdir();\n\t \tnew File(config.get(\"outputDir\")).mkdir();\n\t \t\n\t \tif(!clearedOutputDirs) {\n\t \t\tclearDirectory(new File(config.get(\"outputDir\")));\n\t \t\tclearDirectory(new File(config.get(\"evaluationDir\")));\n\t \t\tclearedOutputDirs = true;\n\t \t}\n\t \t\n\t \tint n = 0;\n\t \tString fileSuffix;\n\t \tdo {\n\t \t\tfileSuffix = numSegments + \"seg\" + (n==0 ? \"\" : \"_(\" + n + \")\") + \".png\";\n\t \t\tn++;\n\t \t} while(new File(config.get(\"evaluationDir\") + \"segmentation_\" + fileSuffix).exists());\n\n\t \t// Save the image for evaluation\n\t \tFile evalFile = new File(config.get(\"evaluationDir\") + \"segmentation_\" + fileSuffix);\n\t \tImageIO.write(images[1], \"png\", evalFile);\n\t \t\n\t \t// Save both images in the output directory\n\t \tfor(int i = 0; i < images.length; i++) {\n\t \t\tFile file = new File(config.get(\"outputDir\") + \"segmentation_\" + (i+1) + \"_\" + fileSuffix);\n\t \t\tImageIO.write(images[i], \"png\", file);\n\t \t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5c6f17386127b6b166e2fe5e849d9213", "score": "0.6168743", "text": "public static void saveImage(int width, byte[] rgbData, String fileName)\r\n\t{\r\n\t\ttry {\r\n\r\n\t\t\tBufferedImage image = bytes2RGB(width, rgbData);\r\n\t\t\tImageIO.write(image, \"png\", new File(fileName));\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"ERROR SAVING FILE: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b065a1c4d26629ebc6ca4d89fa344d7b", "score": "0.6168505", "text": "public boolean save(ImageExport export) {\n\t\treturn _save(export.getJsObj());\n\t}", "title": "" }, { "docid": "2bcf74f85dfb3be105f3687f5cde6eb8", "score": "0.6163035", "text": "@Override\n \tpublic void doSaveAs() {\n \t\t\n \t}", "title": "" }, { "docid": "2bcf74f85dfb3be105f3687f5cde6eb8", "score": "0.6163035", "text": "@Override\n \tpublic void doSaveAs() {\n \t\t\n \t}", "title": "" }, { "docid": "e5845bff04d1dd1da5d037c4aa753e54", "score": "0.6148444", "text": "@Override\npublic void takePhoto() {\n\tSystem.out.println(\"叮叮咚,咔擦,照片已储存\");\n}", "title": "" }, { "docid": "8891b393c328cde6863a3077fe32d846", "score": "0.6140931", "text": "public Bitmap save(byte[] bytes){\n OutputStream outputStream = null;\n //Bitmap b = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\n Bitmap b = imageView.getBitmap();\n finalImage = b;\n\n\n try {\n OutputStream out = new FileOutputStream(filepath);\n b.compress(Bitmap.CompressFormat.JPEG, 100, out);\n out.flush();\n out.close();\n\n } catch (Exception e){\n Toast.makeText(FtcRobotControllerActivity.this, e+\"\", Toast.LENGTH_LONG).show();\n }\n\n /*try {\n outputStream = new FileOutputStream(filepath);\n outputStream.write(bytes);\n outputStream.close();\n Toast.makeText(FtcRobotControllerActivity.this, filepath+\"\", Toast.LENGTH_LONG).show();\n } catch (Exception e){\n Toast.makeText(FtcRobotControllerActivity.this, e+\"\", Toast.LENGTH_LONG).show();\n }*/\n return b;\n }", "title": "" }, { "docid": "81606f6d4c94ba75dd82d277e7464af4", "score": "0.6137282", "text": "public void saveFileAs() {\n\t\t// Choose the file to save to\n\t\tFileDialog chooser = new java.awt.FileDialog(this, \"Select a name to save the image '\"+this.image.getName()+\"'\", FileDialog.SAVE);\n\t\tchooser.setVisible(true);\n\t\t\n\t\tif(chooser.getFile() == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString choosen = chooser.getDirectory() + chooser.getFile();\n\t\tString format;\n\t\t\n\t\t// Try to get the format\n\t\ttry {\n\t\t\tString tmp[] = choosen.split(\"\\\\.\");\n\t\t\tformat = tmp[tmp.length - 1];\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t \"Error while saving file : \"+choosen+\" is not a valid filename\",\n\t\t\t\t \"Error\",\n\t\t\t\t JOptionPane.ERROR_MESSAGE);\n\t\t e.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.save(choosen, format);\n\t}", "title": "" }, { "docid": "63e82b2217e0ec2041a5e319cac9d482", "score": "0.6131777", "text": "public void saveImageFile(Bitmap bitmap, String name) {\n File sdCardDirectory = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/HCTControl/Crop\");\n if(!sdCardDirectory.exists()) {\n sdCardDirectory.mkdir();\n }\n File image = new File(sdCardDirectory, name + \".png\");\n boolean success = false;\n\n // Encode the file as a PNG image.\n FileOutputStream outStream;\n try {\n\n outStream = new FileOutputStream(image);\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, outStream);\n /* 100 to keep full quality of the image */\n\n outStream.flush();\n outStream.close();\n success = true;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (success) {\n Toast.makeText(getApplicationContext(), \"¡¡ Imagen guardada correctamente !!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(), \"¡¡ Error al guardar la imagen !!\", Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "ca4ba47e1bfa6c9b8402c3eb4c4a2bfb", "score": "0.6127315", "text": "public void pathImage(String title, BufferedImage img);", "title": "" }, { "docid": "a63f295ebcaca7681412c1c51102f6b3", "score": "0.61253774", "text": "private void saveNewImage()\n \t{\n \t\t//If an image hasn't been loaded yet, tell the user and return\n \t\tif (myImage == null)\n \t\t{\n \t\t\tJOptionPane.showMessageDialog(null, \"No image has been loaded yet. Please load an image first.\");\n \t\t\treturn;\n \t\t}\n \t\t\n \t\t//If dimensions haven't been set yet, tell the user and return\n \t\tif (cropWidth == 0 || cropHeight == 0)\n \t\t{\n \t\t\tJOptionPane.showMessageDialog(null, \"No dimensions have been set yet.\");\n \t\t\treturn;\n \t\t}\n \t\t\n \t\t//Create the subimage based on where the transparent panel has been placed\n \t\tsubImage = myImage.getSubimage(boxPanel.getX(), boxPanel.getY(), boxPanel.getWidth(), boxPanel.getHeight());\n \t\t\n \t\t//Create a JFileChooser to save the user's new subimage\n \t\tJFileChooser chooser = new JFileChooser();\n \t\t\n \t\t//Find out where the user wants to save the file\n \t\tint choice = chooser.showSaveDialog(myFrame);\n \t\tif (choice == JFileChooser.APPROVE_OPTION)\n \t\t{\n \t\t\t//Get the filename the user chose to save the new image as\n \t\t\tString outFileName = chooser.getSelectedFile().getName();\n \t\t\t\n \t\t\t//If the user specified a file extension, use it\n \t\t\tif (outFileName.indexOf(\".\") != -1)\n \t\t\t\tfileExtension = outFileName.substring(outFileName.lastIndexOf(\".\") + 1);\n \t\t\t//Otherwise, use the file extension of the input file\n \t\t\telse\n \t\t\t\tfileExtension = inputFile.getName().substring(inputFile.getName().lastIndexOf(\".\") + 1);\n \t\t\t\n \t\t\t//Try to save the new image to file\n \t\t\ttry\n \t\t\t{\n \t\t\t\t//Write the file to disk. Tell the user the file was written successfully\n \t\t\t\tif (ImageIO.write(subImage, fileExtension, chooser.getSelectedFile()))\n \t\t\t\t\tJOptionPane.showMessageDialog(null, \"New image created successfully.\");\n \t\t\t\t//The file could not be written. Throw an IOException\n \t\t\t\telse\n \t\t\t\t\tthrow new IOException(\"Could not write output file (Unknown cause).\");\n \t\t\t}\n \t\t\t//If an IOException was encountered, tell the user\n \t\t\tcatch(IOException e)\n \t\t\t{\n \t\t\t\tJOptionPane.showMessageDialog(null, \"Error: \" + e.getMessage());\t\t\t\t\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "811d286fbb1a88cd81ae523a348e2281", "score": "0.61221176", "text": "public int writeImage(String outputFilename) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7da70a73a6f6726e2859c44fe9a48d92", "score": "0.61207527", "text": "public final void saveAnnotations() {\n if (m_imageFile == null /*|| !m_altered*/) {\n return;\n }\n\n AnnotationPersistenceServiceFactory.getAnnotationPersistenceService()\n .saveAnnotations(m_imageFile, m_annotations);\n }", "title": "" }, { "docid": "0dbb5a55640fd37020a115d29def2738", "score": "0.6117463", "text": "void save(Path path);", "title": "" }, { "docid": "eaa166ebbc49a2bdd4f59a4b4aab4adf", "score": "0.61139226", "text": "private void writeObject(ObjectOutputStream out) throws IOException {\r\n\t\tif(currentImage != null) {\r\n\r\n\t ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n\t currentImage.compress(Bitmap.CompressFormat.PNG, 100, stream);\r\n\t SerializableImage bitmapDataObject = new SerializableImage(); \r\n\t bitmapDataObject.imageByteArray = stream.toByteArray();\r\n\t out.writeObject(bitmapDataObject);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4305e4e2e6b148e3f5849e3a8d0f0221", "score": "0.6109735", "text": "@Override\r\n\tpublic void save(String fileName) {\n\t\t\r\n\t}", "title": "" } ]
c23ced78d2aae56ae8a1114786b00798
private static final String realXMLFile = "ElsevierDTD5_main.xml";
[ { "docid": "fd0a29e7f8e3e3191bc87911b4d145b0", "score": "0.5973308", "text": "public void testFromDTD5XMLFile() throws Exception {\n InputStream file_input = null;\n try {\n file_input = getResourceAsStream(realXMLFile);\n String string_input = StringUtil.fromInputStream(file_input);\n IOUtil.safeClose(file_input);\n\n CIProperties xmlHeader = new CIProperties(); \n // mock up coming from a zip arhive\n String xml_url = TAR_A_BASE + SUBDIR + \"dataset.xml\";\n xmlHeader.put(CachedUrl.PROPERTY_CONTENT_TYPE, \"text/xml\");\n MockCachedUrl mcu = mau.addUrl(xml_url, true, true, xmlHeader);\n mcu.setContent(string_input);\n mcu.setContentSize(string_input.length());\n mcu.setProperty(CachedUrl.PROPERTY_CONTENT_TYPE, \"text/xml\");\n\n FileMetadataExtractor me = new ElsevierDTD5XmlSourceMetadataExtractorFactory().createFileMetadataExtractor(\n MetadataTarget.Any(), \"text/xml\");\n FileMetadataListExtractor mle =\n new FileMetadataListExtractor(me);\n List<ArticleMetadata> mdlist = mle.extract(MetadataTarget.Any(), mcu);\n /*\n * For the moment, this does nothing because we can't confirmt he existence of the matching pdf file\n */\n /*\n assertNotEmpty(mdlist);\n\n // check each returned md against expected values\n Iterator<ArticleMetadata> mdIt = mdlist.iterator();\n ArticleMetadata mdRecord = null;\n while (mdIt.hasNext()) {\n mdRecord = (ArticleMetadata) mdIt.next();\n log.info(\"Next record:\");\n log.info(mdRecord.toString());\n }\n */\n }finally {\n IOUtil.safeClose(file_input);\n }\n }", "title": "" } ]
[ { "docid": "f8892658411c4bd97f4b343aa5a4ffaa", "score": "0.6243093", "text": "@Test\r\n public void testXmlXXE_File_First() throws Exception {\n runTest(\"xml-xxe-file-first.xml\");\r\n }", "title": "" }, { "docid": "4f491c08e86ef752a1f420188781f89e", "score": "0.6225906", "text": "public static void ecrire(){\n ecrire(XMLFILE);\n }", "title": "" }, { "docid": "4abd05b53695a0d5f734d5734ccb0cea", "score": "0.60885394", "text": "@Test\r\n public void testXmlXXE_File() throws Exception {\n runTest(\"xml-xxe-file.xml\");\r\n }", "title": "" }, { "docid": "539c121b32c3624badb07c9e0e3d7ad5", "score": "0.6027972", "text": "@SuppressWarnings(\"unused\")\npublic static void main(String args[]) {\n\t String goodFile=\"data.xml\";\n String badFile=\"badData.xml\";\n\t try{\n\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t factory.setValidating(true);\n\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t builder.setErrorHandler(new org.xml.sax.ErrorHandler() {\n\t\t\t\t public void fatalError(SAXParseException exception) throws SAXException { }\n\t\t\t\t \n\t\t\t\t public void error(SAXParseException e) throws SAXParseException {\n\t\t\t\t\t System.out.println(\"Error on line \" +e.getLineNumber() );\n\t\t\t\t\t System.out.println(e.getMessage());\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\t\t\t\t \n\t\t\t\t public void warning(SAXParseException err) throws SAXParseException{\n\t\t\t\t\t System.out.println(err.getMessage());\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\t\t });\n\t\t Document xmlDocument = builder.parse(new FileInputStream(badFile));\n\t\t DOMSource source = new DOMSource(xmlDocument);\n\t\t StreamResult result = new StreamResult(System.out);\n\t\t TransformerFactory tf = TransformerFactory.newInstance();\n\t\t Transformer transformer = tf.newTransformer();\n\t\t transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"data.dtd\");\n\t\t transformer.transform(source, result);\n }\n catch (Exception e) {\n\t\t e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6a6d6f924198eea657310bc8dd0165ba", "score": "0.59704846", "text": "public static void testxml() {\n \n}", "title": "" }, { "docid": "7a29a5779291a894f1957a33f28f2d0a", "score": "0.5940856", "text": "XMLHandler(String pathname, String questionSetName) {\n String x = pathname + \"\\\\\" + questionSetName + \".xml\";\n f = new File(x);\n System.out.println(f.getAbsolutePath());\n }", "title": "" }, { "docid": "021c7444d2d72de19463f47aa85516bb", "score": "0.58290315", "text": "public static void init() {\r\n\t\ttry {\r\n\t\t\tFile file = new File(XML_FILE);\r\n\t\t\t/**\r\n\t\t\t * if the configuration file does not exist yet, then create the\r\n\t\t\t * default one\r\n\t\t\t */\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tcreateDeafaultXML();\r\n\t\t\t}\r\n\t\t\treadFromXML();\r\n\t\t} catch (JDOMException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5f915fce069cc0e1def87da29ffd4840", "score": "0.5770876", "text": "static Document getXML(String dirLine){\n try {\n String address = \"http://www.nbp.pl/kursy/xml/\"+(dirLine)+\".xml\";\n URL url;\n url = new URL(address);\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(url.openStream());\n return doc;\n \n } catch (ParserConfigurationException | SAXException | IOException ex) {\n Logger.getLogger(XMLhandling.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "title": "" }, { "docid": "d3fc393ed53da9b613df24734b3bc1e7", "score": "0.5720329", "text": "@Test\r\n public void amberMdout2XML() {\n }", "title": "" }, { "docid": "694e1f52da6742266d9f4b6064c8aad8", "score": "0.567981", "text": "@Test\r\n public void loadXMLTest() throws IOException{\n \r\n String xml = this.getEmbeddedResourceAsString(\"/xml/data.xml\");\r\n assertNotNull(xml);\r\n \r\n }", "title": "" }, { "docid": "84cb2ddd730724edfc093652032bf8d6", "score": "0.56283045", "text": "public void generarXml(){\n\t\tdocu = new TratarXml(user,pass);\n\t\tString[] consulta = {\"id\",\"fecha\",\"nombre\",\"prioridad\",\"datos\"};\n\t\tdocu.generarXml(bbdd, consulta);\n\t\tFileOutputStream fSalida;\n\t\ttry {\n\t\t\tfSalida = openFileOutput(\"f.xml\", MODE_WORLD_WRITEABLE);\n\t\t\tdocu.setFichero(\"f.xml\");\n\t\t\tdocu.GenerarArchivo(fSalida);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.d(\"FIC\",e.getMessage());\n\t\t }\n\t\t\n }", "title": "" }, { "docid": "55f25d8acb32d96d96e62786fa15c472", "score": "0.56266195", "text": "private InputStream createMockDecisionDefinitionDmnXml() {\n InputStream dmnXmlInputStream = ReflectUtil.getResourceAsStream(\"decisions/decision-model.dmn\");\n Assert.assertNotNull(dmnXmlInputStream);\n return dmnXmlInputStream;\n }", "title": "" }, { "docid": "859e8b6cddcf310f81f57555bceec018", "score": "0.5624067", "text": "public static void lire(){\n lire(XMLFILE);\n }", "title": "" }, { "docid": "c2d2ec9757a22a7d1cb25b20b4d52f6d", "score": "0.56172013", "text": "private static void createInitialDataXml(String dir, String filename) throws Exception {\r\n // Create XML file in the .ihale directory.\r\n File ihaleDirectory = new File(System.getProperty(\"user.home\"), dir);\r\n File historyXml = new File(ihaleDirectory, filename);\r\n\r\n // Location of our test XML files.\r\n String historyTestXml = System.getProperty(\"user.dir\") + \"/test-history.xml\";\r\n\r\n // Copy our history XML file used for test cases into the iHale directory.\r\n FileChannel source = null;\r\n FileChannel destination = null;\r\n source = new FileInputStream(historyTestXml).getChannel();\r\n destination = new FileOutputStream(historyXml).getChannel();\r\n if (destination != null && source != null) {\r\n destination.transferFrom(source, 0, source.size());\r\n }\r\n if (source != null) {\r\n source.close();\r\n }\r\n if (destination != null) {\r\n destination.close();\r\n }\r\n }", "title": "" }, { "docid": "e891d35d6aa0b5f40355504272b08b84", "score": "0.56056416", "text": "private String writeXMLValidFile1(boolean bDiamOnly) throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>100</plot_lenX>\");\n oOut.write(\"<plot_lenY>100</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">2</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">2</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">1</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">1</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">2</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">2</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_seedlingLinearSlope>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_1\\\">0.9629</tr_selsVal>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_2\\\">0.8997</tr_selsVal>\");\n oOut.write(\"</tr_seedlingLinearSlope>\");\n oOut.write(\"<tr_seedlingLinearIntercept>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_1\\\">0</tr_seliVal>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_2\\\">0</tr_seliVal>\");\n oOut.write(\"</tr_seedlingLinearIntercept>\");\n oOut.write(\"<tr_saplingReverseLinearSlope>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_1\\\">0.8</tr_sarlsVal>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_2\\\">0.7</tr_sarlsVal>\");\n oOut.write(\"</tr_saplingReverseLinearSlope>\");\n oOut.write(\"<tr_saplingReverseLinearIntercept>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_1\\\">-0.758</tr_sarliVal>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_2\\\">-0.33</tr_sarliVal>\");\n oOut.write(\"</tr_saplingReverseLinearIntercept>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>StormLight</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>LinearBilevelGrowth\"); if (bDiamOnly) oOut.write(\" diam only\"); oOut.write(\"</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Sapling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seedling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Sapling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seedling\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<StormLight1>\");\n oOut.write(\"<li_stormLightRadius>15</li_stormLightRadius>\");\n oOut.write(\"<li_stormLightSlope>-4</li_stormLightSlope>\");\n oOut.write(\"<li_stormLightIntercept>95</li_stormLightIntercept>\");\n oOut.write(\"<li_stormLightMaxDmgTime>3</li_stormLightMaxDmgTime>\");\n oOut.write(\"<li_stormLightSnagMaxDmgTime>2</li_stormLightSnagMaxDmgTime>\");\n oOut.write(\"<li_stormLightStoch>0</li_stormLightStoch>\");\n oOut.write(\"<li_stormLightMinFullCanopy>9</li_stormLightMinFullCanopy>\");\n oOut.write(\"</StormLight1>\");\n\n oOut.write(\"<LinearBilevelGrowth2>\");\n oOut.write(\"<gr_linearBilevLoLiteIntercept>\");\n oOut.write(\"<gr_lblliVal species=\\\"Species_1\\\">0.1</gr_lblliVal>\");\n oOut.write(\"<gr_lblliVal species=\\\"Species_2\\\">0</gr_lblliVal>\");\n oOut.write(\"</gr_linearBilevLoLiteIntercept>\");\n oOut.write(\"<gr_linearBilevHiLiteIntercept>\");\n oOut.write(\"<gr_lbhliVal species=\\\"Species_1\\\">0.3</gr_lbhliVal>\");\n oOut.write(\"<gr_lbhliVal species=\\\"Species_2\\\">0.4</gr_lbhliVal>\");\n oOut.write(\"</gr_linearBilevHiLiteIntercept>\");\n oOut.write(\"<gr_linearBilevLoLiteSlope>\");\n oOut.write(\"<gr_lbllsVal species=\\\"Species_1\\\">0.012</gr_lbllsVal>\");\n oOut.write(\"<gr_lbllsVal species=\\\"Species_2\\\">0.03</gr_lbllsVal>\");\n oOut.write(\"</gr_linearBilevLoLiteSlope>\");\n oOut.write(\"<gr_linearBilevHiLiteSlope>\");\n oOut.write(\"<gr_lbhlsVal species=\\\"Species_1\\\">0.045</gr_lbhlsVal>\");\n oOut.write(\"<gr_lbhlsVal species=\\\"Species_2\\\">0.056</gr_lbhlsVal>\");\n oOut.write(\"</gr_linearBilevHiLiteSlope>\");\n oOut.write(\"<gr_linearBilevHiLiteThreshold>\");\n oOut.write(\"<gr_lbhltVal species=\\\"Species_1\\\">20</gr_lbhltVal>\");\n oOut.write(\"<gr_lbhltVal species=\\\"Species_2\\\">50</gr_lbhltVal>\");\n oOut.write(\"</gr_linearBilevHiLiteThreshold>\");\n oOut.write(\"</LinearBilevelGrowth2>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "26935341052ea8d4c4d9d0a4a1fd6f9d", "score": "0.5585646", "text": "private static XML program() {\n return new XMLDocument(\n new UncheckedBytes(\n new BytesOf(\n new ResourceOf(\"org/eolang/maven/optimize/main.xml\")\n )\n ).asBytes()\n );\n }", "title": "" }, { "docid": "53b7bff4514a33fbe7363b47f290222c", "score": "0.5550605", "text": "@Test\r\n public void testXmlXXE_URL() throws Exception {\n runTest(\"xml-xxe-url.xml\");\r\n }", "title": "" }, { "docid": "be79289d49d13045c346e7db881a9a50", "score": "0.55416733", "text": "private String write6XMLValidFile() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n \n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?><paramFile fileCode=\\\"06050101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<randomSeed>0</randomSeed>\");\n oOut.write(\"<yearsPerTimestep>5.0</yearsPerTimestep>\");\n oOut.write(\"<plot_lenX>320.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>320.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>41.92</plot_latitude>\"); \n oOut.write(\"<plot_title>Default parameter file-use for testing only</plot_title>\");\n oOut.write(\"</plot>\"); \n oOut.write(\"<trees>\"); \n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"ACSA\\\"/>\"); \n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.2</tr_seedDiam10Cm>\"); \n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"ACSA\\\">10.0</tr_madVal>\"); \n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"ACSA\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\"); \n oOut.write(\"</trees>\"); \n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\"); \n oOut.write(\"<behaviorName>adultstochasticmort</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<applyTo species=\\\"ACSA\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\"); \n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>snag decay class dynamics</behaviorName>\");\n oOut.write(\"<version>2.0</version>\");\n oOut.write(\"<applyTo species=\\\"ACSA\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"ACSA\\\" type=\\\"Snag\\\" />\"); \n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\"); \n oOut.write(\"<behaviorName>removedead</behaviorName>\");\n oOut.write(\"<version>1</version>\"); \n oOut.write(\"<applyTo species=\\\"ACSA\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"ACSA\\\" type=\\\"Snag\\\" />\"); \n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\"); \n oOut.write(\"<allometry>\"); \n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"ACSA\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\"); \n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"ACSA\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\"); \n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"ACSA\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\"); \n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"ACSA\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\"); \n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"ACSA\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\"); \n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"ACSA\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"ACSA\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\"); \n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"ACSA\\\">24.8</tr_chVal>\"); \n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"ACSA\\\">0.107</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\"); \n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"ACSA\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\"); \n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"ACSA\\\">0.58</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\"); \n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"ACSA\\\">1.0</tr_scheVal>\"); \n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"ACSA\\\">0.75</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\"); \n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"ACSA\\\">0.0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\"); \n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"ACSA\\\">0.062333334</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight><tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"ACSA\\\">0.03</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\"); \n oOut.write(\"</allometry>\"); \n oOut.write(\"<growth>\");\n oOut.write(\"</growth>\"); \n oOut.write(\"<mortality>\"); \n oOut.write(\"<mo_nonSizeDepMort>\");\n oOut.write(\"<mo_nsdmVal species=\\\"ACSA\\\">1.0</mo_nsdmVal>\");\n oOut.write(\"</mo_nonSizeDepMort>\"); \n oOut.write(\"</mortality>\"); \n oOut.write(\"<disperse>\"); \n oOut.write(\"</disperse>\");\n oOut.write(\"<establishment>\"); \n oOut.write(\"</establishment>\"); \n oOut.write(\"<snagDynamics>\");\n oOut.write(\"<sd_snagDecompTreefallAlpha>-0.805</sd_snagDecompTreefallAlpha>\");\n oOut.write(\"<sd_snagDecompTreefallBeta>\");\n oOut.write(\"<sd_sdtbVal species=\\\"ACSA\\\">0.000</sd_sdtbVal>\");\n oOut.write(\"</sd_snagDecompTreefallBeta>\");\n oOut.write(\"<sd_snagDecompTreefallDelta>-0.016</sd_snagDecompTreefallDelta>\");\n oOut.write(\"<sd_snagDecompTreefallTheta>-0.026</sd_snagDecompTreefallTheta>\");\n oOut.write(\"<sd_snagDecompTreefallIota>3.389</sd_snagDecompTreefallIota>\");\n oOut.write(\"<sd_snagDecompTreefallLambda>-0.084</sd_snagDecompTreefallLambda>\");\n oOut.write(\"<sd_snagDecompSnagfallAlpha>5.691</sd_snagDecompSnagfallAlpha>\");\n oOut.write(\"<sd_snagDecompSnagfallBeta>\");\n oOut.write(\"<sd_sdsbVal species=\\\"ACSA\\\">0.08</sd_sdsbVal>\");\n oOut.write(\"</sd_snagDecompSnagfallBeta>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma2>0.177</sd_snagDecompSnagfallGamma2>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma3>0.542</sd_snagDecompSnagfallGamma3>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma4>0.702</sd_snagDecompSnagfallGamma4>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma5>0.528</sd_snagDecompSnagfallGamma5>\");\n oOut.write(\"<sd_snagDecompSnagfallZeta>-3.777</sd_snagDecompSnagfallZeta>\");\n oOut.write(\"<sd_snagDecompSnagfallEta>0.531</sd_snagDecompSnagfallEta>\");\n oOut.write(\"<sd_snagDecompSnagfallKappa>0.157</sd_snagDecompSnagfallKappa>\");\n oOut.write(\"<sd_snagDecompLiveTo1Prob>0.290</sd_snagDecompLiveTo1Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo2Prob>0.229</sd_snagDecompLiveTo2Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo3Prob>0.196</sd_snagDecompLiveTo3Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo4Prob>0.124</sd_snagDecompLiveTo4Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo5Prob>0.161</sd_snagDecompLiveTo5Prob>\");\n oOut.write(\"<sd_snagDecomp1To1Prob>0.045</sd_snagDecomp1To1Prob>\");\n oOut.write(\"<sd_snagDecomp1To2Prob>0.186</sd_snagDecomp1To2Prob>\");\n oOut.write(\"<sd_snagDecomp1To3Prob>0.329</sd_snagDecomp1To3Prob>\");\n oOut.write(\"<sd_snagDecomp1To4Prob>0.166</sd_snagDecomp1To4Prob>\");\n oOut.write(\"<sd_snagDecomp1To5Prob>0.274</sd_snagDecomp1To5Prob>\");\n oOut.write(\"<sd_snagDecomp2To2Prob>0.165</sd_snagDecomp2To2Prob>\");\n oOut.write(\"<sd_snagDecomp2To3Prob>0.379</sd_snagDecomp2To3Prob>\");\n oOut.write(\"<sd_snagDecomp2To4Prob>0.204</sd_snagDecomp2To4Prob>\");\n oOut.write(\"<sd_snagDecomp2To5Prob>0.252</sd_snagDecomp2To5Prob>\");\n oOut.write(\"<sd_snagDecomp3To3Prob>0.351</sd_snagDecomp3To3Prob>\");\n oOut.write(\"<sd_snagDecomp3To4Prob>0.346</sd_snagDecomp3To4Prob>\");\n oOut.write(\"<sd_snagDecomp3To5Prob>0.303</sd_snagDecomp3To5Prob>\");\n oOut.write(\"<sd_snagDecomp4To4Prob>0.527</sd_snagDecomp4To4Prob>\");\n oOut.write(\"<sd_snagDecomp4To5Prob>0.473</sd_snagDecomp4To5Prob>\");\n oOut.write(\"<sd_snagDecomp5To5Prob>1.000</sd_snagDecomp5To5Prob>\");\n oOut.write(\"<sd_minSnagBreakHeight>6</sd_minSnagBreakHeight>\");\n oOut.write(\"<sd_maxSnagBreakHeight>8</sd_maxSnagBreakHeight>\"); \n oOut.write(\"</snagDynamics>\");\n oOut.write(\"</paramFile>\");\n \n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "e2baca010f08f560976074a783fd3bff", "score": "0.55323344", "text": "public void readFile()\n{\n _xml = null; _srcPaths = _libPaths = null; _srcPath = _bldPath = null; _srcDir = _bldDir = null;\n if(_file!=null) _file.reload(); _file = null;\n}", "title": "" }, { "docid": "4be642265ff3312c31b2c4f28f2e1955", "score": "0.55205697", "text": "private String write6XMLValidFile(boolean bDiamOnly) throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n \n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>100</plot_lenX>\");\n oOut.write(\"<plot_lenY>100</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">2</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">2</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">2</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">2</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0241</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0263</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">40</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">40</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.7059</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">1</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">1</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">1</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">1</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">2</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">2</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">2</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">2</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_seedlingLinearSlope>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_1\\\">0.9629</tr_selsVal>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_2\\\">0.8997</tr_selsVal>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_3\\\">0.8997</tr_selsVal>\");\n oOut.write(\"<tr_selsVal species=\\\"Species_4\\\">3.857</tr_selsVal>\");\n oOut.write(\"</tr_seedlingLinearSlope>\");\n oOut.write(\"<tr_seedlingLinearIntercept>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_1\\\">0</tr_seliVal>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_2\\\">0</tr_seliVal>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_3\\\">0</tr_seliVal>\");\n oOut.write(\"<tr_seliVal species=\\\"Species_4\\\">0</tr_seliVal>\");\n oOut.write(\"</tr_seedlingLinearIntercept>\");\n oOut.write(\"<tr_saplingReverseLinearSlope>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_1\\\">0.8</tr_sarlsVal>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_2\\\">0.7</tr_sarlsVal>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_3\\\">0.7</tr_sarlsVal>\");\n oOut.write(\"<tr_sarlsVal species=\\\"Species_4\\\">0.6</tr_sarlsVal>\");\n oOut.write(\"</tr_saplingReverseLinearSlope>\");\n oOut.write(\"<tr_saplingReverseLinearIntercept>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_1\\\">-0.758</tr_sarliVal>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_2\\\">-0.33</tr_sarliVal>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_3\\\">-0.33</tr_sarliVal>\");\n oOut.write(\"<tr_sarliVal species=\\\"Species_4\\\">0.217</tr_sarliVal>\");\n oOut.write(\"</tr_saplingReverseLinearIntercept>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>Storm Light</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>linear bilevel growth\"); if (bDiamOnly) oOut.write(\" diam only\"); oOut.write(\"</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Sapling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seedling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Sapling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seedling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Sapling\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Seedling\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<lightOther>\");\n oOut.write(\"<li_stormLightRadius>15</li_stormLightRadius>\");\n oOut.write(\"<li_stormLightSlope>-4</li_stormLightSlope>\");\n oOut.write(\"<li_stormLightIntercept>95</li_stormLightIntercept>\");\n oOut.write(\"<li_stormLightMaxDmgTime>3</li_stormLightMaxDmgTime>\");\n oOut.write(\"<li_stormLightSnagMaxDmgTime>2</li_stormLightSnagMaxDmgTime>\");\n oOut.write(\"<li_stormLightStoch>0</li_stormLightStoch>\");\n oOut.write(\"<li_stormLightMinFullCanopy>9</li_stormLightMinFullCanopy>\");\n oOut.write(\"</lightOther>\");\n oOut.write(\"<growth>\");\n oOut.write(\"<gr_linearBilevLoLiteIntercept>\");\n oOut.write(\"<gr_lblliVal species=\\\"Species_1\\\">0.1</gr_lblliVal>\");\n oOut.write(\"<gr_lblliVal species=\\\"Species_2\\\">0</gr_lblliVal>\");\n oOut.write(\"<gr_lblliVal species=\\\"Species_4\\\">0.2</gr_lblliVal>\");\n oOut.write(\"</gr_linearBilevLoLiteIntercept>\");\n oOut.write(\"<gr_linearBilevHiLiteIntercept>\");\n oOut.write(\"<gr_lbhliVal species=\\\"Species_1\\\">0.3</gr_lbhliVal>\");\n oOut.write(\"<gr_lbhliVal species=\\\"Species_2\\\">0.4</gr_lbhliVal>\");\n oOut.write(\"<gr_lbhliVal species=\\\"Species_4\\\">0.5</gr_lbhliVal>\");\n oOut.write(\"</gr_linearBilevHiLiteIntercept>\");\n oOut.write(\"<gr_linearBilevLoLiteSlope>\");\n oOut.write(\"<gr_lbllsVal species=\\\"Species_1\\\">0.012</gr_lbllsVal>\");\n oOut.write(\"<gr_lbllsVal species=\\\"Species_2\\\">0.03</gr_lbllsVal>\");\n oOut.write(\"<gr_lbllsVal species=\\\"Species_4\\\">0.024</gr_lbllsVal>\");\n oOut.write(\"</gr_linearBilevLoLiteSlope>\");\n oOut.write(\"<gr_linearBilevHiLiteSlope>\");\n oOut.write(\"<gr_lbhlsVal species=\\\"Species_1\\\">0.045</gr_lbhlsVal>\");\n oOut.write(\"<gr_lbhlsVal species=\\\"Species_2\\\">0.056</gr_lbhlsVal>\");\n oOut.write(\"<gr_lbhlsVal species=\\\"Species_4\\\">0.067</gr_lbhlsVal>\");\n oOut.write(\"</gr_linearBilevHiLiteSlope>\");\n oOut.write(\"<gr_linearBilevHiLiteThreshold>\");\n oOut.write(\"<gr_lbhltVal species=\\\"Species_1\\\">20</gr_lbhltVal>\");\n oOut.write(\"<gr_lbhltVal species=\\\"Species_2\\\">50</gr_lbhltVal>\");\n oOut.write(\"<gr_lbhltVal species=\\\"Species_4\\\">70</gr_lbhltVal>\");\n oOut.write(\"</gr_linearBilevHiLiteThreshold>\");\n oOut.write(\"</growth>\");\n oOut.write(\"</paramFile>\");\n \n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "87dcfdb87684103c5154bd72ff952a98", "score": "0.54983544", "text": "private static void serializarXML() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8723048b7fb34d2a1dcfbe0d00e059f4", "score": "0.5484745", "text": "public boolean loadXML(String source) {\n return false;\n}", "title": "" }, { "docid": "5bcdce13734b43d44c2309edce1b82c7", "score": "0.54633576", "text": "protected XMLElement createXML()\n{\n WebFile file = getFile();\n if(file!=null && file.getExists())\n return XMLElement.getElement(file);\n XMLElement xml = new XMLElement(\"classpath\");\n return xml;\n}", "title": "" }, { "docid": "73b5f3191f42852ba3df292cb1af4dc2", "score": "0.5452157", "text": "public static void generateDefaultXml() {\n\t}", "title": "" }, { "docid": "85719f7a42fb5137801b70161a26e8d4", "score": "0.54289234", "text": "@Override\n protected String getDataFileLocation() {\n return TestUtil.getFilePathInSandboxFolder(\"SomeFileThatDoesNotExist1234567890.xml\");\n }", "title": "" }, { "docid": "2a3ef818898f65df9a4df198d926f6ef", "score": "0.542571", "text": "public void creatXMLFile() throws ParserConfigurationException {\n document = docBuilder.newDocument();\n\t\n \n }", "title": "" }, { "docid": "69ccde5216e1016e3558c4fabbbccdca", "score": "0.5360689", "text": "public FreeCodeGenXML()\n {\n }", "title": "" }, { "docid": "25803d26ee6c0be6df1810ea7a961ee9", "score": "0.53488356", "text": "DTD getDTD();", "title": "" }, { "docid": "25803d26ee6c0be6df1810ea7a961ee9", "score": "0.53488356", "text": "DTD getDTD();", "title": "" }, { "docid": "a1956e0b7153f16a96ea3840986c07b3", "score": "0.5345586", "text": "@Test\n public void readXmlDocument_xxe() throws IOException {\n String xml = \"<!DOCTYPE foo [\"\n + \"<!ENTITY bar SYSTEM \\\"file://\" + tempFile + \"\\\">\"\n + \"]>\"\n + \"<root>&bar;</root>\";\n\n Document doc = XmlUtil.getInstance().readXmlDocument(new StringReader(xml));\n assertNotNull(doc);\n Element root = doc.getDocumentElement();\n assertEquals(\"\", root.getTextContent());\n }", "title": "" }, { "docid": "9524b41e6788225eb7507d99b8811bb8", "score": "0.5343187", "text": "void readXML(File xml) throws FileNotFoundException;", "title": "" }, { "docid": "01610aa66c991ea33ebb201b3743721f", "score": "0.533712", "text": "public static DesignDocument openDocument(InterfaceFrameOperation iFrameOperator, File fRxml) {\n try {\n // Start the xml parsing.\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setValidating(false);\n DocumentBuilder docBuilder = factory.newDocumentBuilder();\n Document doc = docBuilder.parse(new FileInputStream(fRxml));\n\n // This should be the <rxml> element.\n Element root = doc.getDocumentElement();\n if (\"rxml\".equals(root.getNodeName()) == false)\n throw new Exception(\"Missing root element [rxml]. Not rxml file.\");\n\n // Load the DesignPanel.\n DesignPanel dPanel = DesignPanel.openDesign(root, iFrameOperator);\n\n // Create the DesignDocument.\n DesignDocument document = new DesignDocument(dPanel, iFrameOperator.getFileMenuList());\n\n // Version 2.0 introduced new items such as stages and meta drawing needed by this class.\n if (\"2.0\".equals(XmlUtil.getAttributeString(root, \"v\"))) {\n // Get the gui stage.\n Element eStage = XmlUtil.getElementByTagName(root, \"stage\");\n document.guiStage = XmlUtil.getAttributeInteger(eStage, \"value\");\n\n // Get the meta drawing information.\n Element eDrawing = XmlUtil.getElementByTagName(root, \"metaDrawingInfo\");\n document.metaDrawingInfo.loadVersion20(eDrawing);\n }\n\n // Set the name of the file.\n document.fileName = fRxml.getName();\n document.fAbsolutePath = fRxml;\n\n // Update the file menu list to this file.\n iFrameOperator.getFileMenuList().updateFileOpenList(fRxml.getAbsolutePath());\n\n return document;\n } catch (Exception e) {\n DefaultExceptionHandler.printExceptionToLog(e, \"Unable to open the drawing at the path [\" + fRxml.getAbsolutePath() + \"].\");\n }\n\n return null;\n }", "title": "" }, { "docid": "f1745f982ddf6cc286892c0dd9525f81", "score": "0.5321717", "text": "@Override\n protected void loadXMLDescription() {\n\n }", "title": "" }, { "docid": "4c90e0ccac336a9c4733a796ade54449", "score": "0.53125614", "text": "public void BotonXMLClick(View v) {\n boolean permiso = (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED);\n if (!permiso) {\n AlertDialog.Builder dialogo_aviso = new AlertDialog.Builder(Main2Activity.this);\n dialogo_aviso.setMessage(\"No se pudo guardar el archivo.\\nEs necesario que conceda permiso a la aplicación para acceder al almacenamiento interno de su móvil.\\nPuede hacer esto en ajustes < aplicaciones < permisos < memoria\").setCancelable(false)\n .setNeutralButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n AlertDialog dialogo_titulo = dialogo_aviso.create();\n dialogo_titulo.setTitle(\"Permiso denegado\");\n dialogo_titulo.show();\n } else {//si la app SÍ tiene permiso de acceso al almacenamiento\n baseDatos = (SQLiteDatabase) Singleton.busca(\"basedatos\");\n //objetos necesarios para manejar un archivo en formato XML\n DocumentBuilderFactory dbf;\n DocumentBuilder db;\n dbf = DocumentBuilderFactory.newInstance();\n try {\n //se recoge el nombre del archivo\n String ordenSQL = \"SELECT nombre FROM tablaUltimoArchivo\";\n Cursor cursor_nombre_archivo = baseDatos.rawQuery(ordenSQL, null);\n cursor_nombre_archivo.moveToFirst();\n String nombreArchivo = cursor_nombre_archivo.getString(0);\n //se consultan la fecha y hora anctuales\n Date date = new Date();\n SimpleDateFormat fecha= new SimpleDateFormat(\"d/MMMM/yyyy\");\n String sfecha =fecha.format(date);\n SimpleDateFormat hora= new SimpleDateFormat(\"HH:mm\");\n String shora =hora.format(date);\n //objetos necesarios para manejar un archivo en formato XML\n db = dbf.newDocumentBuilder();\n Document documento = db.newDocument();\n Element elementoRaiz = documento.createElement(\"Clusters_\"+nombreArchivo);\n documento.appendChild(elementoRaiz);\n elementoRaiz.setAttribute(\"fecha\", sfecha);\n elementoRaiz.setAttribute(\"hora\", shora);\n //se guarda en cursores la información de los modos de funcionamiento\n ordenSQL = \"SELECT nombre_cluster FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_nombre = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT descripcion FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_descripcion = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT medio FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_medio = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT desviacion FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_desviacion = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT aviso FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_aviso = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT textoaviso FROM tablaClusters WHERE nombre_archivo ='\"+ nombreArchivo+\"' \";\n Cursor cursor_textoaviso = baseDatos.rawQuery(ordenSQL, null);\n ordenSQL = \"SELECT numatributos FROM tablaArchivos WHERE nombre ='\"+ nombreArchivo+\"' \";\n Cursor cursor_numatributos = baseDatos.rawQuery(ordenSQL, null);\n cursor_numatributos.moveToFirst();\n Integer numero_atributos = cursor_numatributos.getInt(0);\n ordenSQL = \"SELECT nombre_atributos FROM tablaArchivos WHERE nombre ='\"+ nombreArchivo+\"' \";\n Cursor cursor_nombre_atributos = baseDatos.rawQuery(ordenSQL, null);\n cursor_nombre_atributos.moveToFirst();\n String nombre_atributos_juntos = cursor_nombre_atributos.getString(0);\n String [] nombres_atributos = nombre_atributos_juntos.split(\",\");\n cursor_descripcion.moveToFirst();\n cursor_medio.moveToFirst();\n cursor_desviacion.moveToFirst();\n cursor_aviso.moveToFirst();\n cursor_textoaviso.moveToFirst();\n //se añade la información de los modos de funcionamiento\n if (cursor_nombre.moveToFirst()) {\n do {\n Element cluster = documento.createElement(\"cluster\");\n elementoRaiz.appendChild(cluster);\n\n Element nomb = documento.createElement(\"nombre\");\n nomb.appendChild(documento.createTextNode(cursor_nombre.getString(0)));\n cluster.appendChild(nomb);\n\n Element desc = documento.createElement(\"descripcion\");\n desc.appendChild(documento.createTextNode(cursor_descripcion.getString(0)));\n cluster.appendChild(desc);\n\n String[] vmedio = cursor_medio.getString(0).split(\",\");\n Element valores_medios = documento.createElement(\"valores_medios\");\n cluster.appendChild(valores_medios);\n for (int a =0 ; a < numero_atributos ; a++) {\n valores_medios.setAttribute(nombres_atributos[a], vmedio[a]);\n }\n String[] vdesviacion = cursor_desviacion.getString(0).split(\",\");\n Element valores_desviaciones = documento.createElement(\"valores_desviaciones\");\n cluster.appendChild(valores_desviaciones);\n for (int a =0 ; a < numero_atributos ; a++) {\n valores_desviaciones.setAttribute(nombres_atributos[a], vdesviacion[a]);\n }\n String avis = \"NO\";\n if (cursor_aviso.getString(0).equals(\"1\")) {\n avis = \"SI\";\n }\n Element aviso = documento.createElement(\"aviso\");\n cluster.appendChild(aviso);\n aviso.setAttribute(\"Emitir_aviso\", avis);\n if (cursor_aviso.getString(0).equals(\"1\")) {\n aviso.setAttribute(\"Texto_aviso\", cursor_textoaviso.getString(0));\n }\n cursor_descripcion.moveToNext();\n cursor_medio.moveToNext();\n cursor_desviacion.moveToNext();\n cursor_aviso.moveToNext();\n cursor_textoaviso.moveToNext();\n } while (cursor_nombre.moveToNext());\n }\n //se guarda el archivo\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource fuente = new DOMSource(documento);\n File tarjeta = Environment.getExternalStorageDirectory();\n File file = new File(tarjeta.getAbsolutePath(), \"clusters_\"+nombreArchivo+\".xml\");\n StreamResult resultado = new StreamResult(file);\n transformer.transform(fuente, resultado);\n //se muestra mensaje de guardado\n Toast.makeText(this, \"Guardado\", Toast.LENGTH_SHORT).show();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n System.out.println(\"Error\" + e.getMessage());\n System.exit(0);\n } catch (TransformerException tfe) {\n System.out.println(\"Error\" + tfe.getMessage());\n System.exit(0);\n }\n }\n }", "title": "" }, { "docid": "a0fc6e43680a48b0a22e7d5808b13524", "score": "0.5296516", "text": "private String writeXMLValidFile1() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"</allometry>\");\n\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>SnagDecayClassDynamics</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<grid gridName=\\\"Snag Decay Class Dynamics Basal Area\\\">\");\n oOut.write(\"<ma_lengthXCells>4</ma_lengthXCells>\");\n oOut.write(\"<ma_lengthYCells>5</ma_lengthYCells>\");\n oOut.write(\"</grid>\");\n oOut.write(\"<SnagDecayClassDynamics1>\");\n oOut.write(\"<sd_snagDecompTreefallAlpha>-0.805</sd_snagDecompTreefallAlpha>\");\n oOut.write(\"<sd_snagDecompTreefallBeta>\");\n oOut.write(\"<sd_sdtbVal species=\\\"Species_1\\\">2</sd_sdtbVal>\");\n oOut.write(\"<sd_sdtbVal species=\\\"Species_2\\\">0.057</sd_sdtbVal>\");\n oOut.write(\"</sd_snagDecompTreefallBeta>\");\n oOut.write(\"<sd_snagDecompTreefallDelta>-0.016</sd_snagDecompTreefallDelta>\");\n oOut.write(\"<sd_snagDecompTreefallTheta>-0.026</sd_snagDecompTreefallTheta>\");\n oOut.write(\"<sd_snagDecompTreefallIota>3.389</sd_snagDecompTreefallIota>\");\n oOut.write(\"<sd_snagDecompTreefallLambda>-0.084</sd_snagDecompTreefallLambda>\");\n oOut.write(\"<sd_snagDecompSnagfallAlpha>5.691</sd_snagDecompSnagfallAlpha>\");\n oOut.write(\"<sd_snagDecompSnagfallBeta>\");\n oOut.write(\"<sd_sdsbVal species=\\\"Species_1\\\">3</sd_sdsbVal>\");\n oOut.write(\"<sd_sdsbVal species=\\\"Species_2\\\">0.092</sd_sdsbVal>\");\n oOut.write(\"</sd_snagDecompSnagfallBeta>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma2>0.177</sd_snagDecompSnagfallGamma2>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma3>0.542</sd_snagDecompSnagfallGamma3>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma4>0.702</sd_snagDecompSnagfallGamma4>\");\n oOut.write(\"<sd_snagDecompSnagfallGamma5>0.528</sd_snagDecompSnagfallGamma5>\");\n oOut.write(\"<sd_snagDecompSnagfallZeta>-3.777</sd_snagDecompSnagfallZeta>\");\n oOut.write(\"<sd_snagDecompSnagfallEta>0.531</sd_snagDecompSnagfallEta>\");\n oOut.write(\"<sd_snagDecompSnagfallKappa>0.157</sd_snagDecompSnagfallKappa>\");\n oOut.write(\"<sd_snagDecompLiveTo1Prob>0.290</sd_snagDecompLiveTo1Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo2Prob>0.229</sd_snagDecompLiveTo2Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo3Prob>0.196</sd_snagDecompLiveTo3Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo4Prob>0.124</sd_snagDecompLiveTo4Prob>\");\n oOut.write(\"<sd_snagDecompLiveTo5Prob>0.161</sd_snagDecompLiveTo5Prob>\");\n oOut.write(\"<sd_snagDecomp1To1Prob>0.045</sd_snagDecomp1To1Prob>\");\n oOut.write(\"<sd_snagDecomp1To2Prob>0.186</sd_snagDecomp1To2Prob>\");\n oOut.write(\"<sd_snagDecomp1To3Prob>0.329</sd_snagDecomp1To3Prob>\");\n oOut.write(\"<sd_snagDecomp1To4Prob>0.166</sd_snagDecomp1To4Prob>\");\n oOut.write(\"<sd_snagDecomp1To5Prob>0.274</sd_snagDecomp1To5Prob>\");\n oOut.write(\"<sd_snagDecomp2To2Prob>0.165</sd_snagDecomp2To2Prob>\");\n oOut.write(\"<sd_snagDecomp2To3Prob>0.379</sd_snagDecomp2To3Prob>\");\n oOut.write(\"<sd_snagDecomp2To4Prob>0.204</sd_snagDecomp2To4Prob>\");\n oOut.write(\"<sd_snagDecomp2To5Prob>0.252</sd_snagDecomp2To5Prob>\");\n oOut.write(\"<sd_snagDecomp3To3Prob>0.351</sd_snagDecomp3To3Prob>\");\n oOut.write(\"<sd_snagDecomp3To4Prob>0.346</sd_snagDecomp3To4Prob>\");\n oOut.write(\"<sd_snagDecomp3To5Prob>0.303</sd_snagDecomp3To5Prob>\");\n oOut.write(\"<sd_snagDecomp4To4Prob>0.527</sd_snagDecomp4To4Prob>\");\n oOut.write(\"<sd_snagDecomp4To5Prob>0.473</sd_snagDecomp4To5Prob>\");\n oOut.write(\"<sd_snagDecomp5To5Prob>1.000</sd_snagDecomp5To5Prob>\");\n oOut.write(\"<sd_minSnagBreakHeight>6</sd_minSnagBreakHeight>\");\n oOut.write(\"<sd_maxSnagBreakHeight>7</sd_maxSnagBreakHeight>\");\n oOut.write(\"</SnagDecayClassDynamics1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "69e3c5340f2fe9e09dbb5730e15d550e", "score": "0.5290488", "text": "public void setSourceXml(String xml) {\n _sourceXml = Val.chkStr(Val.removeBOM(xml));\n}", "title": "" }, { "docid": "0b457d7ab945b37db5e6c7e0e79ac0a8", "score": "0.5274136", "text": "public String getDescription(){\n return \".xml ending\";\n }", "title": "" }, { "docid": "49deb1dc1cf0c34d85ba0dbd3e06be5b", "score": "0.52723706", "text": "private String writeXMLSnagInitFile2() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>100.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>100.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\" />\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\" />\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s35.0\\\" />\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">30.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">35.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">40.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"<tr_snagInitialDensities>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"</tr_snagInitialDensities>\");\n\n WriteTreePopulationCommonStuff(oOut);\n\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>StochasticMortality</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>SnagDecayClassDynamics</behaviorName>\");\n oOut.write(\"<version>2.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>RemoveDead</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<StochasticMortality1>\");\n oOut.write(\"<mo_stochasticMortRate>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_1\\\">0.0</mo_smrVal>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_2\\\">0.0</mo_smrVal>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_3\\\">0.0</mo_smrVal>\");\n oOut.write(\"</mo_stochasticMortRate>\");\n oOut.write(\"</StochasticMortality1>\");\n\n WriteSnagParsCommonStuff(oOut);\n\n oOut.write(\"<sd_snagDecompInitialClasses>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_2\\\" whatSizeClass=\\\"s35.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.2</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.2</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.2</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.2</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.2</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"</sd_snagDecompInitialClasses>\");\n oOut.write(\"</SnagDecayClassDynamics2>\");\n\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "ee8fb954b858a0d9520e9fc5a9303e28", "score": "0.52481264", "text": "private String writeXMLSnagInitFile1() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>1</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>100.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>100.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\" />\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s15.0\\\" />\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\" />\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s35.0\\\" />\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s10.0\\\">0.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s15.0\\\">15.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">30.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s10.0\\\">5.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s15.0\\\">20.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">35.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s10.0\\\">10.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s15.0\\\">25.0</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s35.0\\\">40.0</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"<tr_snagInitialDensities>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s15.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s15.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"<tr_sidVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s15.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"<tr_snagInitialDensity sizeClass=\\\"s35.0\\\">1000.0</tr_snagInitialDensity>\");\n oOut.write(\"</tr_sidVals>\");\n oOut.write(\"</tr_snagInitialDensities>\");\n\n WriteTreePopulationCommonStuff(oOut);\n\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>StochasticMortality</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>SnagDecayClassDynamics</behaviorName>\");\n oOut.write(\"<version>2.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>RemoveDead</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\" />\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Snag\\\" />\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<StochasticMortality1>\");\n oOut.write(\"<mo_stochasticMortRate>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_1\\\">0.0</mo_smrVal>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_2\\\">0.0</mo_smrVal>\");\n oOut.write(\"<mo_smrVal species=\\\"Species_3\\\">0.0</mo_smrVal>\");\n oOut.write(\"</mo_stochasticMortRate>\");\n oOut.write(\"</StochasticMortality1>\");\n\n WriteSnagParsCommonStuff(oOut);\n\n oOut.write(\"<sd_snagDecompInitialClasses>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_1\\\" whatSizeClass=\\\"s15.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">1.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.0</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_1\\\" whatSizeClass=\\\"s35.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">1.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.0</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_2\\\" whatSizeClass=\\\"s15.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">1.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.0</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_2\\\" whatSizeClass=\\\"s35.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">1.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.0</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_3\\\" whatSizeClass=\\\"s15.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.0</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">1.0</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"<sd_idVals whatSpecies=\\\"Species_3\\\" whatSizeClass=\\\"s35.0\\\">\");\n oOut.write(\"<sd_id decayClass=\\\"1\\\">0.25</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"2\\\">0.31</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"3\\\">0.18</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"4\\\">0.22</sd_id>\");\n oOut.write(\"<sd_id decayClass=\\\"5\\\">0.04</sd_id>\");\n oOut.write(\"</sd_idVals>\");\n oOut.write(\"</sd_snagDecompInitialClasses>\");\n oOut.write(\"</SnagDecayClassDynamics2>\");\n\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }", "title": "" }, { "docid": "19250aedc41d8144719da6aba549cefc", "score": "0.5218208", "text": "protected void setFileNames() {\n inputFileName = \"DE01DE01215820100629161400000001.xml\";\r\n referenceFileName = null;\r\n \t\r\n encoding = \"UTF-8\";\r\n }", "title": "" }, { "docid": "0024490c98e4cc233eb72ee79a3f9902", "score": "0.52094674", "text": "private static File getTestFile() {\n return new File(getWriteLoc(), \"slivefile\");\n }", "title": "" }, { "docid": "e78a680b22042316cab748ea139e88ea", "score": "0.51985896", "text": "protected Document getAnimationsAndActionsDocument(Class<?> baseClass, String name) {\n\t\t\n\t\tDocument doc=null;\n DocumentBuilderFactory docBuildFactory=DocumentBuilderFactory.newInstance();\n \n String path=baseClass.getResource(\"xml/\"+name).toExternalForm();\n \n try{\n //parses the XML file\n DocumentBuilder docBuild=docBuildFactory.newDocumentBuilder();\n doc=docBuild.parse(path);\n }catch (Exception ex){}\n\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "b7f64ac998a3ac3592b95fca5a9b4d5a", "score": "0.5167123", "text": "@Test\n public void testOdtConversion() throws Exception\n {\n System.out.println(odtFile);\n System.out.println(odtDir);\n \n Assert.assertTrue(odtContentXml.exists());\n }", "title": "" }, { "docid": "7ff0675de7dc3a941791480f7dcb0132", "score": "0.5165884", "text": "public ReadXML() {\n }", "title": "" }, { "docid": "0db4cb1d1899d1a236f15ac9e4081db3", "score": "0.5163783", "text": "public String getSourceXml() {\n return _sourceXml;\n}", "title": "" }, { "docid": "58c08c88336b0129801cd9f9009b646e", "score": "0.5161316", "text": "public XmlConfig(String fname) throws Exception {\r\n\t\tthis.theDoc = DOM.loadDoc(fname);\r\n\t}", "title": "" }, { "docid": "cb75ab98cd899f5b8c311eb76a0284a7", "score": "0.51456016", "text": "public void newYMLFile() {\n\t\t\n\t}", "title": "" }, { "docid": "0a7093bb22f4f7ec21259a620544a907", "score": "0.51399666", "text": "@FXML\n void loadXML() {\n try {\n Offer offer = (Offer) JAXB_unmarshaller.unmarshal(new File(Configuration.XML_FOLDER + SELECTED_XML));\n updateOfferFields(offer);\n } catch (JAXBException e) {\n System.err.println(\"loadXML ERROR: \" + e.toString());\n displayAlert(\"XML file not loaded\",\n \"ERROR\",\n e.toString(),\n Alert.AlertType.ERROR);\n }\n }", "title": "" }, { "docid": "c30e36d1f0d114be6164d210df1ad3ff", "score": "0.513117", "text": "private static String convertXMLDocumentToString() {\n\t\ttry {\n\t\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tInputStream iStream = new FileInputStream(new File(\"student.xml\"));\n\t\t\torg.w3c.dom.Document document = documentBuilderFactory.newDocumentBuilder().parse(iStream);\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"false\");\n\t\t\ttransformer.transform(new DOMSource(document), new StreamResult(stringWriter));\n\t\t\tString output = stringWriter.toString();\n\t\t\tSystem.out.println(output.replaceAll(\"\\n|\\r|\\\\s+\", \"\"));\n\t\t\treturn output;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "4604abd7cb1c0a4bab471cdba15887ef", "score": "0.5128867", "text": "public void initDom(String xml) throws Exception{\n\t\tfactory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true); // never forget this!\n builder = factory.newDocumentBuilder();\n doc = builder.parse(\"temp.xml\");\n xpathfactory = XPathFactory.newInstance();\n xpath = xpathfactory.newXPath();\n\t}", "title": "" }, { "docid": "8f8bef92178d3577f31ff1fe9b52043b", "score": "0.51142555", "text": "public void createXML(){\r\n \tDocumentBuilderFactory icFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder icBuilder;\r\n FileOutputStream fileOut = null;\r\n char separator = '.';\r\n String newFilename = extractString(fileName, separator, 0);\r\n File file = new File(\"c:\\\\svnroot2\\\\nokc\\\\plugin\\\\\"+ newFilename+\".xml\");\r\n try {\r\n\t\t\tfileOut = new FileOutputStream(file);\r\n\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n \r\n try {\r\n icBuilder = icFactory.newDocumentBuilder();\r\n String classtype = \"Class\";\r\n if (interfaceFlag)\r\n \tclasstype = \"Interface\";\r\n Document doc = icBuilder.newDocument();\r\n \r\n Element mainRootElement = doc.createElementNS(\"http://schema.omg.org/spec/XMI/2.1\", \"xmi:XMI\");\r\n \r\n mainRootElement.setAttribute(\"xmlns:xmi\", \"http://schema.omg.org/spec/XMI/2.1\");\r\n mainRootElement.setAttribute(\"xmlns:uml\", \"http://schema.omg.org/spec/UML/2.0\");\r\n \r\n mainRootElement.setAttribute(\"xmi:version\", \"2.1\"); \r\n// \r\n doc.appendChild(mainRootElement);\r\n Element model = doc.createElement(\"uml:Model\");\r\n mainRootElement.appendChild(model);\r\n model.setAttribute(\"visibility\", \"public\"); \r\n model.setAttribute(\"name\", \"Biovigilans\");\r\n model.setAttribute(\"xmi:id\", \"Modeller\");\r\n Element packageElement = doc.createElement(\"PackagedElement\");\r\n \r\n packageElement.setAttribute(\"isAbstract\", \"false\");\r\n packageElement.setAttribute(\"visibility\", \"public\");\r\n packageElement.setAttribute(\"name\", newFilename);\r\n packageElement.setAttribute(\"xmi:type\", \"uml:\"+classtype);\r\n Element extension = doc.createElement(\"xmi:Extension\");\r\n extension.setAttribute(\"extender\",\"Select Architect\");\r\n packageElement.appendChild(extension);\r\n model.appendChild(packageElement);\r\n createClasstructure(extension, doc);\r\n createAttributes(packageElement, doc);\r\n createMethods(packageElement, doc);\r\n // output DOM XML to console \r\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n DOMSource source = new DOMSource(doc);\r\n StreamResult console = new StreamResult(fileOut);\r\n transformer.transform(source, console);\r\n \r\n System.out.println(\"\\nXML DOM Created Successfully..\");\r\n \r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "cc7af8ff99326dc50a08c92efc022aa6", "score": "0.5107146", "text": "public WorkFlowAdminTag()\n {\n super();\n //Remove the file:// that gets added from Config.getProperty\n String xmlTemp = Config.getProperty(\"XMLFILE\").substring(7);\n\n setXsl(Config.getProperty(\"WFXSLFILE\"));\n setXml(xmlTemp);\n }", "title": "" }, { "docid": "a3587459ac3671d213c509991972ac2c", "score": "0.51065457", "text": "public void initXML() throws ParserConfigurationException{\n\t\t \n\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t DOMImplementation impl = builder.getDOMImplementation();\n\n\t\t //xmldoc = impl.createDocument(null, \"Schelling_Model\", null);\n\t\t xmldoc = builder.newDocument();\n\t\t root = xmldoc.getDocumentElement();\n\t\t }", "title": "" }, { "docid": "9b9904edf5fc89906c8db239d8e779b6", "score": "0.5099177", "text": "private java.lang.String getXMLFileName() {\r\n return fieldXMLFileName;\r\n }", "title": "" }, { "docid": "b59a80c1be4d1463f02bab42f9f2b2f4", "score": "0.5098972", "text": "public static String XMLfiletoXMLString(String XMLfileName) throws Exception{\n File xmlFile = new File(\"src/\" + XMLfileName);\n Reader fileReader = new FileReader(xmlFile);\n BufferedReader bufReader = new BufferedReader(fileReader);\n StringBuilder sb = new StringBuilder();\n String line = bufReader.readLine();\n while (line!= null){\n sb.append(line).append(\"\\n\");\n line = bufReader.readLine();\n }\n String xml = sb.toString();\n bufReader.close();\n //System.out.println(xml);\n return xml;\n }", "title": "" }, { "docid": "b9e971e3da2c6a8090574f491c8d4019", "score": "0.50901145", "text": "public static void main(String[] args) {\n List<File> files = new ArrayList<File>();\n List<FileInputStream> inputStreams = new ArrayList<FileInputStream>();\n FileOutputStream outputStream = null;\n XMLInputFactory factory = XMLInputFactory.newInstance();\n Properties properties = null;\n boolean settingsNext = false;\n for (int i = 0; i < args.length; i++) {\n String arg = args[i];\n if (settingsNext) {\n try {\n FileReader reader = new FileReader(arg);\n properties = new Properties();\n properties.load(reader);\n reader.close();\n } catch (IOException e) {\n System.err.println(\"error loading settings: \"+e.getMessage());\n return;\n }\n settingsNext = false;\n } else {\n if (arg.equals(\"-s\") || arg.equals(\"--settings\")) {\n settingsNext = true;\n } else {\n files.add(new File(arg));\n }\n }\n }\n\n if (files.size() < 2) {\n System.err.println(\"not enough inputs\");\n return;\n }\n\n XMLStreamReader[] readers = new XMLStreamReader[files.size()-1];\n for (int i = 0; i < files.size()-1; i++) {\n try {\n FileInputStream fis = new FileInputStream(files.get(i));\n inputStreams.add(fis);\n readers[i] = factory.createXMLStreamReader(fis);\n } catch (FileNotFoundException e) {\n System.err.println(\"error opening \"+files.get(i)+\": \"+e.getMessage());\n return;\n } catch (XMLStreamException e) {\n System.err.println(\"could not read \"+files.get(i)+\": \"+e.getMessage());\n return;\n }\n }\n\n XMLStreamWriter writer = null;\n try {\n outputStream = new FileOutputStream(files.get(files.size()-1));\n writer = XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream);\n } catch (FileNotFoundException e) {\n System.err.println(\"could not read \"+files.get(files.size()-1)+\": \"+e.getMessage());\n return;\n } catch (XMLStreamException e) {\n System.err.println(\"could not read \"+files.get(files.size()-1)+\": \"+e.getMessage());\n return;\n }\n\n if (properties == null) {\n File propertiesFile = new File(\"merger.properties\");\n if (propertiesFile.exists()) {\n properties = new Properties();\n try {\n FileReader reader = new FileReader(propertiesFile);\n properties = new Properties();\n properties.load(reader);\n reader.close();\n } catch (IOException e) {\n System.err.println(\"error loading settings: \"+e.getMessage());\n return;\n }\n }\n }\n\n XMLStreamReader mergedStream = WiseMLMergerFactory.createMergingWiseMLStreamReader(\n new MergerConfiguration(properties), readers);\n\n try {\n\t\t\tnew XMLPipe(mergedStream, writer).streamUntilEnd();\n\t\t} catch (XMLStreamException e1) {\n\t\t\tSystem.err.println(e1.getMessage());\n\t\t\te1.printStackTrace();\n\t\t}\n\n try {\n writer.close();\n for (FileInputStream fis : inputStreams) {\n fis.close();\n }\n } catch (XMLStreamException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n } catch (IOException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "30bdc42ac8a6952050839f65feadcc79", "score": "0.5081905", "text": "private void init() {\n\t\ttry {\n\t\t\tXmlPullParserFactory factory = XmlPullParserFactory.newInstance();\n\t\t\tfactory.setNamespaceAware(true);\n\t\t\tXmlPullParser parser = factory.newPullParser();\n\t\t\t\n\t\t\tFileInputStream is = new FileInputStream(XML_FILE_PATH);\n\t\t\tparser.setInput(is, \"utf-8\");\n\t\t\t\n\t\t\tdoParse(parser);\n\t\t\t\n\t\t\tis.close();\n\t\t} catch (XmlPullParserException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a281f75d70ef2b6226ddd203b410ace7", "score": "0.5073459", "text": "public void abrirXML_DOM(String ruta_archivo){\n\t\n\tDocumentBuilderFactory factory= null;\n\tDocumentBuilder builder = null;\n\tFile fichero=null;\n\ttry{\n\t\tfichero=new File(ruta_archivo);\n\t\tfactory = DocumentBuilderFactory.newInstance();\n\t\tbuilder = factory.newDocumentBuilder(); \n\t\tdocument=builder.parse(fichero);\n\t\tdocument.getDocumentElement().normalize();\n\t\n\t}catch(Exception e){\n\t\te.printStackTrace();\n\t}\n\t\t\n}", "title": "" }, { "docid": "12f7bee33c7674e8806bfc427d3ca739", "score": "0.5071653", "text": "private Document loadConfig(String configName) throws Exception {\n\t\tString filePath = this.getClass().getClassLoader().getResource(\"\")+CONFIGROOT + configName+ EXTEND ;\n\n\t\treturn new SAXBuilder().build(filePath);\n\t}", "title": "" }, { "docid": "d9c173411cc54704e5d19ae74f5bff54", "score": "0.5066962", "text": "public String newDDP() {\n ServletContext sc = JSFUtil.getServletContext();\n String filename = sc.getRealPath(\"/WEB-INF/xml/DDP.xml\");\n StringBuffer sb = new StringBuffer();\n newDDPVersion = bumpRegularDDPVersion(getTesterContext().getDdpVersion());\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n String ln = reader.readLine();\n while (ln != null) {\n if (ln.indexOf(\"@\") != -1) {\n String baseUrl = getWebAppURL();\n ln = ln.replaceAll(\"@DDPVERSION@\", newDDPVersion[0]);\n // DataCentre replacements\n ln = ln.replaceAll(\"@DC1_LRIT_ID@\", getTesterContext()\n .getDc1LritId());\n ln = ln.replaceAll(\"@DC1_URL@\", getTesterContext().getDc1Url());\n ln = ln.replaceAll(\"@DC2_LRIT_ID@\", getTesterContext().getDestDuLritId());\n ln = ln.replaceAll(\"@DC2_URL@\", getTesterContext().getDc2Url());\n // DDP server replacements\n ln = ln.replaceAll(\"@DDP_URL@\", getTesterContext().getDdpUrl());\n // IDE replacements\n ln = ln.replaceAll(\"@IDE_DDP_URL@\", getTesterContext().getIdeDdpUrl());\n ln = ln.replaceAll(\"@IDE_DC_URL@\", getTesterContext().getIdeUrl());\n // DataUser replacements\n ln = ln.replaceAll(\"@DU1_LRIT_ID@\", getTesterContext()\n .getDc1DuLritId());\n ln = ln.replaceAll(\"@DU2_LRIT_ID@\", \"0550\");\n }\n sb.append(ln + \"\\n\");\n ln = reader.readLine();\n }\n } catch (Exception e) {\n FacesContext.getCurrentInstance()\n .addMessage(\n null,\n new FacesMessage(\"Error reading DDP xml file: \"\n + e.getMessage()));\n return \"fail\";\n }\n xml = sb.toString();\n return null;\n }", "title": "" }, { "docid": "c219970e5a91931f9a80b30341f246ad", "score": "0.50543934", "text": "@Test\n public void testOpenFile()\n {\n System.out.println(\"openFile\");\n File xmlFile = new File(System.getProperty(\"user.dir\") + \"/test.xml\");\n DataModel instance = new DataModel();\n try\n {\n instance.openFile(xmlFile);\n }\n catch (SAXException | IOException | ParserConfigurationException | ParseException exp)\n {\n fail(\"could not parse xml file: \" + exp.toString());\n }\n }", "title": "" }, { "docid": "9b3a39c4490365c12b1658c7c0cf814f", "score": "0.5053533", "text": "private static URL getURL(String name) throws EfreetException {\n\n URL url = ClassLoader.getSystemResource(name + \".xml\");\n\n \ttry {\n if (url == null) {\n \ttry {\n \t\tContext initContext = new InitialContext();\n \t\tContext envContext = (Context)initContext.lookup(\"java:/comp/env\");\n \t\tString xmlFileDir = (String) envContext.lookup(\"xml/efreet\");\n \t\turl = new URL(\"file:\" + xmlFileDir + \"/\" + name + \".xml\");\n \t} catch (NameNotFoundException nnfe) {\n \t\tlogger.warn(\"Name not found on context \");\n \t} catch (NamingException e) {\n \t\tlogger.error(\"Error retrieving Context : \", e);\n \t}\n }\n try {\n \tif (url != null) {\n \t\turl.openConnection();\n \t}\n } catch (FileNotFoundException fnfe) {\n \turl = null;\n\t\t\t}\n if (url == null) {\n// long dt_modified = url.openConnection().getLastModified();\n \turl = Thread.currentThread().getContextClassLoader().getResource(name + \".xml\");\n }\n\n } catch (IOException ioe) {\n \tlogger.error(\"Error reading XML file\", ioe);\n throw new EfreetException(ioe.getMessage());\n }\n\n if (url == null) {\n \tthrow new EfreetException(\"Resource not found : \" + name + \".xml\");\n }\n\n return url;\n }", "title": "" }, { "docid": "1183b690ad9031a7b793cb67c8c44902", "score": "0.5049027", "text": "private XmlFileConstants() {\n }", "title": "" }, { "docid": "c7779ad03bb7abba1d7928e8a3fda10d", "score": "0.50470126", "text": "public static void testXML() {\n String fname = \"/trunk/src/com/dlens/anp/engine/smatrix.xml\";\n DoubleSquareMatrix mat = new DoubleSquareMatrix();\n SAXBuilder parser = new SAXBuilder();\n Document doc;\n try {\n doc = parser.build(fname);\n Element elt = doc.getRootElement();\n mat.fromElement(elt);\n System.out.println(mat.toString());\n XMLOutputter outputter = new XMLOutputter();\n FileOutputStream fout = new FileOutputStream(fname);\n outputter.output(doc, fout);\n fout.close();\n } catch (Exception e) {\n System.out.println(\"Unexpected exception \"+e.toString());\n System.exit(1);\n }\n }", "title": "" }, { "docid": "2a5bb345e509d52a2e2bcd3f612bcf33", "score": "0.50319415", "text": "public String getXMLFileName() {\r\n return fileName;\r\n }", "title": "" }, { "docid": "8d6c25a887f96e9423cbc808b94e1f0a", "score": "0.5025822", "text": "private InputStream openContentStream() {\n return getClass().getResourceAsStream(\"ivy-template.xml\");\n }", "title": "" }, { "docid": "905282a0c2a866eef77999a069c619b2", "score": "0.50240844", "text": "public static void main(String[] args) {\n File xmlFile = new File(\"EmpleadoXSD.xml\");\r\n // File xmlFile = new File(\"EmpleadoXSDEmailMal.xml\");\r\n\r\n File xsdFile = new File(\"Empleado.xsd\");\r\n try {\r\n\r\n SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\r\n Schema schema = schemaFactory.newSchema(xsdFile);\r\n Validator validator = schema.newValidator();\r\n validator.validate(new StreamSource(xmlFile));\r\n System.out.println(xmlFile + \" is valid against the \" + xsdFile + \" Schema\");\r\n } catch (SAXException ex) {\r\n System.out.println(xmlFile + \" is not valid against the \" + xsdFile + \" Schema\");\r\n Logger.getLogger(Launcher.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(Launcher.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "39b91368e85ca04a6366f2f847a8b440", "score": "0.5023825", "text": "void register(File toolXmlFile);", "title": "" }, { "docid": "f5c15b4983afddf93683a84c473e93ab", "score": "0.5021579", "text": "public MainApp() throws IOException {\n \t//gets the users home folder\n \tString DefaultFolder =new JFileChooser().getFileSystemView().getDefaultDirectory().toString();\n \t//System.out.println(DefaultFolder);\n \tPath path = Paths.get(DefaultFolder + File.separator+\"addressApp\"+File.separator+\"addressApp.xml\");\n \tFiles.createDirectories(path.getParent());\n \ttry {\n Files.createFile(path);\n file = path.toFile();\n } catch (FileAlreadyExistsException e) {\n //System.out.println(\"already exists. Opening the old file \" + e.getMessage());\n file = path.toFile();\n }\n \tSystem.out.println(path.toString());\n\n }", "title": "" }, { "docid": "5447a66af7e37bb2a2342695276b1486", "score": "0.5018725", "text": "public ReflXmlBuilder() throws ParserConfigurationException, SAXException, IOException {\n xmlFile = new File(FILE_PATH);\n DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = dbfac.newDocumentBuilder();\n if (xmlFile.exists()) {\n try {\n document = docBuilder.parse(xmlFile);\n document.normalize();\n root = document.getDocumentElement();\n } catch (IOException ioEx) {\n throw new RuntimeIoException(FILE_PATH + \" - target file access error.\", ioEx);\n } catch (SAXException saEx) {\n throw new RuntimeIoException(FILE_PATH + \" - bad xml content.\", saEx);\n }\n\n } else {\n document = docBuilder.newDocument();\n root = document.createElement(ROOT_ELEMENT);\n document.appendChild(root);\n }\n\n }", "title": "" }, { "docid": "ad23101daec3b46d968ec6e918f7e91e", "score": "0.5017307", "text": "public void writeXMLFile (String fullyQualifiedFileName, Document doc) throws TransformerException, FileNotFoundException {\n TransformerFactory transfac = TransformerFactory.newInstance();\n Transformer trans = transfac.newTransformer();\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n //create string from xml tree\n StringWriter sw = new StringWriter();\n StreamResult result = new StreamResult(sw);\n DOMSource source = new DOMSource(doc);\n trans.transform(source, result);\n String xmlString = sw.toString();\n\n //print xml\n // logger.debug(\"Here's the xml:\\n\\n\" + xmlString);\n \n PrintStream out = null;\n try {\n out = new PrintStream(new FileOutputStream(fullyQualifiedFileName));\n out.print(xmlString);\n }\n finally {\n if (out != null) out.close();\n }\n\t}", "title": "" }, { "docid": "565262c6db2177b643960656b817fd11", "score": "0.50129044", "text": "public void initailizeConfigFile() {\n\n try {\n resultFile.delete();\n doc = createDomDocument();\n currentPos = doc.createElement(\"xwss:SecurityConfiguration\");\n currentPos.setAttribute(\"xmlns:xwss\", \"http://com.sun.xml.wss.configuration\");\n currentPos.setAttribute(\"dumpMessages\", \"false\");\n currentPos.setAttribute(\"authorizeLocally\", \"true\");\n doc.appendChild(currentPos);\n\n DOMSource source1 = new DOMSource(doc);\n StreamResult result = new StreamResult(new FileOutputStream(resultFilePath));\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer transformer = transFactory.newTransformer();\n\n transformer.transform(source1, result);\n } catch(Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "bbcbdc2497df3eb2c9f77c3bc055cd71", "score": "0.5011752", "text": "public void writeFile() throws Exception\n{\n getFile().setBytes(getXML().getBytes());\n getFile().save();\n}", "title": "" }, { "docid": "76f4843d1b4432bc4f1521da1b134a5e", "score": "0.5001904", "text": "public File getFile() {\n return xmlFile;\n }", "title": "" }, { "docid": "ba2d2b55eb4e7d5966bfdaeacccb58f7", "score": "0.49996272", "text": "protected static Document loadDocument() throws SAXException, IOException, ParserConfigurationException {\n\t\tFile file = new File(xmlName);\n\t\tDocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tDocument document = documentBuilder.parse(file);\n\t\tdocument.getDocumentElement().normalize();\n\n\t\treturn document;\n\t}", "title": "" }, { "docid": "7d0e512b1fbef7efe296f6dd8f081f15", "score": "0.4999118", "text": "private static Document getDocument(String XMLfile) throws Exception\r\n {\r\n\t\t//Declare instance of DocumentBuilderFactory which allows applications to\r\n\t\t//obtain a parser that produces DOM object trees from XML documents\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n factory.setNamespaceAware(true);\r\n \r\n //Documentbuilder is then instantiated to allow the program to obtain a\r\n //Document from the xml file\r\n DocumentBuilder builder = factory.newDocumentBuilder();\r\n Document doc = builder.parse(XMLfile); //Parse the content of the given input source\r\n return doc;\r\n }", "title": "" }, { "docid": "5ef505f2e656512b3d931fae4b975fbb", "score": "0.4995244", "text": "public void setXMLFile(ZLFile file){\n \n this.xmlFile= file;\n \n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "90b3305ef998a0e1e2024cec1722d53e", "score": "0.49952325", "text": "public java.lang.String getDom(){\r\n return localDom;\r\n }", "title": "" }, { "docid": "9467546138af80a2d60acd48a4b73f84", "score": "0.49940196", "text": "public void convertXML() {\n try {\n File file = new File(FILENAME1);\n Entries entries = fill();\n JAXBContext jaxbContext = JAXBContext.newInstance(Entries.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n jaxbMarshaller.marshal(entries, file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "af1df7c1d57c901b4d017385ffd3d85e", "score": "0.4988322", "text": "private void makeNewXml(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder;\n docBuilder = docFactory.newDocumentBuilder();\n // root elements\n Document doc = docBuilder.newDocument();\n Element rssElement = doc.createElement(\"rss\");\n rssElement.setAttribute(\"version\", \"1.0\");\n doc.appendChild(rssElement);\n\n //make the channel element with sub-node\n Element channel = doc.createElement(\"channel\");\n rssElement.appendChild(channel);\n\n Element title = doc.createElement(\"title\");\n title.setTextContent(cModel.getChannelTitle());\n channel.appendChild(title);\n\n Element link = doc.createElement(\"link\");\n link.setTextContent(cModel.getChannelLink());\n channel.appendChild(link);\n\n Element description = doc.createElement(\"description\");\n description.setTextContent(cModel.getChannelDescription());\n channel.appendChild(description);\n\n // write the content into xml file\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new File(fileName));\n\n transformer.transform(source, result);\n\n // System.out.println(\"File created!\");\n result = null;\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (TransformerConfigurationException e) {\n e.printStackTrace();\n } catch (TransformerException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ed1c69611705f6faa51af2478eaab50b", "score": "0.4983007", "text": "public xmlroot() {\n\tsuper();\n }", "title": "" }, { "docid": "7050945d13f2281eb624e407d0a61a88", "score": "0.49770367", "text": "public static Document readXmlFile(InputStream xmlStream, InputStream dtdStream) throws SAXException, IOException {\r\n try {\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n dbFactory.setValidating(true);\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n //Catch the request for the dtd file, \r\n //since it will not find it in a jar\r\n dBuilder.setEntityResolver((String publicId, String systemId) -> {\r\n if (systemId.contains(\".dtd\")) {\r\n return new InputSource(dtdStream);\r\n } else {\r\n return null;\r\n }\r\n });\r\n Document doc = dBuilder.parse(xmlStream);\r\n doc.getDocumentElement().normalize();\r\n\r\n return doc;\r\n } catch (ParserConfigurationException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "44e6e59be20e1612e69de658ca377e46", "score": "0.49762747", "text": "public void testUnmarshal2d() throws Exception\r\n {\r\n File f = getResourceFile(\"data\", \"po2_dg2.xml\");\r\n InputStream in = new FileInputStream(f);\r\n XMLDocument doc = xmlHelper.load(in);\r\n in.close();\r\n }", "title": "" }, { "docid": "be538f28b7de5a86c9186af2ce4617f1", "score": "0.49609435", "text": "public LectorArchivoXML(String rua)\r\n {\r\n obtenerXML(rua);\r\n }", "title": "" }, { "docid": "82809ad1075df654994bef727b799300", "score": "0.49583888", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/DSB0XDDW1GQ3S_DSB0XDDW1GQ3S_DSB0XDDW1GQ3S.XML\");\n FileSystemHandling.createFolder(evoSuiteFile0);\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getBrowseNodeFile(\"DSB0XDDW1GQ3S\", \"DSB0XDDW1GQ3S\", \"DSB0XDDW1GQ3S\");\n assertNotNull(file0);\n assertEquals(\"DSB0XDDW1GQ3S_DSB0XDDW1GQ3S_DSB0XDDW1GQ3S.XML\", file0.getName());\n assertFalse(file0.isFile());\n }", "title": "" }, { "docid": "550d19890958b0afac398e93e03b8cbb", "score": "0.49503475", "text": "public void loadXmlFromFile() {\n\t\tSAXParserFactory saxParserFactory = SAXParserFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tSAXParser saxParser = saxParserFactory.newSAXParser();\r\n\t\t\tMyHandler handler = new MyHandler(listLogin, helper, Sout);\r\n\t\t\tsaxParser.parse(new File(\"test.xml\"), handler);\r\n\t\t\tlistLogin = handler.getListLogin();\r\n\t\t\tfor(Login lo: listLogin){\r\n\t\t\t\tlmodelLogin.addElement(new String(lo.getCodiceFiscale()+\" \"+lo.getPassword()+\" \"+lo.getTipologia()));\r\n\t\t\t\tif(IDlogin < lo.getId()) {\r\n\t\t\t\t\tIDlogin = lo.getId(); //quando avrò parsato tutto l'xml IDlogin avrà il valore più grande (dovrò quindi incrementarlo di 1)\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSout.println(new String(lo.getCodiceFiscale()+\" \"+lo.getPassword()+\" \"+lo.getTipologia()));\r\n\t\t\t}\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "de08e62dc76f0e15f9544ee0bd9218be", "score": "0.49328375", "text": "public XMLDocument( DataSource datsrc ) throws NoSuchDataException {\n this.datsrc = datsrc;\n InputStream datstrm = null;\n try {\n \n /* Get a SAX source from the DataSource. */\n datstrm = datsrc.getHybridInputStream();\n InputSource saxsrc = new InputSource( datstrm );\n saxsrc.setSystemId( datsrc.getSystemId() );\n \n /* Get a basic SAX parser. */\n SAXParserFactory spfact = SAXParserFactory.newInstance();\n spfact.setNamespaceAware( true );\n spfact.setValidating( false );\n SAXParser sparser = spfact.newSAXParser();\n XMLReader parser = sparser.getXMLReader();\n parser.setFeature( \"http://xml.org/sax/features/namespaces\", true );\n \n /* Install a custom entity resolver. */\n parser.setEntityResolver( TreeviewEntityResolver.getInstance() );\n \n /* Install a custom error handler. */\n messages = new ArrayList();\n parser.setErrorHandler( new ErrorHandler() {\n public void warning( SAXParseException e ) {\n messages.add( e.toString() );\n }\n public void error( SAXParseException e ) {\n messages.add( e.toString() );\n }\n public void fatalError( SAXParseException e )\n throws SAXParseException {\n throw e;\n }\n } );\n \n /* Install a custom content handler. */\n namespaces = new HashSet();\n parser.setContentHandler( new DefaultHandler() {\n boolean started;\n Locator locator;\n public void setDocumentLocator( Locator loc ) {\n this.locator = loc;\n }\n public void startDocument() {\n if ( locator != null ) {\n systemId = locator.getSystemId();\n publicId = locator.getPublicId();\n }\n }\n public void startElement( String namespaceURI, String localName,\n String qName, Attributes atts ) {\n if ( ! started ) { \n topLocalName = localName;\n topNamespaceURI = namespaceURI;\n topAtts = atts;\n started = true;\n }\n }\n public void startPrefixMapping( String prefix, String uri ) {\n namespaces.add( uri );\n }\n } );\n \n /* Do the parse. */\n parser.parse( saxsrc );\n }\n catch ( IOException e ) {\n throw new NoSuchDataException( \"I/O error during SAX parse\", e );\n }\n catch ( SAXException e ) {\n throw new NoSuchDataException( \"SAX parsing error\", e );\n }\n catch ( ParserConfigurationException e ) {\n throw new NoSuchDataException( \"Error getting default parser - \" +\n \"shouldn't happen\", e );\n }\n finally {\n if ( datstrm != null ) {\n try {\n datstrm.close();\n }\n catch ( IOException e ) {\n }\n }\n }\n }", "title": "" }, { "docid": "7e0cea8df51a4a9b1cbaf7a33d172c9a", "score": "0.49268743", "text": "private CharSequence getDefaultDir() {\r\n\t\tSharedPreferences pref = getActivity().getPreferences(Context.MODE_PRIVATE);\r\n\t\tString defaultXmlFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), \"SleekTodoData.xml\").toString();\r\n\t\treturn pref.getString(PREF_IMP_EXP_DIR, defaultXmlFile);\r\n\t}", "title": "" }, { "docid": "edff9a0242173526f43e847abbddaf73", "score": "0.49199867", "text": "private void Otworz(String f) throws FileNotFoundException, JAXBException {\n File file = new File(f);\r\n JAXBContext context = JAXBContext.newInstance(Root.class);\r\n\r\n Unmarshaller jaxbUnmarshaller = context.createUnmarshaller();\r\n\r\n Root dane = (Root) jaxbUnmarshaller.unmarshal(file);\r\n\r\n Ustawienia.it = dane.it;\r\n Ustawienia.im = dane.im;\r\n\r\n Rysunek.punkty = dane.figures.getFiguraMap();\r\n Rysunek.linie = dane.lines.getLinieMap();\r\n\r\n Rysunek.refresh();\r\n\r\n }", "title": "" }, { "docid": "a24197cca4d3e13c68f80d3105951736", "score": "0.49153563", "text": "protected double getDTD() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "2289c9199316a141d8dce849642cf10a", "score": "0.4914587", "text": "private static void crearXML() {\n\t\ttry {\n\t\t\t//-------------Creacio activitats---------------------\n\t\t\tFile xml = new File (Constants.DIRECTORI+Constants.XML_ACTIVITATS);\n\t\t PrintStream escriptor = new PrintStream(xml);\n\t\t\tString aux = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<activitats>\";\n\t\t\tIterator<Activitat> it = activitats.iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tActivitat a = it.next();\n\t\t\t\taux += \"\\n\\t<activitat>\";\n\t\t\t\taux += \"\\n\\t\\t<id>\" + a.getId() + \"</id>\";\n\t\t\t\taux += \"\\n\\t\\t<idEsdeveniment>\" + a.getEsdeveniment().getId() + \"</idEsdeveniment>\";\n\t\t\t\taux += \"\\n\\t\\t<titol>\" + a.getTitol() + \"</titol>\";\n\t\t\t\tDateFormat formatData = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tString data = formatData.format(a.getData());\n\t\t\t\taux += \"\\n\\t\\t<data>\" + data + \"</data>\";\n\t\t\t\taux += \"\\n\\t\\t<ubicacio>\" + a.getUbicacio().getNom() + \"</ubicacio>\";\n\t\t\t\taux += \"\\n\\t\\t<descripcio>\" + a.getDescripcio() + \"</descripcio>\";\n\t\t\t\taux += \"\\n\\t\\t<departament>\" + a.getDepartament().getNom() + \"</departament>\";\n\t\t\t\taux += \"\\n\\t\\t<ponents>\";\n\t\t\t\tint i=0;\n\t\t\t\tfor (Ponent p : a.getPonents()) {\n\t\t\t\t\tif (i>0)\n\t\t\t\t\t\taux += \", \";\n\t\t\t\t\taux += p.getNom() + \" \" + p.getCognoms();\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\taux += \"</ponents>\";\n\t\t\t\taux += \"\\n\\t\\t<preu>\" + a.getPreu() + \"</preu>\";\n\t\t\t\taux += \"\\n\\t\\t<placesTotals>\" + a.getPlacesTotals() + \"</placesTotals>\";\n\t\t\t\taux += \"\\n\\t\\t<placesActuals>\" + a.getPlacesActuals() + \"</placesActuals>\";\n\t\t\t\tdata = formatData.format(a.getDataIniciMostra());\n\t\t\t\taux += \"\\n\\t\\t<dataIniciMostra>\" + data + \"</dataIniciMostra>\";\n\t\t\t\tdata = formatData.format(a.getDataFiMostra());\n\t\t\t\taux += \"\\n\\t\\t<dataFiMostra>\" + data + \"</dataFiMostra>\";\n\t\t\t\taux += \"\\n\\t</activitat>\";\n\t\t\t}\n\t\t\taux += \"\\n</activitats>\";\n\t\t\tescriptor.print(aux);\n\t\t\tescriptor.close();\n\t\t\tSystem.out.println(\"Fitxer \" + Constants.XML_ACTIVITATS + \" creat correctament.\");\n\t\t\t\n\t\t\t//-------------Creacio categories---------------------\n\t\t\txml = new File(Constants.DIRECTORI+Constants.XML_CATEGORIES);\n\t\t\tescriptor = new PrintStream(xml);\n\t\t\taux = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<categories>\";\n\t\t\tIterator<Categoria> it1 = categories.iterator();\n\t\t\twhile (it1.hasNext()) {\n\t\t\t\tCategoria c = it1.next();\n\t\t\t\taux += \"\\n\\t<categoria>\";\n\t\t\t\taux += \"\\n\\t\\t<id>\" + c.getId() + \"</id>\";\n\t\t\t\taux += \"\\n\\t\\t<nom>\" + c.getNom() + \"</nom>\";\n\t\t\t\taux += \"\\n\\t</categoria>\";\n\t\t\t}\n\t\t\taux += \"\\n</categories>\";\n\t\t\tescriptor.print(aux);\n\t\t\tescriptor.close();\n\t\t\tSystem.out.println(\"Fitxer \" + Constants.XML_CATEGORIES + \" creat correctament.\");\n\t\t\t\n\t\t\t//-------------Creacio esdeveniments---------------------\n\t\t\txml = new File(Constants.DIRECTORI+Constants.XML_ESDEVENIMENTS);\n\t\t\tescriptor = new PrintStream(xml);\n\t\t\taux = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<esdeveniments>\";\n\t\t\tIterator<Esdeveniment> it2 = esdeveniments.iterator();\n\t\t\twhile (it2.hasNext()) {\n\t\t\t\tEsdeveniment e = it2.next();\n\t\t\t\taux += \"\\n\\t<esdeveniment>\";\n\t\t\t\taux += \"\\n\\t\\t<id>\" + e.getId() + \"</id>\";\n\t\t\t\taux += \"\\n\\t\\t<any>\" + e.getAny() + \"</any>\";\n\t\t\t\taux += \"\\n\\t\\t<nom>\" + e.getNom() + \"</nom>\";\n\t\t\t\taux += \"\\n\\t\\t<descripcio>\" + e.getDescripcio() + \"</descripcio>\";\n\t\t\t\taux += \"\\n\\t\\t<actiu>\" + e.isActiu() + \"</actiu>\";\n\t\t\t\taux += \"\\n\\t</esdeveniment>\";\n\t\t\t}\n\t\t\taux += \"\\n</esdeveniments>\";\n\t\t\tescriptor.print(aux);\n\t\t\tescriptor.close();\n\t\t\tSystem.out.println(\"Fitxer \" + Constants.XML_ESDEVENIMENTS + \" creat correctament.\");\n\t\t\t\n\t\t\t//-------------Creacio reserves---------------------\n\t\t\txml = new File(Constants.DIRECTORI+Constants.XML_RESERVES);\n\t\t\tescriptor = new PrintStream(xml);\n\t\t\taux = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<reserves>\";\n\t\t\tIterator<Reserva> it3 = reserves.iterator();\n\t\t\twhile (it3.hasNext()) {\n\t\t\t\tReserva r = it3.next();\n\t\t\t\taux += \"\\n\\t<reserva>\";\n\t\t\t\taux += \"\\n\\t\\t<id>\" + r.getId() + \"</id>\";\n\t\t\t\taux += \"\\n\\t\\t<email>\" + r.getEmail() + \"</email>\";\n\t\t\t\taux += \"\\n\\t\\t<idActivitat>\" + r.getActivitat().getId() + \"</idActivitat>\";\n\t\t\t\tDateFormat formatData = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tString data = formatData.format(r.getData());\n\t\t\t\taux += \"\\n\\t\\t<data>\" + data + \"</data>\";\n\t\t\t\taux += \"\\n\\t\\t<codiTransaccio>\" + r.getCodiTransaccio() + \"</codiTransaccio>\";\n\t\t\t\taux += \"\\n\\t\\t<estat>\" + r.getEstat() + \"</estat>\";\n\t\t\t\taux += \"\\n\\t</reserva>\";\n\t\t\t}\n\t\t\taux += \"\\n</reserves>\";\n\t\t\tescriptor.print(aux);\n\t\t\tescriptor.close();\n\t\t\tSystem.out.println(\"Fitxer \" + Constants.XML_RESERVES + \" creat correctament.\");\n\t\t\t\n\t\t\t//-------------Creacio activitat_categoria---------------------\n\t\t\txml = new File(Constants.DIRECTORI+Constants.XML_ACTIVITAT_CATEGORIA);\n\t\t\tescriptor = new PrintStream(xml);\n\t\t\taux = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<activitat_categories>\";\n\t\t\tIterator<Activitat> it4 = activitats.iterator();\n\t\t\twhile (it4.hasNext()) {\n\t\t\t\tActivitat a = it4.next();\n\t\t\t\tfor (Categoria c : a.getCategories()) {\n\t\t\t\t\taux += \"\\n\\t<activitat_categoria>\";\n\t\t\t\t\taux += \"\\n\\t\\t<id_activitat>\" + a.getId() + \"</id_activitat>\";\n\t\t\t\t\taux += \"\\n\\t\\t<id_categoria>\" + c.getId() + \"</id_categoria>\";\n\t\t\t\t\taux += \"\\n\\t</activitat_categoria>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\taux += \"\\n</activitat_categories>\";\n\t\t\tescriptor.print(aux);\n\t\t\tescriptor.close();\n\t\t\tSystem.out.println(\"Fitxer \" + Constants.XML_ACTIVITAT_CATEGORIA + \" creat correctament.\");\n\t\t\t\n\t\t\t//Buida les llistes\n\t\t\tcategories.clear();\n\t\t\tactivitats.clear();\n\t\t\tubicacions.clear();\n\t\t\tdepartaments.clear();\n\t\t\tesdeveniments.clear();\n\t\t\tponents.clear();\n\t\t\treserves.clear();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "ddbdcdd9ec850b5ef61e89d34d812f7a", "score": "0.49134755", "text": "private void createXMLDocument(String rootName) throws ParserConfigurationException\n\t{\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n if(this.testMode)\n { \n \tfactory.setValidating(true); \n \tfactory.setNamespaceAware(true);\n } \n this.xmlDoc = builder.newDocument();\n \n this.root = this.xmlDoc.createElement(rootName);\n this.xmlDoc.appendChild(this.root);\n this.root.setAttribute(\"version\", this.version);\n \n\t\t//add game Description Element - it will be updated with value later\n\t\tElement descr = this.xmlDoc.createElement(\"gameDescription\");\n \tthis.root.appendChild(descr);\n \t\n\t\t//add players Element - it will be updated with player names later\n\t\tElement players = this.xmlDoc.createElement(\"players\");\n \tthis.root.appendChild(players);\n \t \n\t\t//add extensiveForm node\n Element extForm = this.xmlDoc.createElement(\"extensiveForm\");\n this.root.appendChild(extForm);\n \n //this stack keeps track of the nodes in order to place the internal\n //nodes of the tree source from the .efg file under the correct parent\n //\n this.prevNodeStack = new Stack<Element>();\n this.prevNodeStack.push(extForm);\n \n this.nodePropStack = new Stack<nodeProp>();\n \n \tisetMap = new HashMap<String, String>();\n \tthis.lastIsetNum = 1;\n \t\n \tmoveMap = new HashMap<String, String>();\n \tthis.lastMoveNum = 1;\n\t}", "title": "" }, { "docid": "c10386d07f645524471f97bd96c2d1f3", "score": "0.49102718", "text": "private static String getFileName() {\n\t\tString mareRoot = System.getProperty(\"MareConfigurationRoot\");\n\n\t\tif(!mareRoot.endsWith(File.separator))\n\t\t\tmareRoot += File.separator;\n\n\t\tmareRoot += \"fichero_rastreo.log\";\n\t\tSystem.out.println(\"Archivo Rastreo: \" + mareRoot);\n\n\t\treturn mareRoot;\n\t}", "title": "" }, { "docid": "f4a841747a4041f9851cda14f1659462", "score": "0.49032882", "text": "@Test\n public void testParseString() throws XJConfException {\n DefinitionParser defParser = new DefinitionParser();\n defParser.parse(\"src/test/resources/tests/defines/DefinitionParserParseTestCase.xml\");\n }", "title": "" }, { "docid": "8e440ba980b257eacfdf83a7cc7d72eb", "score": "0.48988995", "text": "@Test\r\n public void testDatasetStringExistingFile()\r\n {\r\n\r\n try\r\n {\r\n new Dataset(\"../data/creditcard_nom.arff\");\r\n } \r\n catch (Exception e)\r\n {\r\n fail(e.getMessage());\r\n }\r\n }", "title": "" } ]
252f60c6e94f561e8c0404810ab47ed0
Constructor for objects of class BidChangedNotification
[ { "docid": "edac4b317a7f51208e3eef51f88e8f3b", "score": "0.65443176", "text": "public BidChangedNotification(String userid, int listingID, long oldPrice, long newPrice)\n {\n this.listingID = listingID = listingID;\n this.userID = userid;\n this.newPrice = newPrice;\n this.oldPrice = oldPrice;\n }", "title": "" } ]
[ { "docid": "cf74e1ab6ddb947ffb714b3af97b22d1", "score": "0.6805754", "text": "public TollNotification() {\n\n }", "title": "" }, { "docid": "ca8acf4966ad3df6916ce8101d84e908", "score": "0.67813027", "text": "public Notification() {}", "title": "" }, { "docid": "e9307564b985511f940f1ed6ee2a3f66", "score": "0.6691437", "text": "public Notification() {\n }", "title": "" }, { "docid": "e9307564b985511f940f1ed6ee2a3f66", "score": "0.6691437", "text": "public Notification() {\n }", "title": "" }, { "docid": "fe32ab3940fb52ecf751545b4c8081bf", "score": "0.66080093", "text": "public Notification() {\n super();\n type = Type.NOTIFICATION;\n }", "title": "" }, { "docid": "a1053c21d18ffa7c40348d4590033803", "score": "0.64703363", "text": "public Notification(String window, ClientDB cdb) {\n\t\tsuper(window, cdb);\n\t}", "title": "" }, { "docid": "e1099a2deb4845db61604239865ac700", "score": "0.639571", "text": "private Notification() {\n initFields();\n }", "title": "" }, { "docid": "ddfdb9eb7b5730ca4d89d67d66d8e0f0", "score": "0.629991", "text": "ElvinEvent()\n {\n notif = new Notification();\n }", "title": "" }, { "docid": "f0f9ad818b7c24c71d539504f5302b65", "score": "0.6267787", "text": "private void createNotification() {\n\t}", "title": "" }, { "docid": "af9c20ec7fe24fcd585e37d5e136fa16", "score": "0.62066877", "text": "public Notification (int id, int notifFromId, String notifType, String notifAbout, String notifFromUsername, String timeOfNotification,int relatedId) {\n this.id = id;\n this.notifFromId = notifFromId;\n // this.locationId = locationId;\n this.notifType = notifType;\n this.notifAbout = notifAbout;\n this.notifFromUsername = notifFromUsername;\n this.timeOfNotification = timeOfNotification;\n this.relatedId=relatedId;\n\n\n }", "title": "" }, { "docid": "ab78c8cb7f212585c87c00f44c74aa9c", "score": "0.61670524", "text": "public NotificationService(){ super(\"nothing\");}", "title": "" }, { "docid": "b2f476a437787252ccba9a301c87643f", "score": "0.61450505", "text": "private Notification() {\n }", "title": "" }, { "docid": "dd99f0cdcf14adcb6e7b27b87e3c7ba5", "score": "0.6100544", "text": "public NotificationDefinition() {\n\t}", "title": "" }, { "docid": "0e1d9e3fddcc42bad7ac249f4cd9cad6", "score": "0.6038174", "text": "public ObjectUpdateNotificationCompiler() {\r\n notifications = new HashMap<>();\r\n }", "title": "" }, { "docid": "1e7b21ce54762e7eedf4e291eacaef80", "score": "0.59957975", "text": "@Override\n\tpublic void notifyObserver(Object oldObj, Object newObj) {\n\n\t}", "title": "" }, { "docid": "a6521d6fa6debf3fd4fc4e849d490e69", "score": "0.5952508", "text": "public NotificationPriorityBo() {\n }", "title": "" }, { "docid": "115786b013c4a3aa4c72a609aa5aca7a", "score": "0.58552307", "text": "public NotifyExample() {\n oredCriteria = new ArrayList<>();\n }", "title": "" }, { "docid": "032eaf49a7584f0a4e1ad3a4abc18209", "score": "0.5843691", "text": "public NotificationInFirebase()\n\t{\n\t}", "title": "" }, { "docid": "0396951fdea1907f504f1952d4e8b4d1", "score": "0.5824221", "text": "public Notification() {\r\n this.notificationID = UUID.randomUUID().toString();\r\n this.requesterID = \"\";\r\n this.ownerID = \"\";\r\n this.notificationReceiverID = \"\";\r\n this.bookID = \"\";\r\n this.rNotificationType = null;\r\n this.message = \"\";\r\n }", "title": "" }, { "docid": "8b5afb3b95b7585a757dc2637e877604", "score": "0.58181924", "text": "private ClubBulletinEventNotify(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "30ea5663e2711fb2988e1a8096b1c08d", "score": "0.5805595", "text": "private Notification(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "3ca6cb43e13dd13674271c88d56459ba", "score": "0.58054304", "text": "public PendingModifiedValues() {}", "title": "" }, { "docid": "f40fe119505b9475badc676e4f9d5aa4", "score": "0.5676546", "text": "public NotificationMessage(Notification notification) {\n this.notification = notification;\n }", "title": "" }, { "docid": "a2dbe804d23b21d1b3396377bd02bffc", "score": "0.5632397", "text": "public NotificationService1(String name) {\n super(name);\n }", "title": "" }, { "docid": "c8c8b26f1c2c083305667ec0c09e65af", "score": "0.5623555", "text": "public KycUpdatedEvent() {}", "title": "" }, { "docid": "d02e6d3e4af4d635d750a7f57d30e1cd", "score": "0.5619894", "text": "public MoodiNotificationsAdapter(Context context, ArrayList<MoodiNotification> notifications){\n super(context, 0, notifications);\n this.notifications = notifications;\n this.context = context;\n moodiStorage = new MoodiStorage();\n }", "title": "" }, { "docid": "075c705f3ba06453804928fc4a2bf680", "score": "0.5609897", "text": "public Balloon() {\n\n\t}", "title": "" }, { "docid": "c54f10c468f04dcb3e29582002db3bba", "score": "0.5597472", "text": "public DSoupsChanged() {\n super(COMMAND);\n }", "title": "" }, { "docid": "dc8fbf1df42f00d4ba1917a034ae5c5a", "score": "0.5557941", "text": "public NotificationService(){\n\n super(NotificationService.class.getSimpleName());\n\n }", "title": "" }, { "docid": "3724483ff504ead8eba354efb2bc6754", "score": "0.55526346", "text": "protected ChangelogCB newMyCB() {\n return new ChangelogCB();\n }", "title": "" }, { "docid": "7152d546a94e00f43ca918d59023b9d5", "score": "0.554284", "text": "public void Initialize(BA ba, String ChannelID) {\n\n setObject(new NotificationCompat.Builder(ba.context, ChannelID));\n\n nWhen = System.currentTimeMillis();\n setWhen = true;\n nActivity = null;\n pActivity = null;\n nIntent = null;\n nDefaults = Notification.DEFAULT_ALL;\n }", "title": "" }, { "docid": "814a0d1f41d0b4e64cee1ec456526a26", "score": "0.5541442", "text": "public ToggleObserverBlock() {\n\t\tsuper(Block.Properties.copy(Blocks.OBSERVER));\n\t}", "title": "" }, { "docid": "b072ad77d266586eda371c89530e6ede", "score": "0.5517059", "text": "public NotificationService(String name) {\n super(\"notification\");\n }", "title": "" }, { "docid": "c6b2c0dc39dd91d7c8cd23726fa1dc8d", "score": "0.54944164", "text": "public NoticeBusiness(String openId, String businessId, NoticeState state)\r\n/* 17: */ {\r\n/* 18:25 */ this.openId = openId;\r\n/* 19:26 */ this.businessId = businessId;\r\n/* 20:27 */ this.state = state;\r\n/* 21: */ }", "title": "" }, { "docid": "e5feac04d894afaef95302d8aa0d8ba7", "score": "0.5489949", "text": "private AttackedNotificationProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "64f0deac7d9c715ef28a343614497365", "score": "0.5485804", "text": "public ControlBolao() {\r\n observers = new ArrayList<>();\r\n }", "title": "" }, { "docid": "4e81603a303a2fda09b6b0c1865eae3e", "score": "0.54694366", "text": "public static guru.learningjournal.kafka.examples.types.Notification.Builder newBuilder() {\n return new guru.learningjournal.kafka.examples.types.Notification.Builder();\n }", "title": "" }, { "docid": "937d7fd310fe6d2a38ecdb4c618e6f2e", "score": "0.5461152", "text": "protected NotifyService(ServiceNotificationChannel objServiceNotification){\n this.objServiceNotification = objServiceNotification;\n }", "title": "" }, { "docid": "2d53348bbb5c5a664fa2acee87d84b98", "score": "0.5432053", "text": "private NotificationProcessor() {\n\n }", "title": "" }, { "docid": "61eafefb5ad9e5928211d4ed04029540", "score": "0.53887653", "text": "@Override\r\n\tpublic void notifyObservers(Object arg) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6ed69b863214f93abb7694754fcf7e90", "score": "0.5364854", "text": "public BoPoChangeReasonBean() {\n }", "title": "" }, { "docid": "38f804f6a1110fe03bfaeff109b82bcb", "score": "0.53645676", "text": "public MyNotificationService() {\n super(SERVICE_NAME);\n }", "title": "" }, { "docid": "1921e959d73b5ab6af859018254b02d8", "score": "0.5348816", "text": "abstract void notifyLog(Beans rel, long newId);", "title": "" }, { "docid": "9cec1c686b3f5105e5ac6527196411b2", "score": "0.5341358", "text": "public static guru.learningjournal.kafka.examples.types.Notification.Builder newBuilder(guru.learningjournal.kafka.examples.types.Notification other) {\n return new guru.learningjournal.kafka.examples.types.Notification.Builder(other);\n }", "title": "" }, { "docid": "5e330d92da9babaa1582941140bb9862", "score": "0.5338932", "text": "public NotificationIteratorV4 (Notification[] notificationList) \n { \n this.notificationList = notificationList; \n }", "title": "" }, { "docid": "e00415fd70d861ec2fb675f58110b137", "score": "0.5330787", "text": "public NotificationView(Context context, AttributeSet attrs) {\n super(context, attrs);\n createViews();\n }", "title": "" }, { "docid": "97173570771ceb2abe59cc19f5436246", "score": "0.5319905", "text": "private ReferralNotificationProto(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "1d0ce4c61ee7aa310541ded9d21fcd12", "score": "0.5314453", "text": "private Builder(guru.learningjournal.kafka.examples.types.Notification other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.InvoiceNumber)) {\n this.InvoiceNumber = data().deepCopy(fields()[0].schema(), other.InvoiceNumber);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.CustomerCardNo)) {\n this.CustomerCardNo = data().deepCopy(fields()[1].schema(), other.CustomerCardNo);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.TotalAmount)) {\n this.TotalAmount = data().deepCopy(fields()[2].schema(), other.TotalAmount);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.EarnedLoyaltyPoints)) {\n this.EarnedLoyaltyPoints = data().deepCopy(fields()[3].schema(), other.EarnedLoyaltyPoints);\n fieldSetFlags()[3] = true;\n }\n }", "title": "" }, { "docid": "f069d7e0e851ac0b3cd63da154626d70", "score": "0.5313836", "text": "public void notification();", "title": "" }, { "docid": "34316351b89eb018620265ef25ef8b77", "score": "0.5296164", "text": "private ClubActivityEventNotify(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "2e60ffb2ef46d3cd0782e6a1f97a6e58", "score": "0.52853435", "text": "public Event(Object paramObject1, int paramInt, Object paramObject2) {\n/* 694 */ this(paramObject1, 0L, paramInt, 0, 0, 0, 0, paramObject2);\n/* */ }", "title": "" }, { "docid": "d89c3d5572c3c0c0f9412befc6e7beb9", "score": "0.5266662", "text": "public NotificationView(Context context, AttributeSet attrs, int defStyleAttr) {\n super(context, attrs, defStyleAttr);\n createViews();\n }", "title": "" }, { "docid": "3f8be5523697ef630539f061cbec413d", "score": "0.5260079", "text": "private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "5ac40d02f611b6540dc54a3b01ad65a9", "score": "0.5257569", "text": "ElvinEvent(Notification notif)\n {\n // check for null\n if (notif == null)\n {\n String msg = \"notification cannot be null\";\n throw new IllegalArgumentException(msg);\n }\n \n this.notif = notif;\n }", "title": "" }, { "docid": "20a4a219bd625717f9cd0a3330581dbe", "score": "0.5255227", "text": "public Notification(int type, String message){\n\n this.type = type;\n this.message = message;\n }", "title": "" }, { "docid": "a4feaf186cdbeaaeb6bb3f35ab50fe42", "score": "0.5255082", "text": "public FrameNotification() {\n initComponents();\n setCenterFrame();\n showTable();\n// readNotifications();\n changeIcon();\n this.setResizable(false);\n }", "title": "" }, { "docid": "45b02b6a462c8325f10d1a38f9aa7c6b", "score": "0.52481574", "text": "public ActiveInterviewStateChange() {}", "title": "" }, { "docid": "84e8ed5c0224448478b94cacb78ecc23", "score": "0.5237699", "text": "public Builder setNotifyIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n notifyId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fe33bf184cfc5fa9cb6622336135ce5c", "score": "0.5226913", "text": "public NotificationMessageDAO() {\n\t\t// Start of user code constructor for NotificationMessageDAO)\n\t\tsuper();\n\t\t// End of user code\n\t}", "title": "" }, { "docid": "97fae610f491b00a2287b13692cffd35", "score": "0.52225673", "text": "BusyInstance(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "13b0f0036c1d9472539870e96689d4f4", "score": "0.5214554", "text": "@Override\n protected void addNotify() {\n addNotifyImpl();\n }", "title": "" }, { "docid": "7beed5e0683e20165a3e509a3c607230", "score": "0.5204403", "text": "public DummyEventListener() {\n }", "title": "" }, { "docid": "8009e74dff5f2a69e3791d93b3931eb8", "score": "0.5202616", "text": "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e75faf5fd50325ddea7ad1e61605c536", "score": "0.519374", "text": "@Override\n\tpublic void onNotify(Integer e) {\n\t\t\n\t}", "title": "" }, { "docid": "2b13083ec13d762d5af82aac78c2a096", "score": "0.51935834", "text": "public NotificationView(Context context) {\n super(context);\n createViews();\n }", "title": "" }, { "docid": "df9e415aec68cca5a169041c747a8c6f", "score": "0.51897323", "text": "public void createNotification(View view) {\n\n\t}", "title": "" }, { "docid": "52f3a01c7c7ece788271ebe93b44bdda", "score": "0.5185912", "text": "void Subscribe(IBubbleBlowListener BL);", "title": "" }, { "docid": "3a04ba5b2e80d592f9629fe936dd4fc9", "score": "0.5181431", "text": "protected NotificationFactory()\r\n {\r\n log = LogManager.getLogger(this.getClass().getName());\r\n }", "title": "" }, { "docid": "fe478f69fe59f8f60f7611924a957a8d", "score": "0.5154332", "text": "private ClubMatchEventNotify(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "f34e649c33b768b2f6fcdea4602ad3a2", "score": "0.515156", "text": "protected SensorEvent() {\n }", "title": "" }, { "docid": "8b1690f620ea8785eed8b760175891b8", "score": "0.51493704", "text": "void setCreateObjectFlag(String id) {\r\n String updateType = \"CREATE\";\r\n String channel = getChannelNameForID(id);\r\n Notification notification = notifications.get(channel);\r\n if (notification == null) {\r\n addUpdateType(channel, updateType, new HashMap<>());\r\n }\r\n else {\r\n notification.addPayloadField(updateType, new HashMap<>());\r\n }\r\n }", "title": "" }, { "docid": "4047bf0f5d5a815476fbdd316ea8f61c", "score": "0.514143", "text": "@DataBoundConstructor\n public BotecoNotifier(String eventId, boolean sendIfSuccess) {\n this.eventId = eventId;\n this.sendIfSuccess = sendIfSuccess;\n }", "title": "" }, { "docid": "1d749c91a3e5b141a6330c9dc40df546", "score": "0.5138238", "text": "public void notifyEvent(NotificationMsg notification);", "title": "" }, { "docid": "ceedb20d0d06094e102be4e428a52b8b", "score": "0.5137917", "text": "public NotificationIterator (Notification[] notificationList)\n {\n this.notificationList = notificationList;\n }", "title": "" }, { "docid": "6a9e5390756474d6eed2e84667d75bb4", "score": "0.5132163", "text": "public StockGrabber() {\n\n observers = new ArrayList<Observer>();\n }", "title": "" }, { "docid": "81a06c36e1e1e419a33dfdeebebfaf77", "score": "0.5125757", "text": "public Notification(long notificationId, String message, UnitType unit, double price, long userId, Date date, BufferedImage image, List<NotificationComment> comments) {\n this.notificationId = notificationId;\n this.message = message;\n this.unit = unit;\n this.price = price;\n this.userId = userId;\n this.date = date;\n this.image = image;\n if (comments != null) {\n this.comments = new ArrayList<>(comments);\n }\n }", "title": "" }, { "docid": "afe491a18cef89817a51e29c70ee78d5", "score": "0.512477", "text": "public DBackupIDs() {\n super(COMMAND);\n }", "title": "" }, { "docid": "b60757be0f961b77da11cfc10f0c1271", "score": "0.5121828", "text": "public Notification(String text) {\n this(text, 0, DEFAULT_POSITION);\n }", "title": "" }, { "docid": "ca5caf816c980238d6651f42b074bf62", "score": "0.51209474", "text": "public void notifyObserver();", "title": "" }, { "docid": "ffc85aafa9721e0cde498e95300a00eb", "score": "0.5119401", "text": "public void update(Observable obs, Object arg) {\n\n\t\tif (obs instanceof Classe) {\n\n\t\t\tSystem.out.println(\"La notification a bien été reçu !\");\n\t\t\tsetInfo(\"Notification : il y a de nouvelles informations qui correspond à la \" + obs);\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "0025fc7eaeba2727c75359a92937db16", "score": "0.51170933", "text": "public void notifythis()\n {\n NewMessageNotification newMessageNotification = new NewMessageNotification();\n newMessageNotification.notify(this,\"This is the beginning of our last dance\",notId);\n notId++;\n }", "title": "" }, { "docid": "d97554b362a20c825e43cb58532ad0b9", "score": "0.511525", "text": "public NotificationCollectionV3() \n\t{ \n\t\tnotificationList = new ArrayList<Notification>(MAX_ITEMS);\n\n\t\t// Let us add some dummy notifications \n\t\taddItem(\"Notification 1\"); \n\t\taddItem(\"Notification 2\"); \n\t\taddItem(\"Notification 3\"); \n\t}", "title": "" }, { "docid": "6af5575a9958547bb463186e67156b40", "score": "0.511454", "text": "public Event(Object paramObject, long paramLong, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5) {\n/* 679 */ this(paramObject, paramLong, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, null);\n/* */ }", "title": "" }, { "docid": "910722c855ad74b96088790d216ab0c1", "score": "0.5106374", "text": "protected EventChannelAdapter(int dummy)\n {\n \tsuper(dummy);\n }", "title": "" }, { "docid": "fd7490f3cb80c680c6577cd928670dd5", "score": "0.5095973", "text": "@Override\r\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }", "title": "" }, { "docid": "b165ea5c69c8a32a7e1541661532eb1c", "score": "0.50919217", "text": "@Override\r\n\tpublic void notifyObservers(Object arg) {\n\t\tsuper.notifyObservers(arg);\r\n\t}", "title": "" }, { "docid": "299db864662026849ac80799f6a52397", "score": "0.509061", "text": "public void Notify(BA ba, int id) throws ClassNotFoundException {\n\n //NotificationManager mNotificationManager = (NotificationManager) ba.context.getSystemService(Context.NOTIFICATION_SERVICE);\n //mNotificationManager.notify(id, PrepareNotification(ba));\n\n NotificationManagerCompat nm = NotificationManagerCompat.from(ba.context);\n nm.notify(id, PrepareNotification(ba));\n }", "title": "" }, { "docid": "543f3a80c83d663893af9ed6125967c4", "score": "0.508985", "text": "public static guru.learningjournal.kafka.examples.types.Notification.Builder newBuilder(guru.learningjournal.kafka.examples.types.Notification.Builder other) {\n return new guru.learningjournal.kafka.examples.types.Notification.Builder(other);\n }", "title": "" }, { "docid": "1c6e40a3fadad08e2800697f1abaa25c", "score": "0.50768805", "text": "public PushEvent() {}", "title": "" }, { "docid": "a0f3a6462e51e7b5ade74191c65200b4", "score": "0.5075424", "text": "void setChangedAndNotify() {\n notifyObservers();\n }", "title": "" }, { "docid": "dcfe195c6e5ea9bd1b1d9b78bc911165", "score": "0.5072924", "text": "@Override\n\tpublic void notifyObservers(Object arg) {\n\t\tsuper.notifyObservers(arg);\n\t}", "title": "" }, { "docid": "f4f61897680c3bd4fe5c8f40d91c8b4b", "score": "0.5061005", "text": "public SwitchNotificationMsg(int switchNumber, String state, String varName, String value, String source) {\n super(varName, value, source);\n }", "title": "" }, { "docid": "ce44756c5f3667567f7b58e0cddcbb6f", "score": "0.5058336", "text": "ObserveRing createObserveRing();", "title": "" }, { "docid": "3ac60ef472345c23a70af1ab0319f08d", "score": "0.50573194", "text": "public interface IBidSoldObservable {\n void addBidSoldObserver(UUID auctionId, IBidSoldObserver observer);\n\n void removeBidSoldObserver(UUID auctionId);\n}", "title": "" }, { "docid": "9338449093465d8a5654851cf626f14b", "score": "0.5054647", "text": "private SubscriberEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "8f182816071294631ceb5bfbd15facab", "score": "0.505049", "text": "void notifyObserver();", "title": "" }, { "docid": "8f182816071294631ceb5bfbd15facab", "score": "0.505049", "text": "void notifyObserver();", "title": "" }, { "docid": "e191d6d3967c1e954a13125dd6ee6d93", "score": "0.5037943", "text": "protected EntityFrameChangedEvent() {\n\n }", "title": "" }, { "docid": "7978c06298164ab494b5bb95eaefb4b1", "score": "0.50261664", "text": "@Override\r\n\tpublic void eNotify(Notification notification) {\n\r\n\t}", "title": "" }, { "docid": "7978c06298164ab494b5bb95eaefb4b1", "score": "0.50261664", "text": "@Override\r\n\tpublic void eNotify(Notification notification) {\n\r\n\t}", "title": "" } ]
6a2cb9b19d3c6877689b37fbb109d0e9
Tests to see if this card type is the same as the card type passed into equals
[ { "docid": "589d95710480abee989e0d07db2dc2f1", "score": "0.6880077", "text": "public boolean equals(Card target) {\n\t\treturn (this.type == target.type) && (this.cardName.equals(target.cardName));\n\t}", "title": "" } ]
[ { "docid": "99ca827bbdac16f7cff321dbf644b7d7", "score": "0.7189967", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n\n // If o isn't the right class then it can't be equal:\n if (!(o instanceof Card)) {\n return false;\n }\n\n // The successful instanceof check means our cast will succeed:\n Card that = (Card) o;\n\n return this.suite == that.suite\n && this.face == that.face;\n }", "title": "" }, { "docid": "0d281940c5782639846332ba4eff735a", "score": "0.68733704", "text": "public boolean equalsCard(Card card){\n if(this.id == card.getId()){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "506b4636a38fb62f2c06feba0d0b4439", "score": "0.68494606", "text": "public boolean equals(Card other) {\n\t\tif (this.value == other.value) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "3dc30b39c553f0ba1e9373bb99069c35", "score": "0.6744885", "text": "@Override // Ask compiler to verify this is a proper Override - same name, same parameters, same return-type\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj) { // If compare a PlayingCard to itself\n\t\t\treturn true;\n\t\t}\n\t\tif (obj == null) { // If compare to an undefined PlayingCard\n\t\t\treturn false;\n\t\t}\n\t\tif (getClass() != obj.getClass()) { // If compare to an object of a different class\n\t\t\treturn false; // getClass() return the Class of an object\n\t\t}\n\t\tPlayingCard other = (PlayingCard) obj; // Define a PlayingCard for the object that was passed\n\t\tif (color != other.color) {\n\t\t\treturn false;\n\t\t}\n\t\tif (suit != other.suit) {\n\t\t\treturn false;\n\t\t}\n\t\tif (value != other.value) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "879ac2ae47abd506c0b1c764c02a1785", "score": "0.6725068", "text": "public boolean equals(Card c){\n\t\tif (this.value == c.getValue()){\n\t\t\treturn (true);\n\t\t}\n\t\telse {\n\t\t\tif(this.suit == c.getSuit()) {\n\t\t\t\treturn(true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(this.value == 8|c.getValue() ==8){ //if your card is an 8, or the discard is an 8\n\t\t\t\t\treturn(true);\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "96c008499dc01e92f7ef119d570319b6", "score": "0.66869223", "text": "public boolean equals(Card c)\n\t{\n\t\tif(this.rank==c.rank)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "91205274f00cff34008c867dd62392c2", "score": "0.66433567", "text": "public\n boolean equals( final Object object ) {\n if ( object != null && object instanceof Card ) {\n Card card = ( Card ) object;\n return ( this.getSuit().equals( card.getSuit() ) &&\n this.getValue().equals( card.getValue() ) );\n }\n return false;\n }", "title": "" }, { "docid": "b57b63c434b7c203b0b293bd74ddf288", "score": "0.66351575", "text": "public boolean equals(Card c){\n Boolean rv = false;\n if (face == c.getFace() && suit == c.getSuit()) {\n rv = true;\n }\n return rv;\n }", "title": "" }, { "docid": "12792d71b0d281515ce4ac4f5135418a", "score": "0.6584442", "text": "public boolean equals(Object o) \r\n {\r\n TrainCard tcard = (TrainCard) o;\r\n return tcard.tColor == this.tColor;\r\n }", "title": "" }, { "docid": "e54e271cb323d206f150454b2b2e8839", "score": "0.6574254", "text": "@Override\n public boolean equals(Object o) {\n \n if (o instanceof CombineCards) {\n CombineCards onew = (CombineCards) o;\n\n if (combine == onew.combine) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "b37c59313781e9e1b6db1c0b8ce95054", "score": "0.6564627", "text": "public boolean equals(Card card)\n {\n if (card == null)\n {\n return false;\n }\n return (this.value == card.value && this.suit == card.suit \n && this.errorFlag == card.errorFlag);\n }", "title": "" }, { "docid": "5bdddac7a2d941de6b96e7e7eeef00db", "score": "0.6509556", "text": "public boolean sameColorAs(Suit suitType)\n {\n assert suitType != null;\n if( this == CLUBS || this == SPADES )\n {\n return suitType == CLUBS || suitType == SPADES;\n }\n else\n {\n return suitType == DIAMONDS || suitType == HEARTS;\n }\n }", "title": "" }, { "docid": "485a492c3828ae0cd44673eca7fbb8fd", "score": "0.64817536", "text": "boolean sameType(DNSRecord other) {\n return type == other.type;\n }", "title": "" }, { "docid": "0e981a2f1a9d523f80e1671ac0a0f354", "score": "0.6446536", "text": "@Test\r\n public void testPlayerCardComparisonSameCards() {\r\n System.out.println(\"playerCardComparisonSameCards\");\r\n Player player = new Player();\r\n Card card1 = new Card();\r\n card1.setValue(5);\r\n Card card2 = new Card();\r\n card2.setValue(5);\r\n player.getCardPack1().getCards().add(card1);\r\n player.getCardPack1().getCards().add(card2);\r\n boolean expResult = true;\r\n boolean result = (player.getCardPack1().getCards().get(0).getValue() == player.getCardPack1().getCards().get(1).getValue());\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "6bfe100ea584445d764af0d7bfebcd9c", "score": "0.6366143", "text": "public\n boolean equals( Object object ) {\n return object != null\n && object instanceof Card.Suit\n && ( ( Card.Suit ) object )._value == this._value;\n }", "title": "" }, { "docid": "f493c6602eb80844807f638b03d2a6d3", "score": "0.63579035", "text": "@Override\n public boolean equals(Object object) {\n if(!(object instanceof Deck)) { return false; }\n Deck deck = (Deck) object;\n ArrayList<Card> cards = this.getCards();\n ArrayList<Card> comparisonCards = deck.getCards();\n if(this.getCards().size() != cards.size()) { return false; }\n for(int i = 0; i < cards.size(); i++) {\n if(!cards.get(i).equals(comparisonCards.get(i))) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "34426639f89be48d2fd94bf595e8e221", "score": "0.6353821", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof MovieCard)) {\n return false;\n }\n\n // state check\n MovieCard card = (MovieCard) other;\n return id.getText().equals(card.id.getText())\n && movie.equals(card.movie);\n }", "title": "" }, { "docid": "fc5d13c920bdece2a3e9428fd9b85f5c", "score": "0.6345282", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof InternshipApplicationCard)) {\n return false;\n }\n\n // state check\n InternshipApplicationCard card = (InternshipApplicationCard) other;\n return id.getText().equals(card.id.getText())\n && internshipApplication.equals(card.internshipApplication);\n }", "title": "" }, { "docid": "dc64a3f20b8b1cbfc15b821221a6bc73", "score": "0.6332092", "text": "@Test\r\n public void testPlayerCardComparisonDifferentCards() {\r\n System.out.println(\"playerCardComparisonDifferentCards\");\r\n Player player = new Player();\r\n Card card1 = new Card();\r\n card1.setValue(5);\r\n Card card2 = new Card();\r\n card2.setValue(6);\r\n player.getCardPack1().getCards().add(card1);\r\n player.getCardPack1().getCards().add(card2);\r\n boolean expResult = false;\r\n boolean result = (player.getCardPack1().getCards().get(0).getValue() == player.getCardPack1().getCards().get(1).getValue());\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "a1dda15ac838714294f34bae241c165c", "score": "0.62951", "text": "public abstract boolean sameType();", "title": "" }, { "docid": "4ee847d92021324a4ebe74a8c9b8de59", "score": "0.6245445", "text": "public\n boolean equals( Object object ) {\n return object != null\n && object instanceof Card.Value\n && ( ( Card.Value ) object )._value == this._value;\n }", "title": "" }, { "docid": "d04806a9065e2d5a66fea4952fc8521f", "score": "0.6239871", "text": "public boolean equals(Object o)\r\n {\n boolean same = false;\r\n if(this == o)\r\n {\r\n same = true;\r\n }\r\n if(o instanceof BingoCard)\r\n {\r\n same = this.card.equals(((BingoCard)o).card);\r\n }\r\n return same;\r\n }", "title": "" }, { "docid": "c3106f4bdd25863fa5517757f3829c54", "score": "0.6226502", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Cards)) {\n return false;\n }\n Cards other = (Cards) object;\n if ((this.cardId == null && other.cardId != null) || (this.cardId != null && !this.cardId.equals(other.cardId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "28905ae92a7b6b522d4b86f3e4b6c191", "score": "0.622253", "text": "public boolean sameR(Card c){\n boolean same= c.getRank()==this.getRank();\n return same; \n }", "title": "" }, { "docid": "255828a2f503982a127ba587e4f79608", "score": "0.61947197", "text": "public boolean hasCardType(int cardType) {\n for (int i=0; i < hand.size(); i++){\n \tcard = hand.get(i);\n \tif (card.getType() == cardType) {\n \t\treturn true;\n \t}\n }\n return false;\n }", "title": "" }, { "docid": "5ca0f64fdd9e9e7409733a994127b90b", "score": "0.6193294", "text": "public boolean equals(Deck other) {\r\n\t if(cards[0] == null)\r\n\t\t return false;\r\n\t if(topCard != other.getTopCard())\r\n\t\t return false;\r\n\t for (int i = 0; i<= topCard;i++) {\r\n\t\t if(!(cards[i].equals(other.getCards()[i]))){\r\n\t\t\t return false;\r\n\t\t }\r\n\t }\r\n\t return true;\r\n }", "title": "" }, { "docid": "79a2c37985da752f1d1d9b054348e04f", "score": "0.6144794", "text": "public\n boolean equals( Object object ) {\n return object != null\n && object instanceof Card.Color \n && ( ( Card.Color ) object )._value == this._value;\n }", "title": "" }, { "docid": "246d3781d82df4b01584dfbfa8b763eb", "score": "0.6118456", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof BudgetCard)) {\n return false;\n }\n\n // state check\n BudgetCard card = (BudgetCard) other;\n return id.getText().equals(card.id.getText())\n && budget.equals(card.budget);\n }", "title": "" }, { "docid": "76d6cd87e55ad48bd9b29a0daf50d0e7", "score": "0.6111405", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof DayCard)) {\n return false;\n }\n\n // state check\n DayCard card = (DayCard) other;\n return id.getText().equals(card.id.getText())\n && day.equals(card.day);\n }", "title": "" }, { "docid": "b16aa87847669fc82518baaba5c99674", "score": "0.6052404", "text": "public boolean equalsClassType(TypeObject typeObject) {\n if (this.classType.length() == 1 || typeObject.classType.length() == 1)\n return true;\n else\n return this.classType.equals(typeObject.classType);\n }", "title": "" }, { "docid": "2d9ecc03223ef7e280dad602ef8a8681", "score": "0.6035967", "text": "@Override\n\tpublic boolean isStackable(Card card) {\n\t\tif (this.getValue() == card.getValue().getValue()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "3b25dee687ae691e90695f31be0e2e75", "score": "0.60348725", "text": "public boolean isSameType(SchemaType other) {\n return other.getFingerprint() == getFingerprint();\n }", "title": "" }, { "docid": "4fbbc5669b21d932280867c2a778398b", "score": "0.6031612", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CropType)) {\n return false;\n }\n CropType other = (CropType) object;\n if ((this.cropTypeId == null && other.cropTypeId != null) || (this.cropTypeId != null && !this.cropTypeId.equals(other.cropTypeId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "88a0fdea8e7528cb8b870af277daf1a9", "score": "0.6031517", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof AircraftTypeEntity)) {\n return false;\n }\n AircraftTypeEntity other = (AircraftTypeEntity) object;\n if ((this.aircraftTypeId == null && other.aircraftTypeId != null) || (this.aircraftTypeId != null && !this.aircraftTypeId.equals(other.aircraftTypeId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "85498c6f6df96527322a0a9b2bd24a23", "score": "0.6030693", "text": "public boolean isEqual(Card b) {\n\t\tif(this.rank == b.getRank() && this.suite == b.getSuite()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "f120526851bfaeb0c8e01797f6d11666", "score": "0.6011953", "text": "public boolean isSameSuit(Card c)\n\t{\t\t\n\t\tif(this.suit == c.suit)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "42bb57ce28890041f2aec18e0bdddc6d", "score": "0.60114694", "text": "@Override\n\tpublic boolean isEqual(Object objectname1, Object objectname2,\n\t\t\tClass<?> voClass) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "f063f7dbcefebb73af8c71b4d24c842e", "score": "0.6000968", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof IngredientCard)) {\n return false;\n }\n\n // state check\n IngredientCard card = (IngredientCard) other;\n return id.getText().equals(card.id.getText())\n && ingredient.equals(card.ingredient);\n }", "title": "" }, { "docid": "69607a23117f1bc9645d46d82d4a2b05", "score": "0.5997193", "text": "@Override\n public boolean equals(Object d) {\n if (d == null) { return false; }\n if (d instanceof Deck) {\n if (this.Cards.size()==((Deck) d).Cards.size()) {\n Iterator<Card> c1 = this.Cards.iterator();\n Iterator<Card> c2 = ((Deck) d).Cards.iterator();\n\n while (c1.hasNext() && c2.hasNext()){\n if (!c1.next().equals(c2.next())) {\n return false;\n }\n }\n }\n }\n else return false;\n return true;\n }", "title": "" }, { "docid": "603d3e4b8f71435da4e564920ec01ee1", "score": "0.5994912", "text": "public void testEquals_EqualsObject() {\r\n\r\n assertTrue(\"These two objects should be equal.\",\r\n defaultRatingType.equals(RatingType.getRatingType(DESIGN_NAME)));\r\n }", "title": "" }, { "docid": "f197a606e20c839d27af682168cd7a24", "score": "0.5992253", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof TaskCard)) {\n return false;\n }\n\n // state check\n TaskCard card = (TaskCard) other;\n return id.getText().equals(card.id.getText())\n && task.equals(card.task);\n }", "title": "" }, { "docid": "3d7167882218f051ef5edf4283c45666", "score": "0.59747255", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof EventCard)) {\n return false;\n }\n\n // state check\n EventCard card = (EventCard) other;\n return id.getText().equals(card.id.getText())\n && event.equals(card.event);\n }", "title": "" }, { "docid": "9fd7d06713ce3b4c3893e5820e1d3095", "score": "0.5945107", "text": "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj != null && obj instanceof CardRole) {\n\t\t\tCardRole x = (CardRole) obj;\n\t\t\treturn (player == x.player && state == x.state);\n\t\t} else\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "d85239035376940ad4f6572aa3f313d1", "score": "0.5943338", "text": "@Test\n public void testhasSameSuit() {\n p1.addCardtoPlayer(card1);\n p1.addCardtoPlayer(card2);\n p1.addCardtoPlayer(card14);\n\n assertEquals(false, p1.hasSameSuit(Card.Suit.Spade));\n assertEquals(true, p1.hasSameSuit(Card.Suit.Club));\n assertEquals(true, p1.hasSameSuit(Card.Suit.Diamond));\n assertEquals(false, p1.hasSameSuit(Card.Suit.Heart));\n assertEquals(false, p2.hasSameSuit(Card.Suit.Club));\n assertEquals(false, p2.hasSameSuit(Card.Suit.Diamond));\n assertEquals(false, p2.hasSameSuit(Card.Suit.Heart));\n assertEquals(false, p2.hasSameSuit(Card.Suit.Spade));\n }", "title": "" }, { "docid": "6e3914cb3fae6e7f21ea93431f9d9eb5", "score": "0.5941352", "text": "@Override\n public boolean equals(Object type) {\n if (type instanceof Student) {\n if (studentId == ((Student) type).getId()) {\n return true;\n }\n }\n\n if (type instanceof FoodRobot) {\n if (((FoodRobot) type).getName() != null && this.robotName != null) {\n if (this.robotName.compareTo(((FoodRobot) type).getName()) == 0) {\n return true;\n }\n }\n }\n\n if (type instanceof Delivery) {\n if (this.studentId == ((Delivery) type).studentId) {\n return true;\n } else if (((Delivery) type) != null && this.robotName != null) {\n if (this.robotName.compareTo(((Delivery) type).robotName) == 0) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "397e338bd96d6fea3c884470eceb6288", "score": "0.59138584", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof CardDto)) {\n return false;\n }\n CardDto other = (CardDto) object;\n if ((this.cardId == null && other.cardId != null) || (this.cardId != null && !this.cardId.equals(other.cardId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "356b1a49a2cc94138e79f425a0f7c752", "score": "0.59128994", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof MContentableCard)) {\n return false;\n }\n return id != null && id.equals(((MContentableCard) o).id);\n }", "title": "" }, { "docid": "fb4e2cb770b7fd1954f6b5b45229b1b0", "score": "0.5911831", "text": "public void testEqualsDifferentClassTypes(){\r\n\t\tArm arm1= new Arm();\r\n\t\tArm arm2= new ArmSubClass();\r\n\t\tarm1.setName(\"Test\");\r\n\t\tarm2.setName(\"Test\");\r\n\t\tassertFalse(arm1.equals(arm2));\r\n\t}", "title": "" }, { "docid": "0da3cdb47cfacb4d9163949a48be5217", "score": "0.58537304", "text": "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof DeadlineCard)) {\n return false;\n }\n\n // state check\n DeadlineCard card = (DeadlineCard) other;\n return id.getText().equals(card.id.getText())\n && deadline.equals(card.deadline);\n }", "title": "" }, { "docid": "17c9caca6b93adc3dd6bb5c1cb6c0723", "score": "0.5832335", "text": "public boolean equals(Object rightHandSide) {\n // compare two null objects\n if (rightHandSide != null && this.getClass() == rightHandSide.getClass()) {\n LetterInventory otherLetterInventory = (LetterInventory) rightHandSide;\n // can't be equal if they don't have the same size\n if (validSize != otherLetterInventory.validSize) {\n return false;\n }\n // check all the elements' value\n for (int i = 0; i < generalSize; i++) {\n if (otherLetterInventory.con[i] != this.con[i]) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "64f00d66a4c7f69a9129722c9c128234", "score": "0.58248293", "text": "public boolean equals(Object o) {\n/* 778 */ if (this == o) {\n/* 779 */ return true;\n/* */ }\n/* 781 */ if (!(o instanceof Type)) {\n/* 782 */ return false;\n/* */ }\n/* 784 */ Type t = (Type)o;\n/* 785 */ if (this.sort != t.sort) {\n/* 786 */ return false;\n/* */ }\n/* 788 */ if (this.sort == 10 || this.sort == 9) {\n/* 789 */ if (this.len != t.len) {\n/* 790 */ return false;\n/* */ }\n/* 792 */ for (int i = this.off, j = t.off, end = i + this.len; i < end; i++, j++) {\n/* 793 */ if (this.buf[i] != t.buf[j]) {\n/* 794 */ return false;\n/* */ }\n/* */ } \n/* */ } \n/* 798 */ return true;\n/* */ }", "title": "" }, { "docid": "c7abb1fad668d391ece002ba6b7dabdd", "score": "0.5795516", "text": "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Type)) {\r\n return false;\r\n }\r\n Type other = (Type) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "2fda4298cd3cf68fd92b7a30f27d846d", "score": "0.577518", "text": "@Override\n public int match(List<Card> otherCards){\n int score =0;\n //matching only one card at this stage, can be any numbers of cards\n if(otherCards.size()==1){\n //getting the last object here\n PlayingCard otherCard = (PlayingCard) otherCards.get(otherCards.size()-1);//typeCasting\n if(otherCard.getSuit().equals(this.getSuit())){score=1;}\n else if(otherCard.getRank()==this.getRank()){score = 4;}\n\n }\n return score;\n }", "title": "" }, { "docid": "4e0344170c92a975eedbdc8a43f00c18", "score": "0.5770591", "text": "boolean equalsType(final DataDescription other);", "title": "" }, { "docid": "e43aba0d8958e55aed3e15b171e9970d", "score": "0.5766048", "text": "@Override\n public boolean equals(Object obj) {\n if (obj instanceof CourseType) {\n return this.name.equals(((CourseType) obj).getName());\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6d1922b4b37ebb0a63808002f5365bc2", "score": "0.57471514", "text": "public boolean equals(VideoCodec codec) {\n if (getCodecName().equalsIgnoreCase(codec.getCodecName()) &&\n \t\tgetWidth() == codec.getWidth() &&\n \t\t\tgetHeight() == codec.getHeight())\n return true;\n return false;\n }", "title": "" }, { "docid": "c3a1bc668159db6994093d9e5478933a", "score": "0.5735151", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ComplaintTypeDTO)) {\n return false;\n }\n ComplaintTypeDTO other = (ComplaintTypeDTO) object;\n if ((this.complaintTypeID == null && other.complaintTypeID != null) || (this.complaintTypeID != null && !this.complaintTypeID.equals(other.complaintTypeID))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "af79535f6321e88966f43cfbf7fd27de", "score": "0.57173455", "text": "public static boolean equalsHasBrokenTypecheck() {\r\n\r\n\t\t/**\r\n\t\t * Some class with an equals()-Method that uses instanceof to compare some objects' classes.\r\n\t\t */\r\n\t\tclass ClassX {\r\n\t\t\tprivate final int valueA;\r\n\r\n\t\t\tClassX(final int valueA) { this.valueA = valueA; }\r\n\t\t\tint getValueA() { return valueA; }\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean equals(final Object anotherX) {\r\n\r\n\t\t\t\tif(anotherX == null)\r\n\t\t\t\t\treturn false;\r\n\t\t\t\tif(!(anotherX instanceof ClassX))\r\n\t\t\t\t\treturn false;\r\n\t\t\t\tif(getValueA() != ((ClassX)anotherX).getValueA())\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinal ClassX someX = new ClassX(ARBITRARY_VALUE);\r\n\t\tfinal ClassX subX = new ClassX(ARBITRARY_VALUE) {};\r\n\t\tfinal boolean xEqualsY = someX.equals(subX);\r\n\t\tfinal boolean yEqualsX = subX.equals(someX);\r\n\t\tfinal boolean equalsUsesInstanceof = xEqualsY == yEqualsX;\r\n\r\n\t\treturn equalsUsesInstanceof;\r\n\t}", "title": "" }, { "docid": "88714702d6837c63adb4e0ffe705a1a4", "score": "0.57044375", "text": "public boolean equals(Object other){\n\n\t\tif(other == null){\n\t\t\treturn false;\n\t\t}\n\t\tif(other.getClass() != Player.class){\n\t\t\treturn false;\n\t\t}\n\n\t\tPlayer p = (Player) other;\n\n\t\treturn UID == p.UID;\n\t}", "title": "" }, { "docid": "aad1c0e4cde68932fb8bb04720ee2d3d", "score": "0.57017154", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Type)) {\n return false;\n }\n Type other = (Type) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "daa6f061213361ca99a7f7227aa3a4cb", "score": "0.56701136", "text": "public abstract boolean equals(Object object);", "title": "" }, { "docid": "de1763cbcfb1fef8aad120a405018fd6", "score": "0.5662579", "text": "@Test\r\n public void testPlayerCardComparisonTwoSameCardsOtherThanAces() {\r\n System.out.println(\"playerCardComparisonTwoSameCardsOtherThanAces\");\r\n Player player = new Player();\r\n Card card1 = new Card();\r\n card1.setValue(12);\r\n Card card2 = new Card();\r\n card2.setValue(12);\r\n player.getCardPack1().getCards().add(card1);\r\n player.getCardPack1().getCards().add(card2);\r\n int expResult = 1;\r\n int result = 0;\r\n if( player.getCardPack1().getCards().get(0).getValue() != 14 && player.getCardPack1().getCards().get(1).getValue() != 14 && player.getCardPack1().getCards().get(0).getValue() == player.getCardPack1().getCards().get(1).getValue())\r\n {\r\n result = 1;\r\n }\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "bcb13a2aadae724c8f697a77cda15508", "score": "0.566059", "text": "@Override\n\t\tpublic boolean equals(Object o) {\n\t\t\tif(this == o){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tif(o instanceof Phone){\n\t\t\t\tPhone p = (Phone)o;\n\t\t\t\tif(this.getType() != p.getType()){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif(!this.getName().equals(p.getName())){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif(!this.getNumber().equals(p.getNumber())){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\treturn super.equals(o);\n\t\t}", "title": "" }, { "docid": "718b731cb00edb062c96eafad31289b3", "score": "0.5654246", "text": "public boolean similarColorTo(Card c) {\n if((c.color() == color.HEARTS || c.color() == color.DIAMONDS) && (this.color() == color.HEARTS || this.color() == color.DIAMONDS)){\n return true;\n }else if((c.color() == color.SPADES || c.color() == color.CLUBS) && (this.color() == color.SPADES || this.color() == color.CLUBS)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2b462338025af5ca1278581aa72cca1e", "score": "0.5650567", "text": "public boolean isSameType(TypeName other)\r\n\t{\r\n\t\tif (other != null)\r\n\t\t{\r\n\t\t\treturn baseQualifiedName.equals(other.baseQualifiedName);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "dd66751cebfc2c6efa388d20b90566b8", "score": "0.5643484", "text": "public boolean sameType(Course other) {\n\n\t\treturn this.department.equals(other.department) && this.courseNumber == other.courseNumber\n\t\t\t\t&& this.sectionType.equals(other.sectionType);\n\t}", "title": "" }, { "docid": "d374cfc55d36f0770bb958e50bb8ca78", "score": "0.56413764", "text": "@Override\n public boolean equals(Object carToCompare) {\n if (carToCompare == this) {\n return true;\n }\n\n /* Check if carToCompare is an instance of Product or not\n \"null instanceof [type]\" also returns false */\n if (!(carToCompare instanceof Car)) {\n return false;\n }\n\n // typecast carToCompare to Complex so that we can compare data members\n Car car = (Car) carToCompare;\n\n // Compare the data members and return accordingly\n return CharSequence.compare(this.vin, ((Car) carToCompare).getVin()) == 0\n && CharSequence.compare(this.vin, ((Car) carToCompare).getVin()) == 0\n && this.data_provider_id == ((Car) carToCompare).getData_provider_id()\n && this.service_details.size() == ((Car) carToCompare).getService_details().size();\n }", "title": "" }, { "docid": "417ce56918522cd0acff1cb8d0c772cd", "score": "0.5639801", "text": "@Override\n public boolean equals(Object other) {\n return (other instanceof Box) && this.color == ((Box) other).getColor()\n && this.weight == ((Box) other).getWeight();\n\n }", "title": "" }, { "docid": "e0e482dddfacc88e358e0e212c848a94", "score": "0.5629656", "text": "@Test\n public void equals() {\n Cca canoeingCopy = new CcaBuilder(CANOEING).build();\n assertTrue(CANOEING.equals(canoeingCopy));\n\n // same object -> returns true\n assertTrue(CANOEING.equals(CANOEING));\n\n // null -> returns false\n assertFalse(CANOEING.equals(null));\n\n // different type -> returns false\n assertFalse(CANOEING.equals(5));\n\n // different person -> returns false\n assertFalse(CANOEING.equals(GUITAR_ENSEMBLE));\n\n // different name -> returns false\n Cca editedCanoeing = new CcaBuilder(CANOEING).withName(VALID_NAME_GUITAR_ENSEMBLE).build();\n assertFalse(CANOEING.equals(editedCanoeing));\n\n // different type -> returns false\n editedCanoeing = new CcaBuilder(CANOEING).withType(VALID_NAME_TYPE_CLUB).build();\n assertFalse(CANOEING.equals(editedCanoeing));\n\n }", "title": "" }, { "docid": "6385a9a4b4896c3382217c7a102c1b33", "score": "0.5626022", "text": "@Test\n public void equals_alienType_returnsFalse() {\n // setup for test\n IpAddressDTO src = new IpAddressDTO(\"1.0.0.0\", false);\n Object tgt = \"tgt\";\n\n // execute test method\n boolean result = src.equals(tgt);\n\n // verify result\n assertFalse(result);\n }", "title": "" }, { "docid": "94aae7fa0714cff4d504c20c3971e59e", "score": "0.5618995", "text": "static boolean checkType(ByteBuffer packet, MessageType type) {\n final int receivedType = ByteUtil.getUnsignedByte(packet, LispMessage.Pos.TYPE) >> 4;\n MessageType messageType = MessageType.forValue(receivedType);\n LOG.trace(\"Packet type: {}\", messageType);\n return messageType == type;\n }", "title": "" }, { "docid": "079542fddeb2952c5711e07381f315c1", "score": "0.56188726", "text": "private static boolean accountsMatch(ConnectedDevicesAccount account1, ConnectedDevicesAccount account2) {\n String accountId1 = account1.getId();\n ConnectedDevicesAccountType accountType1 = account1.getType();\n\n String accountId2 = account2.getId();\n ConnectedDevicesAccountType accountType2 = account2.getType();\n\n return accountId2.equals(accountId1) && accountType2.equals(accountType1);\n }", "title": "" }, { "docid": "3527e28eda1c45e397b8d6eeb3b91d0d", "score": "0.5617161", "text": "@Test\n public void testEquals()\n {\n //Duplicate accounts\n Account Robert1 = new Account(\"RD\", \"196\", new Money(56,81));\n Account Robert2 = new Account(\"RD\", \"196\", new Money(56,81));\n assertTrue(\"Error in testEquals\", Robert1.equals(Robert2));\n\n //Same name and balance but different ID\n Account Jill1 = new Account(\"JV\", \"197\", new Money(56,81));\n Account Jill2 = new Account(\"JV\", \"198\", new Money(56,81));\n assertFalse(\"Error in testEquals\", Jill1.equals(Jill2));\n }", "title": "" }, { "docid": "56632214e7437560f12d3ab665bdea4f", "score": "0.5613205", "text": "@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n // clazz.isAssignableFrom(Foo.class) returns true if the\n // clazz object is a superclass or superinterface of Foo\n if (!Club.class.isAssignableFrom(obj.getClass())) {\n return false;\n }\n\n // Check to see if all necessary variables are equal or not\n final Club objPerson = (Club) obj;\n if (this.imageSource != objPerson.imageSource) {\n return false;\n }\n if ((this.text == null) ? (objPerson.text != null) : !this.text.equals(objPerson.text)) {\n return false;\n }\n if ((this.title == null) ? (objPerson.title != null) : !this.title.equals(objPerson.title)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "4fc07516945866a7b87932b9d4c6c159", "score": "0.5605779", "text": "public void testEquals_NonEqualsObject1() {\r\n\r\n assertFalse(\"These two objects should be non-equal.\",\r\n defaultRatingType.equals(RatingType.getRatingType(DEVELOPMENT_NAME)));\r\n }", "title": "" }, { "docid": "05ac8d6c78041a64d7cf41f38c84105c", "score": "0.55867356", "text": "public abstract boolean equals(Object o);", "title": "" }, { "docid": "05ac8d6c78041a64d7cf41f38c84105c", "score": "0.55867356", "text": "public abstract boolean equals(Object o);", "title": "" }, { "docid": "05ac8d6c78041a64d7cf41f38c84105c", "score": "0.55867356", "text": "public abstract boolean equals(Object o);", "title": "" }, { "docid": "21cd5f07128b32fec8f29ac2651cb67e", "score": "0.55865383", "text": "public boolean equals(Object other) {\n return super.equals(other) &&\n requiredType == ((NumericPromoter)other).requiredType;\n }", "title": "" }, { "docid": "9d244a9dbe8893144be6d9b60476816d", "score": "0.55803853", "text": "public boolean validCard() {\n\n if (this.calledCard != null) {\n\n if (this.flippedCard.getTag().substring(1).equals(this.calledCard.getTag().substring(1))) {\n return true;\n }\n\n else {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "fac7b71a935a665fd0324b53b009c1bb", "score": "0.55789727", "text": "public abstract boolean equals(Object that);", "title": "" }, { "docid": "199840e1602bd98f09bf78e7c7d47fff", "score": "0.5565024", "text": "boolean same_type(DiagnosticChain diagnostics, Map<Object, Object> context);", "title": "" }, { "docid": "1e6ffe0d9ac405313397cc99a6aa18c8", "score": "0.5554058", "text": "public java.lang.String getCardType()\r\n {\r\n return this._cardType;\r\n }", "title": "" }, { "docid": "6efed5f55a173c886a77133cb7be9c98", "score": "0.5541979", "text": "public boolean equals(Object obj) {\n if (this != obj) {\n if (obj instanceof CardDataJson) {\n CardDataJson cardDataJson = (CardDataJson) obj;\n if (Intrinsics.areEqual(this.label, cardDataJson.label)) {\n }\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "4bb5d10bfa88ee6fb19b37df88117680", "score": "0.5540872", "text": "public boolean equals(Object other){\n if(!(other instanceof TwoNTile)){\n return false;\n }\n TwoNTile tile = (TwoNTile) other;\n return this.value == tile.value;\n }", "title": "" }, { "docid": "f0f2e02709d2eb675fcec8a4c97f0b89", "score": "0.55405307", "text": "@Test\n public void equals() {\n Item arduinoCopy = new ItemBuilder(ARDUINO).build();\n assertTrue(ARDUINO.equals(arduinoCopy));\n\n // same object -> returns true\n assertTrue(ARDUINO.equals(ARDUINO));\n\n // null -> returns false\n assertFalse(ARDUINO.equals(null));\n\n // different type -> returns false\n assertFalse(ARDUINO.equals(5));\n\n // different item -> returns false\n assertFalse(ARDUINO.equals(RPLIDAR));\n\n // different name -> returns false\n Item editedArduino = new ItemBuilder(ARDUINO).withName(VALID_NAME_RPLIDAR).build();\n assertFalse(ARDUINO.equals(editedArduino));\n\n }", "title": "" }, { "docid": "71645aaf88c85d0a0a5ea765eea34d39", "score": "0.5539918", "text": "public boolean equals(Account account) {\n return this.type == account.type &&\n this.balance == account.balance;\n }", "title": "" }, { "docid": "84171a36a6eb6f1521665928f6c7e72f", "score": "0.5539126", "text": "public static boolean equals(java.lang.reflect.Type r3, java.lang.reflect.Type r4) {\n /*\n // Method dump skipped, instructions count: 167\n */\n throw new UnsupportedOperationException(\"Method not decompiled: retrofit.Types.equals(java.lang.reflect.Type, java.lang.reflect.Type):boolean\");\n }", "title": "" }, { "docid": "8a27c78a88dc6ffeaabd89501d306aa3", "score": "0.5535694", "text": "public boolean equals(Carta c1){\n\t\tif((this.valor == c1.valor) && (this.naipe == c1.naipe))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fa7957ffa7d896da7ac6e7a7b916990a", "score": "0.5531283", "text": "public boolean equal(Object arg) {\n\t\tif (arg == null)\n\t\t\treturn false;\n\t\tif (arg.getClass() != this.getClass())\n\t\t\treturn false;\n\t\tCoin other = (Coin) arg;\n\t\tif (other.getValue() == value && other.getCurrenccy().equalsIgnoreCase(currency)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6b120a57434f3eb01c3fbc432bdc4641", "score": "0.553107", "text": "public boolean equals(Board other)\n\t{\n\t\tif (other == null) return false;\n\t\tfor (int row=0; row<Game.getInstance().getBoardSize(); row++)\n\t\t\tfor (int col=0; col<Game.getInstance().getBoardSize(); col++)\n\t\t\t{\n\t\t\t\tif ((row+col)%2 == 0) continue; //white square\n\t\t\t\tPeon p1 = _peons[row][col];\n\t\t\t\tPeon p2 = other._peons[row][col];\n\t\t\t\t//System.out.println(\"[\"+row+\",\"+col+\"] \"+p1+\" \"+p2);\n\t\t\t\t\n\t\t\t\tif (p1 == null && p2 == null) continue;\n\t\t\t\tif (p1 == null || p2 == null) return false;\n\t\t\t\tif ((p1 instanceof King) == (p2 instanceof King))\n\t\t\t\t\tif (p1.getPlayer().getColor() == p2.getPlayer().getColor())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t/*if (p1 != p2) */return false;\n\t\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "77cb32c1180caa687afb98ba047bf931", "score": "0.5524878", "text": "public boolean sameAs(Scalar other)\n {\n if (this.getArray() != null && other.getArray() != null && this.getArray() == other.getArray())\n {\n return true;\n } \n else if (this.getHash() != null && other.getHash() != null && this.getHash() == other.getHash())\n {\n return true;\n }\n else if (this.getActualValue() != null && other.getActualValue() != null)\n {\n if (this.getActualValue().getType() == sleep.engine.types.ObjectValue.class || other.getActualValue().getType() == sleep.engine.types.ObjectValue.class)\n {\n return (this.objectValue() == other.objectValue());\n }\n else \n { \n return this.identity().equals(other.identity());\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "420c42e21804ee4dd364c50b3a311b98", "score": "0.5524225", "text": "@Override\n\tpublic boolean equals(Type o) {\n\t\tif( o != null && o instanceof MethodType ) {\t\t\n\t\t\tMethodType methodType = (MethodType)o;\t\t\t\n\t\t\treturn matchesParams( methodType ) && matchesReturns( methodType );\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "72493abaafd13414046c64c33101d49a", "score": "0.5523269", "text": "public boolean equals(Object y) {\n // null object\n if (y == null)\n return false;\n // not a board object\n if (this.getClass() != y.getClass())\n return false;\n\n Board that = (Board) y;\n int thisSize = this.size();\n\n // if dimensions are different\n if (thisSize != that.size())\n return false;\n\n // check each tile\n for (int i = 0; i < thisSize; i++) {\n for (int j = 0; j < thisSize; j++) {\n if (this.tileAt(i, j) != that.tileAt(i, j))\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "df416461997b9574528c2fb29dc2bb89", "score": "0.5523061", "text": "@Test\n public void equals() {\n modelManager = new ModelManager();\n ModelManager modelManagerCopy = new ModelManager();\n assertTrue(modelManager.equals(modelManagerCopy));\n\n // same object -> returns true\n assertTrue(modelManager.equals(modelManager));\n\n // null -> returns false\n assertFalse(modelManager.equals(null));\n\n // different types -> returns false\n assertFalse(modelManager.equals(5));\n }", "title": "" }, { "docid": "fd3b64c929281d9c1bf9bc1040f81104", "score": "0.551414", "text": "@Override\n\tpublic boolean equalsCore(SnackPile valueObject) {\n\t\treturn this.snack.equals(valueObject.snack) &&\n\t\t\t\tthis.quantity == valueObject.quantity &&\n\t\t\t\tthis.price == valueObject.price;\n\t}", "title": "" }, { "docid": "3c100d6ea26e1ad3379ef4732479eab6", "score": "0.55114114", "text": "public boolean equalPrimType(PrimType that) {\n return false;\n }", "title": "" }, { "docid": "e634e4aacf59f503681804fb4d21bbc9", "score": "0.5506256", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof SprDolgnType)) {\n return false;\n }\n SprDolgnType other = (SprDolgnType) object;\n if ((this.sprdolgntypeId == null && other.sprdolgntypeId != null) || (this.sprdolgntypeId != null && !this.sprdolgntypeId.equals(other.sprdolgntypeId))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2f0172f3c3ea7c52fc7239cf15795860", "score": "0.55061793", "text": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Cardapio)) {\n return false;\n }\n return id != null && id.equals(((Cardapio) o).id);\n }", "title": "" }, { "docid": "1d6cb620095a0ab6bbf8631bfd03674d", "score": "0.5502805", "text": "public abstract boolean equals(Object obj);", "title": "" } ]
7cfe46ec2f7abe2598494a454f71ca2c
Sets the scale for the geomap / sprites background.
[ { "docid": "7d696308cb21c112bc7a8a26ac011357", "score": "0.0", "text": "public BasicUiTopoLayoutConfig offsetY(Double offsetY) {\n setOrClear(OFFSET_Y, offsetY);\n return this;\n }", "title": "" } ]
[ { "docid": "3db76f2021e646b27c541422f98b260e", "score": "0.69838405", "text": "public void setScale(int scale){\n this.scale = scale;\n }", "title": "" }, { "docid": "cb79d945ec6bd062a29200f0a6382072", "score": "0.69333774", "text": "public void setScale(int scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "071aa405b50c4c303dd6df9f2dc6aa77", "score": "0.68962204", "text": "public void setScale(float scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "8135319c76c5dd33a696e484a1a12139", "score": "0.68366826", "text": "public void setScale(float scale)\n {\n scale_ = scale;\n }", "title": "" }, { "docid": "1ed0766b008c79d0a7e2993b6c949749", "score": "0.6836364", "text": "public void setScaled(float scale)\n {\n this.set(this.getX()*scale, this.getY() * scale);\n\n }", "title": "" }, { "docid": "d107ffa0976f3cc65eebb543b6e7dd2f", "score": "0.6816904", "text": "public void setScale(float scale) {\n this.scale = scale;\n }", "title": "" }, { "docid": "de8634213209fe3ab7f0be3d6d7630c5", "score": "0.67780566", "text": "public void setScale( float scale )\n {\n _scale = scale;\n }", "title": "" }, { "docid": "1458ad3270576c78e957e1de2785daae", "score": "0.6713358", "text": "public void setScale(double x, double y);", "title": "" }, { "docid": "840e5b11bc1b0285a8a2a716b1943007", "score": "0.66683877", "text": "private void setScalefactor() {\n if (((mapXmax - mapXmin) / (mapYmax - mapYmin)) <= ((double)(this.getWidth() - 2 * border) / (double)(this.getHeight() - 2 * border))) { //fit the map to the panel height (leave a border)\n scale = (this.getHeight() - 2 * border) / (mapYmax - mapYmin);\n cx = (int)(this.getWidth() - ((mapXmax - mapXmin) * scale)) / 2;\n cy = 0;\n }\n else { //fit the map to the panel width (leave a border)\n scale = (this.getWidth() - 2 * border) / (mapXmax - mapXmin);\n cx = 0;\n cy = (int)(this.getHeight() - ((mapYmax - mapYmin) * scale)) / 2;\n }\n }", "title": "" }, { "docid": "a17bc32feff9e0f40fc4230b3167f274", "score": "0.66551906", "text": "public void setScale(float scale) {\n this._scale = scale;\n updateTransformMatrix();\n }", "title": "" }, { "docid": "a43c24e192d32bd5b9ae5af6e6d63347", "score": "0.6589699", "text": "public void setPixelScaleFactor(float scale);", "title": "" }, { "docid": "ffc1d60d5388307f9829f9ed4b802db3", "score": "0.65340346", "text": "public void setScale(Scale scale) {\r\n\t\tthis.currentScale = scale;\r\n\t}", "title": "" }, { "docid": "c6b233529566908db2f496efc6c06a6a", "score": "0.65181816", "text": "public void scaleEntity() {\n TextureRegion defaultTexture = this.atlas.findRegion(\"default\");\n entity.setScale(1f, (float) defaultTexture.getRegionHeight() / defaultTexture.getRegionWidth());\n }", "title": "" }, { "docid": "4daf2be6dd2ecc263f7ee7611ce08811", "score": "0.6453245", "text": "public void scale(float sacleX, float scaleY, float px, float py);", "title": "" }, { "docid": "8138b6211239da62d8e38197412665bd", "score": "0.6450948", "text": "public void setScale(float s) {\r\n prefs.putFloat(scalePrefsKey(), (float) Math.round(s)); // if we don't round, window gets smaller each time we open a new one...\r\n this.j2dScale = s;\r\n }", "title": "" }, { "docid": "d755b36c1f72f855c657a0429b5daf81", "score": "0.64453495", "text": "public void setScaleProperty(Number scale) {\r\n\t\tthis.setNumberProperty(SCALE, scale);\r\n\t}", "title": "" }, { "docid": "c5e7fca11b5bb64b4c61ca253350f7df", "score": "0.64446145", "text": "public void setScale(double value) {\n this.scale_ = value;\n }", "title": "" }, { "docid": "95eba5a6b0d34870d7cf425f185d486b", "score": "0.6440928", "text": "void setScale(int newScale) {\n\tgx1 = gx0 + (MIN_WIDTH << newScale);\n\tscale = newScale;\n\trecenter(parent.parent.data.maxX());\n\trepaint();\n }", "title": "" }, { "docid": "52d6d06ea8a51e531b5931b1152b6709", "score": "0.6411116", "text": "void setScale(float s) {\n scale = s;\n }", "title": "" }, { "docid": "47d558669cb7cb9ee6418f2c91d9f044", "score": "0.6403503", "text": "public void setScale(float scale){\n\t\t\t\n\t\t\tLog.d(\"tag\", \"setting scale: \" + scale);\n\t\t\tthis.scale = scale;\n\t\t\t\n\t\t\tscaledLeft = (int) (left + (width - (width * scale))/2);\n\t\t\tscaledTop = (int) (top + (height - (height * scale))/2);\n\t\t\tscaledHeight = (int) (height - (height - (height * scale)));\n\t\t\tscaledWidth = (int) (width - (width - (width * scale)));\n\t\t\t\n\t\t\tthis.setBounds(scaledLeft, scaledTop, scaledLeft + scaledWidth, scaledTop + scaledHeight);\n\t\t\t\n\t\t\t//0 degrees is at due east. We want it at due north\n\t\t\tthis.setShape(new ArcShape(beginAngle - 90, sweepAngle));\n\t\t}", "title": "" }, { "docid": "d225887b50c95f4d1f40157e1fc9ab79", "score": "0.63822955", "text": "public void setScalePublic(float scale) {\n double posXTmp = posX;\n double posYTmp = posY;\n double posZTmp = posZ;\n boolean onGroundTmp = onGround;\n\n setScale(scale);\n\n // workaround for a vanilla bug; the position is apparently not set correcty\n // after changing the entity size, causing asynchronous server/client\n // positioning\n setPosition(posXTmp, posYTmp, posZTmp);\n\n // otherwise, setScale stops the dragon from landing while it is growing\n onGround = onGroundTmp;\n }", "title": "" }, { "docid": "bc62f68188f59399be1a19136c6816e9", "score": "0.6357115", "text": "public void setScaled(Vector2D scale)\n {\n this.set(this.getX()*scale.x, this.getY() * scale.y);\n\n }", "title": "" }, { "docid": "d6bcb28e4bc93fae02dd986f6303f7d1", "score": "0.63502777", "text": "@Override\n\tpublic void scaleWith(int scale) {\n\t\t\n\t}", "title": "" }, { "docid": "63b39002050190251396691541002c5d", "score": "0.63279915", "text": "public void setScale(float s) {\n this.scale = s;\n }", "title": "" }, { "docid": "54748aa651180b41d7bed3acd3ce1c82", "score": "0.62445015", "text": "private void updateScale() {\n\n float scaling = mScale * SCALE_FACTOR;\n setScale(scaling, scaling);\n\n }", "title": "" }, { "docid": "8d43e103b924a097c81c6c77dd4c1ed4", "score": "0.6217862", "text": "void setMapImage(String path) {\n backgroundImage = new ImageIcon(path);\n backgroundImageScaled = new ImageIcon(backgroundImage.getImage()\n .getScaledInstance(5000, -1, Image.SCALE_SMOOTH)).getImage();\n\n }", "title": "" }, { "docid": "e160f0e61a46de8ba1a0ba90a14ec511", "score": "0.62104213", "text": "@Override\n\tpublic void setScale(Double scale) {\n\t\t\n\t}", "title": "" }, { "docid": "d11e7d581a20e407da8eb5421c20abb0", "score": "0.6209235", "text": "public void setScale(float scalar) {}", "title": "" }, { "docid": "5f34a67bf7cd03cb641f7820076438e6", "score": "0.6157791", "text": "public void setScaling(int x, int y) {\n scaleTransition.setByY(y); \n scaleTransition.setByX(x); \n }", "title": "" }, { "docid": "495d01d0d34cbc45ec6d52cfc6fe8ef4", "score": "0.6138269", "text": "private void setScaleParameters() {\r\n\t\tmaxX = Double.MIN_VALUE;\r\n\t\tminX = Double.MAX_VALUE;\r\n\t\tmaxY = Double.MIN_VALUE;\r\n\t\tminY = Double.MAX_VALUE;\r\n\r\n\t\tfor (node_data node : game_graph.getV()) {\r\n\t\t\tmaxX = Math.max(maxX, node.getLocation().x());\r\n\t\t\tmaxY = Math.max(maxY, node.getLocation().y());\r\n\t\t\tminX = Math.min(minX, node.getLocation().x());\r\n\t\t\tminY = Math.min(minY, node.getLocation().y());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e42022418cff6a89a6ba66f52dd4fdc8", "score": "0.61302096", "text": "private void setupScaling()\r\n {\r\n // The screen resolutions\r\n float targetScreenWidth = (context.getResources().getDisplayMetrics().widthPixels);\r\n float targetScreenHeight = (context.getResources().getDisplayMetrics().heightPixels);\r\n\r\n // Orientation is assumed portrait\r\n float ssx = targetScreenWidth / controlTexture.getTargetWidth();\r\n float ssy = targetScreenHeight / controlTexture.getTargetHeight();\r\n\r\n // Get our uniform scaler\r\n if(ssx > ssy)\r\n scale = ssy;\r\n else\r\n scale = ssx;\r\n\r\n for (IControl control: controls)\r\n control.setScale(scale);\r\n }", "title": "" }, { "docid": "82597c52feeb16ae4067d66c12ef1e6c", "score": "0.6114339", "text": "public void scaleImage(int scale) {\n\t\tthis.scale=scale;\n\t\t\n\t\t//Resizes the image\n\t\tif(this.loaded!=null)\n\t\t\tthis.scaled=ImageUtil.getInstance().resize(this.loaded, 16*this.scale, 16*this.scale);\n\t}", "title": "" }, { "docid": "23fe910e168530854f50abefd5bb96f5", "score": "0.6107876", "text": "public void setScaling(double x, double y) {\n scaleTransition.setByY(y); \n scaleTransition.setByX(x); \n }", "title": "" }, { "docid": "ecc62c5832f979c078df64f551d8dc53", "score": "0.609102", "text": "public void scale (Vector3 scale) {\n\t\tscale(scale.x, scale.y, scale.z);\n\t}", "title": "" }, { "docid": "a68dafb49dc5333b2702c376a53d4591", "score": "0.6088943", "text": "void setBitmapScaleMatrix(Matrix bitmapScaleMatrix, float scaleFactor);", "title": "" }, { "docid": "01f06b4fb23d98c4996795cdd78c664d", "score": "0.6021066", "text": "public void setScale(double scaleX, double scaleY, double scaleZ)\n\t{\n\t\tscaleArray(matrixArray, scaleX, scaleY, scaleZ);\n\t}", "title": "" }, { "docid": "0cf9bcab9ddd3d4ce3a16404788a21e8", "score": "0.5990097", "text": "ScaleSettings scaleSettings();", "title": "" }, { "docid": "2c5bf80fac9865502a0635c079441ee8", "score": "0.59879416", "text": "public static int getScale(){\n if (screenScale==screenWidth){\n return mapWidth/screenScale;\n }\n return mapHeight/screenScale;\n }", "title": "" }, { "docid": "17a6da7b80d55efc762c42a873ed3cb6", "score": "0.59816676", "text": "public void scale(double x, double y) {\n\t\tgraphics.scale(x, y);\n\t}", "title": "" }, { "docid": "c708e32376ede349b9e2cdafa4336164", "score": "0.59303296", "text": "public void scale(float val) {\n x *= val;\n y *= val;\n }", "title": "" }, { "docid": "1ae887e64553a497fdeae5db63fa5b7e", "score": "0.592093", "text": "public void scale(float sx, float sy) {\n scaleX *= sx;\n scaleY *= sy;\n }", "title": "" }, { "docid": "36b7ab9f3868ce03cd1b6666faad5b20", "score": "0.58526355", "text": "void scaleCars() {\n\t\tplayer.scaleTo(0.5);\n\t}", "title": "" }, { "docid": "a1f695370ecd749db4a4dde81af9c882", "score": "0.5821272", "text": "public void scale(double factor) {\n assert(factor >= 0.1);\n assert(factor <= 10.0);\n\n this.scale = factor;\n }", "title": "" }, { "docid": "e3cf4b8eb6555607146bdabc4b2955ed", "score": "0.5800957", "text": "public void scale(double x, double y) {\r\n\t\tbaseDisplay.width *= x;\r\n\t\tbaseDisplay.height *= y;\r\n\t\that.x = baseDisplay.x + baseDisplay.width / 2 - hat.width / 2;\r\n\t}", "title": "" }, { "docid": "ff941c14df5a867ee47f82afadf70488", "score": "0.574351", "text": "public void increaseScale() {\n\n if (mScale < MAX_SCALE) {\n\n ++mScale;\n updateScale();\n\n }\n\n }", "title": "" }, { "docid": "9170ec322ef77bd40bc3f85947b7b1cd", "score": "0.5702171", "text": "void changeScale(float delta);", "title": "" }, { "docid": "fb808d64c69dfa85a27d996d5fa5820f", "score": "0.5698526", "text": "public void scale (float scaleX, float scaleY, float scaleZ) {\n\t\tthis.transform.scale(scaleX, scaleY, scaleZ);\n\t\tthis.transform.getScale(scale);\n\t}", "title": "" }, { "docid": "c08d3404a94eec1a5ad5f3519235201a", "score": "0.5695953", "text": "public void scale(Vector3f scale) {\n\t\ttransformationMatrix.setScale(transformationMatrix.getScaleX() * scale.getA(),\n\t\t\t\t\t\t\t\t\t transformationMatrix.getScaleY() * scale.getB(),\n\t\t\t\t\t\t\t\t\t transformationMatrix.getScaleZ() * scale.getC());\n\t}", "title": "" }, { "docid": "d7bb9cd312f2ee0b2cd835811157716a", "score": "0.5658944", "text": "public void increaseScale(float scale) {\r\n\t\tthis.scale += scale * 0.01f;\r\n\t}", "title": "" }, { "docid": "5bdb827addedf3939456aea41eeb1cec", "score": "0.5657017", "text": "public Matrix44 setScale(float x, float y, float z) {\n setIdentity();\n m[0] = x;\n m[5] = y;\n m[10] = z;\n return this;\n }", "title": "" }, { "docid": "394bf09570b0f7dc881ba3f1e99b9c63", "score": "0.5648374", "text": "public void scaleTo(double s) {\n scaleWith1AsOriginal = s;\n }", "title": "" }, { "docid": "aeb04bceac7257c88f5f83d4173eccda", "score": "0.5636072", "text": "public void scale(float f) {\n this.mMatrix.postScale(f, f, this.mDrawBounds.centerX(), this.mDrawBounds.centerY());\n postModify();\n }", "title": "" }, { "docid": "630fb9f102c532c3a4c28a627d27f6c2", "score": "0.5627735", "text": "public float getScale() {\n return scale;\n }", "title": "" }, { "docid": "325b513bcdc225cdc2f63eb00d42c705", "score": "0.56220764", "text": "public void setScaling(double scaling) {\n\t\tthis.scaling = scaling;\n\t}", "title": "" }, { "docid": "477c9aafec4b784d93afbc6d5b21103a", "score": "0.56077635", "text": "void setMaxZoom(int maxZoom);", "title": "" }, { "docid": "6dfe79e387be077aac6a30f5c5f52e83", "score": "0.56018406", "text": "public void scale(float f) {\n this.mItem.scale(f);\n }", "title": "" }, { "docid": "76c83fd6d79d53fbb0ccee123f5e84d9", "score": "0.5591595", "text": "public int getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "01cd8f055d4f1379965805c35b6b3cd5", "score": "0.55915564", "text": "public ClockVisibilityTransition setScale(float scale) {\n mScale = scale;\n return this;\n }", "title": "" }, { "docid": "02c00ebf26625fd9181aab92d7ebaec1", "score": "0.5587227", "text": "private void setSmallImagePostion() {\r\n\t\tLog.i(LOG_TAG, \"setSmallImagePostion\");\r\n\t\tmatrix.getValues(m_matrixValues);\r\n\t\t//get scale\r\n\t\tfloat mscale_x = m_matrixValues[Matrix.MSCALE_X];\r\n float mscale_y = m_matrixValues[Matrix.MSCALE_Y];\r\n //get bitmap size\r\n\t\tint bmX = _bitmap.getWidth();\r\n int bmY = _bitmap.getHeight();\r\n //get display size\r\n int xWidth = getWidth();\r\n int yHeight = getHeight();\r\n //get current size\r\n float curX = bmX * mscale_x;\r\n float curY = bmY * mscale_y;\r\n \r\n if ((curX < xWidth) || (curY < yHeight)) {\r\n \tfloat xPosition = (xWidth - curX) / 2;\r\n \tfloat yPosition = (yHeight - curY) / 2;\r\n \t\r\n \tm_matrixValues[Matrix.MTRANS_X] = xPosition;\r\n \tm_matrixValues[Matrix.MTRANS_Y] = yPosition;\r\n \tmatrix.setValues(m_matrixValues); \t\r\n \tsetImageMatrix(matrix);\r\n }\r\n\t}", "title": "" }, { "docid": "bb5eb5558ecea6fd14b3dfc0825cd826", "score": "0.5585117", "text": "public void scale(float s) {\n scale(s, s);\n }", "title": "" }, { "docid": "913979eb97c24083e298ee4b5d69c519", "score": "0.55697125", "text": "public float getScale() {\n return _scale;\n }", "title": "" }, { "docid": "10a5fa8b661a4c7d5bd4aec28fb4121a", "score": "0.5561094", "text": "public void setScale(double scalar)\n\t{\n\t\tsetScale(scalar, scalar, scalar);\n\t}", "title": "" }, { "docid": "242345782b4d0fa2d3688eea6b871d7c", "score": "0.5560773", "text": "@Override\n public void renderBg(SpriteBatch sb) {\n sb.setColor(ExtraColors.OJB_DIM_COLOR);\n sb.draw(ImageMaster.WHITE_SQUARE_IMG, 0, 0, Settings.WIDTH, Settings.HEIGHT);\n\n // Draw our screen texture in the center\n sb.setColor(Color.WHITE);\n sb.draw(TEX_BG,\n startX,\n (Settings.HEIGHT - (TEX_BG.getHeight() * Settings.scale)) * 0.5f,\n TEX_BG.getWidth() * Settings.scale,\n TEX_BG.getHeight() * Settings.scale\n );\n }", "title": "" }, { "docid": "8e10776e55bd1c412dc7b6af3b4abaef", "score": "0.55331105", "text": "Update withScaleSettings(ScaleSettings scaleSettings);", "title": "" }, { "docid": "f8a98bb99eadd78e770c5cd362c17e5b", "score": "0.5529188", "text": "void scale(int multiplier);", "title": "" }, { "docid": "91ec3abe18ff1829effd45561aba6fa9", "score": "0.5526048", "text": "public void setScaley(float scaley) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 220, scaley);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 164, scaley);\n\t\t}\n\t}", "title": "" }, { "docid": "cc07f1ea4e859f197baa6b9a65519601", "score": "0.55186665", "text": "public void decreaseScale() {\n\n if (mScale > MIN_SCALE) {\n\n --mScale;\n updateScale();\n\n }\n\n }", "title": "" }, { "docid": "1e675d2290fbae8cd64d58cf931f3ee0", "score": "0.55122983", "text": "public GristSet scale(float scale, boolean roundDown)\n\t{\n\t\tthis.gristTypes.forEach((type, amount) -> {\n\t\t\tif (amount != 0)\n\t\t\t{\n\t\t\t\tthis.gristTypes.put(type, roundDown ? (long) (amount * scale) : roundToNonZero(amount * scale));\n\t\t\t}\n\t\t});\n\n\t\treturn this;\n\t}", "title": "" }, { "docid": "23e7440fefd96aa264ce25398e82f606", "score": "0.54947585", "text": "void setMinZoom(int minZoom);", "title": "" }, { "docid": "093dae7a8f159c483ca6a79b33a0f912", "score": "0.54894394", "text": "public void setToScale(double sx, double sy) {\r\n\t\tm00 = sx;\r\n\t\tm10 = 0.0;\r\n\t\tm01 = 0.0;\r\n\t\tm11 = sy;\r\n\t\tm02 = 0.0;\r\n\t\tm12 = 0.0;\r\n\t\tif (sx != 1.0 || sy != 1.0) {\r\n\t\t\tstate = APPLY_SCALE;\r\n\t\t\ttype = TYPE_UNKNOWN;\r\n\t\t} else {\r\n\t\t\tstate = APPLY_IDENTITY;\r\n\t\t\ttype = TYPE_IDENTITY;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cafe03b34775de75244089639d4e30fd", "score": "0.5488582", "text": "public final void setZoomFactor ( double factor )\n {\n this.zoomFactor = factor;\n this.jGTIGraph.setScale ( factor );\n }", "title": "" }, { "docid": "34e6c6198b1e985219ee8c4c248f4668", "score": "0.5488203", "text": "private void scale(int progress){\n \tLog.d(\"MyDebug\", \"Size Scale: \" + progress);\n \tmHero.setScaleX(progress * SCALE);\n \tmHero.setScaleY(progress * SCALE);\n }", "title": "" }, { "docid": "f4bec94cfd10710dc4aa36cba849deb4", "score": "0.5487549", "text": "void scaleTo(final float scale, final long durationMs);", "title": "" }, { "docid": "50388db59ae6968c8e25d74dafe68813", "score": "0.5485061", "text": "public float getScale()\n {\n return scale;\n }", "title": "" }, { "docid": "99c286cf1c9b3782e7577e697b7d31f1", "score": "0.5484005", "text": "public float getScale()\n {\n return _scale;\n }", "title": "" }, { "docid": "225d52a673a152528f228625ec3d8a1e", "score": "0.5471886", "text": "public static void resize(float scaleFactor){\n \tSlideRenderer.resizeAll(scaleFactor);\n\n \t//VideoPlayer.video.resize(scaleFactor);\t\t//leave this here please - MW!\n\n\t}", "title": "" }, { "docid": "362cc803e987db39568406af7b38a915", "score": "0.546785", "text": "public void setScale(double argScale)\n throws VisADException, RemoteException {\n this.scale = argScale;\n // Tell the control it's changed\n changeControl(true);\n }", "title": "" }, { "docid": "05fb6ce72b8c75fbc5440f9d7be9e5e9", "score": "0.54557174", "text": "public float getScale()\n {\n return scale_;\n }", "title": "" }, { "docid": "cb3720fed4d3b72b0f630c707585aae6", "score": "0.5453315", "text": "public BasicUiTopoLayoutConfig scale(Double scale) {\n setOrClear(SCALE, scale);\n return this;\n }", "title": "" }, { "docid": "8ad4e6c25afe7176b3f95955c7ba327e", "score": "0.54510355", "text": "public void setBackgroundSize(MeasurementCSSImpl[] backgroundSize)\n {\n this.backgroundSize = backgroundSize;\n }", "title": "" }, { "docid": "e28b819961da4cfcabf349fd0761de18", "score": "0.54496026", "text": "public void scale(float[] ModelMatrix, float scale){\n Matrix.scaleM(ModelMatrix, 0, scale, scale, scale);\n }", "title": "" }, { "docid": "5369ff697d2d7771a69ff59e58005e6f", "score": "0.54404396", "text": "void setZoom(int zoom);", "title": "" }, { "docid": "5504c01a42e8e78a5cb4f649f8ebe88d", "score": "0.54377294", "text": "public final float getScale() {\n\t\treturn scale;\n\t}", "title": "" }, { "docid": "1a3fe0f9a1a099eb033005ebc1eeee83", "score": "0.5426741", "text": "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tBufferedImage image = ImageUtil.createImage(world);\n\t\t\n\t\t// Scale and display\n\t\tBufferedImage scaledImage = ImageUtil.resizeImage(image, getWidth(), getHeight());\n\t\tg.drawImage(scaledImage, 0, 0, null);\n\t}", "title": "" }, { "docid": "0859e99112b5bff52ad699d08ed75dc0", "score": "0.5423986", "text": "public Image renderScaled(){\n\t\treturn raster.getImageformScaledRaster(tilemap);\n\t}", "title": "" }, { "docid": "6e4bc6bcdb3309dbb75a4b285fad67c2", "score": "0.5423818", "text": "@Override public void scaleBy(double s) { }", "title": "" }, { "docid": "6e4bc6bcdb3309dbb75a4b285fad67c2", "score": "0.5423818", "text": "@Override public void scaleBy(double s) { }", "title": "" }, { "docid": "386ccd53d6748d7930cda7e78c145bc2", "score": "0.5416503", "text": "@Override public void scaleTo(double s) { }", "title": "" }, { "docid": "386ccd53d6748d7930cda7e78c145bc2", "score": "0.5416503", "text": "@Override public void scaleTo(double s) { }", "title": "" }, { "docid": "44600b1cbd8a814ac0a7ba9231f1d4d5", "score": "0.5413872", "text": "public void setScalex(float scalex) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 216, scalex);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 160, scalex);\n\t\t}\n\t}", "title": "" }, { "docid": "61472410559ccb5dd24c1bda24bf0902", "score": "0.5408514", "text": "public void scale(float x, float y, float z) {\n\t\ttransformationMatrix.setScale(transformationMatrix.getScaleX() * x,\n\t\t\t\t\t\t\t\t\t transformationMatrix.getScaleY() * y,\n\t\t\t\t\t\t\t\t\t transformationMatrix.getScaleZ() * z);\t\n\t}", "title": "" }, { "docid": "9bf9f02a3ba5713c196ea17383e968fa", "score": "0.53942007", "text": "public void setMinimumScaleY(float yScale) {\n/* 535 */ if (yScale < 1.0F) {\n/* 536 */ yScale = 1.0F;\n/* */ }\n/* 538 */ this.mMinScaleY = yScale;\n/* */ \n/* 540 */ limitTransAndScale(this.mMatrixTouch, this.mContentRect);\n/* */ }", "title": "" }, { "docid": "020080c3cc52508b759752849f8dedab", "score": "0.53902596", "text": "public void setBackgroundSize$(BackgroundSizes backgroundSize$)\n {\n this.backgroundSize$ = backgroundSize$;\n }", "title": "" }, { "docid": "cf6dc54502c8470cc2122f01fd53ad81", "score": "0.538842", "text": "@Override\n public Coord2d getPixelScale() {\n return new Coord2d(getPixelScaleX(), getPixelScaleY());\n }", "title": "" }, { "docid": "d7a077dac24b792828d150407963489f", "score": "0.538537", "text": "private void initBackground(){\n background = BitmapFactory.decodeResource(context.getResources(),R.drawable.game_background);\n background = Bitmap.createScaledBitmap(background, screenSize.x, screenSize.y, false);\n }", "title": "" }, { "docid": "4d3ea2da0b0ac00d0a593643d088d36c", "score": "0.53834486", "text": "public void setScale(int column, double scale)\r\n\t{\r\n\t\tsetColumnScale(column, scale);\r\n\t}", "title": "" }, { "docid": "2dc0b5d185d8a54036c61f5c1b6518c3", "score": "0.5376175", "text": "public double getScale() {\n return this.scale;\n }", "title": "" }, { "docid": "16a72d572c454838856c75e5e4695fdb", "score": "0.53747636", "text": "public void setCalScale (String calScale)\n {\n this.calScale = calScale;\n }", "title": "" }, { "docid": "b734138e32001550d50c8e3f386e718a", "score": "0.5367996", "text": "@Override\n public float getRenderSizeModifier() {\n return getScale();\n }", "title": "" }, { "docid": "41beb3add2b01a82994ea2c9a2533da7", "score": "0.53654987", "text": "protected void scaleSlime(CREEPSEntityRockMonster creepsentityrockmonster, float f)\n {\n GL11.glScalef(creepsentityrockmonster.modelsize, creepsentityrockmonster.modelsize, creepsentityrockmonster.modelsize);\n }", "title": "" }, { "docid": "15293661f425f2e852079f96d7bb20e6", "score": "0.5341667", "text": "@Override\n\tpublic void CreateBackground() {\n\t\tSprite temp = new Sprite(Game.getInstance().camera.getWidth() / 2,\n\t\t\t\tGame.getInstance().camera.getHeight() / 2,\n\t\t\t\tTexturePackerHelper.BACKGROUNDS_LS_ID, Game.getInstance().vbom);\n\t\ttemp.setScale(Game.getInstance().camera.getHeight() / temp.getHeight());\n\t\tthis.setBackground(new SpriteBackground(temp));\n\t}", "title": "" } ]
6767ad4db488633836408e6b714d6236
Ensure that SingleJsoImpl interfaces can be extended and implemented by regular Java types.
[ { "docid": "b40731a09457bd0ca1c060d30fc04c3c", "score": "0.0", "text": "interface Log2 extends Divider {\n double log2(int a);\n }", "title": "" } ]
[ { "docid": "a5e9f21506ae5f2e8128bfbec3213c06", "score": "0.6096201", "text": "public interface JSIModule {\n}", "title": "" }, { "docid": "23f6b61d24de58d716ddc3f3821163ea", "score": "0.5845474", "text": "public interface TypeNativeCapable extends TypeNativeObject\n{\n \n}", "title": "" }, { "docid": "f9750dceb56ecef113e8c8d245cd6251", "score": "0.57525235", "text": "public void testAssignToDualJavaJsoImplInterfaceArray() {\n int i = 0;\n DualSimple[] dualSimples = new DualSimple[10];\n\n DualSimple dualSimple = (DualSimple) JavaScriptObject.createObject();\n dualSimples[i] = dualSimple;\n assertEquals(\"jso\", dualSimples[i++].a());\n\n JsoDualSimple jsoDualSimple = (JsoDualSimple) JavaScriptObject.createObject();\n dualSimples[i] = jsoDualSimple;\n assertEquals(\"jso\", dualSimples[i++].a());\n\n DualSimple javaDualSimple = new JavaDualSimple();\n dualSimples[i] = javaDualSimple;\n assertEquals(\"object\", dualSimples[i++].a());\n\n Object[] objects = dualSimples;\n objects[i++] = dualSimple;\n objects[i++] = jsoDualSimple;\n objects[i++] = javaDualSimple;\n try {\n objects[i++] = new Object();\n fail(\"ArrayStoreException expected\");\n } catch (ArrayStoreException expected) {\n }\n }", "title": "" }, { "docid": "cdb51e3c9913507c609e764a88be6b18", "score": "0.5692962", "text": "default boolean isInterface() {\n return false;\n }", "title": "" }, { "docid": "f4f73746b056c9b8025222dc7537d639", "score": "0.5582256", "text": "private void checkConcrete() {\n Class<?> componentImplementation = getComponentImplementation();\n boolean isAbstract = (componentImplementation.getModifiers() & Modifier.ABSTRACT) == Modifier.ABSTRACT;\n if (componentImplementation.isInterface() || isAbstract) {\n throw new PicoRegistrationException(\"Bad Access: '\" + componentImplementation.getName() + \"' is not instantiable\");\n }\n }", "title": "" }, { "docid": "0c5a413b9a8f409164c88ec351fb6e2d", "score": "0.55314064", "text": "ImplementsInterface createImplementsInterface();", "title": "" }, { "docid": "fe9b9b25926832c278b2fb661e2b3a49", "score": "0.5475438", "text": "public interface AbstractC06790ns {\n}", "title": "" }, { "docid": "e62a380c52f352e6675c4d5dff9f4e09", "score": "0.54632974", "text": "boolean isInterface();", "title": "" }, { "docid": "86698c4fda6459af8bb426a8959409b1", "score": "0.54300255", "text": "public void testImplNoExtender() throws Exception {\n\t\tBundle implBundle = install(\"implnoreq.jar\");\n\t\tassertNotNull(implBundle);\n\t\t\n\t\ttry {\n\t\t\timplBundle.start();\n\t\t\t\n\t\t\tSleep.sleep(500); // wait 500 ms in case the extender takes a little to extend this bundle\n\t\t\n\t\t\tassertNull(\"bundle should not be extended and have registered services\", implBundle.getRegisteredServices());\n\t\t} finally {\n\t\t\timplBundle.uninstall();\n\t\t}\n\t}", "title": "" }, { "docid": "1b4aeed08563cb6cc22482cb60f3bfca", "score": "0.53992814", "text": "@Override\r\n protected boolean handleIsInterface()\r\n {\r\n return this.metaObject instanceof Interface;\r\n }", "title": "" }, { "docid": "fe0d4dc54fa6aa17a9428258b33ee0ad", "score": "0.53990316", "text": "public interface SingleFeatureAssignmentAS extends AbstractFeatureAssignmentAS {\r\n}", "title": "" }, { "docid": "8faddb4cb269f517ec7ec69c4e87716e", "score": "0.53798515", "text": "public void test_implements() {\n assertTrue(\"StereotypeImpl should implements Stereotype.\", instance instanceof Stereotype);\n }", "title": "" }, { "docid": "e5f27a880101381153c1b5ed11d5ed1c", "score": "0.5342882", "text": "boolean hasInterface();", "title": "" }, { "docid": "f57ce1023b54cd1217c8dd22731055c5", "score": "0.53166825", "text": "public void testImplNotExtended() throws Exception {\n\t\tBundle implBundle = install(\"implnotextended.jar\");\n\t\tassertNotNull(implBundle);\n\t\t\n\t\ttry {\n\t\t\timplBundle.start();\n\t\t\t\n\t\t\tSleep.sleep(500); // wait 500 ms in case the extender takes a little to extend this bundle\n\t\t\t\n\t\t\tServiceReference<?>[] refs = implBundle.getRegisteredServices();\n\t\t\tassertNotNull(refs);\n\t\t\tassertEquals((long)-1, refs[0].getProperty(\"serviceloader.mediator\"));\n\t\t\t\n\t\t\tBundleRevision rev = implBundle.adapt(BundleRevision.class);\n\t\t\tList<BundleWire> wires = rev.getWiring().getRequiredWires(\"osgi.extender\");\n\t\t\tassertTrue(\"bundle must not be extended by the mediator as it doesn't have the requirement set\", wires.isEmpty());\n\t\t} finally {\n\t\t\timplBundle.uninstall();\n\t\t}\n\t}", "title": "" }, { "docid": "d0c7aad12df0d1954e9ff8562c14e81c", "score": "0.52831846", "text": "public interface Blank extends Subject, org.eclipselabs.swedit.turtle.turtle.Object\r\n{\r\n}", "title": "" }, { "docid": "a075d53ad96a87bea3815271a9f40a4d", "score": "0.5266241", "text": "public void testImplWildcardCapability() throws Exception {\n\t\tBundle implBundle = install(\"implwccap.jar\");\n\t\tassertNotNull(implBundle);\n\t\t\n\t\ttry {\n\t\t\timplBundle.start();\n\t\t\t\n\t\t\tSleep.sleep(500); // wait 500 ms in case the extender takes a little to extend this bundle\n\t\t\n\t\t\tBundleRevision rev = implBundle.adapt(BundleRevision.class);\n\t\t\tList<BundleWire> wires = rev.getWiring().getRequiredWires(\"osgi.extender\");\n\t\t\tassertFalse(\"bundle must be wired but not extended by the mediator as its capability uses wildacrd\", wires.isEmpty());\n\t\t\t\n\t\t\tassertNull(\"bundle should not be extended and have registered services since its capability uses wildcards\", implBundle.getRegisteredServices());\n\t\t} finally {\n\t\t\timplBundle.uninstall();\n\t\t}\n\t}", "title": "" }, { "docid": "2e3b8cfa720dc1a40fb24653cf890624", "score": "0.5254572", "text": "@Test\n public void testOnlyOneClassImplementsInterface() {\n complexMathOperation.performComplexMathOperations();\n }", "title": "" }, { "docid": "31936d3022c104b7ad0dadcfa693e823", "score": "0.52507174", "text": "public void testImplNoCapability() throws Exception {\n\t\tBundle implBundle = install(\"implnocap.jar\");\n\t\tassertNotNull(implBundle);\n\t\t\n\t\ttry {\n\t\t\timplBundle.start();\n\t\t\t\n\t\t\tSleep.sleep(500); // wait 500 ms in case the extender takes a little to extend this bundle\n\t\t\n\t\t\tBundleRevision rev = implBundle.adapt(BundleRevision.class);\n\t\t\tList<BundleWire> wires = rev.getWiring().getRequiredWires(\"osgi.extender\");\n\t\t\tassertFalse(\"bundle must be wired but not extended by the mediator as it doesn't have the capability set\", wires.isEmpty());\n\t\t\t\n\t\t\tassertNull(\"bundle should not be extended and have registered services\", implBundle.getRegisteredServices());\n\t\t} finally {\n\t\t\timplBundle.uninstall();\n\t\t}\n\t}", "title": "" }, { "docid": "aabe012d7bdfea10c2896c955eccef23", "score": "0.5209204", "text": "public interface C1184j {\n}", "title": "" }, { "docid": "96d42c7cd329d2deada3aea350ceddc1", "score": "0.5187146", "text": "public static void addDefaultSuperInterface(Interface javaInterface) {\n\t\tif (javaInterface.getExtends().isEmpty() && javaInterface.getDefaultExtends().isEmpty()) {\n\t\t\tClass objectClass = javaInterface.getObjectClass();\n\t\t\tClassifierReference classifierReference = TypesFactory.eINSTANCE.createClassifierReference();\n\t\t\tclassifierReference.setTarget(objectClass);\n\t\t\tjavaInterface.getDefaultExtends().add(classifierReference);\n\t\t}\n\t}", "title": "" }, { "docid": "23eb0870b04522b4f0fa5826363fb6a0", "score": "0.5175206", "text": "public interface AbstractC23493b {\n}", "title": "" }, { "docid": "9bd48a62731a01216ba4a5a19e4c90e5", "score": "0.51712674", "text": "public interface AbstractC33811hQ extends AnonymousClass12H {\n}", "title": "" }, { "docid": "f06dacfb2870bd8b016344af1c3f185d", "score": "0.5155038", "text": "interface DualSimple {\n String a();\n }", "title": "" }, { "docid": "87aaccaeabdcb6b9f5c37f095b5e9292", "score": "0.5150108", "text": "public interface SD {\n}", "title": "" }, { "docid": "fc34c233848200405d94d98bac791589", "score": "0.5141365", "text": "JZJazzInterface createJZJazzInterface();", "title": "" }, { "docid": "a6c70eadde67bf0b0e29053483a9afed", "score": "0.5117511", "text": "@Override\n public boolean shouldDesugarInterfaceMethods() {\n return true;\n }", "title": "" }, { "docid": "ea138666c4fce3fe65642e1d97e79c06", "score": "0.51151687", "text": "@Test\n public void testInterfaceBindingErrors() throws Exception {\n dummyCreator = new DummyCreator();\n try {\n assertEquals(ArrayList.class, dummyCreator.create(List.class).getClass());\n fail(\"illegal argument exception expected (can't instantiate abstract type or interface\");\n }\n catch (final IllegalArgumentException e) {\n System.out.println(e);\n // ok\n }\n try {\n assertEquals(ArrayList.class, dummyCreator.create(AbstractList.class).getClass());\n fail(\"illegal argument exception expected (can't instantiate abstract type or interface\");\n }\n catch (final IllegalArgumentException e) {\n System.out.println(e);\n // ok\n }\n }", "title": "" }, { "docid": "400eeb3d7718c097240d06a649335dfa", "score": "0.51098025", "text": "public interface SoftwareElementVersionCheck extends Check {\r\n}", "title": "" }, { "docid": "4640d7027320efa4c7e400c64f39dd11", "score": "0.51092285", "text": "public abstract boolean isComponentInterface(Type classToCheck);", "title": "" }, { "docid": "63855b7161fcf1989ae54cbd8762e58e", "score": "0.51077795", "text": "public interface C4895as extends C3121an {\n}", "title": "" }, { "docid": "2b47e11887106f6bf95561c1501a3916", "score": "0.5095077", "text": "public interface Multiple {\n //.. we are not detailing this part\n}", "title": "" }, { "docid": "2df4bddfba597b83ed5004c18387db29", "score": "0.5087315", "text": "public interface EtudiantFactory extends EtudiantFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}", "title": "" }, { "docid": "5f57ce70360784689bdcd167b38f2906", "score": "0.50844735", "text": "public interface AdapterActivator extends AdapterActivatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "title": "" }, { "docid": "0d2299169dd5e2970e30e4586daffe0a", "score": "0.50600964", "text": "public interface TypeMappingPackage extends javax.jmi.reflect.RefPackage {\r\n /**\r\n * Returns CwmTypeMapping class proxy object.\r\n * @return CwmTypeMapping class proxy object.\r\n */\r\n public org.pentaho.pms.cwm.pentaho.meta.typemapping.CwmTypeMappingClass getCwmTypeMapping();\r\n /**\r\n * Returns CwmTypeSystem class proxy object.\r\n * @return CwmTypeSystem class proxy object.\r\n */\r\n public org.pentaho.pms.cwm.pentaho.meta.typemapping.CwmTypeSystemClass getCwmTypeSystem();\r\n /**\r\n * Returns MappingSource association proxy object.\r\n * @return MappingSource association proxy object.\r\n */\r\n public org.pentaho.pms.cwm.pentaho.meta.typemapping.MappingSource getMappingSource();\r\n /**\r\n * Returns MappingTarget association proxy object.\r\n * @return MappingTarget association proxy object.\r\n */\r\n public org.pentaho.pms.cwm.pentaho.meta.typemapping.MappingTarget getMappingTarget();\r\n}", "title": "" }, { "docid": "881d07e553e413107bdfb0765fe590dc", "score": "0.50553894", "text": "public interface BaseInterface {\n}", "title": "" }, { "docid": "2bd077969e660cac5ce75356471662f0", "score": "0.5046285", "text": "public interface AbstractC48622Na {\n boolean AB8();\n}", "title": "" }, { "docid": "aa9e7e11ea04773b006891766aa6102a", "score": "0.5032139", "text": "interface C0207j {\n}", "title": "" }, { "docid": "05b7fef430089370743122a8ec823ebe", "score": "0.5032132", "text": "public interface bvj {\n}", "title": "" }, { "docid": "d81865316d3a9e8b026a1ca56b474a8e", "score": "0.5028205", "text": "protected Class<?> createCompositeInterface(Class<?>[] interfaces)\n/* */ {\n/* 301 */ return ClassUtils.createCompositeInterface(interfaces, this.proxyClassLoader);\n/* */ }", "title": "" }, { "docid": "7357d7f8d107e385f9ad2eea656b9f48", "score": "0.5016148", "text": "public interface AbstractC0513bA {\n}", "title": "" }, { "docid": "3603fa66384b43f0760f3e1981176874", "score": "0.5009264", "text": "public interface ImplementsExtendsDirective extends EObject\n{\n}", "title": "" }, { "docid": "09196b9ec5bb226dea95cd0242f89455", "score": "0.50059205", "text": "interface AbstractVsInterface {\n\n}", "title": "" }, { "docid": "f1e207a24266e5a975f2c9d4dc313254", "score": "0.4993414", "text": "@Override\n public Object[] getGlobalImplementations() {\n Object[] res = { Simple.class };\n return res;\n }", "title": "" }, { "docid": "693f84e4c482daec12449859bf60cb9c", "score": "0.49917963", "text": "public abstract boolean isNativeSupportSoter() ;", "title": "" }, { "docid": "eec2e2c1d0a6e2578c09476528b6ec12", "score": "0.49798292", "text": "protected void augmentSimpleTypes() {\n Set<Class<?>> simpleTypes = MappingBeanHelper.getSimpleTypes();\n simpleTypes.add(com.mongodb.DBRef.class);\n simpleTypes.add(ObjectId.class);\n simpleTypes.add(CodeWScope.class);\n }", "title": "" }, { "docid": "4a649a6d177bb4d768207b2830fb8a30", "score": "0.49702993", "text": "public interface C48292a extends C7704b, C48293c {\n}", "title": "" }, { "docid": "7b257aa038e0e4f719ff68c9b0078347", "score": "0.4964004", "text": "@Test\n @SuppressWarnings(\"rawtypes\")\n public void testInterfaceBindings() throws Exception {\n assertEquals(ArrayList.class, dummyCreator.create(List.class).getClass());\n\n final ClassBindings classBindings = new ClassBindings();\n classBindings.add(List.class, new ClassBasedFactory<ArrayList>(ArrayList.class));\n classBindings.add(List.class, new ClassBasedFactory<LinkedList>(LinkedList.class));\n final DummyCreator dummyCreator = new DummyCreator(classBindings);\n assertEquals(LinkedList.class, dummyCreator.create(List.class).getClass());\n }", "title": "" }, { "docid": "b05837731a1a9c3b994a7257bcb577b2", "score": "0.49516946", "text": "public interface AbstractC20890xc {\n}", "title": "" }, { "docid": "b2f815770a5a1da0ea444e48688aa564", "score": "0.49431628", "text": "public interface AbstractC5932OooO0Oo {\n void onSupportActionModeFinished(AbstractC5951OooOo00 oooOo00);\n\n void onSupportActionModeStarted(AbstractC5951OooOo00 oooOo00);\n\n @Nullable\n AbstractC5951OooOo00 onWindowStartingSupportActionMode(AbstractC5951OooOo00.OooO00o oooO00o);\n}", "title": "" }, { "docid": "921a6c08daad79139f828d3a5a81dcd4", "score": "0.4942323", "text": "public boolean isInterface() {\n return false;\n }", "title": "" }, { "docid": "6ff7aa2c08cf4486f02ac812c2aa677e", "score": "0.49419865", "text": "public interface Interface {\n}", "title": "" }, { "docid": "271748a12b25824c00fde81104072dd3", "score": "0.49331546", "text": "public interface PushSupplier extends PushSupplierOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "title": "" }, { "docid": "daf419dc680728c0a4a705d4ffec0e51", "score": "0.4926702", "text": "public interface Interceptor extends InterceptorOperations, test.org.omg.CORBA.Object, test.org.omg.CORBA.portable.IDLEntity\n{\n}", "title": "" }, { "docid": "bc6a730f68810567bc8b63127e3b1512", "score": "0.49232128", "text": "public interface JaclScriptInterface {\n\n}", "title": "" }, { "docid": "045e0855b8acfc3f23ee8b9b7e69eb88", "score": "0.4920344", "text": "public interface AbstractC19070uN {\n void ADq();\n\n void AGA();\n}", "title": "" }, { "docid": "0bc54a5a58c376ade21098a7bb096e9d", "score": "0.49192575", "text": "public void testBase_Accuracy() {\n assertTrue(\"Should extend DefaultXMIHandler\",\n new ZUMLMethodHandler() instanceof DefaultXMIHandler);\n }", "title": "" }, { "docid": "5b7b4f0152f28ac62f2f8f1a842cbae9", "score": "0.4917683", "text": "public interface StartControlPortInstance extends ControlPortInstance, StartPortInstance {\n}", "title": "" }, { "docid": "3ab8a955e467db689f7afb1e569cc639", "score": "0.4914813", "text": "public interface C1464zk {\n}", "title": "" }, { "docid": "8a942a9f56c87880cf4495ad551d452f", "score": "0.4903426", "text": "public interface SpiInterface {\n}", "title": "" }, { "docid": "be9f8f6a6b2a1dcae9d791bac1e0fa8a", "score": "0.4901589", "text": "public boolean isNativeCompatibleJavaObjectKind() {\n switch (this) {\n case CXX_JAVA_OBJECT:\n return true;\n default:\n return false;\n }\n }", "title": "" }, { "docid": "85a226ed0ab1c77ed2c8cb81fce3dbaa", "score": "0.48988903", "text": "public interface SelfInterfaceMarker {\r\n}", "title": "" }, { "docid": "429488905cb94fc60f67e3a39282c767", "score": "0.48963356", "text": "private void ensureImplementationIsNotSet() {\n if (factory != null) {\n add(new ErrorMessage(source, \"Implementation set more than once.\"));\n }\n }", "title": "" }, { "docid": "65a3426aee3e49851814718c90746272", "score": "0.48956", "text": "public void testExplicitRegistration() throws Exception {\n\t\tBundle implBundle = install(\"implexplicitregister.jar\");\n\t\tassertNotNull(implBundle);\n\t\t\n\t\tBundle mediatorBundle = null;\n\t\t\n\t\ttry {\n\t\t\timplBundle.start();\n\t\t\t\n\t\t\tSleep.sleep(500); // wait 500 ms in case the extender takes a little to extend this bundle\n\t\t\t\n\t\t\t// find the Mediator bundle\n\t\t\tBundleRevision rev = implBundle.adapt(BundleRevision.class);\n\t\t\tList<BundleWire> wires = rev.getWiring().getRequiredWires(\"osgi.extender\");\n\t\t\tassertNotNull(wires);\n\t\t\tBundleWire wire = wires.get(0);\n\t\t\tassertNotNull(wire);\n\t\t\tmediatorBundle = wire.getProvider().getBundle();\n\t\t\tassertNotNull(mediatorBundle);\n\t\t\t\n\t\t\tServiceReference<?>[] refs = implBundle.getRegisteredServices();\n\t\t\tassertNotNull(refs);\n\t\t\tassertEquals(\"only one implementation should have been registered\", 1, refs.length);\n\t\t\tassertEquals(\"expecting serviceloader.mediator property to contain id of mediator bundle\", mediatorBundle.getBundleId(), refs[0].getProperty(\"serviceloader.mediator\"));\n\t\t\tassertEquals(\"public property must be registered with the service\", \"TCK\", refs[0].getProperty(\"provider\"));\n\t\t\tassertNull(\"private properties must not be registered with the service\", refs[0].getProperty(\".hint\"));\n\n\t\t\timplBundle.stop();\n\t\t\trefs = implBundle.getRegisteredServices();\n\t\t\tassertNull(\"provider services should have been unregistered\", refs);\n\t\t\t\n\t\t} finally {\n\t\t\timplBundle.stop();\n\t\t\timplBundle.uninstall();\n\t\t}\n\t}", "title": "" }, { "docid": "2f27d0b4f37d6f62834236b0ac87c97d", "score": "0.48874265", "text": "public interface C5971a {\n }", "title": "" }, { "docid": "09baeedb2a14ac1f7f477d05ce8209fa", "score": "0.4882283", "text": "public interface SimpleInterface {\n void f();\n}", "title": "" }, { "docid": "54a21390cec3d34c869f8e7fbcac8e35", "score": "0.48799786", "text": "public interface SelfInterfaceMarker {\n}", "title": "" }, { "docid": "2863bdf54d9635f802538a05f023b52d", "score": "0.48745298", "text": "public interface SingerWriter extends Singer,SongWriter {\n\n void strum();\n\n}", "title": "" }, { "docid": "85ec1973e89379eec90614c8027064d5", "score": "0.48738408", "text": "public interface Study {\n public void ioStudy();\n}", "title": "" }, { "docid": "144b0dfe9712588442fd763079a5b72b", "score": "0.48720124", "text": "public interface C33285a {\n }", "title": "" }, { "docid": "bbbb1aa01a09decaaa62bd33ddedc3c7", "score": "0.4869529", "text": "public void addJavascriptInterface(Object object, String name) {\n/* 1216 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "5b2a249dfb81947e9055e7abb05cd8ee", "score": "0.48575702", "text": "public interface ServerManager extends ServerManagerOperations, com.sun.corba.se.PortableActivationIDL.Activator, com.sun.corba.se.PortableActivationIDL.Locator\n{\n}", "title": "" }, { "docid": "9e2fcdfc44c19def027cbd711e589ff9", "score": "0.48482794", "text": "@Override\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9e2fcdfc44c19def027cbd711e589ff9", "score": "0.48482794", "text": "@Override\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9e2fcdfc44c19def027cbd711e589ff9", "score": "0.48482794", "text": "@Override\n\tpublic boolean supports(Class<?> arg0) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "38af43b26b637623f80f0999d0870433", "score": "0.48476717", "text": "public interface Adaptability extends Portability {\n}", "title": "" }, { "docid": "c91a421b4088ba9b007f7b11ce137452", "score": "0.4846747", "text": "@Override\r\n\t\tpublic boolean supports(Class<?> arg0) {\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "599ff127faa07caf05731b5577e379a5", "score": "0.48456743", "text": "private void m12388a(Class<?> cls) {\n C3656r.m12445a(!this.f10189a.contains(cls), \"Components are not allowed to depend on interfaces they themselves provide.\");\n }", "title": "" }, { "docid": "7544f6e290135ee06b00dda0a8465972", "score": "0.48438808", "text": "public boolean isWrapperFor(Class iface) throws SQLException {\n\treturn false;\n}", "title": "" }, { "docid": "f94353d9769ce914be4b1e06efb27f4f", "score": "0.4843574", "text": "public interface AbstractC0655Pv {\n void A4z(AbstractC0658Py py);\n}", "title": "" }, { "docid": "ac72608b22f691d9eb656a3e7943f432", "score": "0.48429215", "text": "public interface DSMS extends DSMSOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "title": "" }, { "docid": "7fd37d5aa9c1f285c0371a676ce81ce1", "score": "0.48395118", "text": "public interface DynamicExtensionExceptionInterface\r\n{\r\n\r\n}", "title": "" }, { "docid": "c02ba8ca4f213e5be3af88ee6e5f13c8", "score": "0.48376766", "text": "public T caseInterfaces(Interfaces object)\n {\n return null;\n }", "title": "" }, { "docid": "992359eedc5a1e5f7755336aa3c1d5b6", "score": "0.48326463", "text": "default ResolvedInterfaceDeclaration asInterface() {\n throw new UnsupportedOperationException(String.format(\"%s is not an interface\", this));\n }", "title": "" }, { "docid": "557c83c42626c3463d827cfd01651abe", "score": "0.4827818", "text": "@Override\r\n\tpublic void testInterface() {\n\t\t\r\n\t}", "title": "" }, { "docid": "06e5052ddc6469314c72622d6b6d2635", "score": "0.48232135", "text": "public interface ClassAxiom extends Axiom {\n}", "title": "" }, { "docid": "8eea0caca1f8e198215da5fd8241f034", "score": "0.48228458", "text": "public interface Permission extends EObject {\n}", "title": "" }, { "docid": "41253dcb0d85c07b0ad842ec2c76e5aa", "score": "0.48206624", "text": "@Override\n \tprotected void checkSubclass() {\n \t}", "title": "" }, { "docid": "43d744955895bf0d8d8777f96aa80cc5", "score": "0.48205099", "text": "public interface SyncManager extends Any {\n @JSBody(script = \"return SyncManager.prototype\")\n static SyncManager prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new SyncManager()\")\n static SyncManager create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n Promise<Array<JsString>> getTags();\n\n VoidPromise register(String tag);\n\n}", "title": "" }, { "docid": "1307b5ef3877e4d92bac42de65dbe13e", "score": "0.48203924", "text": "public interface Jambon extends MJambon\r\n{\r\n\t// You can write additional methods using an empty default java 8 notation \r\n\t// because the generated implemented class extends this interface and is not abstract\r\n\t//\r\n\t// For instance : \r\n\t// default public void addSomething(Something foo) {} ;\r\n\r\n}", "title": "" }, { "docid": "c6060562e976e5c507f2c5af3c9aca2f", "score": "0.48072332", "text": "public interface co extends ct, ICircle {\n}", "title": "" }, { "docid": "0bce580d3b598e837e2b5bbad99cc53d", "score": "0.48055837", "text": "protected abstract void replacesClasseJava() throws GeradorException;", "title": "" }, { "docid": "095e162317bfffba807a1debcad860b7", "score": "0.48047113", "text": "@Override\r\n\tpublic boolean supports(Class miClass) {\n\t\treturn Ie.class.isAssignableFrom(miClass);\r\n\t}", "title": "" }, { "docid": "0e26d62d59f9342503e4ad29c6f97d3f", "score": "0.4801365", "text": "public interface JPVolumeTypeDetector {\n\n /**\n * Detects the type of the given volume.\n *\n * @param object the mycore object\n * @return types of the volume or an empty list if its not specified, unknown or cannot be detected\n */\n default List<String> detect(MCRObject object) {\n return detect(new JPVolume(object));\n }\n\n /**\n * Detects the type of the given volume.\n *\n * @param id mycore object id of the volume\n * @return types of the volume or an empty list if its not specified, unknown or cannot be detected\n */\n default List<String> detect(MCRObjectID id) {\n return detect(new JPVolume(id));\n }\n\n /**\n * Detects the type of the given volume.\n * \n * @param volume the volume to check\n * @return types of the volume or an empty list if its not specified, unknown or cannot be detected\n */\n List<String> detect(JPVolume volume);\n\n}", "title": "" }, { "docid": "3ff0c04fadd7be5312215e5c03ce15be", "score": "0.47957155", "text": "public interface ITitleObject extends ISendable {\n}", "title": "" }, { "docid": "f0945c27368196785501678fa5b433ae", "score": "0.47917208", "text": "@Override\n\tpublic boolean isWrapperFor(Class<?> iface) throws SQLException {\n\t\tthrow new java.lang.UnsupportedOperationException();\n\t}", "title": "" }, { "docid": "451f96835dd8f1dcb8b6c2dc476938b0", "score": "0.47905082", "text": "@Override\r\n public boolean isWrapperFor(Class<?> iface) throws SQLException {\n return false;\r\n }", "title": "" }, { "docid": "41a9ce2de7ddd1ae65fa4c2234fe473f", "score": "0.47870457", "text": "public interface PhrasingElement extends PhrasingContent, PhrasingContext, PhrasingModel {\r\n\r\n}", "title": "" }, { "docid": "d1c337f707abffdfab9b186b814a502e", "score": "0.47862324", "text": "private void setNoPolyInheritance() {\n\n\t\tString startOfClass = this.getStartOfClass();\n\n\t\tnoPolyInheritance = true;\n\t\t\n\t\tif (startOfClass.contains(\"extends\") || startOfClass.contains(\"implements\")) {\n\t\t\tnoPolyInheritance = false;\n\t\t\t\n\t\t//polymorphism not accounted for need to add check TODO\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "8ee24e152b76cc23034e6d863dc14ca6", "score": "0.4783183", "text": "public interface InterfaceTest extends Inter1,Inter2{\n\n default void test() {\n System.out.println();\n }\n}", "title": "" }, { "docid": "549684bd66fe48af55fff25942f42aa1", "score": "0.47823885", "text": "public interface RemoteElement extends Element, Remote440{\n\n}", "title": "" }, { "docid": "50e3a463083bab1274f9ccdb60d75de2", "score": "0.47820035", "text": "public MainInterface() {\r\n \t\tthrow new UnsupportedOperationException();\r\n \t}", "title": "" } ]
b76528955324f4692f2e3049e27823e9
If a value is present in this Optional, returns the value, otherwise throws NoSuchElementException.
[ { "docid": "26669e8d512cc4cd58abdb641d0246c4", "score": "0.72854686", "text": "public T get() {\n if (value == null)\n throw new NoSuchElementException(\"Cannot get an Optional without a value\");\n else\n return value;\n }", "title": "" } ]
[ { "docid": "8fe2aad0f852df93a85f0354312d04c0", "score": "0.6427923", "text": "public Value get(String key) {\n if (!map.containsKey(key)) {\n throw new NoSuchElementException();\n }\n return map.get(key);\n }", "title": "" }, { "docid": "2a96b0a8f77dce02d9bc713cf26d5fe8", "score": "0.6248205", "text": "Optional<T> getValue();", "title": "" }, { "docid": "0409e75af57967673009ecf96f8f405c", "score": "0.608693", "text": "public Optional<Object> getValue();", "title": "" }, { "docid": "f63d0abdc68f1006a3bf4119201152ae", "score": "0.6032416", "text": "E peek() throws NoSuchElementE;", "title": "" }, { "docid": "56e8f7a699bd07a4cc7437e46b324fd9", "score": "0.59494615", "text": "public Object get() {\n if (tail == null) {\n throw new NoSuchElementException();\n }\n\n \n }", "title": "" }, { "docid": "c56b83cfd53bb539cf1a50bf69097316", "score": "0.58829075", "text": "public KVPair<K, V> next() {\n if (!hasNext()) {\n \tthrow new NoSuchElementException();\n } else {\n \treturn iterator.next();\n }\n }", "title": "" }, { "docid": "7d8c41dc64d6d55de87c1924465f4d3e", "score": "0.5866229", "text": "@Override\n public Integer next() {\n Integer element = null;\n while (cursor < array.length) {\n if (SimpleN.checkSimple(array[cursor])) {\n element = array[cursor];\n break;\n }\n cursor++;\n }\n if (cursor >= array.length) {\n throw new NoSuchSimpleElementException();\n }\n cursor++;\n return element;\n }", "title": "" }, { "docid": "17b906a7ab2acdf50fae91578989f67b", "score": "0.57773143", "text": "@Override\n public Integer next() {\n Integer out = curVal;\n if (out == null) throw new NoSuchElementException();\n if (iterator.hasNext()) curVal = iterator.next();\n else curVal = null;\n return out;\n }", "title": "" }, { "docid": "51ab0afbc1dec41e850de6b3da24538e", "score": "0.5750585", "text": "@Override\n public T next() {\n if (curNode == null) {\n throw new NoSuchElementException();\n }\n T value = curNode.value;\n curNode = curNode.next;\n return value;\n }", "title": "" }, { "docid": "d826fe474a2d5b804fcfcae5d56b0133", "score": "0.57390237", "text": "public E getFirst() throws NoSuchElementException {\r\n\t\tif (this.isEmpty()) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t}\r\n\t\t\r\n\t\treturn this.get(0);\r\n\t}", "title": "" }, { "docid": "4ba0e397d1597a9bdbb5266e0a206564", "score": "0.57316506", "text": "public T peek() throws NoSuchElementException;", "title": "" }, { "docid": "6d6541a3ce05c2003548933fae1b5608", "score": "0.569459", "text": "@Override\n public T next()\n {\n throw new NoSuchElementException();\n }", "title": "" }, { "docid": "64fbc7b7140c63d7eb067bb75ed85bf8", "score": "0.5683499", "text": "public static Value findBySymbol(char symbol) throws NoSuchElementException {\n Value result = null;\n\n for (Value value : values()) {\n if (value.symbol == symbol) {\n result = value;\n }\n }\n\n if (result == null) {\n throw new NoSuchElementException(\"Aucune valeur trouvée avec ce symbole.\");\n }\n\n return result;\n }", "title": "" }, { "docid": "7eda6b6f423b190d862b5d46334bb621", "score": "0.566702", "text": "public V peek() {\n // TODO 5: Do peek. This is an easy one. \n // test20Peek() will not find errors if this is correct.\n \tif(this.size() == 0) throw new NoSuchElementException();\n \treturn b[0].value; \n }", "title": "" }, { "docid": "e3b225a7f56be38b9ec6b54d23222d42", "score": "0.56579673", "text": "public T next() {\r\n\t\t\t\tif(this.hasNext() == true) {\r\n\t\t\t\t\tprev = current;\r\n\t\t\t\t\tcurrent = next;\r\n\t\t\t\t\tnext = current.next;\r\n\t\t\t\t\treturn current.value;\r\n\t\t\t\t}\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t}", "title": "" }, { "docid": "af69960c3cf19ab4385bed805fa3b2b9", "score": "0.5608925", "text": "public E next() throws NoSuchElementException {\n if ( ! list.hasNext(cursor) )\n throw new NoSuchElementException(\"No next element\");\n E toReturn = cursor.getEntry();\n cursor = (cursor == list.getLast()) ? null : list.getNext(cursor);\n return toReturn;\n }", "title": "" }, { "docid": "f77143d50a6b00d2dc2f140bdb193ba6", "score": "0.5547849", "text": "E getFirst() throws NoSuchElementE;", "title": "" }, { "docid": "f77143d50a6b00d2dc2f140bdb193ba6", "score": "0.5547849", "text": "E getFirst() throws NoSuchElementE;", "title": "" }, { "docid": "5589454a8136ba27022127ac26e5489a", "score": "0.5538416", "text": "E poll() throws NoSuchElementE;", "title": "" }, { "docid": "abcf62e99324ad62e3ea4a4a82634238", "score": "0.5526345", "text": "public E getFirst() throws NoSuchElementException {\n\t\tif (head == null) {\n\t\t\tthrow new NoSuchElementException(\"Cannot get from an empty list\");\n\t\t} else {\n\t\t\treturn head.getElement();\n\t\t}\n\t}", "title": "" }, { "docid": "412c5336f79fe77b348feae64cca69d4", "score": "0.55208856", "text": "public int getValue() throws NoSuchElementException {\n if (curr == tail) {\n throw new NoSuchElementException(\n \"getValue() in LList has current of \" + curr + \" and size of \"\n + listSize + \" that is not a valid element\");\n }\n return curr.element();\n }", "title": "" }, { "docid": "a66131c471404a97d6292356e32e9c7a", "score": "0.54937494", "text": "int search(E element) throws NoSuchElementException;", "title": "" }, { "docid": "2ce2cd385b2bfeb861e9df161892c8ce", "score": "0.54922956", "text": "Optional<T> get(String key);", "title": "" }, { "docid": "454dee0b786d66f9a7577b155b7f47ce", "score": "0.5477537", "text": "public E peek() {\n\t\t// modify this method if needed\n\t\tif (queue.isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\treturn queue.get(0);\n\t}", "title": "" }, { "docid": "23bf2276621f3fd586fa7a3db0bfc856", "score": "0.544773", "text": "Optional<T> search(final T element);", "title": "" }, { "docid": "632b56584bc429aefe4c229b83efaadd", "score": "0.5440803", "text": "@Test\n\tpublic void givenOptionalWithNull_whenGetThrowsException_thenCorrect() {\n\t Optional<String> opt = Optional.ofNullable(null);\n\t assertThrows(NoSuchElementException.class, () -> {\n\t \tString name = opt.get();\n\t });\n\t}", "title": "" }, { "docid": "987c349cb33fb9372fd2c3016e84b55c", "score": "0.54056346", "text": "public Object nextElement() {\n if (index < array.length) {\n return array[index++];\n }\n throw new NoSuchElementException();\n }", "title": "" }, { "docid": "446de151c591fe4e5147f7d7492f4c32", "score": "0.5389113", "text": "@Override\n public Object next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n this.index = getIndex();\n return this.values[this.index++];\n }", "title": "" }, { "docid": "dd69fa2a10313cafcbe17d2706b01d40", "score": "0.5360382", "text": "@Override\n\tpublic T getFirst() throws NoSuchElementException {\n\t\tif (size == 0) {\n\t\t\tthrow new NoSuchElementException(\"Empty List\");\n\t\t} else {\n\t\t\treturn head.element;\n\t\t}\n\t}", "title": "" }, { "docid": "e6acf392c26d1ccb97fa852dd3026d8f", "score": "0.53588074", "text": "@Override\r\n\tpublic Object first() {\r\n\r\n\t\t/*\r\n\t\t * If empty, throw exception. Otherwise, return the first element.\r\n\t\t */\r\n\r\n\t\tif (head == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else\r\n\t\t\treturn head.data;\r\n\t}", "title": "" }, { "docid": "fef346c7677a02e532a8b35737099bc7", "score": "0.53218", "text": "@Override\n public E next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return theData[current++];\n }", "title": "" }, { "docid": "d551bf390a82fccef9a8494817fb2079", "score": "0.53138745", "text": "Optional<String> get(String key);", "title": "" }, { "docid": "d551bf390a82fccef9a8494817fb2079", "score": "0.53138745", "text": "Optional<String> get(String key);", "title": "" }, { "docid": "8727e30fd0e555708579c88b583f755c", "score": "0.53034806", "text": "public abstract Optional<String> get(String key);", "title": "" }, { "docid": "09743e2ac435c65772930b608c74d750", "score": "0.5290125", "text": "public E getFirst() {\n final Node<E> f = first;\n if (f == null)\n throw new NoSuchElementException();\n return f.item;\n }", "title": "" }, { "docid": "0d274beb5191a55f8368e831a48118ba", "score": "0.52843994", "text": "Optional<V> get(K key);", "title": "" }, { "docid": "0e107ca2db68e8bf12ae90a21515ceb5", "score": "0.5280038", "text": "@Override\n public int nextInt() {\n if (hasNext()) {\n return getUnchecked(nextIndex++);\n } else {\n throw new NoSuchElementException();\n }\n }", "title": "" }, { "docid": "5bfe64fcd3731463d65eeda48f0c4c2c", "score": "0.5248177", "text": "Entry<TKey, TValue> getMinimum()\n throws NoSuchElementException;", "title": "" }, { "docid": "c5ee3085c93d70997fc8eb9f200cd1d3", "score": "0.52412647", "text": "public T peek() throws NoSuchElementException{\n if(size()==0)\n {\n throw new NoSuchElementException();\n }\n return container.get(1);\n\n }", "title": "" }, { "docid": "e17efec6f9b8ac32ad565f6a5a756256", "score": "0.5238546", "text": "default boolean isPresent() {\n try {\n this.value();\n } catch (NoResultException e) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3caeb6f8af8fbbf46d98a6be65e25456", "score": "0.5238364", "text": "@Override\n\t\t@Programmierer(autoren=\"Alexander Tornoreanu\")\n\t\tpublic CollectionItem next() {\n\t\t\tCollectionItem value = this.current.value;\n\t\t\t\n\t\t\tif ( this.current == null ) { \n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t\tthis.lastValue = this.current;\n\t\t\tthis.current = this.current.next;\n\t\t\t\n\t\t\treturn value;\n\t\t}", "title": "" }, { "docid": "e3a693d9abcb7e1cad15a8886a24363d", "score": "0.5203903", "text": "public Item next() {\n if (current == null) {\n throw new java.util.NoSuchElementException();\n }\n \n Item item = current.item;\n current = current.next;\n return item;\n }", "title": "" }, { "docid": "769a7900227f839a521b56b5d87ecec7", "score": "0.5189172", "text": "interface Value<T> extends Option {\n Optional<T> value();\n\n default boolean isPresent() {\n return value().isPresent();\n }\n\n default T get() {\n return value().orElseThrow();\n }\n }", "title": "" }, { "docid": "9a74e24766367855dc5853a44e4049a3", "score": "0.51798177", "text": "@Override\n public boolean isPresent() {\n return this.value != null;\n }", "title": "" }, { "docid": "89acec9583ea87ce4484bb17fff8fdc2", "score": "0.51705396", "text": "@Override\n\tpublic T next() throws NoSuchElementException{\n\t\ttry{\n\t\t\tnode = node.next;\n\t\t\treturn node.data;\n\t\t}catch( Exception e ){ throw new NoSuchElementException(); }\n\t}", "title": "" }, { "docid": "e488536d33002ee1e14851c8fc9494cb", "score": "0.51604074", "text": "public Optional<T> peekHead(){\n return (head == null) ? Optional.empty() : Optional.of(head.getVal());\n }", "title": "" }, { "docid": "d62ed07c603f31f58078be68dd34e29e", "score": "0.51586896", "text": "public T next() {\n if (!hasNext())\n throw new java.util.NoSuchElementException();\n T element = listptr.getElement();\n listptr = listptr.getNext();\n return element;\n }", "title": "" }, { "docid": "ef9c8c9896cfe59df16859a45ea59709", "score": "0.5153639", "text": "public int findFirst(T value) {\n\n for (int i=0; i < getSize(); i++) {\n if (get(i) != null && get(i).equals(value)) {\n return i;\n }\n }\n\n throw new ValueNotFoundException();\n }", "title": "" }, { "docid": "9d89a3d3a5108eacc8483563d24a744c", "score": "0.5152848", "text": "@Override\n public Pair<K, V> next() {\n\n if(!hasNext()) {\n currentIterator = null;\n throw new NoSuchElementException();\n }\n\n if(currentIterator.hasNext()) {\n return currentIterator.next();\n } else {\n bucketIndex++;\n nextBucket();\n\n if(currentIterator != null) {\n return currentIterator.next();\n }\n }\n\n throw new NoSuchElementException();\n }", "title": "" }, { "docid": "5597a817d411b4a43264cae7825dec63", "score": "0.5143542", "text": "@Override\n public Entry<K, V> next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n\n Entry<K, V> entry = next;\n next = null;\n return entry;\n }", "title": "" }, { "docid": "3ba42af04ac7df6cd7a3b0a04a09c312", "score": "0.51243377", "text": "private Optional<T> getNext() {\n if (!producerThreadHasBeenStarted.getAndSet(true) && !producerHasBeenShutdown.get()) {\n startProducerThread();\n }\n if (next == null) {\n try {\n next = boundedQueue.take();\n } catch (InterruptedException e) {\n // If the consumer is interrupted, cancel the producer thread\n cancelProducerThread();\n // Re-set the interrupt status of the current thread\n Thread.currentThread().interrupt();\n // Re-throw as RuntimeException, since the iterator sequence\n // will end earlier than expected, and the receiver should not \n // assume the returned sequence is the full sequence\n throw new RuntimeException(e);\n }\n }\n // If producer threw an exception, re-throw it in the consumer\n if (producerException.get() != null) {\n throw new RuntimeException(\"Producer threw an exception\", producerException.get());\n }\n return next;\n }", "title": "" }, { "docid": "c09e15ca8e9f69c5074f152e0b1caa44", "score": "0.5104884", "text": "Entry<TKey, TValue> extractMinimum()\n throws NoSuchElementException;", "title": "" }, { "docid": "920e2c26a9869762fcbe8f761ec3f595", "score": "0.51020277", "text": "public T next() {\n if (current == null) {\n throw new NoSuchElementException();\n }\n T data = current.data;\n current = current.next;\n return data;\n }", "title": "" }, { "docid": "a19f21959a8bd7953627cfd5e5bc841e", "score": "0.50982064", "text": "public int getFirst() {\n\n if (isEmpty()) {\n throw new NoSuchElementException(\"There is no elements in the list\");\n }\n return head.value;\n }", "title": "" }, { "docid": "3115010839c3da0b46a413a4e9d5adf5", "score": "0.50975364", "text": "@Test\r\n @DisplayName (\"Using isPresent Method. [Value]\")\r\n public void isPresentValueTest () {\r\n\r\n // Create a optional object.\r\n Optional<String> opt = Optional.of (randomAlphanumeric (10));\r\n\r\n // Check the test.\r\n opt.ifPresent ( name -> Assertions.assertFalse (name.isEmpty (), \"Optional value is not present.\"));\r\n }", "title": "" }, { "docid": "92e90ac43f38495b8b0564d717c0a45d", "score": "0.5093044", "text": "public Optional<String> getValue(final String key) {\n synchronized (State.INSTANCE) {\n return State.INSTANCE.getValue(this.classIdentifier, key);\n }\n }", "title": "" }, { "docid": "89d19d31f0c71aa2234d02412e7398d2", "score": "0.5056716", "text": "public final Object next() throws NoSuchElementException {\n/* 177 */ return nextHeader();\n/* */ }", "title": "" }, { "docid": "24fbe9ffaeabc6436746b00061aaf294", "score": "0.5054691", "text": "@Override\n public Position<E> next() throws NoSuchElementException {\n \tif (!hasNext()) {\n \t\tthrow new NoSuchElementException();\n \t}\n \tif (current.getElement() == null) { \n \t\tthrow new NoSuchElementException();\n \t}\n \t\trecent = current;\n current = after(current);\n return recent;\n }", "title": "" }, { "docid": "5e84cf28cc6d1b763878d64d8aef700b", "score": "0.5048945", "text": "public T peek(){\n\tif (size()==0){\n\t throw new NoSuchElementException();\n\t}\n\treturn list.get(0);\n }", "title": "" }, { "docid": "4eaefd791030516e40ff535aa3f10033", "score": "0.5047648", "text": "@Override\r\n\tpublic SolveFringeElement take() {\r\n\t\ttry {\r\n\t\t\treturn pop();\r\n\t\t} catch(EmptyStackException ese) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "29e24285a0eb0a7a9c38c4095e3bc5d2", "score": "0.50424445", "text": "@Override\n\tpublic T next() {\n\t\t//TODO: replace the default return statment\n\t\tif(curr == null){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tcurr = curr.getNext();\n\t\treturn curr.getData();\n\t}", "title": "" }, { "docid": "81058fca0f71b5f105236f0c78d66c5b", "score": "0.50394547", "text": "@Override\n public Item next() {\n if (!hasNext()) {\n throw new NoSuchElementException(\"No more items to return!\");\n }\n Item currentItem = current.item;\n current = current.next;\n return currentItem;\n }", "title": "" }, { "docid": "257f3a5ef1e091daa284fea43f202cf1", "score": "0.50297105", "text": "public T peek() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Empty stack\");\n }\n return value;\n }", "title": "" }, { "docid": "d089a8fbf2e90afb44b1a9be95640578", "score": "0.50243294", "text": "@Override\n\tpublic String element() {\n\t\tLOG.info(\"Calling element method\");\n\t\tString element = peek();\n\t\tif(element == null)\n\t\t\tthrow new NoSuchElementException(\"there's no element any more\");\n\t\t\n\t\treturn element;\n\t}", "title": "" }, { "docid": "f1e09a5b9535fb9d4f34c2f3a3bf333d", "score": "0.50025", "text": "public boolean isPresent() {\n return value != null;\n }", "title": "" }, { "docid": "d0717ce46a388a58f41fb0861747bd93", "score": "0.49946928", "text": "public E element() {\n if (size == 0) {\n throw new NoSuchElementException();\n } else {\n return data[front];\n }\n }", "title": "" }, { "docid": "5fc7d6aac64e46cfb65b2d82e6af6d6c", "score": "0.49920198", "text": "public T peek()\n throws CollectionEmptyException {\n if (values.isEmpty()) {\n throw new CollectionEmptyException();\n }\n return values.get(0);\n }", "title": "" }, { "docid": "8f4310dc22aab2e8b36c1245918ff631", "score": "0.4980262", "text": "public Object getFirst()\n {\n if (first == null)\n throw new NoSuchElementException();\n return first.data;\n }", "title": "" }, { "docid": "3c55738a1e6ecc4f60ca2536cb6132af", "score": "0.49700338", "text": "@Override\n public T getCurrent() throws NoSuchElementException {\n return readerDelegate.getCurrent();\n }", "title": "" }, { "docid": "8672325a1c3d2adb80eea6543044cb27", "score": "0.49596465", "text": "@Override\r\n\t\t\tpublic E next() {\n\t\t\t\t\r\n\t\t\t\tif (pos == null)\r\n\t\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t\tE data = pos.data;\r\n\t\t\t\tpos = pos.next;\r\n\t\t\t\treturn data;\r\n\t\t\t}", "title": "" }, { "docid": "d0685e804d94fd377e8d3536be3d3dd4", "score": "0.49578118", "text": "protected Tuple fetchNext() throws NoSuchElementException,\n TransactionAbortedException, DbException {\n // some code goes here\n if (childrenIndex >= children.length) {\n return null;\n }\n if (!children[childrenIndex].hasNext()) {\n childrenIndex++;\n return fetchNext();\n }\n Tuple next = children[childrenIndex].next();\n if (!predicate.filter(next)) {\n return fetchNext();\n }\n return next;\n }", "title": "" }, { "docid": "5ce5d78d430b87ebe17e7afed3997d71", "score": "0.49547967", "text": "public Item next() {\n if (!hasNext()) throw new NoSuchElementException();\n Item item = current.item;\n current = current.next;\n return item;\n }", "title": "" }, { "docid": "3fac7a49b82b6c2b22d46e9b55de05eb", "score": "0.49543166", "text": "@Test\n\tpublic void givenOptional_whenGetsValue_thenCorrect() {\n\t Optional<String> opt = Optional.of(\"s4n\");\n\t String name = opt.get();\n\t \n\t assertEquals(\"s4n\", name);\n\t}", "title": "" }, { "docid": "329ec953f9deafdd66da17074040642b", "score": "0.49502814", "text": "public E next()\r\n {\r\n if(!hasNext())\r\n {\r\n throw new NoSuchElementException();\r\n }\r\n lastItemReturned = nextItem;\r\n nextItem = nextItem.next;\r\n index++;\r\n return lastItemReturned.data;\r\n }", "title": "" }, { "docid": "4873d062ef508ba54502b1b01ae9ce69", "score": "0.49496606", "text": "public T first() {\n if (this.isEmpty())\n throw new NoSuchElementException();\n return (T) this.head.next[0].getElement();\n }", "title": "" }, { "docid": "dff71c0da904fe1a6184c2e6613ef01c", "score": "0.49491945", "text": "public T next(){\n if(iterator.hasNext()){\n ancestors.clear();\n current=this.iterator.next();\n fillAncestors(current);\n nextCalled=true;\n started=true;\n return current;\n }\n else throw new NoSuchElementException(\"Last element has been reached\");\n }", "title": "" }, { "docid": "e32a70904a06a8b641f2d6d2f92e1c35", "score": "0.49469516", "text": "public T next(){\r\n if(hasNext()){\r\n actual++; \r\n return coleccion[actual - 1];\r\n }\r\n throw new NoSuchElementException(); \r\n }", "title": "" }, { "docid": "1accba83754ed93db11c6c7c93705870", "score": "0.49468794", "text": "public String getString(final Key key) throws NoSuchElementException {\n final String value = map.get(key);\n if (value == null) {\n throw new NoSuchElementException(key.toString());\n }\n return value.trim();\n }", "title": "" }, { "docid": "bdf270b7d2de5dde057b01232829336f", "score": "0.49461657", "text": "@Override\n\tpublic String next() {\n\t\tif (!leftIterated) {\n\t\t\tleftIterated = true;\n\t\t\treturn stringPairs.getLeft();\n\t\t} else if (!rightIterated) {\n\t\t\trightIterated = true;\n\t\t\treturn stringPairs.getRight();\n\t\t} else {\n\t\t\tthrow new NoSuchElementException(\"No element to return\");\n\t\t}\n\t}", "title": "" }, { "docid": "7c75a988ab8638c1fb36cd3619fb5a40", "score": "0.49278083", "text": "public T next() {\n\t\t\tif (hasNext()) {\n\t\t\t\tT nextItem = items[index];\n\t\t\t\tindex++;\n\t\t\t\t\n\t\t\t\treturn nextItem;\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new java.util.NoSuchElementException(\"No items remaining in the iteration.\");\n\t\t}", "title": "" }, { "docid": "ac1478805406ebb7c4284fd12be08108", "score": "0.49165326", "text": "@Override\r\n\t\t\tpublic Item nextElement() throws NoSuchElementException {\r\n\t\t\t\tif (!hasMoreElements())\r\n\t\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t\treturn items.get(++curIndex);\r\n\t\t\t}", "title": "" }, { "docid": "e21dcef44deb59f4f87b912452122157", "score": "0.49056667", "text": "public Position<E> next() throws NoSuchElementException {\n if (cursor == null) {\n throw new NoSuchElementException(\"nothing left\");\n }\n recent = cursor; //element at this position might later be removed\n cursor = after(cursor); //move the cursor forward by one element\n return recent;\n }", "title": "" }, { "docid": "7e7aadeaaf767c5dafff608c02ddac31", "score": "0.49031174", "text": "E get(E value);", "title": "" }, { "docid": "4c4f088f287154a99c4659d55c1698b7", "score": "0.49028096", "text": "@Override\n public Range<T> next() {\n if (hasNext()) {\n final T lower = get(position++);\n final T upper = get(position++);\n if (RangeSet.this.modCount != modCount) {\n // Check it last, in case a change occurred\n // while we was constructing the element.\n throw new ConcurrentModificationException();\n }\n return newRange(lower, upper);\n }\n throw new NoSuchElementException();\n }", "title": "" }, { "docid": "28169522e8cecbe5c512cacad618d530", "score": "0.4884659", "text": "public T orElseGet(Supplier<? extends T> other) {\n if (other == null)\n throw new NullPointerException(\"other cannot be null\");\n\n if (isPresent())\n return value;\n else\n return other.get();\n }", "title": "" }, { "docid": "8e6aa06faefe7e1d3205228e2e68be07", "score": "0.48756886", "text": "public Integer peek() {\n Integer peekVal;\n \n if(next.isEmpty()){\n peekVal = this.iterator.next(); \n next.add(peekVal);\n }\n else{\n peekVal = next.get(0);\n }\n return peekVal;\n }", "title": "" }, { "docid": "66992c2481afdfa4d1c458ec81c66177", "score": "0.486964", "text": "@Override\n\t\tpublic Vehicle next() {\n\t\t\tif(cursor == null) {\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t\tVehicle data = cursor.v;\n\t\t\tcursor = cursor.next;\n\t\t\treturn data;\n\t\t}", "title": "" }, { "docid": "5d9954500415563f7cfb4bc7666d119e", "score": "0.48652294", "text": "private Optional<String> _get() throws BadSyntax {\n if (value.size() > 0) {\n BadSyntax.when(value.size() > 1 && stringNeeded, \"The key '%s' must not be multi valued in the macro '%s'\", reportingName(key), macroName);\n return Optional.ofNullable(value.get(0));\n }\n final var reader = MacroReader.macro(processor);\n return reader.readValue(key[0]);\n }", "title": "" }, { "docid": "a598e4684ca3ea95c1f15267499996dd", "score": "0.48650268", "text": "private static void builtInInterfaceOptional()\n {\n Optional<String> optional = Optional.of(\"bam\");\n\n optional.isPresent(); // true\n optional.get(); // \"bam\"\n optional.orElse(\"fallback\"); // \"bam\"\n\n optional.ifPresent((s) -> System.out.println(s.charAt(0))); // \"b\"\n }", "title": "" }, { "docid": "02c2e26547bb7dc18304cce9eace988e", "score": "0.48614335", "text": "public default TYPE orElseThrow() throws NullPointerException {\n val value = get();\n if (value == null)\n throw new NullPointerException();\n \n return get();\n }", "title": "" }, { "docid": "cfa5764d451f364f2893638bb3153706", "score": "0.4857207", "text": "public static <T> Optional<T> getOptional(T value) {\n\t\treturn Optional.ofNullable(value);\n\t}", "title": "" }, { "docid": "2604225085cc8f627887d3fa61cc7edf", "score": "0.48523927", "text": "public T orElse(T other) {\n if (isPresent())\n return value;\n else\n return other;\n }", "title": "" }, { "docid": "cd852efaa269deb4d6b81e6ec2ec37dc", "score": "0.48516083", "text": "@Override\n public Object getFirst() {\n LinkListWrite.LinkListWriteIterator iter=readlist.iterator();\n iter.restart();\n if (iter.size()<0){\n throw new NoSuchElementException();\n }\n return iter.next();\n }", "title": "" }, { "docid": "a946c2daaa324f84f0d52ec65651e9be", "score": "0.48499894", "text": "@Override\n public T getOrNull() {\n return value;\n }", "title": "" }, { "docid": "3613d6d7f01997af18e42a0d2d55edc9", "score": "0.48387852", "text": "public E fin() {\n\t\ttry {\r\n\t\treturn this.fin.getDato();\r\n\t\t}catch (NullPointerException e) {\r\n\t\t\tthrow new NoSuchElementException(\"NO SE PUEDE REGRESAR UN ELEMENTO DE UNA LISTA VACIA\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "75edc058df5582c1a8e91fc731706fe0", "score": "0.48257646", "text": "public V tryGet() throws InterruptedException, E {\n synchronized (lock) {\n if (done) {\n return get();\n } else {\n return null;\n }\n }\n }", "title": "" }, { "docid": "678764c4041d6dfe81a20bd6ab4b75b4", "score": "0.4816494", "text": "public int element()\n\t{\n\t\tif (array.size() == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn array.get(0);\n\t}", "title": "" }, { "docid": "c97fac72fb7fe3cdff349c737079f4de", "score": "0.48144662", "text": "@Override\n public T get() {\n // Double check locking\n if (!initialized) {\n synchronized (this) {\n if (!initialized) {\n T t = valueSupplier.get();\n if (t == null) {\n return null;\n }\n if (t instanceof Optional<?> optional && optional.isEmpty()) {\n return t;\n }\n value = t;\n initialized = true;\n return t;\n }\n }\n }\n return value;\n }", "title": "" }, { "docid": "cf4a39985d9dbfe02c2a73f9619cdfac", "score": "0.48103923", "text": "public T next() {\n if (current == null) {\n throw new NoSuchElementException();\n }\n Node<T> temp = current;\n current = current.next;\n return temp.data;\n }", "title": "" }, { "docid": "635703f0d8ccd5ee033e484447c31e60", "score": "0.48038426", "text": "public Integer peek() {\n if (next == null)\n next = iter.next();\n return next;\n }", "title": "" } ]
685eff4921e5d34cc6f282e3859ad786
Deactivate the damage multiplier of Rage Incite
[ { "docid": "acca7c4e4def1f8519f6fc0e5e812a3c", "score": "0.6530495", "text": "public void reduceTurns() {\n if (!active) { // Error checking\n return;\n }\n\n hero.setDmgMultiplier(hero.getDmgMultiplier() - attackMultiplier); // Remove multiplier\n active = false;\n\n game.paintEvent(new ImageIcon(getClass().getResource(\"/images/attacks/rage_incite.png\")),\n \" inactive\", null);\n hero.removeBuff(buff_rageIncite);\n }", "title": "" } ]
[ { "docid": "d699c79b00bb31fef80bb52503d26df0", "score": "0.6257252", "text": "@Override\n public void reduceDamage(Damage d) {\n \n }", "title": "" }, { "docid": "a8868477677dfe64a36e6cb039e4a5d0", "score": "0.6183716", "text": "private void decrementCooldown() {\n Skill heroSkill = hero.getSkill();\n heroSkill.decrementCooldown();\n if (enemy instanceof SkilledEnemy) {\n Skill enemySkill = ((SkilledEnemy) enemy).getSkill();\n enemySkill.decrementCooldown();\n }\n }", "title": "" }, { "docid": "8762396e1557e96971fb78482877ad56", "score": "0.61641425", "text": "public void decreaseGameSpeed() {\n gameSpeedMultiplier -= 0.25;\n }", "title": "" }, { "docid": "d7785f67df0bacc4a2923f2fbe46d825", "score": "0.61381423", "text": "public void takeDamage(int damage){\r\n stamina -= damage;\r\n }", "title": "" }, { "docid": "f5158aa0e91b1aab65c0071805c074bd", "score": "0.6120768", "text": "private void decrementBoost() {\n if (enemy instanceof SkilledEnemy) {\n Skill skill = ((SkilledEnemy) enemy).getSkill();\n if (skill instanceof StatBoostSkill) {\n StatBoostSkill s = (StatBoostSkill) skill;\n if (s.getDuration() == 0) {\n s.skillAfterEffect(enemy);\n }\n s.decreaseDuration();\n }\n }\n }", "title": "" }, { "docid": "67068c2259d760244d0ef054e82f03ab", "score": "0.6105007", "text": "public void retractSpecialPower() {}", "title": "" }, { "docid": "4b77921b724847387257ffa85b019838", "score": "0.6077861", "text": "void unsetSignalstrength();", "title": "" }, { "docid": "2a612dfc2903f92eaafff1b5e1edae76", "score": "0.60683167", "text": "protected void damageShield(float damage) {}", "title": "" }, { "docid": "71d216cbdd4dea3a0c03e805fa40f10a", "score": "0.6004731", "text": "protected int decreaseAirSupply(int air) {\n/* 509 */ int i = EnchantmentHelper.getRespirationModifier(this);\n/* 510 */ return (i > 0 && this.rand.nextInt(i + 1) > 0) ? air : (air - 1);\n/* */ }", "title": "" }, { "docid": "ed53a98b388c00bbe9b8b1cde5a9f221", "score": "0.5995085", "text": "public void damage(int damage){\n actualHealth -= damage;\n }", "title": "" }, { "docid": "2c8c34c14c2f1ca0fd2814cee62c685b", "score": "0.5988935", "text": "public void decrease(int decreaseAmount){\n currentEnergy -= decreaseAmount;\n }", "title": "" }, { "docid": "8c06fd4ddd8f6066924add274099200e", "score": "0.5987562", "text": "public void activeDesert ()\n\t{\n\t\tsetStrenght (this.strenght - 5);\n\t\tsetSpeed (this.speed - 5);\n\t\tsetConstitution (this.constitution - 5);\n\t\tsetDexterity (this.dexterity - 5);\n\t}", "title": "" }, { "docid": "d5f8afc32b16cf2b2c907e79b5e7854b", "score": "0.5987367", "text": "public void decrease(Double decreaseAmount){\n currentEnergy -= decreaseAmount;\n }", "title": "" }, { "docid": "cd19d7226540d464d56538159ab456f6", "score": "0.5985028", "text": "public void decrementExclusion( double decre )\n {\n exclusion -= decre;\n }", "title": "" }, { "docid": "14c3ddae5f6bc84e5cfeed2551faf7bb", "score": "0.5918708", "text": "private void destractionScore() {\n this.currentScore.increase(KILL_A_BLOCK);\n }", "title": "" }, { "docid": "7ebdf5cd3ff184925617628a6e3d0408", "score": "0.5906866", "text": "@Override\n\tpublic void deactivatePowerUp(BlockBreakersModel M) {\n\t\t// TODO Auto-generated method stub\n\t\tM.getPaddle().setPaddleWidth(pWidth_old);\n\t\tM.getPaddle().setColor(old_color);\n\t\t\n\t}", "title": "" }, { "docid": "87fba88dd4ac2fc69c847bc4cb905ea2", "score": "0.5900072", "text": "protected void damageArmor(float damage) {}", "title": "" }, { "docid": "36b51f6bb273064733f90ec4cd377642", "score": "0.58995306", "text": "public float modifyDamage(float amount);", "title": "" }, { "docid": "0ab70e2bcaa81e0a73df7d0d5f329f0a", "score": "0.5883715", "text": "@Override\n\tpublic void disable() {\n\t\tthis.costInterval.disable();\n\t\tthis.update();\n\t}", "title": "" }, { "docid": "15ec988a59ad28e9f1a08087707fece5", "score": "0.58702874", "text": "@Override\r\n\tpublic void removeHealth(int damage) {\r\n\t\tsuper.removeHealth(damage);\r\n\t\tthis.setVelocityY(terminalVelocity);\r\n\t}", "title": "" }, { "docid": "2bfcefc5e6a29bef8e85b9ad8811cf8f", "score": "0.5867692", "text": "public void takeDamage(int damage) {\n setHP(hp - damage);\n }", "title": "" }, { "docid": "ab0972ac665f4f2ab8784fa79b0e6375", "score": "0.58521223", "text": "public void decreaseFoodLevel() {\n\t\tfoodLevel-= foodConsumptionRate;\n\t}", "title": "" }, { "docid": "b61a968d28dba9fdedcd9ff8325fb5c3", "score": "0.5829705", "text": "public boolean damage(){\n if(invincible)\n return false;\n else {\n hp--;\n return true;\n }\n }", "title": "" }, { "docid": "5eb116cf31a964aae64bcbf78c3d7cc0", "score": "0.58028775", "text": "@Override\r\n\tpublic float modifyDamage(float damage)\r\n\t{\r\n\t\treturn Math.max((1f - percentReduction) *\r\n\t\t\t\t(damage - straightReduction), 0);\r\n\t}", "title": "" }, { "docid": "bf5a71e54abf837241bc341a6d8b35d7", "score": "0.5795237", "text": "public void deactivate();", "title": "" }, { "docid": "3f6b0b20e1e6c6d5d9bf5ca676fa7aa0", "score": "0.57915646", "text": "public void setDamage(Double newDamage) {\n damage = newDamage;\n }", "title": "" }, { "docid": "574e4fdbfe5714e750f62245d2d5e5ac", "score": "0.5787214", "text": "void deduct(Mage mage, CasterProperties caster, double amount);", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.5781675", "text": "void deactivate();", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.5781675", "text": "void deactivate();", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.5781675", "text": "void deactivate();", "title": "" }, { "docid": "1c5d411ec876e1fa50cc7c7fcb0aa9ef", "score": "0.57757705", "text": "void unlockWeapon();", "title": "" }, { "docid": "d86ed7ea03bda479d301f19f8ca094b0", "score": "0.5775152", "text": "public void lowerHP (int decrease) {\n\tlife -= decrease;\n }", "title": "" }, { "docid": "7d00d8442592eb086930068dc9161535", "score": "0.5756586", "text": "protected void deactivate() {\r\n\t\twaves.forEach(w -> w.activate = false);\r\n\t}", "title": "" }, { "docid": "721750e5bc085a1c1c284b106f514e38", "score": "0.57548094", "text": "public void setDamage(double damage)\n {\n this.damage = damage;\n }", "title": "" }, { "docid": "b945b5204b0be54264da5515040e2a1b", "score": "0.5752915", "text": "public void inflictDamage(int damage) {\n health -= damage;\n checkHealth();\n }", "title": "" }, { "docid": "0795ab550e75c70be917faa55627c62c", "score": "0.57417476", "text": "@Override\n\tprotected int getDamageDealt() {\n\t\treturn 6;\n\t}", "title": "" }, { "docid": "74bb0ac36fa3ede43390eeccd6dd0007", "score": "0.57361346", "text": "private void depleteEnergy() {\r\n\t\tif (speedThrust == true) {\r\n\t\t\twidth -= GameSettings.ENERGY_COMSUMPTION_SPEED;\r\n\t\t}\r\n\r\n\t\tif (width <= 0) {\r\n\t\t\tplayer.setAllowThrust(false);\r\n\t\t\tplayer.setThrustState(false);\r\n\t\t\twidth = 0;\r\n\t\t}\r\n\t\tthis.energyBar.setWidth(width);\r\n\t}", "title": "" }, { "docid": "56fe1e88e6ad6cbb2eefc3cd74f3553b", "score": "0.57254267", "text": "private synchronized void disable()\n {\n byte reg = read8(Register.ENABLE);\n write8(Register.ENABLE, reg & ~(AMS_COLOR_ENABLE_PON | AMS_COLOR_ENABLE_AEN));\n }", "title": "" }, { "docid": "b6bc6cdf8a25bfcf75d827f4c90511d8", "score": "0.57229376", "text": "public void deactivate()\n {\n }", "title": "" }, { "docid": "fd501f773bb3b4ab928e10a3e475e38d", "score": "0.5722257", "text": "protected void resetSpeed() {\n\t\tIAttributeInstance maidAttribute;\n\t\tif ((maidAttribute = owner.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED)).hasModifier(CHARGING_BOOST_MODIFIER)) {\n\t\t\tmaidAttribute.removeModifier(CHARGING_BOOST_UUID);\n\t\t}\n\t}", "title": "" }, { "docid": "c49220995855fd5943de186b7de0d562", "score": "0.57211465", "text": "public void setDamage( double d)\n {\n DAMAGE = d;\n }", "title": "" }, { "docid": "f011ce7ff534ed181e499a41bfdfd1d1", "score": "0.57197756", "text": "public void mo107409e() {\n this.f85993a.setTorchEnabled(false);\n }", "title": "" }, { "docid": "452c1c1b6e1045b3296a0d8a460e2b31", "score": "0.57157046", "text": "public void deactivateCOP(){\r\n COP = false;\r\n }", "title": "" }, { "docid": "ceced720d6a6d3c7eb7a02df0589d83a", "score": "0.571516", "text": "@Override\n public float takeDamage(float damage) {\n return health -= damage;\n }", "title": "" }, { "docid": "e06cbc7b0718212df042c8fd641cd698", "score": "0.5711799", "text": "public void inflict(){\n if(dmg<5 && alive==true){\r\n dmg++;\r\n }\r\n else{\r\n //if damage is equal 5 set alive to false\r\n alive=false;\r\n }\r\n }", "title": "" }, { "docid": "2891f8f6d1e9100b604d7ce05538eb6d", "score": "0.57055604", "text": "void attackUsed(){\n currentEnergy--;\n }", "title": "" }, { "docid": "f83d64f804873572bac338e3052b0dd5", "score": "0.56820136", "text": "@Override\n public void discardWeapon(Weapon w){\n if (nWeapons > 0)\n nWeapons--;\n }", "title": "" }, { "docid": "f69bb346d7dcce205f165f3207246db0", "score": "0.5680032", "text": "@Override\n\tpublic int getRacialDamageBonus() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "fd469921b2ab50924dfb3a3ecdb93ffc", "score": "0.5679214", "text": "protected int reduceDamageByArmor(){\r\n\t\treturn (int) (25 * Math.log((armor+300)/300));\r\n\t}", "title": "" }, { "docid": "052f066697a43cb71b792c8c24a03736", "score": "0.56712466", "text": "void doNegativeEffect(Skill castSkill, double power, Creature performer, Creature target) {}", "title": "" }, { "docid": "ce1610b0ae64e1bf30556c5df2f166ea", "score": "0.56704146", "text": "public abstract void setGravityModifyOff();", "title": "" }, { "docid": "dc3f4916c86e033d57b1c49d6690c7a6", "score": "0.5664667", "text": "@Override\r\n\tpublic void powerOff() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6b60791823a9384d8b3af58452302b0e", "score": "0.56633174", "text": "@Override\n public void stop() {\n rightImpeller.setPower(0);\n slider.setPower(0);\n\n if(grabber != null)\n grabber.stop();\n }", "title": "" }, { "docid": "702778dd1319ce321ce1f2afd4936bc4", "score": "0.5645698", "text": "@Override\r\n public void powerFreezerOff() {\r\n if (consumptionPerHour == 20) {\r\n consumptionPerHour -= 10;\r\n System.out.println(\"Power freezer off\");\r\n }\r\n }", "title": "" }, { "docid": "d700421f4475c4255826fc304aa092ba", "score": "0.56421864", "text": "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {}", "title": "" }, { "docid": "b6c70b53fa6aac2d16698933665610bb", "score": "0.5636102", "text": "private void debit(double m) {\n this.money -= m;\n }", "title": "" }, { "docid": "30e440572942f7b19e851dedeaf0e79f", "score": "0.5614856", "text": "public void electric_lose_strong_1()\r\n {\r\n \tpts_2 += 50;\r\n life_pt_1--;\r\n life_pt_1--;\r\n pts_field_2.setText(Integer.toString(pts_2));\r\n life_field_1.setText(Integer.toString(life_pt_1));\r\n }", "title": "" }, { "docid": "0e6e6e4b3512105a30d813fa7c872db5", "score": "0.5614572", "text": "public void decreaseWandPower() {\r\n\t\tthis.wand.decreasePower();\r\n\t}", "title": "" }, { "docid": "7b4455bea04e68b4ac3e530172045205", "score": "0.5613321", "text": "@Override\r\n\tpublic void takeDamage(int damage) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c995813569d6ec2da958f5961a5fd11c", "score": "0.55990016", "text": "public void setDamage(int num) {\n damage = num; // maybe this should be set somewhere else, as part of a future damage calculation?\r\n }", "title": "" }, { "docid": "41e8ed24d96e7ae144333cf70d08e3ae", "score": "0.559719", "text": "public int damage();", "title": "" }, { "docid": "ea6a25a2961fb37ec78fcdcefc714a51", "score": "0.5597169", "text": "void disable();", "title": "" }, { "docid": "ea6a25a2961fb37ec78fcdcefc714a51", "score": "0.5597169", "text": "void disable();", "title": "" }, { "docid": "4ac4644d8bbd93bfa274a23267701669", "score": "0.55879074", "text": "public void electric_lose_strong_2()\r\n {\r\n \tpts_1 += 50;\r\n life_pt_2--;\r\n life_pt_2--;\r\n pts_field_1.setText(Integer.toString(pts_1));\r\n life_field_2.setText(Integer.toString(life_pt_2));\r\n }", "title": "" }, { "docid": "7c589106d4cfc124ef0230f11abf2093", "score": "0.55808336", "text": "private void setCooldown() {\n hero.getSkill().setCooldown(3);\n if (enemy instanceof SkilledEnemy){\n ((SkilledEnemy) enemy).getSkill().setCooldown(3);\n }\n }", "title": "" }, { "docid": "fe8e807f552c669e5d670d9388cdb1ff", "score": "0.5580401", "text": "public void louder()\n\t\t{\n\t\t\tvolumeRight(0.8);\n\t\t\tvolumeLeft(0.8);\n\t\t}", "title": "" }, { "docid": "7a47af3a3095e7a99e31f11be31a97c1", "score": "0.5576031", "text": "public void electric_lose_weak_1()\r\n {\r\n \tpts_1 += 25;\r\n pts_2 += 25;\r\n life_pt_1--;\r\n life_pt_2--;\r\n pts_field_1.setText(Integer.toString(pts_1));\r\n pts_field_2.setText(Integer.toString(pts_2));\r\n life_field_1.setText(Integer.toString(life_pt_1));\r\n life_field_2.setText(Integer.toString(life_pt_2));\r\n }", "title": "" }, { "docid": "0300ca6ca82e80b0e87227a046b546b1", "score": "0.55698794", "text": "public void invalid()\n {\n budget -= Parameters.INVALID_RATE;\n pw.write(\"-1\");\n pw.println();\n }", "title": "" }, { "docid": "e3e21eaac90f772659cd3a1632fbcf27", "score": "0.55617994", "text": "@Override\n\tpublic void eliminate() {\n\t\t\n\t\tsuper.eliminate();\n\t\t\n\t\tigame.changeMana(maxHP);\n\t}", "title": "" }, { "docid": "bf78b9f2bdfd8b5def3bd45cdf40e6aa", "score": "0.5555024", "text": "public void modifyArmor(int factor){\n\t\tarmor-= armor;\n\t\tif (armor <0){\n\t\t\tarmor =0;\n\t\t}\n\t}", "title": "" }, { "docid": "4007e08b639ac88406c2737e14cfbf40", "score": "0.5544754", "text": "public Demeter(){\n this.power = new DemeterPower();\n power.setActiveEffect(false);\n }", "title": "" }, { "docid": "b7cef1bc8b362938d13e19a81fb6329d", "score": "0.5541663", "text": "@Override\n public void picoDellaMirandolaDowngrade() {\n coinsRequired -= 3;\n }", "title": "" }, { "docid": "67829e196a0a4242bbc05b802528ae21", "score": "0.5536363", "text": "public void setDamage(int damage) {\n this.damage = damage;\n }", "title": "" }, { "docid": "3041d8f9d011d66740bdf0f2fa2e38bf", "score": "0.55314255", "text": "public void wound (int damage)\n {\n health -= damage;\n }", "title": "" }, { "docid": "6fbc6a633ee3cb19c0477d15d9f2f1c7", "score": "0.55292064", "text": "public int takeDamage(int damage) {\n damage -= (int)(ARMOR + 0.18*this.getInt()); \r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "title": "" }, { "docid": "047899c5f2fcd56be2cec3c3ef5fbeed", "score": "0.55237573", "text": "public void decriseMana(Integer mana){\n this.mana = this.mana - mana;\n }", "title": "" }, { "docid": "a263612926e137e028e3140be6154cf3", "score": "0.5509451", "text": "public void disembark() {\n this.isRiding = false;\n this.rideSpeed = 0;\n }", "title": "" }, { "docid": "7425f4951d32c0ec8c08a36d8cbcccd7", "score": "0.5504896", "text": "public void disableEffect() {\r\n\r\n setEffect(null); // disable effect\r\n }", "title": "" }, { "docid": "28ee7d805d7f9042d17b28a987878090", "score": "0.55048424", "text": "protected void reduceHealthPoints(int damage) {\n currentHP -= damage;\n\n if (currentHP <= 0) {\n isAlive = false;\n }\n }", "title": "" }, { "docid": "7442ffa039d24b84fe8e23b9e2b8ff16", "score": "0.55031186", "text": "public PTO_Deactivate() {\n\t\trequires(Robot.powerTakeOff);\n\t}", "title": "" }, { "docid": "e8c7bdc926e8dda313aee3d198e1d2b2", "score": "0.5502963", "text": "public void dealDamage(int damage) {\n this.hitPoints -= (damage - defense);\n }", "title": "" }, { "docid": "fec0e2c4defdd1012910544866f04fd9", "score": "0.55028737", "text": "public void electric_lose_weak_2()\r\n {\r\n \tpts_1 += 25;\r\n pts_2 += 25;\r\n life_pt_1--;\r\n life_pt_2--;\r\n pts_field_1.setText(Integer.toString(pts_1));\r\n pts_field_2.setText(Integer.toString(pts_2));\r\n life_field_1.setText(Integer.toString(life_pt_1));\r\n life_field_2.setText(Integer.toString(life_pt_2));\r\n }", "title": "" }, { "docid": "1cb1da8e4a7afb97e3b1d54b308bd620", "score": "0.5500355", "text": "private void decreaseProbabilities()\n {\n\tdouble newMobProb;\n\n\tnewMobProb = 0.0; \n\n\tfor(String key : enemyProbabilities.keySet())\n\t{\n\t if(!key.equals(\"Dragon\"))\n\t {\n\t \tnewMobProb = enemyProbabilities.get(key) - 0.05; \n\t\n\t\tif(newMobProb < 0.0)\n\t\t{\n\t\t newMobProb = 0.0;\n\t\t} \n\t enemyProbabilities.put(key,newMobProb); \n\n\t\t//System.out.println(\"ENEMY: \" + key + \" has prob now: \" + enemyProbabilities.get(key)); \n \t }\n\t else\n\t {\n\t newMobProb = enemyProbabilities.get(key) + 0.15; \n\t\t\n\t\tif(newMobProb > 1.0)\n\t\t{\n\t\t newMobProb = 1.0;\n\t\t}\n\t\tenemyProbabilities.put(key,newMobProb); \n\t\t\n\t\t//System.out.println(\"DRAGON now has prob\" + enemyProbabilities.get(key)); \t\n\t }\n\t}\t\n }", "title": "" }, { "docid": "8e15c2afa466b997db5ba8ca671581e3", "score": "0.5493831", "text": "public void decreaseAP(int decrement);", "title": "" }, { "docid": "941f69a813e98aee85fe89181d8d4a18", "score": "0.54932183", "text": "public void specialize(){\n\tdefense-=10;\n\tattack+=1;\t\n }", "title": "" }, { "docid": "3c78830f773f33f40140a957256a5b9e", "score": "0.5492191", "text": "public void damageHealth(int damage) {\n health -= damage;\n }", "title": "" }, { "docid": "2ee08ddccf1c723b538813dbacd45590", "score": "0.5491006", "text": "public void takeDamage(int damage) {\n\t\tcurrentHealth-=damage;\n\t}", "title": "" }, { "docid": "404b963a4dea2ba6c14e611b82978581", "score": "0.5488862", "text": "public void releaseFrictionBrake() {\n m_frictionBrake.set(kFrictionBrakeDisabled);\n }", "title": "" }, { "docid": "7c06ae8670421c99dd259b4ebff99830", "score": "0.5479136", "text": "protected void dropEquipment(boolean wasRecentlyHit, int lootingModifier) {}", "title": "" }, { "docid": "a84c2f641f58419cbc41624bbca96377", "score": "0.54785925", "text": "public void onDischarge(int charge, double range);", "title": "" }, { "docid": "63547ba19cf64b0b9d8922eaff3e88cf", "score": "0.54759717", "text": "public void subtractGold(int num){\n gold -= num;\n }", "title": "" }, { "docid": "6fe3f88df96c6176013c068314cd7f0f", "score": "0.54737735", "text": "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "title": "" }, { "docid": "ce5aa18bd20c465a751225f78734bc29", "score": "0.5464267", "text": "private void regenerateEnergy() {\r\n\t\tif(speedThrust==false){\r\n\t\t\tdelay--;\r\n\t\t\tif (width < maxEnergyLevel) {\r\n\t\t\t\tif (delay <= 0){\r\n\t\t\t\t\tdelay = 0;\r\n\t\t\t\t\twidth += GameSettings.ENERGY_REGENRATION_SPEED;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (width >= 25) {\r\n\t\t\tif(PlayerOne.KEEP_MOVING){\r\n\t\t\t\tplayer.setAllowThrust(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a6afa693f65e7b0d23f2627fef4ff5f5", "score": "0.5456356", "text": "public void DecreaseSpeed() {\n /*\n * Very basic deceleration function, acting as water friction. could be updated\n * using functions from\n * https://denysalmaral.com/2019/05/boat-sim-notes-1-water-friction.html to be\n * more realistic.\n */\n this.currentSpeed = Math.max(this.currentSpeed - 0.015f, 0);\n }", "title": "" }, { "docid": "02c0d67f4e20385f30c342c1571b2dcb", "score": "0.5454853", "text": "@Override\n\tvoid takeDamage() {\n\t\tPlayer.fireballInPlay = false;\n\t\tsuper.takeDamage();\n\t}", "title": "" }, { "docid": "ce00d8f6eee0d3389edb14ca172c6810", "score": "0.5449804", "text": "@Override\n\tpublic double getDamage() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3394a6b359a0965040a616bdafa07846", "score": "0.54496884", "text": "public void liftDown()\n /* upperGate = hardwareMap.get(DigitalChannel.class, \"upperGate\");\n lowerGate = hardwareMap.get(DigitalChannel.class, \"lowerGate\");\n upperGate.setMode(DigitalChannel.Mode.INPUT);\n lowerGate.setMode(DigitalChannel.Mode.INPUT);\n */{\n runtime.reset();\n\n /*while (upperGate.getState() && runtime.seconds() < 10) {\n Lift.setPower(-1);\n }*/\n Lift.setPower(-1);\n //Lift.setPower(0);\n liftKill();\n //encoderDrive(LIFT_POWER, LIFT_INTERVAL-Lift.getCurrentPosition(),5);hhh\n //LiftClicks+=LIFT_INTERVAL;\n }", "title": "" }, { "docid": "3762ffa022afcb3a77dfb4765ba84202", "score": "0.5449484", "text": "public void disable() {}", "title": "" }, { "docid": "fa6edbad83aede1d77ba07ae31a8d736", "score": "0.5448604", "text": "public abstract int soldierDamageModifier(int damage);", "title": "" }, { "docid": "c75866a7cbac09b58a3fac20c81ab391", "score": "0.5445927", "text": "@Override\n public int damage(int dmg)\n {\n if(hp > 0)\n {\n hp -= dmg;\n if(hp < 1)\n {\n master.removeThing(this);\n }\n }\n return 0;\n }", "title": "" } ]
e35d952d3ec83f223bd1e8995a5cfb20
/ Refreshes the display info on Start
[ { "docid": "bd7150d1f96bf7396bf1b11e4336c757", "score": "0.0", "text": "protected void updateProfile(CareProvider account){\n accountManager.careProviderUpdater(account.getUserID(), account);\n\n userID = account.getUserID();\n email = account.getEmailAddress();\n phoneNumber = account.getPhoneNumber();\n\n DisplayUserID.setText(userID);\n DisplayEmail.setText(email);\n DisplayPhone.setText(phoneNumber);\n }", "title": "" } ]
[ { "docid": "297820fb7b3e76f4bf4603618767bd4f", "score": "0.78238875", "text": "public final void refreshDisplay() {\r\n\t\trefreshDisplay(true);\r\n\t}", "title": "" }, { "docid": "9c436d36be0e3622975debf95f5329ec", "score": "0.75374204", "text": "@Override\n\tpublic void refreshDisplay() {\n\n\t}", "title": "" }, { "docid": "993fa8ed4dfa28bd971db37e57a4f4ad", "score": "0.7344141", "text": "private void updateDisplay() {\r\n display.setDisplay( payStation.readDisplay() );\r\n }", "title": "" }, { "docid": "4ec4e5f5978085268fbb108216aaec3f", "score": "0.72439706", "text": "@Override\r\n\tpublic void updateDisplay() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e9830fb1b966fa5459bedce11b3d66c1", "score": "0.72148925", "text": "public void updateDisplay(){\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "31115bfe7884ed8a299767012b516f27", "score": "0.720682", "text": "void updateDisplay();", "title": "" }, { "docid": "b1458b6ca772dfb00ee1dbc38ebbe05a", "score": "0.71257526", "text": "@Override\n\tpublic void onInit(int status) {\n\t\n\t\tautoDisplay();\n\t}", "title": "" }, { "docid": "bcb8dbb9bb63e5bda133c8cf086602fb", "score": "0.7065838", "text": "private static void update() {\n\t\tDisplay.update();\n\t\tDisplay.sync(60);\n\t}", "title": "" }, { "docid": "5f11e4c482625812278ceeddf588af84", "score": "0.6900275", "text": "private void updateDisplay() {\n try {\n mazeUIPanel.updateDisplay(gameModel.display());\n } catch (RuntimeException e) {\n crashProcedure(e);\n }\n }", "title": "" }, { "docid": "254920c3123d9c3bf3314213dafa3179", "score": "0.68663937", "text": "public void updateDisplay() {\n\n\t\t//Update the timetable\n\t\tdisplay.setText(fitnessProgram.getTimetableString());\n\t}", "title": "" }, { "docid": "efe1991214ee506c5903c70743e2816d", "score": "0.68247235", "text": "@Override\n\tpublic void onRefresh() {\n\t\tfirstLoad = false;\n\t\tgetWeibos();\n\n\t}", "title": "" }, { "docid": "04d4d0e4e824c3759da9ff7210056a3d", "score": "0.67891127", "text": "public void refreshInfo() {\n clearInfo();\n populateInfo();\n }", "title": "" }, { "docid": "c6967992124717c0c551ecb4c67844e4", "score": "0.6779191", "text": "void updatePrimaryDisplayInfo(Call call);", "title": "" }, { "docid": "b551fd7d4174c8e79b70b1a74daea4fd", "score": "0.6752613", "text": "public void updateDisplay() {\n\t\t// here initialize the name of CellHandler according to the\n\t\t// simulationName\n\t\tgrid = cellHandler.updateGrid();\n\t\tupdateShape(shapeManager.getShapeList());\n\n\t}", "title": "" }, { "docid": "3becbd0513a0e8704b90156c838f8a06", "score": "0.6691022", "text": "private void updateDisplay() {\n mTimeDisplay.setText(new StringBuilder()\n .append(mHour + 1).append(\":\").append(mMinute));\n\n mDateDisplay.setText(new StringBuilder()\n // Month is 0 based so add 1\n .append(mMonth + 1).append(\"-\").append(mDay).append(\"-\")\n .append(mYear).append(\" \"));\n }", "title": "" }, { "docid": "cc46d96bdc745ed17077990e8d7bd185", "score": "0.66790366", "text": "public void refreshDisplay() {\n\t\tContactArrayAdapter adapter = new ContactArrayAdapter(this, contacts);\n\t\tgetListView().setAdapter(adapter);\n\t}", "title": "" }, { "docid": "bc020b3748bf6c7b8cc2f74b5a4e45a5", "score": "0.66686743", "text": "private void display() {\r\n\t\tsetVisible(true);\r\n\t}", "title": "" }, { "docid": "f8fc89ae7e356b2276d0e002312fccae", "score": "0.6659652", "text": "@Override\n\t\tpublic void run() {\n\t\t\tMessage msg = new Message();\n\t\t\tmsg.what = UPDATE_DISPLAY;\n\t\t\tmHandler.sendMessage(msg);\n\t\t}", "title": "" }, { "docid": "4b57f9b88396c181dfa44795188ca5a9", "score": "0.66463697", "text": "@Override\n\tpublic void initializeDisplay() {\n\t\t\n\t}", "title": "" }, { "docid": "456ec5769a2fbaf71b784c41d90470e8", "score": "0.6616734", "text": "public void refresh() {\n this.startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "6072236f5ba332ad0851f83e8b24dca2", "score": "0.66086197", "text": "void showRefreshIndication();", "title": "" }, { "docid": "868fa30f9204541eda195a69d178fb19", "score": "0.6603003", "text": "void showInitialInformation();", "title": "" }, { "docid": "34c4f7dfda244f318c88d8bca326a635", "score": "0.6599489", "text": "public void updateDisplay(){\n System.out.println(this.toString());\n }", "title": "" }, { "docid": "c6d0b192e5350c97c4d87a1720579919", "score": "0.65688926", "text": "public void refresh()\n \t{\n \t\t//mainLayout.removeComponent(content);\n \t\tmainWindow.removeComponent(menuBar);\n \t\t//FIXME call refresh() method instead of constructing completely new?\n \t\t//content = new MetricPanel(messages);\n \t\tcontent.attach();\n \t\t//mainLayout.addComponent(content);\n \n \t\tmainLayout.addComponent(menuBar=buildMenuBar(),0);\n \n \n \t}", "title": "" }, { "docid": "859cef7fd2841741dc3d121c28c3b60b", "score": "0.6560894", "text": "@Override\n protected void updateDisplay() {\n // do nothing\n }", "title": "" }, { "docid": "9b73e1b9a74e3ae9175f3fe31728b781", "score": "0.65526974", "text": "public void display() {\n\t\thome();\n\t\tdata();\n\t}", "title": "" }, { "docid": "0eb94ee4d58f052aba8bd409d78bbc1e", "score": "0.6533005", "text": "public final void loadCurrentInfo() {\n try {\n getWindowInstance();\n if (window != null) {\n position.x = window.getLeft();\n position.y = window.getTop();\n width = window.getWidth();\n height = window.getHeight();\n }\n } catch (WDDManException ex) {\n Logger.getLogger(DisplayableWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "title": "" }, { "docid": "6cd5f8b86f46a6e949e06ab962a7cd68", "score": "0.6516433", "text": "public void refresh ()\n {\n screen.repaint();\n }", "title": "" }, { "docid": "342ad9f9b2479f338d2040592c9f28cd", "score": "0.6506287", "text": "void refresh ( );", "title": "" }, { "docid": "a04042856d282125fbb2622aa462c526", "score": "0.6492668", "text": "public void updateDisplay()\r\n {\r\n repaint();\r\n }", "title": "" }, { "docid": "63d8dcfa1553e02e6d967930aa16cb65", "score": "0.64919364", "text": "private void refresh()\n {\n }", "title": "" }, { "docid": "4ac54fd5b594b5dd399dacfaa9ae479f", "score": "0.6463242", "text": "public void refresh() {\r\n\t\tsetTimePrayer();\r\n\t\tshowHolidays();\r\n\t\tsetImageClick();\r\n\t}", "title": "" }, { "docid": "4789c6ad152ef06169ed576daa6e61e7", "score": "0.64515895", "text": "private void refresh() {\n pos.setText(\"Click on coordinate: \" + client.getData().getCoord());\n score.setText(\"Score: \" + client.getData().getScore());\n }", "title": "" }, { "docid": "f3a1a15ed7a58a265d59b7f11bc0caad", "score": "0.64394665", "text": "public void refresh() {\r\n\r\n broadcastState();\r\n }", "title": "" }, { "docid": "ff07c61a47897acd573a312d3c64569a", "score": "0.6424777", "text": "@Override\n\tprotected void UpdateUI() {\n\t\tWorkLightLampDisplay(WorkLamp,RearWorkLamp);\n\t}", "title": "" }, { "docid": "db042aa68c7c56ef4e4be37d35bf86e4", "score": "0.6418507", "text": "void refreshMatchScreen() {\n updateBoard();\n updateKillshotsTrack();\n updateMatchInfo();\n updateWeaponsInfo();\n updateAmmoAmount();\n updateSpawnWeapons();\n updateOwnedPowerups();\n }", "title": "" }, { "docid": "78058919194511145cd00471f8bf6d47", "score": "0.6412485", "text": "protected abstract void onDisplay();", "title": "" }, { "docid": "42d684a505b2c396b5921bd3b7c00c4e", "score": "0.6397468", "text": "public void refresh(){\n\t\tthis.setVisible(false);\n\t\tthis.setVisible(true);\n\t}", "title": "" }, { "docid": "02e1d21a33fa164f40f8137d6dcc2786", "score": "0.63948923", "text": "@Override protected void startup() {\n show(new MiniJedView(this));\n }", "title": "" }, { "docid": "973baaf033d5ecbea6cb21767b54608f", "score": "0.63890374", "text": "@Override protected void startup() {\r\n show(new JerboView(this));\r\n }", "title": "" }, { "docid": "7b702e0d5ff0e0291c102efec7060a73", "score": "0.63791275", "text": "public void updateScreen() {\r\n\t\tif (clientHandler != null) {\r\n\t\t\tclientHandler.processReadPackets();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55262563fa2695630392d4779c1a0b58", "score": "0.6365142", "text": "void refresh();", "title": "" }, { "docid": "55262563fa2695630392d4779c1a0b58", "score": "0.6365142", "text": "void refresh();", "title": "" }, { "docid": "55262563fa2695630392d4779c1a0b58", "score": "0.6365142", "text": "void refresh();", "title": "" }, { "docid": "55262563fa2695630392d4779c1a0b58", "score": "0.6365142", "text": "void refresh();", "title": "" }, { "docid": "55262563fa2695630392d4779c1a0b58", "score": "0.6365142", "text": "void refresh();", "title": "" }, { "docid": "c4b28edb35b2fcdf675a80f9365accad", "score": "0.63620245", "text": "private void refresh(){\n }", "title": "" }, { "docid": "721ff609729c7a230cc9bb2ad6a016bd", "score": "0.635957", "text": "public void refresh() {\n\t\t\n\t}", "title": "" }, { "docid": "721ff609729c7a230cc9bb2ad6a016bd", "score": "0.635957", "text": "public void refresh() {\n\t\t\n\t}", "title": "" }, { "docid": "84b48144ff1d2cf8c0e1a39198617826", "score": "0.6354748", "text": "public synchronized void refresh()\n {\n this.refresh(true);\n }", "title": "" }, { "docid": "86c9407196650d8ab55478894ea13e82", "score": "0.63545597", "text": "private void becomeUpdatingWindow()\n {\n hideAll();\n setTitle(\"Meal Planner - Updating\");\n welcomeLabel.setText(\"Please wait while we retrieve the menus.\");\n welcomeLabel.setVisible(true);\n this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n this.paint(this.getGraphics());\n }", "title": "" }, { "docid": "29d29db84bc7a173c73c062aae1417c9", "score": "0.6340307", "text": "public static void updateDisplay()\n\t{\n\t\tDisplay.sync(FPS_CAP);\n\t\tDisplay.update();\n\t}", "title": "" }, { "docid": "436562736274ebea0676c749babbb767", "score": "0.6323683", "text": "public void updateScreen() {}", "title": "" }, { "docid": "22fb6f2674c3a7b153c388e338db9d4a", "score": "0.629331", "text": "public void reloadInfoPane() {\n InfoPane p = Singletons.getInfoPane(this);\n p.update(controller.getLogic());\n }", "title": "" }, { "docid": "b3d5588ddcfd9b28893f4b7aa3a7d736", "score": "0.62919885", "text": "private void display() {\n refreshMenu();\n UserInterface.print(getOutput().toString());\n }", "title": "" }, { "docid": "74a9d15f3843485f5bf2fa383139f831", "score": "0.62791103", "text": "public void display() {\r\n setVisible(true);\r\n }", "title": "" }, { "docid": "34a9a06bbbda1fc30212914a0e7e7918", "score": "0.6262995", "text": "public void refresh ();", "title": "" }, { "docid": "bd3026f854915c9b729e89bec929d72d", "score": "0.6258927", "text": "static void startDisplay() {\n\t\tdisplayController = new Display();\n\t\tdisplay = new Thread(displayController);\n\t\tdisplay.start();\n\t}", "title": "" }, { "docid": "bd6d120812c95420ddcfe9b0b078b692", "score": "0.62510824", "text": "public void redisplay() {\n String text = Integer.toHexString(calc.getDisplayValue());\n display.setText(\"\" + text);\n }", "title": "" }, { "docid": "93c8c7d89fcc0da20005d73cf4cff3ac", "score": "0.6244574", "text": "private static void loadCurrentDisplay() {\n WindowManager manager = (WindowManager) mContext.getSystemService( Context.WINDOW_SERVICE );\n Display display = manager.getDefaultDisplay();\n mScreenSize = new Point();\n display.getSize( mScreenSize );\n }", "title": "" }, { "docid": "4ba139a0bc476fd7d8aebfab98ea5900", "score": "0.6236585", "text": "public void refresh() {\n\n\t}", "title": "" }, { "docid": "0d173ce58ee68bf600b13c20db7a6aad", "score": "0.6234785", "text": "@CallSuper\n @Override\n public void refresh() {\n isRefreshed = true;\n fetchData();\n }", "title": "" }, { "docid": "46c7925c348b65cd3b52577d84a00f02", "score": "0.6227912", "text": "void updateDisplay() {\n long now = System.currentTimeMillis(); // current time in ms\n long elapsed = now - lastUpdate; // ms elapsed since last update\n remaining -= elapsed; // adjust remaining time\n lastUpdate = now; // remember this update time\n\n // Convert remaining milliseconds to mm:ss format and display\n if (remaining <= 0) {\n remaining = 0; // roundLength;\n }\n\n int hours = (int) remaining / 60000 / 60;\n int minutes = (int) (remaining / 60000) % 60;\n int seconds = (int) ((remaining % 60000) / 1000);\n String days = \"\";\n if (hours >= 24) {\n days = (hours / 24) + ((hours / 24 == 1) ? \" Day, \" : \" Days - \");\n hours = hours % 24;\n }\n GUI.setTimer(curRound,\n days + format.format(hours) + \":\"\n + format.format(minutes) + \":\"\n + format.format(seconds),\n totalRnd);\n\n // This changes the color of the timer when the time is less than 10\n // seconds\n if (seconds <= 10 && minutes == 1 && hours == 1) {\n if ((seconds % 2) == 0)\n GUI.flashTimer(1);\n else\n GUI.flashTimer(0);\n }\n else\n GUI.flashTimer(2);\n // If we've completed the countdown beep and display new page\n GUI.setBank(operator.getBank().getAdjustedBalance());\n }", "title": "" }, { "docid": "d7e599f0e482d228887d18b602cc87ea", "score": "0.6221581", "text": "public void refresh() {\n }", "title": "" }, { "docid": "c6b0a364b4f10fda15601b779faeba59", "score": "0.6211507", "text": "public void refresh() {\n refresh(0);\n }", "title": "" }, { "docid": "7d2ba3100aec0af6a3f6d22ffb1c9ace", "score": "0.6191506", "text": "public void show() {\n\t\t// Repaint will call the JPanel.paintComponent method that\n\t\t// will update the Display with the latest grid state\n\t\twindow.repaint();\n\t\t// Wait 200 milliseconds. This allows the updated display to\n\t\t// be seen by the human eye.\n\t\ttry { \n\t\t\tThread.currentThread();\n\t\t\tThread.sleep(200); \n\t\t} catch (InterruptedException e) {\n\t\t\t// Do nothing here if the exception is thrown\n\t\t}\n\t}", "title": "" }, { "docid": "51eb551cbed33e5c449fc7a071d33a8b", "score": "0.61873144", "text": "private void refreshDisplay() {\n if(acc_disp == true){\n String output_a = String.format(\"%10.2f,%10.2f,%10.2f,%10.2f,%10.2f,%10.2f\\n\", g[0], g[1], g[2], a[0], a[1], a[2]);\n text_a.setText(output_a);\n }\n }", "title": "" }, { "docid": "8aab5f44f65eac6ed281066fc8e976c2", "score": "0.6186332", "text": "public void refresh() {\r\n\t\t\tif (region == null) return;\r\n\t int frameBoundary = region.getFrameBoundary();\r\n\t DatumDisplay.updateFonts(context.getDisplayFont(),getToolkit().getFontMetrics(context.getDisplayFont()).getHeight());\r\n\t\t\tsetScale(1,DatumDisplay.baseHeight);\t// scrolling increment\r\n\t\t\tfor (int i = 0; i < region.getNumChildren(); i++) {\r\n\t\t\t Datum kid = region.getChildAt(i);\r\n\t\t\t DatumDisplay dd = DatumDisplay.getAssociated(kid,this);\r\n\t\t\t if (dd == null) {\r\n\t\t\t dd = new StoreDatumDisplay(kid, this, false);\r\n//\tredundant - constructor does it\r\n// kid.setProperty(getDisplayString(), dd);\r\n\t\t\t }\r\n//\t\t\t System.out.println(\"DatumDisplay \" + dd.toString() + \" should be associated with \" + kid.toString());\r\n//\t\t\t System.out.println(\"DatumDisplay \" + (DatumDisplay.getAssociated(kid,this)).toString() + \" IS associated with \" + kid.toString());\r\n\t dd.setGrayOut(i < frameBoundary); \r\n\t\t\t}\r\n\t\t layoutManager.layoutDisplay();\r\n\t \tsuper.refresh();\r\n\t\t}", "title": "" }, { "docid": "d1a6babfa761d0a95906ca91ebe82918", "score": "0.618236", "text": "private void updateInfo()\r\n\t{\r\n\t\tavatarLabel.setIcon(new ImageIcon(c.getAvatar()));\r\n\t\tgameImage.setIcon(new ImageIcon(setGameIcon()));\t\t\r\n\t\tURLlabel.setText(c.getProfileURL());\r\n\t\tuserName.setText(c.getUser());\r\n\t\tsetServerIP();\r\n\t\tsetOnlineStatus();\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "367424eece7601d1cd130770638f0edd", "score": "0.6180176", "text": "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "title": "" }, { "docid": "367424eece7601d1cd130770638f0edd", "score": "0.6180176", "text": "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "title": "" }, { "docid": "367424eece7601d1cd130770638f0edd", "score": "0.6180176", "text": "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "title": "" }, { "docid": "367424eece7601d1cd130770638f0edd", "score": "0.6180176", "text": "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47f30b682c177689bf69c527ce32b0c5", "score": "0.6174625", "text": "@Action\n public void refresh() {\n log.info(resourceMap.getString(REFRESH));\n getData(false);\n }", "title": "" }, { "docid": "cfa83ae1200b6a12e9f1cb10247764d5", "score": "0.61680007", "text": "public static void display() {\n\t\t\tSystem.out.println(\"Display is UHD\");\n\t\t\t}", "title": "" }, { "docid": "6aa343e6c33da28bbc2e88a3d1b0695f", "score": "0.61663824", "text": "@Override protected void startup() {\n show(new GATTView(this));\n }", "title": "" }, { "docid": "9807c930e626692e2fa680e9aacd5319", "score": "0.6166318", "text": "public void refresh()\r\n\t{\r\n\t\trefresh = true;\r\n\t\trepaint();\r\n\t\t//paint(getGraphics());\r\n\t}", "title": "" }, { "docid": "058d2a075721e5c037f3ba771f6a1b61", "score": "0.61632895", "text": "public void refreshApplicationsScreen() {\n LoadAppsThread loadAppsThread = new LoadAppsThread();\n loadAppsThread.start();\n try {\n loadAppsThread.join();\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "907898da6aacc0ded16ec0a8aaf67fb5", "score": "0.61547387", "text": "protected void startUpdatingContentAnimation() {\n\t\t// Just be sure to refresh the display\n\t\trequestRender();\n\t\t//Nothing more here by default, but can be overridden by derived classes\n\t}", "title": "" }, { "docid": "9e452bfe686edb88f8e1d0c2c6567982", "score": "0.6150051", "text": "public static void updateDisplay(){\n Display.sync(FPS_CAP);\n Display.update(); \n }", "title": "" }, { "docid": "9123902a51c06d2dfa893664e2ce8f7c", "score": "0.61495936", "text": "public void initDisplay(){\n paperShop = new Treasurer(3);\n welcomeLabel.setText(\"Welcome to the Paper Shop\");\n addJobFrame.setVisible(false);\n closeJobFrame.setVisible(false);\n jobListFrame.setVisible(false);\n changeBindingFrame.setVisible(false);\n observeIncomeFrame.setVisible(false);\n jobListArea.setColumns(1);\n jobListArea.setRows(paperShop.getCapacity());\n overallIncomeArea.setColumns(1);\n overallIncomeArea.setRows(1);\n }", "title": "" }, { "docid": "41ac3b8630e64c3942dd62a42340f681", "score": "0.61492354", "text": "public void refresh() {\n notifyAllListeners();\n }", "title": "" }, { "docid": "65abe93c03f23303a3a344bad270d3c2", "score": "0.61446214", "text": "public void refresh() {\n\t\trepaint();\n\t}", "title": "" }, { "docid": "a088c38a8f4dcd819ec9c7cad513d758", "score": "0.61386275", "text": "@Override\n public void refresh()\n {\n // empty\n }", "title": "" }, { "docid": "d1bb0b1bf2ac0b4fce05282534769571", "score": "0.6138579", "text": "public void refresh();", "title": "" }, { "docid": "d1bb0b1bf2ac0b4fce05282534769571", "score": "0.6138579", "text": "public void refresh();", "title": "" }, { "docid": "d1bb0b1bf2ac0b4fce05282534769571", "score": "0.6138579", "text": "public void refresh();", "title": "" }, { "docid": "3896bf6854def2ce3d042d88ad436cd9", "score": "0.6127631", "text": "public void showUpdate() {\r\n\t\tthis.cardLayout.show(this, \"Modificar\");\r\n\t\tthis.repaint();\r\n\t}", "title": "" }, { "docid": "88bb94c5c6b6d8fc5ecd240c9b269e63", "score": "0.61247945", "text": "private void updateDisplay() {\n\t pDisplayDate.setText(\n\t new StringBuilder()\n\t // Month is 0 based so add 1\n\t .append(pMonth + 1).append(\"/\")\n\t .append(pDay).append(\"/\")\n\t .append(pYear).append(\" \"));\n\t }", "title": "" }, { "docid": "7dc945041f35971d60c9cc4a2de012ad", "score": "0.61211413", "text": "public void Refresh() {\n this.ShowAll();\n }", "title": "" }, { "docid": "c0ad36eac6f4e87071d1063afe42c12f", "score": "0.6115199", "text": "public void display() {\n\t\tfor (Drawable s : toDisplay)\n\t\t\tLightCore.window.draw(s);\n\t\tdisplay.print();\n\t}", "title": "" }, { "docid": "dbaa0e16519d9a211a2289f664ea8e22", "score": "0.6112575", "text": "public void refresh() {\n }", "title": "" }, { "docid": "3334a5efdabc8861eafe4df5ea4b5f85", "score": "0.61084694", "text": "private void Refresh()\n {\n FillCatalogsSpinners();\n FillControls(m_BooksCursor);\n }", "title": "" }, { "docid": "79966cc9ce9c611469c23c923701d650", "score": "0.610665", "text": "public void refresh() {\n clear();\n load();\n }", "title": "" }, { "docid": "be2ba409c76382d04c89161c5cb215d1", "score": "0.6101686", "text": "private void updateDisplay() \n\t{\n\n\t\tmDate.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n\n\n\t}", "title": "" }, { "docid": "81f663554709ac630c895b30dc527a86", "score": "0.60947263", "text": "@Override\n public void onRefresh() {\n\n callfrom = \"refresh\";\n populateTimeline(highestId, 0);\n }", "title": "" }, { "docid": "c7f87b299ea341590ccb83804758037b", "score": "0.6086672", "text": "@Override\n public void onRefresh() {\n fetchTimelineAsync(0);\n }", "title": "" }, { "docid": "4f0bd08aecbf670101d1db7ec0f5976b", "score": "0.60866463", "text": "public void run() {\n getSensoryInfo();\n processSensoryInfo();\n while(true) {\n gd.repaint();\n getSensoryInfo();\n processSensoryInfo();\n }\n }", "title": "" }, { "docid": "a1c5476794f0c1e2c50a40f63f26e6ca", "score": "0.60854846", "text": "private void updateDisplay1() {\n\t\tif (startDate){\n\t\t\tsSecondDate = TimeCounter.getEpochTimeOnDate(sDay, sMonth, sYear);\n\t\t\t//Log.i(\"date\", String.valueOf(sSecondDate));\n\t\t\tbStartDate.setText(TimeCounter.getUserEventDate(TimeCounter.getEpochTimeOnDate(sDay, sMonth, sYear)));\n\t\t} else {\n\t\t\teSecondDate = TimeCounter.getEpochTimeOnDate(eDay, eMonth, eYear);\n\t\t\t//Log.i(\"date\", String.valueOf(eSecondDate));\n\t\t\tbEndDate.setText(TimeCounter.getUserEventDate(TimeCounter.getEpochTimeOnDate(eDay, eMonth, eYear)));\n\t\t}\n\t}", "title": "" }, { "docid": "c3ee27b7d77347e47878583b0373701a", "score": "0.6073653", "text": "@Override protected void startup() {\r\n m_view = new PlpView(this);\r\n networkSettingsChanged();\r\n show(m_view);\r\n }", "title": "" }, { "docid": "3610dfd76edb4f24db2b04e1e1defa6b", "score": "0.60732704", "text": "private void notifyUpdate() {\n fLastDescriptor = fBalloonManager.getBalloonDescriptor();\n if (fTimer.isRunning()) {\n fTimer.restart();\n } else {\n fTimer.start();\n }\n }", "title": "" } ]
b22d55aa4973e1b1d5b4fc7cd6d4e1df
Returns a list of all proposal version descriptors.
[ { "docid": "c41306efeb339ca03a34e97c4dd17420", "score": "0.64561456", "text": "@Override\n public java.util.List<com.ext.portlet.model.ProposalVersion> getProposalVersions(\n long proposalId)\n throws com.liferay.portal.kernel.exception.PortalException,\n com.liferay.portal.kernel.exception.SystemException {\n return _proposalLocalService.getProposalVersions(proposalId);\n }", "title": "" } ]
[ { "docid": "b17c7298c4047a609bdd940a917f1c86", "score": "0.61744773", "text": "public static String [] versions() {\n\t\tfinal List<String> retval = new LinkedList<String>();\n\t\t\n\t\tfor(int i=0; i<=9; i++) {\n\t\t\tretval.add(String.format(\"%d\", i));\n\t\t\tfor(int j=0; j<=9; j++) {\n\t\t\t\tretval.add(String.format(\"%d.%d\", i, j));\n\t\t\t\tfor(int k=0; k<=9; k++) {\n\t\t\t\t\tretval.add(String.format(\"%d.%d.%d\", i, j, k));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tretval.add(\"1.1.1-alpha1\");\n\t\tretval.add(\"2.2.2-beta2\");\n\t\tretval.add(\"3.3.3-rc3\");\n\t\tretval.add(\"4.4.4-milestone4\");\n\t\tretval.add(\"5.5.5-snapshot5\");\n\t\t\n\t\treturn retval.toArray(new String [] {});\n\t}", "title": "" }, { "docid": "0ace5c1960d3a243297f752b7375b7d3", "score": "0.60736406", "text": "java.util.List<injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposal> \n getDerivativeMarketParamUpdateProposalsList();", "title": "" }, { "docid": "2108f339ff6428f50b394bd98c7fee8d", "score": "0.605435", "text": "java.util.List<org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.Version> \n getVersionsList();", "title": "" }, { "docid": "47c53ecc1d7293e5737e221af9511bef", "score": "0.6026238", "text": "java.util.List<injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposal> \n getExpiryFuturesMarketLaunchProposalsList();", "title": "" }, { "docid": "a2275ddadcc778052d94f5f5b4f72b0d", "score": "0.59662145", "text": "java.util.List<? extends org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.VersionOrBuilder> \n getVersionsOrBuilderList();", "title": "" }, { "docid": "ffd1f85b0b787479893fd6e0abd8e4f8", "score": "0.5941338", "text": "Iterable<IPackageVersion> getKnownVersions() throws PhpException;", "title": "" }, { "docid": "1231c94e87b065af20c30ef26b68c89d", "score": "0.58970994", "text": "Iterable<ViewVersion> versions();", "title": "" }, { "docid": "a4aba622e703c5dd7d6e62076c947f72", "score": "0.58905166", "text": "public Map<Object, String> getDescriptors() {\n return descriptors;\n }", "title": "" }, { "docid": "729bb4530d15042e4cd904ce2d552711", "score": "0.5855178", "text": "public java.util.List<injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposal> getDerivativeMarketParamUpdateProposalsList() {\n if (derivativeMarketParamUpdateProposalsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(derivativeMarketParamUpdateProposals_);\n } else {\n return derivativeMarketParamUpdateProposalsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "c42a6fced87d6479354910473a812920", "score": "0.57984823", "text": "public java.util.List<org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.Version.Builder> \n getVersionsBuilderList() {\n return getVersionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "25895b954d9df0e83cdba9ac447502e7", "score": "0.5795676", "text": "DescriptorFile getDescriptors();", "title": "" }, { "docid": "660991405daaee262b64e59b8bc755d3", "score": "0.57886875", "text": "java.util.List<injective.exchange.v1beta1.Tx.PerpetualMarketLaunchProposal> \n getPerpetualMarketLaunchProposalsList();", "title": "" }, { "docid": "b4017b4ccd58fe0f4bb82e0ed05e5487", "score": "0.5785498", "text": "java.util.List<com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptor> \n getDescListList();", "title": "" }, { "docid": "658991967ca029c2b8f01d42528e710d", "score": "0.577794", "text": "public java.util.List<? extends cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposalOrBuilder> \n getProposalsOrBuilderList() {\n if (proposalsBuilder_ != null) {\n return proposalsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(proposals_);\n }\n }", "title": "" }, { "docid": "72c5cae4d929a17ea99691cf7ee16f3c", "score": "0.57772565", "text": "java.util.List<? extends injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposalOrBuilder> \n getDerivativeMarketParamUpdateProposalsOrBuilderList();", "title": "" }, { "docid": "e4ed3613cbf12ed48d81050ee8e90ff3", "score": "0.5768639", "text": "java.util.List<? extends injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposalOrBuilder> \n getExpiryFuturesMarketLaunchProposalsOrBuilderList();", "title": "" }, { "docid": "9968b0a9aca4439af78a78399a48a523", "score": "0.5762348", "text": "public java.util.List<injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposal.Builder> \n getDerivativeMarketParamUpdateProposalsBuilderList() {\n return getDerivativeMarketParamUpdateProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "b10a0b21b2a673ca5cd819fd96741d27", "score": "0.57558084", "text": "java.util.List<cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposal> \n getProposalsList();", "title": "" }, { "docid": "4538a4650031b451443b8e4ad1908a7c", "score": "0.5750336", "text": "java.util.List<? extends cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposalOrBuilder> \n getProposalsOrBuilderList();", "title": "" }, { "docid": "82b9bf6d2c54a370a2a4a5519d62c903", "score": "0.57495415", "text": "public java.util.List<? extends org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.VersionOrBuilder> \n getVersionsOrBuilderList() {\n if (versionsBuilder_ != null) {\n return versionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(versions_);\n }\n }", "title": "" }, { "docid": "cc5c8f64e99bfcef4e05c4fc5af7412b", "score": "0.5746712", "text": "public static List<GitHubPREventDescriptor> getEventDescriptors() {\n return GitHubPREventDescriptor.all();\n }", "title": "" }, { "docid": "6898f3094f29764735bc78b13845aaad", "score": "0.5730823", "text": "public java.util.List<cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposal> getProposalsList() {\n if (proposalsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(proposals_);\n } else {\n return proposalsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "bb363965129516b90bcaedb03ddeb417", "score": "0.57225883", "text": "public java.util.List<? extends injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposalOrBuilder> \n getDerivativeMarketParamUpdateProposalsOrBuilderList() {\n if (derivativeMarketParamUpdateProposalsBuilder_ != null) {\n return derivativeMarketParamUpdateProposalsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(derivativeMarketParamUpdateProposals_);\n }\n }", "title": "" }, { "docid": "31cd2ef03b5b19c224cca3e53a7e9f89", "score": "0.5722352", "text": "public java.util.List<org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.Version> getVersionsList() {\n if (versionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(versions_);\n } else {\n return versionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "d5fdb57980280d230abc49584c5838d1", "score": "0.5690749", "text": "public java.util.List<injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposal.Builder> \n getExpiryFuturesMarketLaunchProposalsBuilderList() {\n return getExpiryFuturesMarketLaunchProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "67d25cb9c4c3035a71cbee91b42caef1", "score": "0.5670597", "text": "@Nonnull\n\tList<GenericDomValue<String>> getVersions();", "title": "" }, { "docid": "8561e2598e6cdc99dbc5cbb7a1824018", "score": "0.5656006", "text": "java.util.List<? extends com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptorOrBuilder> \n getDescListOrBuilderList();", "title": "" }, { "docid": "65358b40266f96ce98a0779363cfecac", "score": "0.5650848", "text": "public DescriptorProtos.FileDescriptorSet allDescriptors() {\n try (final ReadAndWriteTransaction tx = schemaStorage.open()) {\n\n final Stream<SchemaFile> allFiles = tx.fetchAllFiles();\n\n final List<Path> paths = Lists.newArrayList();\n\n try (final DescriptorBuilder descriptorBuilder =\n descriptorBuilderFactory.newDescriptorBuilder()) {\n\n for (SchemaFile sf : allFiles.collect(Collectors.toList())) {\n descriptorBuilder.setProtoFile(sf.path(), sf.content());\n paths.add(sf.path());\n }\n\n final DescriptorBuilder.Result result = descriptorBuilder.buildDescriptor(paths.stream());\n return result.fileDescriptorSet();\n }\n } catch (DescriptorBuilderException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "40e7896a4bcb692ede150f68f3d2137a", "score": "0.56446683", "text": "public Set<String> versionSet() { return versions.keySet(); }", "title": "" }, { "docid": "f2c41a8d8d3428d49370370b98e6d34f", "score": "0.5629345", "text": "public List<V> getAllVersionExtensions(V versionedEntity) throws VersionSchemeException {\n List<V> extendedVersions = new ArrayList<>();\n V extendedVersion = versionedEntity;\n\n while ((extendedVersion = getVersionExtension( extendedVersion )) != null) {\n extendedVersions.add( extendedVersion );\n }\n Collections.sort( extendedVersions, getVersionScheme( versionedEntity ).getComparator( false ) );\n return extendedVersions;\n }", "title": "" }, { "docid": "0c9d50a53e15c20528d1db80a58a6d4f", "score": "0.56240714", "text": "public java.util.List<io.vegaprotocol.vega.Vega.LiquidityProvision.Builder>\n getLiquidityProvisionsBuilderList() {\n return getLiquidityProvisionsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "50ce48fbf79549bed01c212dee35d44a", "score": "0.5617581", "text": "@java.lang.Override\n public java.util.List<injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposal> getDerivativeMarketParamUpdateProposalsList() {\n return derivativeMarketParamUpdateProposals_;\n }", "title": "" }, { "docid": "ede0b6a3166a0d93f8b981511cdd7903", "score": "0.5602821", "text": "public ConglomerateDescriptor[] getConglomerateDescriptors() {\n\n\t\tint size = conglomerateDescriptorList.size();\n\t\tConglomerateDescriptor[] cdls = new ConglomerateDescriptor[size];\n\t\tconglomerateDescriptorList.toArray(cdls);\n\t\treturn cdls;\n\t}", "title": "" }, { "docid": "f53e050b743f52746956754b0a03888c", "score": "0.5598649", "text": "public java.util.List<com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptor.Builder> \n getDescListBuilderList() {\n return getDescListFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "9d9bb4813d883bc0d1f0dd744853b984", "score": "0.5598351", "text": "public Collection<? extends Revision> getAllRevisionInstances() {\r\n\t\treturn delegate.getWrappedIndividuals(Vocabulary.CLASS_REVISION, DefaultRevision.class);\r\n }", "title": "" }, { "docid": "4e39cf773e3448268e73e9ca5b707be9", "score": "0.5594099", "text": "public java.util.List<org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.Version> getVersionsList() {\n return versions_;\n }", "title": "" }, { "docid": "3882e1e15beaa28b49a2f75a9cdc327c", "score": "0.5587777", "text": "@RequestMapping(method = RequestMethod.GET)\n public Iterable<VirtualLinkDescriptor> findAllDescriptors() {\n log.debug(\"Find all Configurations\");\n return virtualLinkManagement.queryDescriptors();\n }", "title": "" }, { "docid": "a2965017f3d4eda6c812a2270ddaff57", "score": "0.5568571", "text": "public Collection<DynamoDbMapperFieldModel<T, Object>> versions() {\n return versions.values();\n }", "title": "" }, { "docid": "012617e2c62934c78b837faf13f74443", "score": "0.5558662", "text": "public PropertyDescriptor[] getPropertyDescriptors() {\n\treturn getPdescriptor();\n }", "title": "" }, { "docid": "d5a864fd3736734fd1ea384eb0007f97", "score": "0.555729", "text": "public ConstraintDescriptorList getConstraintDescriptorList()\n\t\t\tthrows StandardException {\n\t\treturn constraintDescriptorList;\n\t}", "title": "" }, { "docid": "037aaa1eb61b2666b9d9c2892dfd8e01", "score": "0.55537254", "text": "public java.util.List<injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposal> getExpiryFuturesMarketLaunchProposalsList() {\n if (expiryFuturesMarketLaunchProposalsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(expiryFuturesMarketLaunchProposals_);\n } else {\n return expiryFuturesMarketLaunchProposalsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "a8ef0a831b03ab356e96a012e1f2a3af", "score": "0.5551249", "text": "public Iterable<Version> createVersionSet() {\r\n return core.createVersionSet();\r\n }", "title": "" }, { "docid": "391aecfee6ee71099cebe7b8eee3c87d", "score": "0.55490404", "text": "java.util.List<injective.exchange.v1beta1.Tx.SpotMarketLaunchProposal> \n getSpotMarketLaunchProposalsList();", "title": "" }, { "docid": "90be64827101f52bc1e5538016148f8d", "score": "0.5527783", "text": "java.util.List<? extends injective.exchange.v1beta1.Tx.PerpetualMarketLaunchProposalOrBuilder> \n getPerpetualMarketLaunchProposalsOrBuilderList();", "title": "" }, { "docid": "f86ca61dd927f4443c6f24e4622ef2e3", "score": "0.55121183", "text": "public java.util.List<? extends org.apache.pekko.cluster.protobuf.msg.ClusterMessages.VectorClock.VersionOrBuilder> \n getVersionsOrBuilderList() {\n return versions_;\n }", "title": "" }, { "docid": "bf32e16ef58cbce200e5d0ba4a8e4b0d", "score": "0.55090344", "text": "java.util.List<java.lang.String>\n getAllAppVersionsList();", "title": "" }, { "docid": "5ce3f2b4a6cbbc482cf9d0718a9df458", "score": "0.55058074", "text": "public java.util.List<cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposal.Builder> \n getProposalsBuilderList() {\n return getProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "25562654580311a2599142faecd7a5b7", "score": "0.5492378", "text": "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "title": "" }, { "docid": "7315a9d25a6e55cbe1024262924da88e", "score": "0.5465725", "text": "public java.util.List<injective.exchange.v1beta1.Tx.PerpetualMarketLaunchProposal.Builder> \n getPerpetualMarketLaunchProposalsBuilderList() {\n return getPerpetualMarketLaunchProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "1ca3bf321510562d2712c37f482bb8b9", "score": "0.5441661", "text": "public java.util.List<com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptor> getDescListList() {\n return descList_;\n }", "title": "" }, { "docid": "2a193fc5181acde0aac5aac24efabc46", "score": "0.5440907", "text": "@java.lang.Override\n public java.util.List<? extends injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposalOrBuilder> \n getDerivativeMarketParamUpdateProposalsOrBuilderList() {\n return derivativeMarketParamUpdateProposals_;\n }", "title": "" }, { "docid": "619711ef70bd3847f9f4d5e51cd26c21", "score": "0.54341406", "text": "java.util.List<injective.exchange.v1beta1.Tx.SpotMarketParamUpdateProposal> \n getSpotMarketParamUpdateProposalsList();", "title": "" }, { "docid": "57ecb58de1ec160b741c39c5a00148b7", "score": "0.5432465", "text": "@Override\n\tpublic IPropertyDescriptor[] getPropertyDescriptors()\n\t{\n\t\t return descriptors;\n\t}", "title": "" }, { "docid": "e65d34e5de05ba635ea376899be62dd1", "score": "0.54082865", "text": "public IPropertyDescriptor[] getPropertyDescriptors() {\n \t\tif (_descriptors == null) {\n \t\t\tfinal List result = new ArrayList();\n \t\t\t\n \t\t\tfinal ITagElementResolver tagregResolver = IStructuredDocumentContextResolverFactory2.INSTANCE\n \t\t\t\t\t.getResolver(_context, ITagElementResolver.class);\n \t\t\t\n \t\t\tif (tagregResolver != null) { //relies on getTagEntity() having been called to have setup the _element\n \t\t\t\tfinal ITagElement tag = tagregResolver.getTagElement(_element);\n \t\t\t\tif (tag != null) {\n \t\t\t\t\tfor (final ITagAttribute attr : tag.getAttributes().values()) {\n \t\t\t\t\t\tfinal IPropertyDescriptor pd = getAttrPropertyDescriptor(attr\n \t\t\t\t\t\t\t\t.getName());\n \t\t\t\t\t\tif (pd != null)\n \t\t\t\t\t\t\tresult.add(new PropertyDescriptorWrapper(_element,\n \t\t\t\t\t\t\t\t\tpd));// ,\n \t\t\t\t\t\t\t// getStatusLineManager()));\n \t\t\t\t\t\telse {\n \t\t\t\t\t\t\tfinal PropertyDescriptor pd1 = new TextPropertyDescriptor(\n \t\t\t\t\t\t\t\t\tattr.getName(), attr.getName());\n \t\t\t\t\t\t\tpd1.setDescription(attr.getDescription());\n \t\t\t\t\t\t\tpd1.setCategory(ITabbedPropertiesConstants.OTHER_CATEGORY);\n \t\t\t\t\t\t\tresult.add(new PropertyDescriptorWrapper(_element,\n \t\t\t\t\t\t\t\t\tpd1));// ,\n \t\t\t\t\t\t\t// getStatusLineManager()));\n \t\t\t\t\t\t}\n \n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (result.size() == 0) {// for JSP and HTML cases\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// this is still\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// necessary\n \t\t\t\tfinal IPropertyDescriptor[] descs = _innerSource.getPropertyDescriptors();\n \t\t\t\tfor (int i = 0; i < descs.length; i++) {\n \t\t\t\t\tfinal IPropertyDescriptor pd = getAttrPropertyDescriptor((String) descs[i]\n \t\t\t\t\t\t\t.getId());\n \t\t\t\t\tif (pd != null)\n \t\t\t\t\t\tresult.add(new PropertyDescriptorWrapper(_element, pd));// ,\n \t\t\t\t\t// getStatusLineManager()));\n \t\t\t\t\telse {\n \t\t\t\t\t\tif (descs[i] instanceof PropertyDescriptor)\n \t\t\t\t\t\t\t((PropertyDescriptor) descs[i])\n \t\t\t\t\t\t\t\t\t.setCategory(ITabbedPropertiesConstants.OTHER_CATEGORY);\n \t\t\t\t\t\tresult.add(new PropertyDescriptorWrapper(_element,\n \t\t\t\t\t\t\t\tdescs[i]));// ,\n \t\t\t\t\t\t// getStatusLineManager()));\n \t\t\t\t\t}\n \n \t\t\t\t}\n \t\t\t}\n \n \t\t\t_descriptors = new IPropertyDescriptor[result.size()];\n \t\t\tresult.toArray(_descriptors);\n \n \t\t}\n \t\treturn _descriptors;\n \t}", "title": "" }, { "docid": "cc53ef036508bb16c2b3f585b1665497", "score": "0.5408249", "text": "public java.util.List<com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptor> getDescListList() {\n if (descListBuilder_ == null) {\n return java.util.Collections.unmodifiableList(descList_);\n } else {\n return descListBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "e69738fad37ac91ecefd10114d49c992", "score": "0.54042053", "text": "public java.util.List<io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec> getOracleSpecsList() {\n if (oracleSpecsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(oracleSpecs_);\n } else {\n return oracleSpecsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "3f203f0e09adbbe3018ba976e544d78d", "score": "0.5394746", "text": "public java.util.List<? extends injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposalOrBuilder> \n getExpiryFuturesMarketLaunchProposalsOrBuilderList() {\n if (expiryFuturesMarketLaunchProposalsBuilder_ != null) {\n return expiryFuturesMarketLaunchProposalsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(expiryFuturesMarketLaunchProposals_);\n }\n }", "title": "" }, { "docid": "6ea4c04683f0af82c38dae81521125dd", "score": "0.53889674", "text": "public java.util.List<injective.exchange.v1beta1.Tx.SpotMarketLaunchProposal.Builder> \n getSpotMarketLaunchProposalsBuilderList() {\n return getSpotMarketLaunchProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "fb32146a79b237bccdad0d05404377f3", "score": "0.5381161", "text": "public AssociationDescriptor[] getAssociationDescriptors() {\n return associations.toArray(new AssociationDescriptor[0]);\n }", "title": "" }, { "docid": "5e3d3fa74f8e553ff6ad4bec95fc0781", "score": "0.53800595", "text": "public ColumnDescriptorList getColumnDescriptorList() {\n\t\treturn columnDescriptorList;\n\t}", "title": "" }, { "docid": "94bdb38a8a7e350a15af1ae701f2c99d", "score": "0.53780264", "text": "public List<AbstractMetaDataDefinitionDescriptor> getDefinitionDescriptors(StaplerRequest request) {\n List<AbstractMetaDataDefinitionDescriptor> list = new LinkedList<AbstractMetaDataDefinitionDescriptor>();\n ExtensionList<AbstractMetaDataDefinitionDescriptor> extensionList =\n Hudson.getInstance().getExtensionList(AbstractMetaDataDefinitionDescriptor.class);\n for (AbstractMetaDataDefinitionDescriptor d : extensionList) {\n list.add(d);\n }\n return list;\n }", "title": "" }, { "docid": "1b99723d70889e4c9e790a49df7a6fb4", "score": "0.53635055", "text": "public java.util.List<? extends io.vegaprotocol.vega.Vega.LiquidityProvisionOrBuilder>\n getLiquidityProvisionsOrBuilderList() {\n if (liquidityProvisionsBuilder_ != null) {\n return liquidityProvisionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(liquidityProvisions_);\n }\n }", "title": "" }, { "docid": "92f2b08b69055a72aad2a50fb2462113", "score": "0.53586125", "text": "public java.util.List<io.vegaprotocol.vega.Vega.LiquidityProvision> getLiquidityProvisionsList() {\n if (liquidityProvisionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(liquidityProvisions_);\n } else {\n return liquidityProvisionsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "456607866997e98efc7db47dae4831a7", "score": "0.5357473", "text": "public java.util.List<at.bestsolution.tasktracker.model.tasktracker.Version> selectAll();", "title": "" }, { "docid": "1a8b9395762d043c439123eb75904cab", "score": "0.53512394", "text": "@java.lang.Override\n public java.util.List<? extends cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposalOrBuilder> \n getProposalsOrBuilderList() {\n return proposals_;\n }", "title": "" }, { "docid": "f57dfa41b370438b1d6e4f755c709529", "score": "0.5327397", "text": "@CalledByNative\n byte[] getDescriptors() {\n if (mConnection == null) {\n return new byte[0];\n }\n return mConnection.getRawDescriptors();\n }", "title": "" }, { "docid": "2a64842f968ed0ebb4b39d740c0a5b38", "score": "0.5324878", "text": "void listed(List<String> versions);", "title": "" }, { "docid": "c9b3882d2ff653954d66036a8c2680c7", "score": "0.53137547", "text": "public AbstractDescriptor<?>[] getDescriptors()\r\n {\n return new AbstractDescriptor<?>[] { hHeightDescriptor, dHeightDescriptor, fHeightDescriptor };\r\n }", "title": "" }, { "docid": "fb02acf9cfa8cc3d212435863a776e30", "score": "0.5306819", "text": "@java.lang.Override\n public java.util.List<injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposal> getExpiryFuturesMarketLaunchProposalsList() {\n return expiryFuturesMarketLaunchProposals_;\n }", "title": "" }, { "docid": "9bb4f54b0cfb39bba04d2214b53c89ab", "score": "0.5304459", "text": "public java.util.List<injective.exchange.v1beta1.Tx.SpotMarketParamUpdateProposal.Builder> \n getSpotMarketParamUpdateProposalsBuilderList() {\n return getSpotMarketParamUpdateProposalsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "0325f82fb7705ee77a64b67e64529167", "score": "0.53042084", "text": "public java.util.List<? extends com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptorOrBuilder> \n getDescListOrBuilderList() {\n if (descListBuilder_ != null) {\n return descListBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(descList_);\n }\n }", "title": "" }, { "docid": "e8571aac89903709383896aba7eba3a5", "score": "0.5297591", "text": "public EventSetDescriptor[] getEventSetDescriptors() {\n\treturn getEdescriptor();\n }", "title": "" }, { "docid": "a7a16c27af60bae043cf7cbe6991a8ff", "score": "0.5287456", "text": "java.util.List<io.vegaprotocol.vega.Vega.LiquidityProvision>\n getLiquidityProvisionsList();", "title": "" }, { "docid": "06dc7d1c98b4aa5633ebde61575fd02c", "score": "0.5284133", "text": "public ImmutableList<FacetRefinement> getRefinements() {\n return refinements;\n }", "title": "" }, { "docid": "c7b2bb4f2ec41ecf2876c64521de5502", "score": "0.52838796", "text": "@java.lang.Override\n public java.util.List<cosmos.distribution.v1beta1.Distribution.CommunityPoolSpendProposal> getProposalsList() {\n return proposals_;\n }", "title": "" }, { "docid": "ed99f15fbf8481d237167d29d42d046f", "score": "0.52837646", "text": "public LiveData<List<VersionEntry>> getAllVersionEntry() {\r\n return allVersionEntry;\r\n }", "title": "" }, { "docid": "67b56d7f1957cfe10027a5e92b71764f", "score": "0.5283261", "text": "java.util.List<io.vegaprotocol.vega.Governance.Vote>\n getVotesList();", "title": "" }, { "docid": "190b2cb3cff64489f8c362447925d6fe", "score": "0.5278123", "text": "@java.lang.Override\n public int getDerivativeMarketParamUpdateProposalsCount() {\n return derivativeMarketParamUpdateProposals_.size();\n }", "title": "" }, { "docid": "5e02a2acf8f84d75dbf3083dbfa06351", "score": "0.5267049", "text": "public static List<PagePar> getRev() {\n List<PagePar> lista = new ArrayList<PagePar>();\n TypePar typeParLoc;\n\n for (PagePar par : values()) {\n typeParLoc = par.typePar;\n if (typeParLoc != TypePar.provvisorio) {\n if (!par.info) {\n lista.add(par);\n }// fine del blocco if\n }// fine del blocco if\n } // fine del ciclo for-each\n\n return lista;\n }", "title": "" }, { "docid": "e606002d7a498cbd53bafa3e85431b57", "score": "0.52666014", "text": "@java.lang.Override\n public injective.exchange.v1beta1.Tx.DerivativeMarketParamUpdateProposal getDerivativeMarketParamUpdateProposals(int index) {\n return derivativeMarketParamUpdateProposals_.get(index);\n }", "title": "" }, { "docid": "c2f914bb0963c7ac1ce445d26369688f", "score": "0.52609867", "text": "public java.util.List<? extends io.vegaprotocol.vega.Governance.VoteOrBuilder>\n getVotesOrBuilderList() {\n if (votesBuilder_ != null) {\n return votesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(votes_);\n }\n }", "title": "" }, { "docid": "624ea627dc6e22c8542041fad5cade61", "score": "0.5260199", "text": "java.util.List<java.lang.Integer> getLanguagePackFormatVersionList();", "title": "" }, { "docid": "307d55a074d2bae57584dd8f0b31d718", "score": "0.52585495", "text": "public org.apache.pekko.protobufv3.internal.ProtocolStringList\n getAllAppVersionsList() {\n return allAppVersions_.getUnmodifiableView();\n }", "title": "" }, { "docid": "a8401c97335698caa6c0343ddc38b15e", "score": "0.5254483", "text": "public java.util.List<injective.exchange.v1beta1.Tx.PerpetualMarketLaunchProposal> getPerpetualMarketLaunchProposalsList() {\n if (perpetualMarketLaunchProposalsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(perpetualMarketLaunchProposals_);\n } else {\n return perpetualMarketLaunchProposalsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "b65fc89f6b42cde96ee576a7257cbf6b", "score": "0.5254367", "text": "Iterable<IModuleVersion> listDevVersions(IProgressMonitor monitor) throws CoreException;", "title": "" }, { "docid": "01d51c7be3eb02211a7f9cdff7569504", "score": "0.5251205", "text": "java.util.List<? extends io.vegaprotocol.vega.Governance.VoteOrBuilder>\n getVotesOrBuilderList();", "title": "" }, { "docid": "cfea62b731e121e05dc88ae5ccc38394", "score": "0.52508837", "text": "public IPropertyDescriptor[] getPropertyDescriptors() {\n typeProp.setItems(typeValues);\n likeProp.setItems(likeTypeValues);\n return descriptors;\n }", "title": "" }, { "docid": "b12566b4cf596efac58a4624f87dd081", "score": "0.52459675", "text": "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "title": "" }, { "docid": "c444588c83474a0905e1da9f3d1cad43", "score": "0.52429026", "text": "java.util.List<? extends schema.PriceOrBuilder> \n getFeesOrBuilderList();", "title": "" }, { "docid": "2d9d3f9e6fe5e2e41ac3d20a1f883cb3", "score": "0.5231079", "text": "public java.lang.Object[] getDescripcionesBackingList();", "title": "" }, { "docid": "4fe7540dc7a41d8fe0a6de2d43de3a18", "score": "0.522526", "text": "java.util.List<io.aelf.protobuf.generated.Client.MethodFee> \n getFeesList();", "title": "" }, { "docid": "c66a50b197e3473a699a65c1d497ded4", "score": "0.52217215", "text": "public List getDVChooserNameRev(Context context, String[] args)\r\n\tthrows Exception {\r\n\r\n\t\tVector vecDVNameRev = new Vector();\r\n\t\ttry {\r\n\t\t\tString strName = \"\";\r\n\t\t\tString strRev = \"\";\r\n\t\t\tStringBuffer stbNameRev;\r\n\r\n\t\t\tHashMap programMap = (HashMap) JPO.unpackArgs(args);\r\n\r\n\t\t\tMapList objectList = (MapList) programMap.get(\"objectList\");\r\n\t\t\tint iNumOfObjects = objectList.size();\r\n\t\t\tMap tempMap = null;\r\n\t\t\tfor (int iCnt = 0; iCnt < iNumOfObjects; iCnt++) {\r\n\t\t\t\tstbNameRev = new StringBuffer(100);\r\n\t\t\t\ttempMap = (Map) objectList.get(iCnt);\r\n\t\t\t\t// Add display name and revision, for Blank add - in Display name\r\n\t\t\t\tif (tempMap.containsKey(\"name\")) {\r\n\t\t\t\t\tstrName = (String) tempMap.get(\"name\");\r\n\t\t\t\t\tstrRev = (String) tempMap.get(\"revision\");\r\n\r\n\t\t\t\t\tstbNameRev = stbNameRev.append(strName);\r\n\t\t\t\t\tstbNameRev.append(\" \");\r\n\t\t\t\t\tstbNameRev.append(strRev);\r\n\t\t\t\t\tvecDVNameRev.add(stbNameRev.toString());\r\n\t\t\t\t} else\r\n\t\t\t\t\tvecDVNameRev.add(DomainConstants.EMPTY_STRING);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new FrameworkException(e.getMessage());\r\n\t\t}\r\n\t\treturn vecDVNameRev;\r\n\r\n\t}", "title": "" }, { "docid": "386d900f99f5d44098214325395a54e0", "score": "0.5221384", "text": "public String getBudgetVersions() {\n return budgetVersions;\n }", "title": "" }, { "docid": "3f4f2d9455514259ec78b867ae640ff5", "score": "0.5214827", "text": "public java.util.List<? extends com.goldingmedia.goldingcloud.LauncherUiProtos.CPropertyDescriptorOrBuilder> \n getDescListOrBuilderList() {\n return descList_;\n }", "title": "" }, { "docid": "80523261b7cd81f7a5e20b7adbefad28", "score": "0.520816", "text": "@java.lang.Override\n public java.util.List<? extends injective.exchange.v1beta1.Tx.ExpiryFuturesMarketLaunchProposalOrBuilder> \n getExpiryFuturesMarketLaunchProposalsOrBuilderList() {\n return expiryFuturesMarketLaunchProposals_;\n }", "title": "" }, { "docid": "99009bf5717c5f8f728721a75ec76cbc", "score": "0.52069163", "text": "public List<KeyDescriptor> getKeyDescriptors();", "title": "" }, { "docid": "eef32a4b8f13c4be2ba84ea8c9efed57", "score": "0.52055794", "text": "java.util.List<io.vegaprotocol.vega.oracles.v1.Spec.OracleSpec>\n getOracleSpecsList();", "title": "" }, { "docid": "cc0f27e788817bd11a7b993929b80f53", "score": "0.5182766", "text": "java.util.List<? extends io.aelf.protobuf.generated.Client.MethodFeeOrBuilder> \n getFeesOrBuilderList();", "title": "" }, { "docid": "9aea4a89f078c36435c35fb72449db45", "score": "0.5181586", "text": "public com.vmware.vim25.ChoiceOption getDescriptorFileNameExtensions() {\n\t\treturn descriptorFileNameExtensions;\n\t}", "title": "" }, { "docid": "764a49d3baca9638b3aa1f54211648a7", "score": "0.51799506", "text": "Iterable<IModuleVersion> listVersions(IProgressMonitor monitor) throws CoreException;", "title": "" } ]
f23e8ddfba433c1314036972d33387b9
returns a list of paragraphs
[ { "docid": "c512a93b3d4384541f69aa7eadfa354e", "score": "0.71219444", "text": "@Override\n public List<XWPFParagraph> getParagraphs() {\n return Collections.unmodifiableList(paragraphs);\n }", "title": "" } ]
[ { "docid": "662a7bed6d21f731bb9d0ecf9bca4eaa", "score": "0.8039905", "text": "public List<XWPFParagraph> getParagraphs();", "title": "" }, { "docid": "d55a51641c999e6e37067d904ab3e321", "score": "0.78742695", "text": "List<TextParagraphModel> getTextParagraphs();", "title": "" }, { "docid": "cd0325ce4cb78961c486f3659ddc0ca4", "score": "0.7868695", "text": "public ArrayList<String> getParagraphs() {\n\t\treturn paragraphs;\n\t}", "title": "" }, { "docid": "892faa50405f27607a8fdd25b21a4eba", "score": "0.7576509", "text": "public ReadOnlyList<TextRange> getParagraphs() {\n \t\treturn getRange().getParagraphs();\n \t}", "title": "" }, { "docid": "bb74b59a4a596177e2a668af114e5266", "score": "0.71611327", "text": "public XWPFParagraph getParagraphArray(int pos);", "title": "" }, { "docid": "955391ace5dedf712361db57ca50c799", "score": "0.67854744", "text": "public void paragIntoSentences() {\n\t\t//System.out.println(\"************************************************\");\n\t\t//System.out.println(\"The sentences List is the following\");\n\t\t//System.out.println(\"-------------------------------\");\n\t\tfor (int i = 0; i < sentencesList.size(); i++) {\n\t\t\t//System.out.println(sentencesList.get(i));\n\t\t}\n\t\t//System.out.println(\"We have \" + sentencesList.size() + \" sentences\");\n\t\t//System.out.println(\"and \" + paragraphs.size() + \" paragraphs\");\n\t}", "title": "" }, { "docid": "2d18afd07422d55826caa9facd6a63bd", "score": "0.65129715", "text": "public Paragraph parseParagraph(String content);", "title": "" }, { "docid": "a6597291b40ad8d5c4fd34cfe1d163a5", "score": "0.6470429", "text": "public List getParagraphTagNames();", "title": "" }, { "docid": "9ef81f636b89ebf234b6dce255bb4b6e", "score": "0.630942", "text": "public void readFileParagraphs(String fileName) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(fileName));\n\t\ttry {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\t// Split the content of the file into an array of paragraphs\n\t\t\tString parags[] = sb.toString().split(\"\\n\\n\");\n\t\t\t// Add every paragraph into an ArrayList called paragraphs\n\t\t\tfor (int i = 0; i < parags.length; i++) {\n\t\t\t\tparagraphs.add(parags[i]);\n\t\t\t}\n\t\t\tint j = 1;\n\t\t\tfor (String para : paragraphs) {\n\t\t\t\t//System.out.println(\"paragraph \" + j + \"==> \" + para);\n\t\t\t\tj += 1;\n\t\t\t}\n\t\t\t//System.out.println(\"*********************************************\");\n\t\t\t// the paragraphs to sentences\n\t\t\tint l = 1;\n\t\t\tfor (int k = 0; k < paragraphs.size(); k++) {\n\t\t\t\tString park = paragraphs.get(k);\n\t\t\t\tBreakIterator iterator = BreakIterator.getSentenceInstance(Locale.US);\n\t\t\t\tint sentences = count(iterator, park, l);\n\t\t\t\tl++;\n\t\t\t\t//System.out.println(\"Number of sentences: \" + sentences);\n\t\t\t}\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t}", "title": "" }, { "docid": "be428c98f2d134e9002b2369dbd820d2", "score": "0.62264615", "text": "public ArrayList<ParagraphType> getAvailableParagraphs() {\t\t\n\t\tArrayList<ParagraphType> result = new ArrayList<>();\n\t\t\tfor (ParagraphType type : ParagraphType.values()) {\n\t\t\t\tif (type == ParagraphType.CUSTOM) continue;\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "996bc707bf0d2ccbfd13003d92f500fe", "score": "0.6045563", "text": "public int countParagraphs()\n {\n verifyValidParaOrLine();\n return paraCount;\n }", "title": "" }, { "docid": "dff34fdc719873417b4d3234bc8d3295", "score": "0.60301185", "text": "AbstractList<String> SeparateSentences(String text);", "title": "" }, { "docid": "be46cd997199d41ca27add92d28669d9", "score": "0.60198814", "text": "void setTextParagraphs(List<TextParagraphModel> paragraphs);", "title": "" }, { "docid": "a870a40d0903c6691dceaa4e5ef591e3", "score": "0.60035694", "text": "public ArrayList<String> sentence_split(String paragraph){\n\t\tArrayList<String> res = new ArrayList<String>();\n\n\t\tString sentences[] = _sentenceDetector.sentDetect(paragraph);\n\t\tfor(String sent : sentences){\n\t\t\tif(sent.split(\" \").length > 50){\n\t\t\t\tres.addAll(Arrays.asList(sent.split(\".\")));\n\t\t\t}\n\t\t\telse\n\t\t\t\tres.add(sent);\n\t\t}\n\t\tfor(String str : res){\n\t\t\tstats.addValue(str.split(\" \").length);\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "0cc8f93101ed7d8d3d3cf0f3835919ef", "score": "0.5983221", "text": "public List getPartess() throws TorqueException\n {\n return getPartess(new Criteria(10));\n }", "title": "" }, { "docid": "6931bf44be5f42c6f7a6473c0531619b", "score": "0.5918961", "text": "Paragraph createParagraph();", "title": "" }, { "docid": "6931bf44be5f42c6f7a6473c0531619b", "score": "0.5918961", "text": "Paragraph createParagraph();", "title": "" }, { "docid": "0a5d1e635b69ab79273e6ab85bce8448", "score": "0.5848502", "text": "public PdfParagraph() {\n this.pdfLines = new ArrayList<>();\n }", "title": "" }, { "docid": "5e3386c1f03d0750272e129d32273156", "score": "0.5806849", "text": "private int getNumberOfParagraphsPresent() {\n return findAll(textBlocks).size();\n }", "title": "" }, { "docid": "764eb11fa3b775c438ed490d24c30928", "score": "0.57953733", "text": "static void print_paragraph(List<String> words, int lineLength){\n int count = 0;\n int length = lineLength;\n for(String word: words){\n count += word.length();\n if(count >= length){\n out.printf(\"%n\");\n out.printf(word);\n count = word.length();\n }\n else{\n if(count != word.length()){\n out.printf(\" \");\n count++;\n }\n out.printf(word);\n }\n }\n out.printf(\"%n\");\n words.clear();\n }", "title": "" }, { "docid": "fbc00aace381c1ad530052c13eb41353", "score": "0.57948977", "text": "private static List<String> extractText() {\r\n\t\tList<String> texts = new ArrayList<String>();\r\n\t\tfor (String content : contents) {\r\n\t\t\tString text = content.substring(TEXT_START_POSITION);\r\n\t\t\ttexts.add(text);\r\n\t\t}\r\n\t\treturn texts;\r\n\t}", "title": "" }, { "docid": "c6aa9243b7e404fdfd73d808324838bb", "score": "0.5743742", "text": "@Override\n public List<? extends Line> getLines() {\n return getTexts().stream()\n .flatMap(t -> t.getPars().stream())\n .flatMap(p -> p.getLines().stream())\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "ab535a2cd26829e7b6282c58af2101ed", "score": "0.57326424", "text": "public void newParagraph()\n {\n makeEndTable();\n newParagraphHtml();\n }", "title": "" }, { "docid": "03848963497d2705de0a628ad1fd8424", "score": "0.57322127", "text": "java.util.List<java.lang.String> getTextList();", "title": "" }, { "docid": "f8fd271ce943090cdc7a1b68e3e1d263", "score": "0.5703479", "text": "public void clearParagraphs() {\n\t\treview.clearParagraphs();\n\t}", "title": "" }, { "docid": "1fb8db1415468c42f918cfab7dc83932", "score": "0.5616569", "text": "protected JSONArray serializeParagraphs(PdfDocument pdf) {\n JSONArray result = new JSONArray();\n\n if (pdf != null) {\n for (Paragraph paragraph : pdf.getParagraphs()) {\n // Ignore the paragraph if its role doesn't match the roles filter.\n if (!hasRelevantRole(paragraph)) {\n continue;\n }\n\n JSONObject paragraphJson = serializeParagraph(paragraph);\n if (paragraphJson != null) {\n result.put(paragraphJson);\n }\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "ccf01d96cde2a8091cad95fda3a49f8a", "score": "0.5597312", "text": "public BidiRun getParagraph(int charIndex)\n {\n verifyValidParaOrLine();\n Bidi bidi = paraBidi; /* get Para object if Line object */\n verifyRange(charIndex, 0, bidi.length);\n int paraIndex;\n for (paraIndex = 0; charIndex >= bidi.paras_limit[paraIndex]; paraIndex++) {\n }\n return getParagraphByIndex(paraIndex);\n }", "title": "" }, { "docid": "483df7a0b7194fd9aca143c612414e2c", "score": "0.5594737", "text": "public void expandListParagraphs ()\n {\n if (m_eType != EBlockType.ORDERED_LIST && m_eType != EBlockType.UNORDERED_LIST)\n {\n return;\n }\n Block aOuter = m_aBlocks;\n Block aInner;\n boolean bHasParagraph = false;\n while (aOuter != null && !bHasParagraph)\n {\n if (aOuter.m_eType == EBlockType.LIST_ITEM)\n {\n aInner = aOuter.m_aBlocks;\n while (aInner != null && !bHasParagraph)\n {\n if (aInner.m_eType == EBlockType.PARAGRAPH)\n bHasParagraph = true;\n aInner = aInner.m_aNext;\n }\n }\n aOuter = aOuter.m_aNext;\n }\n if (bHasParagraph)\n {\n aOuter = m_aBlocks;\n while (aOuter != null)\n {\n if (aOuter.m_eType == EBlockType.LIST_ITEM)\n {\n aInner = aOuter.m_aBlocks;\n while (aInner != null)\n {\n if (aInner.m_eType == EBlockType.NONE)\n aInner.m_eType = EBlockType.PARAGRAPH;\n aInner = aInner.m_aNext;\n }\n }\n aOuter = aOuter.m_aNext;\n }\n }\n }", "title": "" }, { "docid": "9a763a43ad361e124034df9f7bd92c16", "score": "0.5549825", "text": "public List<String> getTextList() {\n List<String> textList = new ArrayList<>();\n textList.add(\"Summary: \" + String.valueOf(summary[0] + summary[1]));\n textList.add(\"Elements: \" + String.join(\", \", elements));\n textList.add(\"Color: \" + color);\n textList.add(\"Metal: \" + metals);\n textList.add(\"Vegetables: \" + String.join(\", \", vegetables));\n return textList;\n }", "title": "" }, { "docid": "a8a9df5a4f1aba63af4de26ae294c58b", "score": "0.55341744", "text": "public List getParagraphTagNameAndKeyStrokes();", "title": "" }, { "docid": "3a3c3eb9a1f6c9fbb2dcfeaea956715d", "score": "0.5495607", "text": "public List getPartess(Connection con) throws TorqueException\n {\n return getPartess(new Criteria(10), con);\n }", "title": "" }, { "docid": "2041eaa9fb912149508689d3a3b4451f", "score": "0.5492517", "text": "private Paragraph ProcessParagraph(int parent_order, String paraString) throws GateException\n\t{\n\t\tDocument doc = createHTMLDocument(paraString);\n\t\t\n\t\tCorpus corpus = (Corpus) Factory.createResource(\"gate.corpora.CorpusImpl\");\n\t\tcorpus.add(doc);\n\n\t\t// tell the pipeline about the corpus and run it\n\t\tparser.setCorpus(corpus);\n\t\ttry{\n\t\t\tparser.execute();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t// the document was either empty or null. \n\t\t\t// GATE was somehow unable to parse it at all.\n\t\t\tlogger.debug(e.getMessage());\n\t\t}\n\t\t\n\t\tAnnotationSet defaultAnnotSet = doc.getAnnotations();\n\t\tSet<String> annotTypesRequired = new HashSet<String>();\n\t\tannotTypesRequired.add(\"Sentence\");\n\t\tSet<Annotation> sentenceAnnotations = new HashSet<Annotation>(defaultAnnotSet.get(annotTypesRequired));\n\t\t\n\t\tthis.removeDuplicateAnnotations(sentenceAnnotations);\n\t\t\n\t\tList<Annotation> sentenceAnnotationList = new ArrayList<Annotation>(sentenceAnnotations);\n\t\tCollections.sort(sentenceAnnotationList, new OffsetComparator());\n\t\tIterator<Annotation> it = sentenceAnnotationList.iterator();\n\t\tList<Sentence> sentenceList = new ArrayList<Sentence>();\n\t\tString docString = doc.getContent().toString();\n\t\tint i=0;\n\t\t\n\t\twhile(it.hasNext()){\n\t\t\tAnnotation a = (Annotation) it.next();\n\t\t\tString sentence = docString.substring((int)a.getStartNode().getOffset().longValue(),(int)a.getEndNode().getOffset().longValue());\n\t\t\t\n\t\t\tString str[] = sentence.split(\"\\n\");\n\t\t\t\n\t\t\tfor(int j=0;j<str.length; j++) {\n\t\t\t\t\n\t\t\t\t//clean up sentence\n\t\t\t\tString clean = cleanUp(str[j]);\n\t\t\t\t\n\t\t\t\t//adjust full stop placement\n\t\t\t\tclean = adjustFullStop(clean);\n\t\t\t\t\n\t\t\t\tsentenceList.add(new Sentence(i,clean));\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tParagraph p = new Paragraph(parent_order);\n\t\tp.setSentences(sentenceList);\n\t\t\n\t\treturn p;\n\t}", "title": "" }, { "docid": "8f9bfc1cbad7a1f9b72cecf498d68447", "score": "0.54759914", "text": "private void getNounPhrases(Parse p) {\n if(p.getType().equals(\"NP\") && !(p.getType().equals(\"VB\") && p.getType().equals(\"VBP\") &&\n p.getType().equals(\"VBG\")|| p.getType().equals(\"VBD\") || p.getType().equals(\"VBN\"))){\n nounPhrases.add(p.getCoveredText());\n }\n for (Parse child : p.getChildren())\n getNounPhrases(child);\n }", "title": "" }, { "docid": "e8606f49a7453dae94b660d7bf9a9cf7", "score": "0.54326934", "text": "org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties getPPr();", "title": "" }, { "docid": "327fd9605effc0e108528769e2288a8d", "score": "0.54259026", "text": "public static List<MediaObject> getTextObjects(SmilAudioPosition audioPos) {\n\t\t/*\n\t\t * We currently support only the two common cases of \n\t\t * <par>\n\t\t * \t<text/>\n\t\t * <seq><audio/><audio/></seq>\n\t\t * </par> \n\t\t * and\n\t\t * <par>\n\t\t * \t<text/>\n\t\t * \t<audio/>\n\t\t * </par>\n\t\t */ \n\t\tTimeContainer tc = audioPos.getSmilAudioMediaObject().getParentContainer();\t\n\t\tif(tc instanceof SeqContainer) tc = tc.getParentContainer();\n\t\treturn tc.getMediaChildren(TextMediaObject.class); \n\t}", "title": "" }, { "docid": "f70733d314c4994b7dd7dec9dc9a26d1", "score": "0.5376277", "text": "public XWPFParagraph addParagraph() {\n XWPFParagraph p = new XWPFParagraph(ctTxbxContent.addNewP(), this);\n addParagraph(p);\n return p;\n }", "title": "" }, { "docid": "ab1e34d1a3c0c04a9c0f3f5f166dc8a8", "score": "0.5356644", "text": "public static ArrayList<String> readPages(String text) {\n text=text.replaceAll(\"\\r\\n\", \"¤¤\");\n text=text.replaceAll(\"\\r\", \"¤¤\");\n text=text.replaceAll(\"\\n\", \"¤¤\");\n ArrayList<String> res = new ArrayList();\n int idChar=0;\n int idPage=0;\n while (idChar<text.length()) { // boucle construction livre\n int idCharPage=idChar;\n String pageTxt=\"\";\n boolean overflowPage=false;\n int idLigne=0;\n while(idLigne<14 && idCharPage<idChar+255 && idCharPage<text.length() && !overflowPage) { // boucle construction page\n overflowPage=false;\n int idCharLigne=idChar;\n boolean overflowLigne=false;\n String ligneTxt=\"\";\n while (idChar<text.length() && !overflowLigne) { // boucle construction ligne (max 14 ligne/page)\n overflowLigne=false;\n int idCharMot=idChar;\n int motLength=0;\n String motTxt=\"\";\n boolean finMot = false;\n while(idCharMot<text.length() && !finMot) { // boucle construction mot (max 19 char/ligne)\n char curChar = text.charAt(idCharMot);\n motTxt += curChar;\n idCharMot++;\n motLength++;\n if (curChar==' ' || curChar=='¤') {\n finMot=true;\n }\n if (motLength==18) {\n finMot=true;\n }\n } // fin du mot\n if (idCharMot<idCharLigne+19) { // si le mot ne dépasse pas la fin de la ligne alors on l'ajoute a la page\n ligneTxt += motTxt;\n idChar=idCharMot;\n } else {\n overflowLigne=true;\n }\n } // fin de la ligne\n pageTxt += ligneTxt;\n //System.out.println(\"Fin ligne (\"+idLigne+\"-\"+idPage+\"): \"+(ligneTxt.contains(\"¤¤\")?\"Rien\":\"\\\\n\"));\n idLigne++;\n } // fin de la page\n res.add(pageTxt.replaceAll(\"¤¤\", \"\\n\")); // On ajoute la page au livre / .replaceAll(\"¤¤\", \"\\n\")\n idPage++;\n //System.out.println(\"Fin page\");\n } // fin du livre\n return res;\n }", "title": "" }, { "docid": "371a571c3be9eb4bded2f4da429942a6", "score": "0.534448", "text": "public synchronized CopyOnWriteArrayList<String> sentenceSegmementation(String textParagraph) \n\t {\n\t\ttempParagraph = new AtomicReference<String>(\" \");\n\t\ttempParagraph.set(textParagraph);\n\t\tsentences = new CopyOnWriteArrayList<String>();\n\t\t\n\t\t//do sentence segmentation operation.\n\t\tLocale locale = Locale.US;\n\t\tBreakIterator breaker = BreakIterator.getSentenceInstance(locale);\n\t \tbreaker.setText(tempParagraph.get());\n\t \t\n\t\tAtomicInteger boundaryInd = new AtomicInteger(breaker.first());\n\t\twhile (boundaryInd.get() != BreakIterator.DONE)\n\t\t{\n\t\t\tprevSentenceIndex.set(breaker.current());\n\t\t\tboundaryInd.set(breaker.next());\n\t\t\tcurrSentenceIndex.set(breaker.current());\n\t\t\t\t\t\t\n\t\t\tsentences.add(tempParagraph.get().substring(prevSentenceIndex.get(), currSentenceIndex.get()));\n\t\t}\n\t\treturn sentences;\n\t }", "title": "" }, { "docid": "cfb833b15f75df04763f66306df3af3a", "score": "0.53048366", "text": "List<String>getLines();", "title": "" }, { "docid": "9a00a3c7a45ddbf209cf80bb385a6ddf", "score": "0.5301489", "text": "java.util.List<cosmos.gov.v1beta1.Gov.Proposal> \n getProposalsList();", "title": "" }, { "docid": "aa179a06165a52e2848e84362a3ae28f", "score": "0.5270247", "text": "List<String> getNotes1();", "title": "" }, { "docid": "a907da27b4daed1b3105113ac011bfb4", "score": "0.5256535", "text": "java.util.List<java.lang.String>\n getSnippetList();", "title": "" }, { "docid": "0c71b8609ba8732c3b9a7fafd14b64e5", "score": "0.52326435", "text": "public String getParaIndex() {\n return paraIndex;\n }", "title": "" }, { "docid": "2400b26bf7a3babbacf7e070a829fe1a", "score": "0.5228548", "text": "private List<String> generateStringList() {\n String res = getString(R.string.test_sentences);\n int resLength = res.length();\n\n Random random = new Random();\n int listSize = random.nextInt(MAX_TEXT_VIEW_COUNT) + 1;\n int textSize = random.nextInt(MAX_TEXT_RANDOM_SIZE) + 1;\n int startIndex = DEFAULT_INDEX;\n int endIndex = textSize;\n\n List<String> textList = new ArrayList<>();\n for (int i = 0; i < listSize; i++) {\n String text = res.substring(startIndex, endIndex);\n textList.add(text);\n\n textSize = random.nextInt(MAX_TEXT_RANDOM_SIZE) + 1;\n startIndex = (startIndex > resLength) ? DEFAULT_INDEX : startIndex;\n endIndex = (endIndex + textSize > resLength) ? resLength : endIndex;\n }\n\n return textList;\n }", "title": "" }, { "docid": "ff10c3ba6017bd7077a4c67e45ad885a", "score": "0.52204007", "text": "public List getPartess(Criteria criteria) throws TorqueException\n {\n criteria.add(PartesPeer.IDOPERARIO, getIdoperario());\n return PartesPeer.doSelect(criteria);\n }", "title": "" }, { "docid": "414aa080ef73cc6656dbc22934fbabdf", "score": "0.5213585", "text": "public ParagraphStyle getParagraphStyle() {\n \t\treturn getRange().getParagraphStyle();\n \t}", "title": "" }, { "docid": "eda1a6b3aac9459d30af76efe68aebb1", "score": "0.52018017", "text": "public void newParagraphHtml()\n {\n makeEndText(false);\n if (this.tableStarted) {\n if (this.tableEntryParagraphStarted) {\n this.wem.paragraphEnd();\n this.tableEntryParagraphStarted = false;\n }\n } else if (this.paragraphStarted) {\n this.wem.paragraphEnd();\n this.paragraphStarted = false;\n }\n }", "title": "" }, { "docid": "c54ce5c869f1c8fdb8aa2cb78087512c", "score": "0.5189812", "text": "public static java.util.List<Section> readSections() {\n sections = new ArrayList<>();\n\n if (br == null) {\n //TODO error handling\n // properties haven't been read!\n }\n\n String line;\n while ((line = readLine()) != null) {\n if (line.isEmpty()) {\n // Throw away empty lines\n continue;\n }\n\n Element e = parseSingleChar(line);\n if (e == null) {\n // Nothing special, just a paragraph\n e = Paragraph.create(line);\n }\n\n if (sections.isEmpty()) {\n // This should not happen, as every page is supposed to start with a header\n sections.add(new Section());\n }\n sections.get(sections.size() - 1).add(e);\n }\n\n try {\n br.close();\n br = null;\n } catch (IOException e) {\n e.printStackTrace();\n //TODO error handling\n }\n\n return sections;\n }", "title": "" }, { "docid": "b570f3cd335266ba509e5bb4d3068839", "score": "0.5166839", "text": "String getTextParagraphPageId();", "title": "" }, { "docid": "dcee83f5dcd5066e0f993e9d08326c5c", "score": "0.5142959", "text": "private List<String> getTextFromRegions(PDDocument pdDocument, List<List<PdfRegion>> regions){\n List<String> content = new ArrayList();\n PDFTextStripperByArea stripperByArea = null;\n int pageNum = pdDocument.getNumberOfPages();\n try {\n for (int pageIndex = 0; pageIndex < pageNum; pageIndex++){\n List<PdfRegion> curRegions = regions.get(pageIndex);\n stripperByArea = new PDFTextStripperByArea();\n stripperByArea.setSortByPosition(true);\n stripperByArea.setWordSeparator(\" \");\n StringBuilder contentBuilder = new StringBuilder();\n\n int maxRegionIndex = curRegions.size() - 1;\n int curTableIndex = 0;\n // Add all regions to the stripper and tag reagions with number.\n for (PdfRegion rect: curRegions){\n stripperByArea.addRegion(Integer.toString(curTableIndex), rect.getRect());\n curTableIndex++;\n }\n // Deal with regions added in last step.\n for (curTableIndex = 0; curTableIndex <= maxRegionIndex; curTableIndex++){\n String text = \"\";\n // if table region, just fetch the table content extracted earlier.\n if(curRegions.get(curTableIndex).isTable()) {\n /*\n The space before \\n is necessary.\n Because later we will cut the whole Stringbuilder in terms of space.\n */\n\n text = \" \\n\" + TABLE_START_TAG + \" \\n\" +\n curRegions.get(curTableIndex).getTableContent() +\n \" \\n\" + TABLE_END_TAG + \" \\n\";\n contentBuilder.append(text);\n }\n // if pure text region, extract text from it.\n else {\n stripperByArea.extractRegions(pdDocument.getPage(pageIndex));\n text = stripperByArea.getTextForRegion(Integer.toString(curTableIndex));\n contentBuilder.append(text);\n }\n }\n String[] curContent = contentBuilder.toString().trim()\n .split(stripperByArea.getWordSeparator());\n StringBuilder tempsb = new StringBuilder();\n List<String> paragraphs = new ArrayList<String>();\n\n for (String line : curContent){\n boolean isNewparagraph = line.startsWith(\"\\n\");\n // If this is start or end of table\n if(line.contains(TABLE_START_TAG) || line.contains(TABLE_END_TAG)) {\n paragraphs.add(tempsb.toString() + \"\\n\");\n paragraphs.add(line + \"\\n\");\n tempsb.delete(0, tempsb.length());\n continue;\n }\n // If not a start of new paragraph, keep append to current sb.\n if(!isNewparagraph){\n tempsb.append(line.replaceAll(\"\\n\", \"\"));\n }\n // If we find new paragraph, firstly add current sb to list, then clear sb.\n else {\n paragraphs.add(tempsb.toString() + \"\\n\");\n tempsb.delete(0, tempsb.length());\n tempsb.append(line.replaceAll(\"\\n\", \"\"));\n }\n }\n content.addAll(paragraphs);\n }\n } catch (IOException e) {\n StackTraceElement l = e.getStackTrace()[e.getStackTrace().length-1];\n System.out.println(\n l.getClassName()+\"/\"+l.getMethodName()+\":\"+l.getLineNumber());\n System.out.println(e);\n }\n return content;\n }", "title": "" }, { "docid": "da88fa29253c0d6d1313ed0943a5f495", "score": "0.513411", "text": "private String clearItemListsFromParagraphs(String contenHTML) {\n final Pattern pattern1 = Pattern.compile(\"<ol>(.+?)</ol>\", Pattern.DOTALL);\n final Pattern pattern2 = Pattern.compile(\"<ul>(.+?)</ul>\", Pattern.DOTALL);\n\n\n Matcher matcher1 = pattern1.matcher(contenHTML);\n while (matcher1.find()) {\n String someOL = matcher1.group(1);\n contenHTML = contenHTML.replace(someOL,someOL.replace(\"<p>\",\"\").replace(\"</p>\",\"\"));\n }\n Matcher matcher2 = pattern2.matcher(contenHTML);\n while (matcher2.find()) {\n String someUL = matcher2.group(1);\n contenHTML = contenHTML.replace(someUL,someUL.replace(\"<p>\",\"\").replace(\"</p>\",\"\"));\n }\n return contenHTML;\n }", "title": "" }, { "docid": "920947872c8740345d60e6d2b4347172", "score": "0.5127789", "text": "public List<Prisliste> getAllPrislister() {\n\t\treturn storage.getPrislister();\n\t}", "title": "" }, { "docid": "46c2cb84b0818b136320f05105f22b5c", "score": "0.511637", "text": "java.util.List<eicio.Model.ParticleID> \n getPIDsList();", "title": "" }, { "docid": "46c2cb84b0818b136320f05105f22b5c", "score": "0.511637", "text": "java.util.List<eicio.Model.ParticleID> \n getPIDsList();", "title": "" }, { "docid": "4fdf5fb15ed32c9085e5a0736cae7f02", "score": "0.5105517", "text": "public List<Paper> getAllPapers();", "title": "" }, { "docid": "12b03ab4892b486ca7a2f0ebc518c519", "score": "0.5098859", "text": "public static ArrayList<Proposal> getProposals() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException, NoProposalsException {\r\n\t\tArrayList<Proposal> proposals = new ArrayList<Proposal>();\r\n\t\tfor (Topic t: getTopicsWrapper().getTopics()) {\r\n\t\t\tproposals.addAll(t.getProposals());\r\n\t\t}\r\n\t\treturn proposals;\r\n\t}", "title": "" }, { "docid": "d170c5c683452f2bdaf4a1451637e9dc", "score": "0.5097086", "text": "public void addParagraphs(Set<String> paragraphs) {\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(paragraphs);\t//the paragraphs come unsorted -> sort them\n\t\tArrayList<String> alreadyAdded = new ArrayList<>();\n\t\t\n\t\tif (!review.getParagraphs().isEmpty()) {\n\t\t\tfor (Paragraph p : review.getParagraphs()) {\n\t\t\t\talreadyAdded.add(p.getId());\n\t\t\t}\n\t\t}\n\t\t\n\t\tString parID = queue.poll();\t\t\t\t\t\t\t\t\t\n\t\tint order = 1;\n\t\t\n\t\twhile(parID != null) {\t\t\t\t\t\t\t\t\t\t\t//make sure they are added in the right order\n\t\t\t\n\t\t\tif (alreadyAdded.contains(parID)) {\n\t\t\t\talreadyAdded.remove(parID);\n\t\t\t\treview.setParagraphOrder(parID, order);\n\t\t\t\tparID = queue.poll();\n\t\t\t\torder++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (ParagraphType type : ParagraphType.values()) {\n\t\t\t\tif (type.getId().equals(parID)) {\n\t\t\t\t\treview.addStandardParagraph(type);\n\t\t\t\t\treview.setParagraphOrder(parID, order);\n\t\t\t\t\torder++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tparID = queue.poll();\t\t\t\n\t\t}\n\t\t\n\t\tfor (String ID : alreadyAdded) {\n\t\t\treview.deleteParagraph(ID);\n\t\t}\n\t}", "title": "" }, { "docid": "c167dee586143273365e8d50c2328c2a", "score": "0.5096563", "text": "public abstract String justifyParagraph(String paragraph);", "title": "" }, { "docid": "7cf0c5fbb45fd409130442099bc8aef8", "score": "0.50958097", "text": "private StyledText createStyledTextList(Document currentDocument,\n Paragraph paragraph, FontMetrics baseFontMetrics)\n {\n Map baseFontAttributes = baseFontMetrics.getFont().getAttributes();\n float defaultPointSize = ((Float) baseFontAttributes\n .get(TextAttribute.SIZE)).floatValue();\n String family = (String) baseFontAttributes.get(TextAttribute.FAMILY);\n\n StyledText list = StyledText.LAST;\n StyledText previous = null;\n\n int pos = 0;\n int length = paragraph.length();\n String hyperlink = null;\n\n while (pos < length)\n {\n int startPos = pos;\n String str = null;\n\n // Find the next space, newline, or end of run of a text style.\n int limit = paragraph.getRunLimit(pos);\n while (pos < limit)\n {\n char c = paragraph.charAt(pos);\n if (c == ' ' || c == '\\n')\n {\n if (pos == startPos)\n {\n pos++;\n }\n break;\n }\n pos++;\n }\n\n str = paragraph.substring(startPos, pos);\n StyledText text = new StyledText(str);\n\n // Add this text node to the list.\n if (list == StyledText.LAST)\n {\n list = text;\n }\n\n if (previous != null)\n {\n previous.setNext(text);\n }\n\n previous = text;\n\n Map attributes = paragraph.getAttributes(startPos);\n setTextAttributes(text, attributes, currentDocument, family,\n defaultPointSize);\n\n String newHyperlink = (String) attributes.get(TextStyle.HYPERLINK);\n if (newHyperlink != null)\n {\n Link link = null;\n if (!newHyperlink.equals(hyperlink))\n {\n link = new Link(newHyperlink);\n links.add(link);\n }\n else\n {\n link = (Link) links.get(links.size() - 1);\n }\n\n link.add(text);\n }\n hyperlink = newHyperlink;\n }\n return list;\n }", "title": "" }, { "docid": "8804867cd8ca74a0ebc6f73643fb6253", "score": "0.50923234", "text": "public String[] extractPhrases(String[] tokens, String[] posTags) {\n \tSpan[] chunks = chunker.chunkAsSpans(tokens, posTags);\n \tString[] chunkStrings = Span.spansToStrings(chunks, tokens);\n \t\n \tArrayList<String> result = new ArrayList<String>();\n \tfor (int i = 0; i < chunks.length; i++) {\n \t\tif (chunks[i].getType().equals(\"NP\")) {\n \t\t\tresult.add(chunkStrings[i]);\n \t\t}\n \t}\n \t\n \treturn result.toArray(new String[result.size()]);\n }", "title": "" }, { "docid": "4c39e8426bcb8b11c4fd07b262f17cfb", "score": "0.5086654", "text": "public List<String> extractResult() {\n int pageNum = pdDocumentforTabula.getNumberOfPages();\n List<List<PdfRegion>> regions = new ArrayList();\n ObjectExtractor extractor = null;\n try {\n extractor = new ObjectExtractor(pdDocumentforTabula);\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(int pageIndex = 1; pageIndex <= pageNum; pageIndex++) {\n // Get tables in current page\n PdfPageInfo pdfPageInfo =\n pageTableExtractor(pageIndex, extractor);\n\n // Get text & table Regions based on PdfPageInfo\n double pageHeight = pdfPageInfo.getPageHeight();\n double pageWidth = pdfPageInfo.getPageWidth();\n List<Table> currentPageTables = pdfPageInfo.getTables();\n List<PdfRegion> currentPagePdfRegion =\n pagePdfRegionExtractor(currentPageTables, pageHeight, pageWidth);\n regions.add(new ArrayList<PdfRegion>(currentPagePdfRegion));\n }\n List<String> content = getTextFromRegions(pdDocumentforPDFBox, regions);\n return content;\n }", "title": "" }, { "docid": "9bba99455149aa3f13f345f8857bffc2", "score": "0.50857097", "text": "public String getLines();", "title": "" }, { "docid": "df321da8c97f5d94aa62a7bcbb903e6b", "score": "0.50776094", "text": "@Override\n\tpublic List<ProcedureModifier> translateFindAll(String result) \n\t{\n\t\tList<ProcedureModifier> modifiers = new ArrayList<ProcedureModifier>();\n\t\t\n\t\t// Split the result into lines\n\t\tString[] lines = StringUtils.Split(result, LINE_SEPARATOR);\n\n\t\t// Populate the list, starting with line 1 (if it exists). Line 0 gives the record count.\n\t\tfor (int i=1; i<lines.length; i++)\n\t\t{\n\t\t\t\n\t\t\t// Split the line into fields\n\t\t\tString[] fields = StringUtils.Split(lines[i], StringUtils.CARET);\n\n\t\t\t// Create the procedure modifier\n\t\t\tProcedureModifier modifier = new ProcedureModifier();\n\t\t\tmodifier.setId(Integer.parseInt(fields[1]));\n\t\t\tmodifier.setImagingTypeId(Integer.parseInt(fields[2]));\n\t\t\tmodifier.setName(fields[0]);\n\t\t\t\n\t\t\t// Add it to the list\n\t\t\tmodifiers.add(modifier);\n\t\t}\n\t\t\n\t\treturn modifiers;\t\n\t}", "title": "" }, { "docid": "6c520f6a681fb0974e216efd0f18c54b", "score": "0.5058178", "text": "protected static <T> List<T> pageContentList(List<T> list, Pageable pageable) {\n int start = (int) pageable.getOffset();\n int end = Math.min((start + pageable.getPageSize()), list.size());\n\n return list.subList(start, end);\n }", "title": "" }, { "docid": "39b497b390ecd7c1035367af6e1b0090", "score": "0.50531137", "text": "public List<Prodotto> getList() {\n return prodottoList;\n }", "title": "" }, { "docid": "b97f69e0bbc011e556f5afa361c8c9e2", "score": "0.5049543", "text": "List<Pe> getPeList();", "title": "" }, { "docid": "d82cd48695993528f7d8a3193ecb53a6", "score": "0.50447094", "text": "public java.util.List<eicio.Model.ParticleID> getPIDsList() {\n if (pIDsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(pIDs_);\n } else {\n return pIDsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "d82cd48695993528f7d8a3193ecb53a6", "score": "0.50447094", "text": "public java.util.List<eicio.Model.ParticleID> getPIDsList() {\n if (pIDsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(pIDs_);\n } else {\n return pIDsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "b643768093b78aef1a38cd54a91b6fa2", "score": "0.5023869", "text": "public Iterable<String> example()\n {\n List<String> sList = new ArrayList<>();\n sList.add(\"Cameron is such a good TA, i'm going to give him 5 stars on every review!\");\n return sList;\n }", "title": "" }, { "docid": "a39cfe609740a0cb1797c04e27bc19e7", "score": "0.5021921", "text": "private void generatePreps()\n {\n preps = new ArrayList<String>();\n Scanner in = null;\n try\n {\n in = new Scanner(cont.getAssets().open(\"prepositions.txt\"));\n in.useDelimiter(\" \");\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n while (in != null && in.hasNext())\n {\n preps.add(in.next());\n }\n }", "title": "" }, { "docid": "c4806d4911622a499d9eb03f324d05b1", "score": "0.50161976", "text": "public static boolean isParagraph(String line) {\n Objects.requireNonNull(line);\n\n return TextBlock.isText(line);\n }", "title": "" }, { "docid": "f1d0f5b6db2f585773c629c39c1a8175", "score": "0.49998426", "text": "private XWPFParagraph CreateNewParagraph(XWPFDocument document)\n {\n XWPFParagraph paragraph = document.createParagraph();\n return paragraph;\n }", "title": "" }, { "docid": "fc7eaf0f3f362d1835bd91edb13e5329", "score": "0.4986082", "text": "private String getStatForAllParas(String[] parasToList) {\n String tableHeaders = \"<tr><th>Para num</th>\" + \"<th>Characters</th>\" + \"<th>Speaker</th>\" + \"<th>Person names</th>\" + \"<th>Place names</th>\" + \"<th>Dates</th>\" + \"<th>Added nodes</th>\" + \"<th>Links from</th>\" + \"<th>Links to</th>\" + \"<th>Text excerpt</th></tr>\\n\";\n String returnString = DomUtils.getXhtmlHeader(\"Added data to paragraph level nodes\") + \"<table border='1'>\\n\" + tableHeaders;\n AddedNode[] addedNodes;\n GeoModelLink[] linksFrom, linksTo;\n Element paraElem, childElem;\n String parentNodeId, textExcerpt, childNodeId, nameType;\n ExtendableObjectList listOfChildIds;\n int countAddedNodes, countLinksFrom, countLinksTo, stringLength, countPersNames, countPlaceNames, countDates, lineCount = 0;\n int totalAddedNodes = 0, totalLinksFrom = 0, totalLinksTo = 0, totalStringLength = 0, totalPersNames = 0, totalPlaceNames = 0, totalDates = 0;\n ExtendableStringList listOfAllPlaceIds = new ExtendableStringList();\n String speakerId;\n for (int i = 0; i < parasToList.length; i++) {\n paraElem = (Element) listOfNodes.getElem(findNodeNumberFromNodeId(parasToList[i]));\n parentNodeId = parasToList[i];\n countAddedNodes = 0;\n countLinksFrom = 0;\n countLinksTo = 0;\n stringLength = 0;\n speakerId = \"\";\n countPersNames = 0;\n countPlaceNames = 0;\n countDates = 0;\n listOfChildIds = new ExtendableObjectList();\n GeoModelPerson speaker = myGeoModelPersonReg.getGeoModelPersonFromSpeakerNodeId(parentNodeId);\n if (speaker != null) {\n listOfChildIds.addElem(speaker.getId());\n speakerId = speaker.getId();\n }\n NodeList listNodes = paraElem.getElementsByTagName(\"name\");\n for (int k = 0; k < listNodes.getLength(); k++) {\n childElem = (Element) listNodes.item(k);\n childNodeId = childElem.getAttribute(\"xml:id\");\n listOfChildIds.addElem(childNodeId);\n nameType = childElem.getAttribute(\"type\");\n if (nameType.equals(\"person\")) countPersNames++; else if (nameType.equals(\"place\")) {\n countPlaceNames++;\n listOfAllPlaceIds.addElem(childNodeId);\n } else printErrMessage(\"getStatForAllParas: Wrong type for name! XML:ID: \" + parentNodeId);\n }\n listNodes = paraElem.getElementsByTagName(\"date\");\n for (int k = 0; k < listNodes.getLength(); k++) {\n childElem = (Element) listNodes.item(k);\n childNodeId = childElem.getAttribute(\"xml:id\");\n listOfChildIds.addElem(childNodeId);\n countDates++;\n }\n addedNodes = myAddedNodeSet.getAddedNodeByParent(parentNodeId);\n if (addedNodes != null) {\n AddedNode thisAddedNode;\n for (int k = 0; k < addedNodes.length; k++) {\n thisAddedNode = addedNodes[k];\n if (thisAddedNode != null) {\n childNodeId = thisAddedNode.getId();\n listOfChildIds.addElem(childNodeId);\n countAddedNodes++;\n }\n }\n }\n for (int j = 0; j < listOfChildIds.getNextFree(); j++) {\n if (listOfChildIds.getElem(j) != null) {\n childNodeId = (String) listOfChildIds.getElem(j);\n linksFrom = myGeoModelLinkSet.getLinkFrom(childNodeId);\n countLinksFrom += EddDataUtils.countArrayNonnull(linksFrom);\n linksTo = myGeoModelLinkSet.getLinkTo(childNodeId);\n countLinksTo += EddDataUtils.countArrayNonnull(linksTo);\n }\n }\n textExcerpt = paraElem.getTextContent();\n stringLength = textExcerpt.length();\n if (stringLength > 50) textExcerpt = textExcerpt.substring(0, 48) + \"...\";\n returnString = returnString + \"<tr align='right'><td>\" + parentNodeId + \"</td><td>\" + stringLength + \"</td><td>\" + speakerId + \"</td><td>\" + countPersNames + \"</td><td>\" + countPlaceNames + \"</td><td>\" + countDates + \"</td><td>\" + countAddedNodes + \"</td><td>\" + countLinksFrom + \"</td><td>\" + countLinksTo + \"</td><td align='left'>\" + textExcerpt + \"</td></tr>\\n\";\n if (lineCount++ > 20) {\n returnString = returnString + tableHeaders;\n lineCount = 0;\n }\n totalAddedNodes += countAddedNodes;\n totalLinksFrom += countLinksFrom;\n totalLinksTo += countLinksTo;\n totalStringLength += stringLength;\n totalPersNames += countPersNames;\n totalPlaceNames += countPlaceNames;\n totalDates += countDates;\n }\n returnString = returnString + \"<tr><th>Para count</th>\" + \"<th>Characters</th>\" + \"<th>Person names</th>\" + \"<th>Place names</th>\" + \"<th>Coref place names</th>\" + \"<th>Dates</th>\" + \"<th>Added nodes</th>\" + \"<th>Links from</th>\" + \"<th>Links to</th>\" + \"<th></th></tr>\\n\";\n returnString = returnString + \"<tr align='right'><td>\" + parasToList.length + \"</td><td>\" + totalStringLength + \"</td><td>\" + totalPersNames + \"</td><td>\" + totalPlaceNames + \"</td><td>\" + myGeoModelPlaceReg.removeCorefDuplicates(listOfAllPlaceIds).length + \"</td><td>\" + totalDates + \"</td><td>\" + totalAddedNodes + \"</td><td>\" + totalLinksFrom + \"</td><td>\" + totalLinksTo + \"</td><td align='left'>\" + \"</td></tr>\\n\";\n return returnString + DomUtils.getXhtmlFooter();\n }", "title": "" }, { "docid": "ba36f8151b06279bbefab6225dbf1c12", "score": "0.49776345", "text": "public List<Note> getNotes();", "title": "" }, { "docid": "ff0f29d4491cacb781f688ffa2f2fde2", "score": "0.4974477", "text": "public static Publications conSplit(ArrayList<String> lines)\n\t{\n\t\t\tPublications pub = new Publications();\n\t\t\tList<String> conferenceLines = new ArrayList<String>();\n\t\t\n\t\t\tfor(int i =0; lines.size() > i; ++i)\n\t\t\t{\n\t\t\t\tif(lines.get(i).toString().equals(\"Conference Paper\"))\n\t\t\t\t{\n\t\t\t\t\tif(lines.get(i+6).toString() != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tconferenceLines.add(lines.get(i).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+1).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+2).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+3).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+4).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+5).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+6).toString());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tconferenceLines.add(lines.get(i).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+1).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+2).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+3).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+4).toString());\n\t\t\t\t\t\tconferenceLines.add(lines.get(i+5).toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int j =0; conferenceLines.size() > j;j = j+7)\n\t\t\t{\n\t\t\t\t\tList<String> authors = new ArrayList<String>();\n\t\t\t\t\tauthors.addAll(Arrays.asList(conferenceLines.get(j+1).toString().split(\";\")));\n\t\t\t\t\tpub.addPaper(new ConPaper(authors,conferenceLines.get(j+2).toString(),conferenceLines.get(j+3).toString(),conferenceLines.get(j+4).toString(),conferenceLines.get(j+5).toString(),conferenceLines.get(j+6).toString()));\n\t\t\t}\n\t\t\treturn pub;\n\t\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "46dc04e498c301827978fef384052060", "score": "0.49685192", "text": "public java.util.List<cosmos.gov.v1beta1.Gov.Proposal> getProposalsList() {\n if (proposalsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(proposals_);\n } else {\n return proposalsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "bd1437c0555163a91e8aeed46b52292d", "score": "0.49535984", "text": "private static List<String> contentToLines(String content) {\n return Lists.newLinkedList(\n Splitter.on(\n System.getProperty(\"line.separator\")\n ).split(content)\n );\n }", "title": "" }, { "docid": "5de9ece726ce02b8d742234e15f8bc32", "score": "0.49464032", "text": "public String getReturnPara() {\n return returnPara;\n }", "title": "" }, { "docid": "a3b8a964889ef5553655db2ff9f1c11d", "score": "0.49443015", "text": "public List<String> getData(){\n if(TextUtils.isEmpty(content)) return null;\n return Arrays.asList( content.split(\"\\n\"));\n }", "title": "" }, { "docid": "f7a98c740343fcbec7155b9dce2604ed", "score": "0.4937207", "text": "public List<Slide> getSlides() {\n\t\tArrayList<Slide> output = new ArrayList<Slide>();\n\t\tfor (String index : slides.keySet()) {\n\t\t\toutput.add(slides.get(index));\n\t\t}\n\t\treturn output;\n\n\t}", "title": "" }, { "docid": "d0494275b6ece926d8977da127324203", "score": "0.49306273", "text": "public List<Pessoa> listPessoas() {\n\t\treturn find.all();\n\t}", "title": "" }, { "docid": "aa44367790c81766d344a353148dde45", "score": "0.492065", "text": "public ArrayList<String> getPhrases() {\n\t\treturn phrases;\n\t}", "title": "" }, { "docid": "7b7f00518a82eb98f3d7abc4dfe2e6f1", "score": "0.49152508", "text": "public List<Prueba> getAllPruebas() {\n\t\t\n\t\tQuery query = manager.createNamedQuery(\"findAllPruebas\");\n\t\tList<Prueba> pruebas = query.getResultList();\n\t\t\n\t\treturn pruebas;\n\t}", "title": "" }, { "docid": "5c9c00fad8b0281a2cc4386039f85846", "score": "0.49111757", "text": "java.util.List<cc.refectorie.proj.relation.protobuf.DocumentProtos.Document.Sentence> \n getSentencesList();", "title": "" }, { "docid": "2df34ab879ed491be89b3043aee65c88", "score": "0.49072775", "text": "java.util.List<com.github.yeriomin.playstoreapi.TranslatedText> \n getTranslatedSnippetList();", "title": "" }, { "docid": "34c91dad3f15f7c54ed4689e888fa31e", "score": "0.4907002", "text": "@Override\n\tpublic List<Pessoa> listPessoa() {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tList<Pessoa> pessoaList = session.createQuery(\"from Pessoa\").list();\n\t\tfor (Pessoa p : pessoaList) {\n\n\t\t\tlogger.info(\"Person da lista= \" + p);\n\n\t\t}\n\t\treturn pessoaList;\n\t}", "title": "" }, { "docid": "152e58c0f1a1f07a99a42d9f4261ffff", "score": "0.48960248", "text": "public List getPartess(Criteria criteria, Connection con)\n throws TorqueException\n {\n criteria.add(PartesPeer.IDOPERARIO, getIdoperario());\n return PartesPeer.doSelect(criteria, con);\n }", "title": "" }, { "docid": "ba8017280d5c50e2e50afaf5f04f7ec2", "score": "0.488732", "text": "private String getCaretParagraph() {\n return getEditor().getText( getCurrentParagraph() );\n }", "title": "" }, { "docid": "3bba083e31ab1c205235e5c855c2ae4d", "score": "0.4884337", "text": "public java.util.Collection getDescripciones();", "title": "" }, { "docid": "971d70fe7c5b341958890d9464587e7f", "score": "0.48813075", "text": "public static List<NoticeText> getFixtureList() {\r\n\t\ttry {\r\n\t\t\tList<NoticeText> list = new ArrayList<NoticeText>();\r\n\t\t\tlist.add(new NoticeText(getFixtureElement()));\r\n\t\t\treturn (list);\r\n\t\t}\r\n\t\tcatch (InvalidDDMSException e) {\r\n\t\t\tfail(\"Could not create fixture: \" + e.getMessage());\r\n\t\t}\r\n\t\treturn (null);\r\n\t}", "title": "" }, { "docid": "1f7b331259c8cac5b2a58145aeb2bea7", "score": "0.48652565", "text": "private String getStatForAllParas() {\n String tableHeaders = \"<tr><th>Para num</th>\" + \"<th>Characters</th>\" + \"<th>Speaker</th>\" + \"<th>Person names</th>\" + \"<th>Place names</th>\" + \"<th>Dates</th>\" + \"<th>Added nodes</th>\" + \"<th>Links from</th>\" + \"<th>Links to</th>\" + \"<th>Text excerpt</th></tr>\\n\";\n String returnString = DomUtils.getXhtmlHeader(\"Added data to paragraph level nodes\") + \"<table border='1'>\\n\" + tableHeaders;\n AddedNode[] addedNodes;\n GeoModelLink[] linksFrom, linksTo;\n Element paraElem, childElem;\n String parentNodeId, textExcerpt, childNodeId, nameType;\n ExtendableObjectList listOfChildIds;\n int countAddedNodes, countLinksFrom, countLinksTo, stringLength, countPersNames, countPlaceNames, countDates, lineCount = 0;\n String speakerId;\n for (int i = 0; i < listOfNodes.getNextFree(); i++) {\n paraElem = (Element) listOfNodes.item(i);\n parentNodeId = paraElem.getAttribute(\"xml:id\");\n countAddedNodes = 0;\n countLinksFrom = 0;\n countLinksTo = 0;\n speakerId = \"\";\n countPersNames = 0;\n countPlaceNames = 0;\n countDates = 0;\n listOfChildIds = new ExtendableObjectList();\n GeoModelPerson speaker = myGeoModelPersonReg.getGeoModelPersonFromSpeakerNodeId(parentNodeId);\n if (speaker != null) {\n listOfChildIds.addElem(speaker.getId());\n speakerId = speaker.getId();\n }\n NodeList listNodes = paraElem.getElementsByTagName(\"name\");\n for (int k = 0; k < listNodes.getLength(); k++) {\n childElem = (Element) listNodes.item(k);\n childNodeId = childElem.getAttribute(\"xml:id\");\n listOfChildIds.addElem(childNodeId);\n nameType = childElem.getAttribute(\"type\");\n if (nameType.equals(\"person\")) countPersNames++; else if (nameType.equals(\"place\")) countPlaceNames++; else printErrMessage(\"getStatForAllParas: Wrong type for name! XML:ID: \" + parentNodeId);\n }\n listNodes = paraElem.getElementsByTagName(\"date\");\n for (int k = 0; k < listNodes.getLength(); k++) {\n childElem = (Element) listNodes.item(k);\n childNodeId = childElem.getAttribute(\"xml:id\");\n listOfChildIds.addElem(childNodeId);\n countDates++;\n }\n addedNodes = myAddedNodeSet.getAddedNodeByParent(parentNodeId);\n if (addedNodes != null) {\n AddedNode thisAddedNode;\n for (int k = 0; k < addedNodes.length; k++) {\n thisAddedNode = addedNodes[k];\n if (thisAddedNode != null) {\n childNodeId = thisAddedNode.getId();\n listOfChildIds.addElem(childNodeId);\n countAddedNodes++;\n }\n }\n }\n for (int j = 0; j < listOfChildIds.getNextFree(); j++) {\n if (listOfChildIds.getElem(j) != null) {\n childNodeId = (String) listOfChildIds.getElem(j);\n linksFrom = myGeoModelLinkSet.getLinkFrom(childNodeId);\n countLinksFrom += EddDataUtils.countArrayNonnull(linksFrom);\n linksTo = myGeoModelLinkSet.getLinkTo(childNodeId);\n countLinksTo += EddDataUtils.countArrayNonnull(linksTo);\n }\n }\n if (countAddedNodes > 0 || countLinksFrom > 0 || countLinksTo > 0) {\n textExcerpt = paraElem.getTextContent();\n stringLength = textExcerpt.length();\n if (stringLength > 50) textExcerpt = textExcerpt.substring(0, 48) + \"...\";\n returnString = returnString + \"<tr align='right'><td>\" + parentNodeId + \"</td><td>\" + stringLength + \"</td><td>\" + speakerId + \"</td><td>\" + countPersNames + \"</td><td>\" + countPlaceNames + \"</td><td>\" + countDates + \"</td><td>\" + countAddedNodes + \"</td><td>\" + countLinksFrom + \"</td><td>\" + countLinksTo + \"</td><td align='left'>\" + textExcerpt + \"</td></tr>\\n\";\n if (lineCount++ > 20) {\n returnString = returnString + tableHeaders;\n lineCount = 0;\n }\n }\n }\n return returnString + DomUtils.getXhtmlFooter();\n }", "title": "" }, { "docid": "8b4af3fdd84847c9de3e00cf48ce1058", "score": "0.4859709", "text": "@Override\n public XWPFParagraph insertNewParagraph(final XmlCursor cursor) {\n if (!isCursorInTextBox(cursor)) {\n return null;\n }\n\n String uri = CTP.type.getName().getNamespaceURI();\n String localPart = \"p\";\n cursor.beginElement(localPart, uri);\n cursor.toParent();\n CTP p = (CTP) cursor.getObject();\n XWPFParagraph newP = new XWPFParagraph(p, this);\n XmlObject o = null;\n while (!(o instanceof CTP) && (cursor.toPrevSibling())) {\n o = cursor.getObject();\n }\n if ((!(o instanceof CTP)) || o == p) {\n paragraphs.add(0, newP);\n } else {\n int pos = paragraphs.indexOf(getParagraph((CTP) o)) + 1;\n paragraphs.add(pos, newP);\n }\n int i = 0;\n XmlCursor p2 = p.newCursor();\n cursor.toCursor(p2);\n p2.dispose();\n while (cursor.toPrevSibling()) {\n o = cursor.getObject();\n if (o instanceof CTP || o instanceof CTTbl) {\n i++;\n }\n }\n bodyElements.add(i, newP);\n p2 = p.newCursor();\n cursor.toCursor(p2);\n p2.dispose();\n cursor.toEndToken();\n return newP;\n }", "title": "" }, { "docid": "ac6af8080ce95712c58ba03734a99878", "score": "0.48359647", "text": "private String listPrepositions() {\n\t\tString s;\n\t\ts = \"\\nPrepositions : \";\n\t\tfor (String t : prepAtomsArrayList) {\n\t\t\ts = s.concat(\" \" + t + \", \");\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "89d2174bdd48557637fe60af4a071dcc", "score": "0.48322067", "text": "public BidiRun getParagraphByIndex(int paraIndex)\n {\n verifyValidParaOrLine();\n verifyRange(paraIndex, 0, paraCount);\n\n Bidi bidi = paraBidi; /* get Para object if Line object */\n int paraStart;\n if (paraIndex == 0) {\n paraStart = 0;\n } else {\n paraStart = bidi.paras_limit[paraIndex - 1];\n }\n BidiRun bidiRun = new BidiRun();\n bidiRun.start = paraStart;\n bidiRun.limit = bidi.paras_limit[paraIndex];\n bidiRun.level = GetParaLevelAt(paraStart);\n return bidiRun;\n }", "title": "" }, { "docid": "b28960a090f0486c849136af502b5963", "score": "0.48302263", "text": "public ArrayList<String> getPnodes()\n\t{\n\t\treturn pnodes;\n\t}", "title": "" }, { "docid": "09cf80282203cb82de90e32fb9b70dfb", "score": "0.4827245", "text": "private static List<String> lsPersonasRead(){\n\t\tList<String> lsPersonaRead =\n\t\t\t\tClientRestUtily.readListaTxt(PERSONA_JSON_DIR+\"listaRead.txt\");\n\t\t\t\t//new ArrayList<String>();\n\t\t\n\t\treturn lsPersonaRead;\n\t}", "title": "" }, { "docid": "15bdfbaa4a07d569ad91912429686d8a", "score": "0.48264426", "text": "public ArrayList<PassageSection> getPassageSection() {\n return passageList;\n }", "title": "" }, { "docid": "d543ad56c301b52393fd9c172d7e3449", "score": "0.48173124", "text": "public Pose[] getPoses() {\n\t\treturn this.poses;\n\t}", "title": "" }, { "docid": "b0a376c68ebde9d15914869b9435a634", "score": "0.48071247", "text": "public Object[] getParcels() {\r\n return parcels.toArray();\r\n }", "title": "" }, { "docid": "eef6e54d42ef1e81d3cf607b452762db", "score": "0.48045254", "text": "private int getCurrentParagraph() {\n return getEditor().getCurrentParagraph();\n }", "title": "" } ]
4d4f9956d7aff4de9d7cf4ccc7200c53
This adds a property descriptor for the Start Point feature.
[ { "docid": "8eebe9255310bd273871cac0a276a077", "score": "0.78863853", "text": "protected void addStartPointPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_PartWithSample_startPoint_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_PartWithSample_startPoint_feature\", \"_UI_PartWithSample_type\"),\r\n\t\t\t\t EsxPackage.Literals.PART_WITH_SAMPLE__START_POINT,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "title": "" } ]
[ { "docid": "e13746578a28c3c3a0436d84593df38c", "score": "0.70448816", "text": "protected void addStartPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_TimedProcessing_start_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_TimedProcessing_start_feature\", \"_UI_TimedProcessing_type\"),\r\n\t\t\t\t TimePackage.Literals.TIMED_PROCESSING__START,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t true,\r\n\t\t\t\t null,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "title": "" }, { "docid": "2813172f0173bda306de347aa00ae196", "score": "0.70229596", "text": "public void setStartPoint(PointF startPoint) {\n this.startPoint = startPoint;\n }", "title": "" }, { "docid": "c15f0cf40b49e1369a7c13ed28f9423c", "score": "0.68694717", "text": "@Override\r\n\tpublic void setStartPoint(Point startPoint) {\n\t\tthis.startPoint=startPoint;\r\n\t}", "title": "" }, { "docid": "9cdaa77fce3045f5e8088e4193c16e6c", "score": "0.6754118", "text": "public void setStart(Point start) {\n this.start = start;\n }", "title": "" }, { "docid": "ba78d44573f5236e871ba2ce649878ea", "score": "0.66240823", "text": "public PointF getStartPoint() {\n return startPoint;\n }", "title": "" }, { "docid": "1ac7d14ff02903e6049bfd9e92556c72", "score": "0.6555262", "text": "ReadOnlyObjectProperty<Point2D> startProperty();", "title": "" }, { "docid": "335c9239a3f67d40b06f63e1402fbd34", "score": "0.6476523", "text": "public Point getStart(){\n return start;\n }", "title": "" }, { "docid": "9362a1524e55eca94137a1ccf1a6ca5f", "score": "0.64239365", "text": "void setStartPoint(Point thePoint);", "title": "" }, { "docid": "a197fcb6d4a515711e727a5813c4d671", "score": "0.64112407", "text": "@Override\n public Point getStartPoint() {\n return myStartPoint.getLocation();\n }", "title": "" }, { "docid": "710a5b0000c516fbb62f9147fa6fd183", "score": "0.6403073", "text": "public Point getStart() {\n return start;\n }", "title": "" }, { "docid": "d7ab42f72b5d583e88b927ac8d1048e3", "score": "0.6169025", "text": "public BooleanProperty startProperty() {\n return start;\n }", "title": "" }, { "docid": "9ee2d9428ca03dfd9d69089a7d92ec55", "score": "0.6035441", "text": "public Point start() {\n return this.start;\n }", "title": "" }, { "docid": "9ee2d9428ca03dfd9d69089a7d92ec55", "score": "0.6035441", "text": "public Point start() {\n return this.start;\n }", "title": "" }, { "docid": "8c7db99756b785d8584c46839877a70b", "score": "0.60350275", "text": "com.google.devtools.kythe.proto.PointOrBuilder getStartOrBuilder();", "title": "" }, { "docid": "6b3edbfdf33e537ca88566f843323fa6", "score": "0.6025946", "text": "public void setStart(Point start) {\n startPos = start;\n }", "title": "" }, { "docid": "2c7ff0584d220839b175076aabcd350e", "score": "0.59650177", "text": "public double[] getStartPoint() {\n\t\treturn startPoint;\n\t}", "title": "" }, { "docid": "faedea5c3c66316498c7bdfa6cfa36d4", "score": "0.5949235", "text": "public PointXY getStartPoint() {\n\t\treturn hbd.getStartPoint();\n\t}", "title": "" }, { "docid": "5661116324a2fa5b8f39542d605c28a7", "score": "0.5925967", "text": "Point getStartPoint();", "title": "" }, { "docid": "2cdcc38df3691120f51e76f42b05beae", "score": "0.5877125", "text": "public Point getStart() {\n return startPos;\n }", "title": "" }, { "docid": "a5a7f764bf9a2dcc3c22d94b87756911", "score": "0.5870778", "text": "protected void addStartTimePropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_SystemModel_startTime_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_SystemModel_startTime_feature\", \"_UI_SystemModel_type\"),\n SDModelPackage.Literals.SYSTEM_MODEL__START_TIME,\n true,\n false,\n false,\n ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n null,\n null));\n }", "title": "" }, { "docid": "109ca6d2912aff3ab121a9803183ff36", "score": "0.57823545", "text": "public void setStartPoint(final Point thePoint) {\n myStartPoint.setLocation(thePoint);\n }", "title": "" }, { "docid": "a56fec125b15654173f018f0e29b3a88", "score": "0.570267", "text": "Point2D getStart();", "title": "" }, { "docid": "8f79fc6490da41d22fad251675f9c3b1", "score": "0.5693211", "text": "public void setStartXCoord(double startX) {\n this.startX = startX;\n this.stepX = null;\n }", "title": "" }, { "docid": "bc092c304723029b24fa75ef63391f53", "score": "0.5680461", "text": "com.google.devtools.kythe.proto.Point getStart();", "title": "" }, { "docid": "cb83aa96901e4feff7754f17a16f37b2", "score": "0.56655866", "text": "public void setStart(IPoint3D start){\r\n\t\tthis.start = start;\r\n\t}", "title": "" }, { "docid": "c732f0f0c19b168b87cb7d4c1e7b1af3", "score": "0.5665227", "text": "public ObjectProperty<Point2D> pointProperty() { return point; }", "title": "" }, { "docid": "55a5ce9b1a88f1ac337072854c5009cb", "score": "0.5655559", "text": "public IPoint3D getStart(){\r\n\t\treturn start;\r\n\t}", "title": "" }, { "docid": "93e08387644a44ca22d0d3a584158a2e", "score": "0.56257826", "text": "public float getStart() {\n return start;\n }", "title": "" }, { "docid": "571f2f27c127bd52c0aa58b8b2ef42e5", "score": "0.55875903", "text": "public Textmarker getStartMarkerOfProperty(String propertyKey);", "title": "" }, { "docid": "f16a74bb06d8725a18b0a697f926f47a", "score": "0.5582403", "text": "public double getStartXCoord() {\n return this.startX;\n }", "title": "" }, { "docid": "82be6c1c63279e6bdd72241e7b605519", "score": "0.5569261", "text": "public double getStartX() {return startX;}", "title": "" }, { "docid": "8b9b0cb0c6f71f36d1277d820e584288", "score": "0.55579156", "text": "@Override\n public Point start() {\n return points.get(0);\n }", "title": "" }, { "docid": "313c5d9ee6214a8fb3c25792803e4a24", "score": "0.5538627", "text": "public void setStart(boolean value) {\n this.start = value;\n }", "title": "" }, { "docid": "313c5d9ee6214a8fb3c25792803e4a24", "score": "0.5538627", "text": "public void setStart(boolean value) {\n this.start = value;\n }", "title": "" }, { "docid": "395467a36c64640401e46af2219b5d6a", "score": "0.5516777", "text": "public double getStart() {\n return start_;\n }", "title": "" }, { "docid": "5eaac85320f13210c72f387553920d2e", "score": "0.5491734", "text": "public void enablePropertyMetadata()\n {\n List<String> allowedValues = new LinkedList<String>();\n iPropertyMetadata = new PropertyString(new ParameterString(\"Metadata\", allowedValues));\n addProperty(iPropertyMetadata);\n }", "title": "" }, { "docid": "ed268f644244c568031e8fb16e723014", "score": "0.547475", "text": "public void setStart(int start) {\n this.start=start;\n }", "title": "" }, { "docid": "ed268f644244c568031e8fb16e723014", "score": "0.547475", "text": "public void setStart(int start) {\n this.start=start;\n }", "title": "" }, { "docid": "9f91a440624862cb1bd078407842048f", "score": "0.54711884", "text": "public void setStart(double start) {\n //this.start = start;\n initVals.setStart(start);\n }", "title": "" }, { "docid": "0854f40ddc22821d63291b96541c3fd9", "score": "0.5458686", "text": "public String getStart(){\n return this.start;\n }", "title": "" }, { "docid": "1738cda4dae025cf263d2ecdcf9d318a", "score": "0.5448449", "text": "public AddProperty() {\n super(\"Add Property\");\n }", "title": "" }, { "docid": "355aaed718373e4b042db901ad8fea6b", "score": "0.5447978", "text": "public void setStartXPos(double startXPos){\n this.startXPos = startXPos;\n }", "title": "" }, { "docid": "8c46b34d227585bd22d2f5e47c9ca179", "score": "0.5446444", "text": "public void addPoint(PointF point) {\n if (points.size() == 0) {\n startPoint = point;\n }\n points.add(point);\n endPoint = point;\n }", "title": "" }, { "docid": "b0e969c4ab2e49710b68e3638c673edb", "score": "0.54249847", "text": "public double getStartValue() {\n return start;\n }", "title": "" }, { "docid": "17ec97cb17f1a76d8b3431f20e9dfe47", "score": "0.54219973", "text": "public GeneCoordinate setStart(IntegerDt theValue) {\n\t\tmyStart = theValue;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "336abc3fd12b151edb87efd43e1bea66", "score": "0.5411876", "text": "public void setStart(float st) { start = st; }", "title": "" }, { "docid": "9244ab2590a50046a950517d3eaebe77", "score": "0.5408488", "text": "public double getStart() {\n return start_;\n }", "title": "" }, { "docid": "163c9ec95a34546531d937313f465632", "score": "0.5401395", "text": "public final synchronized List<Position> getStartPoints() {\n return startPoints;\n }", "title": "" }, { "docid": "b9d63c3d8c41d14270d74c28f910598c", "score": "0.53953534", "text": "@JSProperty(\"point\")\n void setPoint(Point value);", "title": "" }, { "docid": "d9ca80c49c1f10f944d5cd2ff4648d24", "score": "0.5391635", "text": "public Builder setStart(double value) {\n \n start_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ddba43e12c6e88f1db797f59b00d72ae", "score": "0.539114", "text": "public double getStartXPos(){return this.startXPos;}", "title": "" }, { "docid": "e82deed86e2c30acf1b940082a17d6ae", "score": "0.5383833", "text": "public void setStart(int value) {\n\t\tfStart= value;\n\t}", "title": "" }, { "docid": "acebb827d65e9e09865c2545a08bc813", "score": "0.5369395", "text": "public Variable start(double start) {\n this.start = start;\n return this;\n }", "title": "" }, { "docid": "234d845e974725ea370cbc28c600bca8", "score": "0.53248173", "text": "public void setStart(int start) {\n\t\tthis.start = start;\n\t}", "title": "" }, { "docid": "7dcba1a0b84be2c156d8e1fad22d731c", "score": "0.5290932", "text": "public com.fretron.Model.LitePosition getStartLocation() {\n return startLocation;\n }", "title": "" }, { "docid": "d1c77036c641d7bf8d3923d50dc81af4", "score": "0.52907073", "text": "void addProperty(IPSTmxProperty property);", "title": "" }, { "docid": "29fa5dc733d58079c2fd0caaf7e9317f", "score": "0.52719766", "text": "public void setStart(float value) {\n if (start == value)\n return;\n start = value;\n setNeedToRegenerate(true);\n }", "title": "" }, { "docid": "fd5b86e7f5e4c7c4710cc8b5f1eacd9f", "score": "0.52599716", "text": "public void setStart(double x, double y)\r\n {\r\n startX = x;\r\n startY = y;\r\n }", "title": "" }, { "docid": "f7c67441fef009f1be1b014205a4675c", "score": "0.5258817", "text": "void setStart(boolean start) {\r\n this.isStart = start;\r\n }", "title": "" }, { "docid": "75c94358a58aa50ff59898282c290061", "score": "0.52584827", "text": "StringProperty getPointsProperty() {\r\n return this.points;\r\n }", "title": "" }, { "docid": "ad0d32e387556e19c99731250e72ad96", "score": "0.5254312", "text": "public void upropsvec_addPropertyStarts(UnicodeSet set) {\n if(m_additionalColumnsCount_>0) {\n /* if m_additionalColumnsCount_==0 then the properties vectors trie may not be there at all */\n Iterator<Trie2.Range> trieIterator = m_additionalTrie_.iterator();\n Trie2.Range range;\n while(trieIterator.hasNext() && !(range=trieIterator.next()).leadSurrogate) {\n set.add(range.startCodePoint);\n }\n }\n }", "title": "" }, { "docid": "ba5b7653719314ab36c84d2f58bdfbb6", "score": "0.5250251", "text": "public com.fretron.Model.LitePosition getStartLocation() {\n return startLocation;\n }", "title": "" }, { "docid": "c5f4c654dafc06e6b2d3ef82f5eaf7e7", "score": "0.5248745", "text": "public void setStart(Object o) {\n Double d = (Double)o;\n setStart(d.doubleValue());\n }", "title": "" }, { "docid": "544a01d3e049c9524e338ff49d773b3c", "score": "0.52486646", "text": "Point getStartingPoint();", "title": "" }, { "docid": "b7b7d69715f0269e1bfa494cbcab6d8f", "score": "0.5238294", "text": "public Feature toFeature() {\n\t\tFeature feature = Feature.fromGeometry(point);\n\t\t// add four properties.\n\t\tfeature.addStringProperty(\"location\", location);\n\t\tfeature.addStringProperty(\"rgb-string\", rgbstring);\n\t\tfeature.addStringProperty(\"marker-color\", rgbstring);\n\t\tfeature.addStringProperty(\"marker-symbol\", markersymbol);\n\t\treturn feature;\n\t}", "title": "" }, { "docid": "55f86abc7a025d8746954e7effb92b9d", "score": "0.522521", "text": "public void start_property_list(final Attributes meta) throws SAXException;", "title": "" }, { "docid": "6bfe7ff7bf451661ffcf04df020f1170", "score": "0.5221285", "text": "public Point getStartPosition() { return startPosition; }", "title": "" }, { "docid": "b649f8b874b2309e77da19adf95f032b", "score": "0.52090985", "text": "@java.lang.Override\n public int getStart() {\n return start_;\n }", "title": "" }, { "docid": "8c18da3d939d58754bb487578b8d1300", "score": "0.5201155", "text": "@java.lang.Override\n public int getStart() {\n return start_;\n }", "title": "" }, { "docid": "4cb8e3581a8bc6e0ed2bde7983bfc95f", "score": "0.5190599", "text": "public Boolean getIsStart() {\r\n return isStart;\r\n }", "title": "" }, { "docid": "156cb0ee038a49e5a6154f9022935ddb", "score": "0.51860505", "text": "public int getStart() {\n\t\treturn fStart;\n\t}", "title": "" }, { "docid": "552efa2b64c62abab73686c818abfac6", "score": "0.5179711", "text": "public final synchronized void addStartEndPoints() {\n startPoints.add(startPosition);\n endPoints.add(getPosition());\n }", "title": "" }, { "docid": "7fe06127538b68ab6f30a5ebb38551d7", "score": "0.51767707", "text": "@Override\n public boolean setStartCoords(double x, double y) {\n this.startX = x;\n this.startY = y;\n return true;\n }", "title": "" }, { "docid": "3a7b6e97b3e61323995623c0fda7cecf", "score": "0.5176753", "text": "public Line(Point start, Point end){\n this.start = start;\n this.end = end;\n }", "title": "" }, { "docid": "e1103fb1faa5098adae16f7e48306c6b", "score": "0.51726073", "text": "public void xsetStart(org.apache.xmlbeans.XmlDateTime start)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_attribute_user(START$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_attribute_user(START$6);\r\n }\r\n target.set(start);\r\n }\r\n }", "title": "" }, { "docid": "244ddf38170d61c51b527a1fbbcef295", "score": "0.5152464", "text": "protected void addMinimumPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_BaseAddressType_minimum_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_BaseAddressType_minimum_feature\", \"_UI_BaseAddressType_type\"),\n\t\t\t\t _1Package.eINSTANCE.getBaseAddressType_Minimum(),\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "title": "" }, { "docid": "8c3a204d6e2845d34dca7b3d5f82456c", "score": "0.5140278", "text": "public void setStartValue(String newStart) {\r\n scalarStyleImpl.setStartValue(newStart);\r\n if (!effectElements.isEmpty()) setUpEffect();\r\n }", "title": "" }, { "docid": "52c466d38e7f14a730506a35fc6cfedc", "score": "0.51389277", "text": "protected static final void start( LibFXPoint point )\n {\n fxPoints.addElement( point );\n }", "title": "" }, { "docid": "f25dad9ca2d4886ad248ed2a993e9971", "score": "0.51348287", "text": "protected void addSamplePointerPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_PartWithSample_samplePointer_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_PartWithSample_samplePointer_feature\", \"_UI_PartWithSample_type\"),\r\n\t\t\t\t EsxPackage.Literals.PART_WITH_SAMPLE__SAMPLE_POINTER,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "title": "" }, { "docid": "d71f9ec5daf749b20a2549a06dce4bdc", "score": "0.51334846", "text": "@java.lang.Override\n public long getStart() {\n return start_;\n }", "title": "" }, { "docid": "6558b3515644b5e2d6090dd814bb9eb6", "score": "0.5125794", "text": "@java.lang.Override\n public long getStart() {\n return start_;\n }", "title": "" }, { "docid": "d45ec98f35da18858988dcf7b06e6c46", "score": "0.5125497", "text": "public ScGridColumn<AcFlightSuppressionRule> newStartNumberColumn()\n {\n return newStartNumberColumn(\"Start Number\");\n }", "title": "" }, { "docid": "b3843ffb12404a8b2c15feaf6a7334b0", "score": "0.51228464", "text": "public void setStart(final boolean start) {\n this.start.set(start);\n }", "title": "" }, { "docid": "251c3053cba5cf4120d787dc285e77ef", "score": "0.51139164", "text": "public void setServiceStart(Timestamp serviceStart) {\r\n this.serviceStart = serviceStart;\r\n }", "title": "" }, { "docid": "a2d41e0633dabc94b4f79f7f0136e028", "score": "0.5109705", "text": "public int getStart() {\n\t\treturn this.start;\n\t}", "title": "" }, { "docid": "bebad2ff5b8a210114e4435e199e5698", "score": "0.5094549", "text": "public int getStart() {\n\t\treturn start;\n\t}", "title": "" }, { "docid": "9b2179e026501c5c267c75771d585939", "score": "0.508742", "text": "public int getStartAt() {\n return startAt;\n }", "title": "" }, { "docid": "375db4686fe41f3d09b1d0a413e1b732", "score": "0.50773805", "text": "public int getStartX()\n {\n return startX;\n }", "title": "" }, { "docid": "5342abe3351d1b9bf63eb7b5d9529211", "score": "0.5074881", "text": "public Line(Point start, Point end) {\r\n this.pStart = start;\r\n this.pEnd = end;\r\n }", "title": "" }, { "docid": "27f463150e22f3ed40936c7f5f788a5a", "score": "0.5072504", "text": "public long getStart() {\n return start_;\n }", "title": "" }, { "docid": "4363498430d1c62574764b72c7cc312e", "score": "0.50714797", "text": "public void mousePressed( MouseEvent e)\n {\n\t//invoke the startPoint \n\tstartPoint = new Point2D.Double( e.getX() , e.getY() );\n\t\n }", "title": "" }, { "docid": "d888798faee056adc4044a1c103e33cb", "score": "0.50713795", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "d888798faee056adc4044a1c103e33cb", "score": "0.50713795", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "d888798faee056adc4044a1c103e33cb", "score": "0.50713795", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "d888798faee056adc4044a1c103e33cb", "score": "0.50713795", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "d888798faee056adc4044a1c103e33cb", "score": "0.50713795", "text": "public int getStart() {\n return start;\n }", "title": "" }, { "docid": "f55ab18524b7e1faf25e85fd5cb91740", "score": "0.5070687", "text": "public void setStartLocation(com.fretron.Model.LitePosition value) {\n this.startLocation = value;\n }", "title": "" }, { "docid": "e74f112da8768767046bd43dc31dbf2b", "score": "0.50660676", "text": "public Point() {\n\t\t\n\t\tsuper(1);\n\t}", "title": "" }, { "docid": "a7b599ef85b3870f57e5849ea06d7f4b", "score": "0.50652146", "text": "@Override\n\tpublic void addStart(org.apache.tinkerpop.gremlin.process.traversal.Traverser.Admin<S> start) {\n\t\t\n\t}", "title": "" }, { "docid": "d449cc6562991484a0ffc5b1653e463a", "score": "0.50648814", "text": "protected void addTimeStepPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_SystemModel_timeStep_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_SystemModel_timeStep_feature\", \"_UI_SystemModel_type\"),\n SDModelPackage.Literals.SYSTEM_MODEL__TIME_STEP,\n true,\n false,\n false,\n ItemPropertyDescriptor.REAL_VALUE_IMAGE,\n null,\n null));\n }", "title": "" } ]
dc33459a389891eb94d6fbb10eb9a323
Finds the index of the given child node.
[ { "docid": "3b3ca98f6fa7bcc4a9f1c55ac028e2f0", "score": "0.7126731", "text": "int getIndex(final Node kid)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i<child.length; i++)\r\n\t\t\t\tif(child[i]==kid)\r\n\t\t\t\t\treturn i;\r\n\t\t\treturn -1;\r\n\t\t}", "title": "" } ]
[ { "docid": "d6a13ae9180622ea0050c21509b065aa", "score": "0.7688427", "text": "public int getIndexOfChild(Object parent, Object child) {\n for (int i = 0; i < getChildCount(parent); i++) {\n if (getChild(parent, i).equals(child)) {\n return i;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "19a0468bfae477ba3c1d753856492bad", "score": "0.7589289", "text": "public int getIndexOfChild(Object parent, Object child) {\n return ((MenuModelNode)parent).getIndex((javax.swing.tree.TreeNode)child);\n }", "title": "" }, { "docid": "41e933fa17ad5a335780a804daf086eb", "score": "0.738316", "text": "public int getIndexOfChild(Object parent, Object child) {\n\t\tint result = -1;\n\t\tList work = convertObjectToList(parent);\n\t\tif (work != null) {\n\t\t\tresult = work.indexOf(child);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9b04b5887ed41bf5d2684debc56c042c", "score": "0.7194366", "text": "public int getChildIndex(int entityID);", "title": "" }, { "docid": "21ba9d10bd70158dd993a3c006633112", "score": "0.7161234", "text": "int indexOf(String childName);", "title": "" }, { "docid": "c0bf63b71ddf908f79382c8ab892ae53", "score": "0.6833553", "text": "@Override\n public int indexOf(TreeNode treeNode) {\n int index = 0;\n int length = treeNodes.getLength();\n while (index < length) {\n TreeNode node = treeNodes.get(index);\n if (treeNode == null) {\n if (node == null) {\n break;\n }\n } else {\n if (treeNode.equals(node)) {\n break;\n }\n }\n\n index++;\n }\n\n if (index == length) {\n index = -1;\n }\n\n return index;\n }", "title": "" }, { "docid": "d0b0c502d9fdca515cad1392ed79269f", "score": "0.6718213", "text": "public static <T extends Comparable> int findParentIndex( int childIndex ) {\n int parentIndex = ( ( childIndex + 1 ) / 2 ) - 1;\n return parentIndex;\n }", "title": "" }, { "docid": "35904fe3692ad61e0bd982132fdfdd16", "score": "0.6619227", "text": "long getChildId(int index);", "title": "" }, { "docid": "71333c22e3167e8fea3fa2a9435dd37d", "score": "0.65863466", "text": "public int find(NodeHolder n) {\n\t\tNodeHolder current = n;\n\n\t\twhile (current.parent != null)\n\t\t\tcurrent = current.parent;\n\n\t\tNodeHolder root = current;\n\n\t\tcurrent = n;\n\t\twhile (current != root) {\n\t\t\tNodeHolder temp = current.parent;\n\t\t\tcurrent.parent = root;\n\t\t\tcurrent = temp;\n\t\t}\n\n\t\treturn root.index;\n\t}", "title": "" }, { "docid": "86a60fe7a88a133d22092117a4a3ccd4", "score": "0.6513604", "text": "long getChild(int index);", "title": "" }, { "docid": "c2248bc9a52276d6c22543a892d84d7e", "score": "0.63593346", "text": "public int getIndex() {\n return getAncestorIndex(0);\n }", "title": "" }, { "docid": "350b4ccdce2bc0dad806dbce9ae8da97", "score": "0.6323312", "text": "public static <T extends Comparable> int findChildIndex( T[] heap, int parentIndex ) {\n int childIndex = (heap[ (2 * parentIndex + 1) ] == null ) ? \n (2 * parentIndex + 1) : (2 * parentIndex + 2); \n return childIndex;\n }", "title": "" }, { "docid": "1335ae1227cce819fef5b24279aaaff4", "score": "0.62886244", "text": "private int getRightChildIndex(int index){\n\t\treturn (2 * index) + 2;\n\t}", "title": "" }, { "docid": "6295e017d7d6b1798e73540d1c443e34", "score": "0.62871057", "text": "private int getRightChildIndex(int index) {\n return index * 2 + 2;\n }", "title": "" }, { "docid": "6663d96fe8eedd3b675f21921b0830ec", "score": "0.62585914", "text": "int getIndexOfChip(@Nullable View child) {\n if (!(child instanceof Chip)) {\n return -1;\n }\n int index = 0;\n for (int i = 0; i < getChildCount(); i++) {\n View current = getChildAt(i);\n if (current instanceof Chip && isChildVisible(i)) {\n Chip chip = (Chip) current;\n if (chip == child) {\n return index;\n }\n index++;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "f21873e10469f2014a636f35cb23d31e", "score": "0.62261844", "text": "public int indexOf(final Node arg0) {\n return 0;\n }", "title": "" }, { "docid": "f21873e10469f2014a636f35cb23d31e", "score": "0.62261844", "text": "public int indexOf(final Node arg0) {\n return 0;\n }", "title": "" }, { "docid": "90117a8e4d45fc81e6f1b7893d4add5e", "score": "0.61993814", "text": "private Integer getIndexInParent() {\n\n\t\t// AccessibleContext aContext = aComponent.getAccessibleContext();\n\t\tAccessibleContext aContext = component.getAccessibleContext();\n\t\tif (aContext != null) {\n\t\t\treturn aContext.getAccessibleIndexInParent();\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "9c40a8a17d203776b2d94728d4a21c57", "score": "0.61766565", "text": "public long getChild(int index) {\n return child_.get(index);\n }", "title": "" }, { "docid": "ca401f8664efd644d0258ee70040df39", "score": "0.61722946", "text": "Node getChild(int index);", "title": "" }, { "docid": "6da2ee80178511e89b9507c5af5d6b61", "score": "0.616774", "text": "public abstract int getAccessibleIndexInParent();", "title": "" }, { "docid": "a39841fa744652ade7eea8b3da7d47a0", "score": "0.6167354", "text": "private int minChildIndex(int n) {\n if (left(n) > a.size() - 1) return -1;\t\t\t//-1 means no child\n if (right(n) > a.size() - 1) return left(n);\t//right not exist, just return left\n return a.get(left(n)).f <= a.get(right(n)).f ? left(n) : right(n);\t//compare the f of \n }", "title": "" }, { "docid": "76661c9d9072f7436211dbfab7191e34", "score": "0.6106162", "text": "public int getIndex(final String key) {\n\t\tif (this.getRootNode() == null){\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn NodeHelper.getIndex(this.getRootNode(), key);\n\t}", "title": "" }, { "docid": "c997e4bc439eefdef0aa13ab36b3b7ae", "score": "0.61009836", "text": "private int getLeftChildIndex(int index) {\n return index * 2 + 1;\n }", "title": "" }, { "docid": "200cd66c67a91981d3296391df4442b0", "score": "0.6098302", "text": "public long getChild(int index) {\n return child_.get(index);\n }", "title": "" }, { "docid": "c8212ddaac0a7fc5d136d6a0e19a4326", "score": "0.6092052", "text": "private int getLeftChildIndex(int index){\n\t\treturn (2 * index) + 1;\n\t}", "title": "" }, { "docid": "2da2937990009a917ac91572d0d84e71", "score": "0.6080648", "text": "public int getRightChild(int parameter) {\n\t\tint parentIndex = parameter * 2;\n\t\tint childRightIndex = parentIndex + 2;\n\t\treturn childRightIndex;\n\t}", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.6021312", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.6021312", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.6021312", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.6021312", "text": "int getIndex();", "title": "" }, { "docid": "203eb9238a7b321dd0c700cb20c89f58", "score": "0.6021312", "text": "int getIndex();", "title": "" }, { "docid": "cb6c33dffd397c987517a27cffab873b", "score": "0.60114", "text": "@Override\r\n\tpublic int getIndex(TreeNode node)\r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "e66b365c5a2be267efc0d25d137c4471", "score": "0.6006634", "text": "public int getLeftChild(int curIndex) { return (curIndex * 2)+1; }", "title": "" }, { "docid": "8d1c7ccd5b725397663e1997e18c088b", "score": "0.59947324", "text": "T findIndex(int n);", "title": "" }, { "docid": "e633343bde9fcb88e39456412f23ed22", "score": "0.59841806", "text": "public int search(String key){\n int i = 0;\n Node currNode = front;\n while (i < this.size()){\n if (currNode.getData() == key){\n return i;\n }\n i++;\n currNode = currNode.getNext();\n }\n\t return -1;\n }", "title": "" }, { "docid": "920387051a93712591712a30ac508ed3", "score": "0.59698015", "text": "private int parent(int childIndex){\n return (childIndex-1)/2;\n }", "title": "" }, { "docid": "08185e8d9dc254798ab0fa74256d4302", "score": "0.59659004", "text": "@Override\n\tpublic int getIndex(TreeNode node) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.59602135", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.59602135", "text": "public int getIndex();", "title": "" }, { "docid": "5026f1d76b72c48d453766edefacb91b", "score": "0.59602135", "text": "public int getIndex();", "title": "" }, { "docid": "0ae3dfc46f9a12635af6da1dfd6793a6", "score": "0.59530824", "text": "private int getIndexForItem(T item) {\n HierarchicalDataCommunicator<T> dataCommunicator = super.getDataCommunicator();\n Method getHierarchyMapper = null;\n try {\n getHierarchyMapper = HierarchicalDataCommunicator.class.getDeclaredMethod(\"getHierarchyMapper\");\n getHierarchyMapper.setAccessible(true);\n HierarchyMapper<T, ?> mapper = (HierarchyMapper) getHierarchyMapper.invoke(dataCommunicator);\n return mapper.getIndex(item);\n } catch (Exception e) {\n //TODO: handle\n e.printStackTrace();\n }\n return -1;\n }", "title": "" }, { "docid": "61c8e8366888d3a02a36be5df4620f19", "score": "0.59390795", "text": "private int find(int node) {\n return nodeWithParent.get(node);\n }", "title": "" }, { "docid": "42625bca453492a73f8ec314b5922403", "score": "0.5927469", "text": "@Override\n\tpublic int indexOf(Object search) {\n\t\t// get first node in list\n\t\tNode<T> currentNode = head;\n\n\t\t// int to keep track of index\n\t\tint index = 0;\n\n\t\t// go through all nodes until you reach the end\n\t\t// where next would be null\n\t\twhile (currentNode != null) {\n\t\t\t// compare object stored in current node with\n\t\t\t// Object passed into this method\n\t\t\tif (currentNode.getValue().equals(search)) {\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\t// advance to next node\n\t\t\tindex++;\n\t\t\tcurrentNode = currentNode.getNext();\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "02107167ed0114d340741c68793ec503", "score": "0.5911291", "text": "int getAccessibleChildIndex(MenuComponent paramMenuComponent) {\n/* 597 */ return this.items.indexOf(paramMenuComponent);\n/* */ }", "title": "" }, { "docid": "ce71640e4f7580da2f0734ce6ae46031", "score": "0.5905891", "text": "private int findIndex(E item) {\r\n//\t\tif (item instanceof String)\r\n//\t\t\treturn fintIndexString(item);\r\n\r\n\t\tif (item == null)\r\n\t\t\treturn -1;\r\n\r\n\t\tif (count == 0)\r\n\t\t\treturn -1;\r\n\r\n//\t\tSystem.out.println(\"Looking for : \" + item);\r\n\t\tint low = 0, mid = count / 2, high = count;\r\n\t\twhile (low < high) {\r\n//\t\t\tSystem.out.println(\"Low : \" + low + \" Mid : \" + mid + \" High : \"\r\n//\t\t\t\t\t+ high);\r\n\r\n\t\t\tif (comp.compare(data[mid], item) == 0) {\r\n\t\t\t\tSystem.out.println(\"Found at : \" + mid);\r\n\t\t\t\treturn mid;\r\n\t\t\t}\r\n\r\n\t\t\tint nmid = (high + low) / 2;\r\n\t\t\tif (comp.compare(data[mid], item) < 0) {\r\n\t\t\t\tlow = mid + 1;\r\n\t\t\t\tmid = nmid;\r\n\t\t\t} else {\r\n\t\t\t\thigh = mid;\r\n\t\t\t\tmid = nmid;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "3b29504be2c06068f61598ddefb9e937", "score": "0.58819926", "text": "public int getIndex(int position);", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5869884", "text": "long getIndex();", "title": "" }, { "docid": "df6cd620940f85a5f612d426bf0f406d", "score": "0.5869884", "text": "long getIndex();", "title": "" }, { "docid": "5f67f5bcabf2d547920f7d5344c88ce8", "score": "0.5861967", "text": "@Override\n public long getChildId(int groupPosition, int childPosition) {\n return childPosition;\n }", "title": "" }, { "docid": "5f67f5bcabf2d547920f7d5344c88ce8", "score": "0.5861967", "text": "@Override\n public long getChildId(int groupPosition, int childPosition) {\n return childPosition;\n }", "title": "" }, { "docid": "5f67f5bcabf2d547920f7d5344c88ce8", "score": "0.5861967", "text": "@Override\n public long getChildId(int groupPosition, int childPosition) {\n return childPosition;\n }", "title": "" }, { "docid": "50ddb7d750f6ae435733a6da4e684f75", "score": "0.5860937", "text": "public static int parent(int index) {\n return (int) Math.ceil((double) index / 2) - 1;\n }", "title": "" }, { "docid": "06c971faef64c995afef63f22e9b4483", "score": "0.5854781", "text": "public int getIndex (Object obj) throws IllegalArgumentException {\n\t\t if (comparator == null && !(obj instanceof Comparable))\n\t\t\tthrow new IllegalArgumentException(\"Element (\" + obj.getClass().getName() + \") must be an instance of Comparable\");\n\n\t\t Object [] children = toArray();\n\t\t int index = 0;\n\t\t for (int i = 0; i < children.length; i++, index++) {\n\t\t\tif (comparator != null) {\n\t\t\t if (comparator.compare(children[i], obj) > 0)\n\t\t\t\t break;\n\t\t\t} else {\n\t\t\t if (((Comparable)children[i]).compareTo(obj) > 0)\n\t\t\t\t break;\n\t\t\t}\n\t\t }\n\n\t\t return index;\n\t }", "title": "" }, { "docid": "85b9e0ee766a4bc863095142fd0b834a", "score": "0.58419913", "text": "private static int rightChild(int nodeIndex) {\n return nodeIndex * 2 + 1;\n }", "title": "" }, { "docid": "0249d16cab37340a4e58dfc48442277f", "score": "0.5831174", "text": "long getParent(int index);", "title": "" }, { "docid": "7720b10b3dbb6a95fa2deaf70b954ef5", "score": "0.58288723", "text": "public int findindex(E e){\n for(int i = 0; i<size;i++) {\n if (data[i].equals(e))\n return i;\n }\n return -1;\n }", "title": "" }, { "docid": "234f21af4347bb22d3ffbd8c1fe4c50e", "score": "0.5803737", "text": "@Override\r\n\tpublic long getChildId(int groupPosition, int childPosition) {\n\t\treturn childPosition;\r\n\t}", "title": "" }, { "docid": "95d5a6bd2659a860c92c1c2548d57db3", "score": "0.57910436", "text": "public int getRightChild(int curIndex) { return (curIndex * 2)+2; }", "title": "" }, { "docid": "0af6cdffaefa155db07027fe97d4ac4f", "score": "0.57820415", "text": "public int search(T e){\r\n int i = 1;\r\n for (Node temp = first; temp != null; temp = temp.getLink()){\r\n if(temp.getData().toString().equals(e.toString()))\r\n return i;\r\n i++;\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "ce5ae5e646f59ddad0cd1076880e4aee", "score": "0.57791555", "text": "public int find(int child) {\n if(childToParentMap.get(child).parent != child) {\n // recursively find its root parent and update that as parent of current node\n int parentVal = find(childToParentMap.get(child).parent);\n childToParentMap.get(child).parent = parentVal;\n }\n return childToParentMap.get(child).parent;\n }", "title": "" }, { "docid": "dab7922f299eb95d57a46e2ba393f665", "score": "0.57770586", "text": "@Override\n\t\tpublic long getChildId(int groupPosition, int childPosition) {\n\t\t\treturn childPosition;\n\t\t}", "title": "" }, { "docid": "6d034c2dc36c8980ee8fabdbfd015e1b", "score": "0.5775439", "text": "public static int parseIndex(Container parent, Component javaComponent)\n\t{\n\t\tComponent[] children = parent.getComponents();\n\t\tif (children == null)\n\t\t\treturn -1;\n\n\t\tfor (int index = 0; index < children.length; index++) {\n\t\t\tif (javaComponent.equals(children[index]))\n\t\t\t\treturn index;\n\t\t}\n\t\treturn -1;\t\n\t}", "title": "" }, { "docid": "d90f6bcd21c020985e8f36aa1f0e0fd0", "score": "0.57696205", "text": "public int getLeftChild(int parameter) {\n\t\tint parentIndex = parameter * 2;\n\t\tint childLeftIndex = parentIndex + 1;\n\t\treturn childLeftIndex;\n\t}", "title": "" }, { "docid": "5cdb84407083fc4767c91620ca7fe378", "score": "0.57649076", "text": "int getLeftChildIndex(int i) throws NoLeftChildE {\n // TODO\n if (i >= size){\n throw new NoLeftChildE();\n }\n int value = 2*i+1+getElem(i).getRevbit();\n if(value < size) {\n return value;\n } else {\n throw new NoLeftChildE();\n }\n }", "title": "" }, { "docid": "d79253ac5017c4c3858d750f428e9664", "score": "0.5764151", "text": "ASTNode getChild(int index);", "title": "" }, { "docid": "3b3e814c8c1c95005b1a240ae63aeee5", "score": "0.57552546", "text": "@Override\r\n\tpublic long getChildId(int arg0, int arg1) {\n\t\treturn arg1;\r\n\t}", "title": "" }, { "docid": "684271fd49a2dc302292176546615cb1", "score": "0.5754139", "text": "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "title": "" }, { "docid": "9cc40e62ba2567c78a2b90a14302d090", "score": "0.57483435", "text": "@Override\n public Object child(Object parent, int index) {\n if (parent == null)\n return root;\n return ((Node) parent).children.get(index);\n }", "title": "" }, { "docid": "04860552802af50d68024e733f35684c", "score": "0.5735086", "text": "public int leftChildIndex(int i){\n\t\treturn 2 * i;\n\t}", "title": "" }, { "docid": "cd64abf8f904236a2fc7a54182d3ed7a", "score": "0.57334846", "text": "public int getElementIndex(T data) {\n return findElementByData(data);\n }", "title": "" }, { "docid": "bb9012d14c92fa9c517d099fb7ce03fa", "score": "0.57297164", "text": "private int search(String data){\n\t\t\tNode ptr=start;\n\t\t\tfor(int i=1;i<size-1;i++){\n\t\t\t\tif(ptr.data.equals(data)){\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t}", "title": "" }, { "docid": "14e3c0117b9531049fd553e0e6ca69d1", "score": "0.570685", "text": "int getIndex(){\n int i = 0;\n if (cursor == null) return -1;\n else {\n for (Node N = front; N != null; N = N.next){\n if (N == cursor) return i;\n i++;\n }\n }\n cursorIndex = i;\n return cursorIndex;\n }", "title": "" }, { "docid": "4489cbb5b6c223ac20d6724cd0a96c38", "score": "0.5705323", "text": "Integer getIndexOf(Ship thisShip);", "title": "" }, { "docid": "f18057379fbc290f1c1e35cc5eebcf35", "score": "0.5705256", "text": "private int findIndex(K key){\n int n = table.size();\n for(int j = 0; j<n; j++){\n if(table.get(j).getKey().equals(key)){\n return j;\n }\n }\n return -1;\n }", "title": "" }, { "docid": "1fa0909c45c4da07f6b147a63138f2a9", "score": "0.5702244", "text": "protected int getSubNodeIndex(Xml o) {\n\t\treturn subObjects.indexOf(o);\n\t}", "title": "" }, { "docid": "8127973055bd12a150d5863703495d4e", "score": "0.56996655", "text": "public int indexOf(E x){\n int result = binarySearch(x);\n return result >=0 ? result : -1;\n }", "title": "" }, { "docid": "f115846d68cce2524c1923d6712bc06b", "score": "0.5696037", "text": "public int find(int p) {\n this.validate(p);\n\n while(p != this.parent[p]) {\n p = this.parent[p];\n }\n\n return p;\n }", "title": "" }, { "docid": "98009174bf332fd00fbd7c74b8ac6f66", "score": "0.5693651", "text": "private int nodeFind(int index, int key) {\n\t\treturn (index + incrementing(key)) % capacity;\r\n\t}", "title": "" }, { "docid": "1f4c1c80042b19e26901b31356bcb8c0", "score": "0.56915766", "text": "public int getNodeIndex(final String node) {\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tif (nodes[i].equals(node)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "404d6bdc2e488a0063bb7177eb4db669", "score": "0.56883407", "text": "private int indexOf(Entry entry) {\n\tfor (int i = 0; i < entries.size(); ++i) {\n\t if (entries.get(i) == entry)\n\t\treturn i;\n\t}\n return -1;\n }", "title": "" }, { "docid": "883710025a390b85d3aafdccbd98296f", "score": "0.5680476", "text": "public abstract int getAbsoluteIndex();", "title": "" }, { "docid": "cabc62a684b3c18f63523d3302fcb20b", "score": "0.567827", "text": "public long getIndex();", "title": "" }, { "docid": "d55192fbb0fd18dfcc20d79b0a30655d", "score": "0.5673438", "text": "public T getChild(final int index);", "title": "" }, { "docid": "810d3bdcedd3404d2cbf5d27f851d405", "score": "0.56724167", "text": "@Override\n public int indexOf(E element) {\n int counter = 0;\n\n for (Node<E> temp = first; temp != null; temp = temp.next, counter++) {\n if (temp.data == element || temp.data.equals(element)) {\n return counter;\n }\n }\n\n return -1;\n }", "title": "" }, { "docid": "51b76f51977c329d4eef0036788d9df8", "score": "0.56686366", "text": "public int getIndice(T elem){ \n for(int i=0;i<this.cant;i++)\n if(this.vector[i].equals(elem))\n return (i);\n return (-1);\n }", "title": "" }, { "docid": "da58db72e4e98dcbaf1cfc86b9e58502", "score": "0.5668205", "text": "public int find(String s) {\r\n\r\n\t\tif (this.root == NULL_NODE) {\r\n\t\t\treturn -1;\r\n\t\t} else if (s.length() == 0) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tString string = this.toString();\r\n\t\tfor (int i = 0; i <= string.length() - s.length(); i++) {\r\n\t\t\tif (string.substring(i, s.length() + i).equals(s)) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\r\n\t}", "title": "" }, { "docid": "1c09a33e5c560256e42eb2a53ea3c553", "score": "0.56620765", "text": "java.lang.String getIndex();", "title": "" }, { "docid": "2ea5475ee88455392060ef58bba5654e", "score": "0.5654721", "text": "private int[] findChild(Element element, int position) {\n int path[] = new int[2];\n for (int i = 0; i < element.size(); i++) {\n\n if (position <= element.getLeaf(i).getSize()) { //starting child found, [0,1]\n path[0] = i;\n break;\n } else {\n position -= element.getLeaf(i).getSize();\n }\n }\n path[1] = position;\n return path;\n }", "title": "" }, { "docid": "d0065e92839053cd72b01699a2db68a4", "score": "0.5649902", "text": "@Override\n\tpublic int indexOf(E item)\n\t{\n\t\tSingleNode<E> p = head.next;\n\t\tint idx = 0;\n\t\twhile(p != null)\n\t\t{\t\t\n\t\t\tif(p.item == item)\n\t\t\t\treturn idx;\n\t\t\tp = p.next;\n\t\t\tidx++;\n\t\t}\t\t\n\t\t\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "def891f399b7cc5c5c7d101c700cef58", "score": "0.5645912", "text": "@Override\n public int indexOf(E e) {\n ListNode currNode = head;\n int index = 0;\n while (currNode != null) {\n if (currNode.value.equals(e)) {\n return index;\n }\n currNode = currNode.next;\n index++;\n }\n return -1;\n }", "title": "" }, { "docid": "68fdcb5ba7ad4aff2721ece6db6bdbc5", "score": "0.56372833", "text": "int findIndex(E element){\n for(int i = 0; i < this.size; i++){\n if(this.array[i] == element) return i;\n }\n return -1;\n }", "title": "" }, { "docid": "8a925f07bb7588bd165baca60ccf30bb", "score": "0.5633833", "text": "private int findNode(long spot)\n { if (spot<=0) return -1;\n for (int i=0; i<nodeCount; i++)\n { \n \t if (nodeList[i].getOffset()>=spot) { return i; }\n }\n return nodeCount;\n }", "title": "" }, { "docid": "027a12a846c07012cfd8e7012bf4d0ef", "score": "0.5631355", "text": "@Override\n public int findFirstIndex(Copiable obj) {\n Node currentNode = firstNode;\n for (int i = 0; currentNode != null; i++) {\n if (currentNode.getValue().equals(obj)) {\n return i;\n }\n currentNode = currentNode.getNextNode();\n }\n return -1;\n }", "title": "" }, { "docid": "11619fc59cd98c62a90ff9480348fca3", "score": "0.5626342", "text": "@Override\n public int indexOf(Object o) {\n int result = -1;\n int index = 0;\n if (o == null) {\n for (Node<E> pointer = this.first; pointer != null; pointer = pointer.next) {\n if (pointer.data == null) {\n result = index;\n break;\n }\n index++;\n }\n } else {\n for (Node<E> pointer = this.first; pointer != null; pointer = pointer.next) {\n if (o.equals(pointer.data)) {\n result = index;\n break;\n }\n index++;\n }\n }\n return result;\n }", "title": "" }, { "docid": "f2a8ee14569ff0b30e511dfc8bcf9d06", "score": "0.5625993", "text": "TreeNode findChild(Object data);", "title": "" }, { "docid": "fc80451757b48acfbaac474b72d84a83", "score": "0.5613009", "text": "private int searchRecur (Mydata x, int index) {\n if (lastIndexUsed < index || tree.get(index) == null) {\n return -1;\n } else if (tree.get(index).compareTo(x) == 0) {\n return index;\n } else if (x.compareTo(tree.get(index)) > 0) {\n return searchRecur(x, (rightchild(index)));\n } else {\n return searchRecur(x, (leftchild(index)));\n }\n }", "title": "" }, { "docid": "84f36e06b387371dc5b6ac6a8041c218", "score": "0.56127715", "text": "public int childLabel(Concept child) {\n for (Pair<Integer, Concept> c: children) {\n if (c.getRight() == child) {\n return c.getLeft();\n }\n }\n return -1;\n }", "title": "" }, { "docid": "a660656ad0823ce1e545edbce6d218dd", "score": "0.5599079", "text": "public int getIndex(){\n int res = -1;\n synchronized(stack){\n //find an available stack, set its first value to 0(means using), return the stack ID\n for(int i = 0; i < 100; i++){\n if(stack.get(i).get(0) == 1){\n res = i;\n stack.get(i).set(0, 0);\n break;\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "c2f4c1d9c502649a19ce30b200519e03", "score": "0.55964196", "text": "public byte getIndex();", "title": "" } ]
06ca8858b574a6daaeec436290e84d88
int size = 1024 1024 1; // 1M int size = 1024 1024 10; // 10M
[ { "docid": "bfea97462281cc2c8bfedb6f187d7083", "score": "0.61462235", "text": "public static void main(String[] args) {\n int size = 1024 * 1024 * 100; // 100M\n byte [] bytes1 = new byte[size];\n }", "title": "" } ]
[ { "docid": "d92daad82ed434ffdba48fc7d2823570", "score": "0.71059257", "text": "public long getSizeInBytes()\n {\n return 2048L;\n }", "title": "" }, { "docid": "f6b9fcb188cee4aa3bc2ad3e29431558", "score": "0.6909621", "text": "@Test\n public void testCalculateDefaultSpaceInMiB()\n {\n int preferredInMiB = 667;\n int numerator = 2;\n int denominator = 3;\n int spaceInBytes = 999 * 1024 * 1024;\n\n assertEquals(666, // total size is less than preferred, so return lower limit\n DatabaseDescriptor.calculateDefaultSpaceInMiB(\"type\", \"/path\", \"setting_name\", preferredInMiB, spaceInBytes, numerator, denominator));\n\n // check preferred size is used for a small storage volume\n preferredInMiB = 100;\n numerator = 1;\n denominator = 3;\n spaceInBytes = 999 * 1024 * 1024;\n\n assertEquals(100, // total size is more than preferred so keep the configured limit\n DatabaseDescriptor.calculateDefaultSpaceInMiB(\"type\", \"/path\", \"setting_name\", preferredInMiB, spaceInBytes, numerator, denominator));\n }", "title": "" }, { "docid": "c0b4bce9bd132477624c8ab3b4d484bf", "score": "0.68885493", "text": "private static final int getLargerSize(int input) {\n return input*10;\n }", "title": "" }, { "docid": "2ef78078e1ad8ad35c7e6f85a12e1750", "score": "0.6588673", "text": "int maxSize();", "title": "" }, { "docid": "9cd3f9824d64fe0d43d11e1601239b2c", "score": "0.65847427", "text": "public long convertToKb(long size) {\n if (size == 0) {\n return 0;\n }\n if (size < 1024) {\n return 1;\n } else {\n return size / 1024;\n }\n }", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.65358424", "text": "long getSize();", "title": "" }, { "docid": "d6338e57afe4ddd11b99f19742ee4754", "score": "0.6469717", "text": "public int getFileSizeInByte() {\n\t\treturn size * Consts.MILLION; // 1e6\n\t\t// return size * 1048576; // 1e6 - more accurate\n\t}", "title": "" }, { "docid": "02ca7ce5d500a03920de7a57f7f788e8", "score": "0.6405601", "text": "public int getSize(){\n return 64;\n }", "title": "" }, { "docid": "ee1a7f84843c7bea21de7fa7a2328406", "score": "0.64017874", "text": "public double size() {\n return 1000;\n }", "title": "" }, { "docid": "279e2b093292946f0f7c501f2e4405ed", "score": "0.6377698", "text": "long getMemoryCapacity();", "title": "" }, { "docid": "9ac06409106cb0132681b68093eaf4e1", "score": "0.6360019", "text": "public int getCachedSize();", "title": "" }, { "docid": "135e0d19fc9ab7234fcf3ecec4696a62", "score": "0.6331342", "text": "int maxSize() {\n return maxSize;\n }", "title": "" }, { "docid": "dd911e9f26c2eedf135fa720a687674b", "score": "0.6313175", "text": "public int getByteCount();", "title": "" }, { "docid": "87345e83b41687b6a40d6668f670e9e8", "score": "0.630333", "text": "public int maxSize() { return theSize; }", "title": "" }, { "docid": "4ec22c121d44d953bdc14ac4d2f25542", "score": "0.62984955", "text": "public void setMaxSizeInMB(long value) {\n this.maxSizeInMB = value;\n }", "title": "" }, { "docid": "af16d0107458d1c28558c0acf8953aed", "score": "0.62887263", "text": "default Size getBufferSize() {\n/* 216 */ return getSize();\n/* */ }", "title": "" }, { "docid": "3370eed111f0cab6b954092c5d5945d5", "score": "0.6288228", "text": "private static String humanReadableFileSize(long size) {\r\n if (size < 1024) return size + \" B\";\r\n int exp = (int) (Math.log(size) / Math.log(1024));\r\n String postfix = (\"KMGTPE\").charAt(exp - 1) + (\"iB\");\r\n return String.format(\"%.1f %s\", size / Math.pow(1024, exp), postfix);\r\n }", "title": "" }, { "docid": "b1accdb3eeb9db7e3e8a3ea4cbe41f50", "score": "0.6258283", "text": "String getSize();", "title": "" }, { "docid": "b1accdb3eeb9db7e3e8a3ea4cbe41f50", "score": "0.6258283", "text": "String getSize();", "title": "" }, { "docid": "03fb9415613690f4f51d185f7cc9b443", "score": "0.62511265", "text": "int getFreeMemorySize();", "title": "" }, { "docid": "f8225fbd216f19410e6460d72a576e3b", "score": "0.62386256", "text": "Size getSize();", "title": "" }, { "docid": "f8225fbd216f19410e6460d72a576e3b", "score": "0.62386256", "text": "Size getSize();", "title": "" }, { "docid": "f8225fbd216f19410e6460d72a576e3b", "score": "0.62386256", "text": "Size getSize();", "title": "" }, { "docid": "5fea5eadcfef0bf6e0312d3617fdf193", "score": "0.62330055", "text": "default Size maxAvailableSize(){\n return maxSize;\n }", "title": "" }, { "docid": "1ae66df855ddcc01b1cef3f832838692", "score": "0.62312734", "text": "int getUsedMemorySize();", "title": "" }, { "docid": "eeeaba372a6d9d8c516e99e798eb90c6", "score": "0.6230271", "text": "public long memSize();", "title": "" }, { "docid": "36419b14c46c8a59458cbbab06beec4e", "score": "0.6222725", "text": "public static double getInitialMemoryMb()\n {\n return INIT_MEMORY_MB;\n }", "title": "" }, { "docid": "be21e18f3fe33db975b3be9de9b87c4f", "score": "0.62153083", "text": "public int getCurrentSize();", "title": "" }, { "docid": "be21e18f3fe33db975b3be9de9b87c4f", "score": "0.62153083", "text": "public int getCurrentSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.62052745", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.62052745", "text": "int getSize();", "title": "" }, { "docid": "067ef72b38ddb1addb593605502d2880", "score": "0.6192467", "text": "public long getSize();", "title": "" }, { "docid": "ac0a00aca6cb0088b25d6c7eaaedd75f", "score": "0.61660147", "text": "int getMempoolSize();", "title": "" }, { "docid": "3ace0e71a23d26ff4a6165268587498d", "score": "0.61491454", "text": "private static final int getLargerSize(int input) {\n return input<<1;\n }", "title": "" }, { "docid": "c13ffc0cea0250751f894e79ff8d4dd7", "score": "0.6140814", "text": "private final static int findSize(int size)\n {\n int needed = (size <= 32) ? (size + size) : (size + (size >> 2));\n int result = 2;\n while (result < needed) {\n result += result;\n }\n return result;\n }", "title": "" }, { "docid": "2a171c95d04ecececa53dc14fd5aa30a", "score": "0.61380434", "text": "int getCacheSize();", "title": "" }, { "docid": "8b4d3cbb93c400244337763b9dfe594d", "score": "0.61315393", "text": "public void setCacheSize (int bytes)\n {\n }", "title": "" }, { "docid": "64b1edb7e140a026c695f3f7f3aa5338", "score": "0.61185426", "text": "private static double getFileSizeKiloBytes(File file) {\r\n\t\treturn (double) file.length() / 1024;\r\n\t}", "title": "" }, { "docid": "0da365e9a9c77d3dfadd45288419b393", "score": "0.61179066", "text": "public int getCapacityInMb() {\n return capacityInMb;\n }", "title": "" }, { "docid": "236d2e5e978bfebac87d223e7c0b3005", "score": "0.61136484", "text": "Long extractedSize();", "title": "" }, { "docid": "0abd06990a8f1494e8637b500f1e67d9", "score": "0.60872984", "text": "int getCapacity();", "title": "" }, { "docid": "da711e425d4308d69401530d576426ce", "score": "0.6077978", "text": "long getCacheSize();", "title": "" }, { "docid": "139b8fc5673c0f393d6c7036b8d71402", "score": "0.6075636", "text": "int getTotalSize();", "title": "" }, { "docid": "139b8fc5673c0f393d6c7036b8d71402", "score": "0.6075636", "text": "int getTotalSize();", "title": "" }, { "docid": "cf25e63512509458c73d6d6696387c6f", "score": "0.6068423", "text": "private static double convertToMb(long numBytes)\n {\n double numKb = numBytes/1024.0;\n return numKb/1024.0;\n }", "title": "" }, { "docid": "98077bcb75b8a363aa0124a49f43c308", "score": "0.6063512", "text": "public int getMaxSize() {\n return cache.maxSize();\n }", "title": "" }, { "docid": "3411f9813d268063b6e1792caf1700ab", "score": "0.6062676", "text": "public String getSize() {\n int iSize = (int) (Math.ceil(((double) file.length()) / 1024));\n return Integer.toString(iSize);\n }", "title": "" }, { "docid": "513124aba21504c58eba576023324e74", "score": "0.6059697", "text": "long getDiskSize();", "title": "" }, { "docid": "513124aba21504c58eba576023324e74", "score": "0.6059697", "text": "long getDiskSize();", "title": "" }, { "docid": "4d7face38deed82aac9e2c8bf9093e98", "score": "0.60537577", "text": "public int getCapacity();", "title": "" }, { "docid": "4d7face38deed82aac9e2c8bf9093e98", "score": "0.60537577", "text": "public int getCapacity();", "title": "" }, { "docid": "d8c6244505e76b1e570e0f57c0c6201a", "score": "0.60469943", "text": "int getInitialCapacity();", "title": "" }, { "docid": "788f30250f552c76a18d8ffdcf9bdcdb", "score": "0.6046653", "text": "public static long m8080a() {\r\n StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());\r\n return (((long) statFs.getAvailableBlocks()) * ((long) statFs.getBlockSize())) / 1024;\r\n }", "title": "" }, { "docid": "357c6c5990e194ccd99068fecbd60350", "score": "0.60423803", "text": "public static int size_time() {\n return (16 / 8);\n }", "title": "" }, { "docid": "c02be0c8afdabbc6b831406ccfddb58e", "score": "0.60298204", "text": "public int lengthInBytes(int paramInt)\n/* */ {\n/* 143 */ return paramInt <= KOPI20_LN_MAXV ? 1 : 5;\n/* */ }", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "159f120d05a1549f0fdea1865bf36a23", "score": "0.6025091", "text": "public int getSize();", "title": "" }, { "docid": "f38a992e6c8747d32a68b56a1bd95c89", "score": "0.6019803", "text": "private static int getSize( )\r\n {\r\n return AppPropertiesService.getPropertyInt( PROPERTY_SIZE, DEFAULT_SIZE );\r\n }", "title": "" }, { "docid": "a59faa72faa7708d39784084beb026ff", "score": "0.6012476", "text": "long getMaxHyperSpaceSize();", "title": "" }, { "docid": "73025163a73c83091a138c6030955553", "score": "0.60124034", "text": "public int getCapacity() ;", "title": "" }, { "docid": "c425d0972aa6f9720c6363a9e9540985", "score": "0.60027915", "text": "private static final int getSmallerSize(int input) {\n return input/4;\n }", "title": "" }, { "docid": "c833c9dca705f88638dd8ddd563f2742", "score": "0.5987512", "text": "public int maxSize( ) \n\t{\n\t\treturn maxSize;\n\t}", "title": "" }, { "docid": "5d1bad9e1e702526c356b0f1ed3bc939", "score": "0.59863514", "text": "public String getSize();", "title": "" }, { "docid": "fc08e80434d094ccdd7feaf56dc3cd5a", "score": "0.59739155", "text": "private static int determineBlockSize(int threadCount) {\n // The maximum number of records that any child actor will have to hold in memory\n int maxBlockSize = 100000;\n\n double availableThreadMemory = 0.8 * Runtime.getRuntime().maxMemory() / threadCount;\n long maxBlockLength = (long) Math.floor(availableThreadMemory / 200);\n return Math.min((int) maxBlockLength, maxBlockSize);\n }", "title": "" }, { "docid": "10165fdc1890c4c20f506effe94edf4a", "score": "0.59709287", "text": "private static final int getSmallerSize(int input) {\n return input>>1>>1;\n }", "title": "" }, { "docid": "0ab6ef6068897a83bb15e0b6da7e3cff", "score": "0.5965745", "text": "long getEntrySize();", "title": "" }, { "docid": "0c31a60474844fbc2ed9af0676487753", "score": "0.59561545", "text": "public Long getSize();", "title": "" }, { "docid": "bdf8ecdcbbc263cc5e363acf205e0c95", "score": "0.5930989", "text": "private static long toBytes(String size) {\n long bytes = Long.parseLong(size.substring(0, size.length() - 1));\n String unit = size.substring(size.length() - 1);\n if (unit.compareToIgnoreCase(\"G\") == 0) { //$NON-NLS-1$\n return bytes * 1024 * 1024 * 1024;\n }\n if (unit.compareToIgnoreCase(\"M\") == 0) { //$NON-NLS-1$\n return bytes * 1024 * 1024;\n }\n if (unit.compareToIgnoreCase(\"K\") == 0) { //$NON-NLS-1$\n return bytes * 1024;\n }\n\n //Don't touch\n return bytes;\n }", "title": "" }, { "docid": "236b67cb506736bf5d4e239eb4294487", "score": "0.5927491", "text": "int getChunkSize();", "title": "" }, { "docid": "236b67cb506736bf5d4e239eb4294487", "score": "0.5927491", "text": "int getChunkSize();", "title": "" }, { "docid": "371a2dde0dfcdb1d07cbfca38218eecc", "score": "0.59210706", "text": "public int getSize(){return size;}", "title": "" }, { "docid": "3c0d8d969d635d43e6afc21ccd42cbc2", "score": "0.5920798", "text": "void setCacheSize(int kb) throws IllegalArgumentException;", "title": "" }, { "docid": "b3b21c3a51176dae9206a4106bcf1358", "score": "0.5916872", "text": "public int getSize() {\n/* 45 */ return this.size;\n/* */ }", "title": "" }, { "docid": "c2474349a4afd967c8b599e7acbd1f32", "score": "0.59166676", "text": "int getSizeCount();", "title": "" }, { "docid": "ee77ab5fc06f9dec00263bca6e5e9b8f", "score": "0.5915099", "text": "private void initSize() {\n int t = 1000;\n int h = 40;\n int m = 7;\n double l = 1.5;\n \n size = 2;\n Random r = new Random();\n \tdouble n = Math.floor(Math.log((Math.random() * t) + 1)/Math.log(l));\n \tif (n >= m) {\n \t\tdouble hn = h - n;\n \t\tdouble h2 = h / 2;\n \t\tdouble c = Math.pow(hn, hn / h2) / (h2 / 2);\n \t\tfloat v = (r.nextFloat() - 1) / 4;\n \t\tsize = (int) Math.round(c + c * v);\n \t}\n }", "title": "" }, { "docid": "5e976014f06c9f01769939764ec213a5", "score": "0.5896702", "text": "public long getMaxSizeInMB() {\n return maxSizeInMB;\n }", "title": "" }, { "docid": "bbe9cdc9f995dcce946f8d845f3e6d3e", "score": "0.5885869", "text": "private static void calSize() {\n\t\trunGC();\n\n\t\tlong heap1 = 0;\n\t\tfinal int count = 100000;\n\t\tObject[] objs = new Object[count];\n\n\t\tfor (int i = -1; i < count; i++) {\n\t\t\tObject obj = null;\n//\t\t\tobj = new Object();\n//\t\t\tobj = new Integer(i);\n//\t\t\tobj = new Double(i);\n//\t\t\tobj = new Long(i);\n//\t\t\tobj = new Float(i);\n\t\t\tobj = new String();\n\n\t\t\tif (i < 0) {\n\t\t\t\tobj = null;\n\t\t\t\trunGC();\n\t\t\t\theap1 = usedMemory();\n\t\t\t} else {\n\t\t\t\tobjs[i] = obj;\n\t\t\t}\n\t\t}\n\n\t\trunGC();\n\t\tlong heap2 = usedMemory();\n\t\tfinal int size = (int) Math.round((heap2 - heap1) / (double) count);\n\t\t\n\t\tSystem.out.println(\"heap1 = \" + heap1 + \" ; heap2 = \" + heap2);\n\t\tSystem.out.println(\"heap2 - heap1 = \" + (heap2 - heap1) + \" ; \"\n\t\t\t\t+ objs[0].getClass().getSimpleName() + \" size = \" + size);\n\t\t\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tobjs[i] = null;\n\t\t}\n\t\tobjs = null;\n\t\trunGC();\n\n\t}", "title": "" }, { "docid": "3cc357c9ebe607ada0a6c1b690d17dd7", "score": "0.5880952", "text": "public static int totalSize_coefficient() {\n return (96 / 8);\n }", "title": "" }, { "docid": "028f0f69f0b6eb0109203cea75a616a7", "score": "0.5879189", "text": "public static String getReadableFileSize(int size) {\n final int BYTES_IN_KILOBYTES = 1024;\n final DecimalFormat dec = new DecimalFormat(\"###.#\");\n final String KILOBYTES = \" KB\";\n final String MEGABYTES = \" MB\";\n final String GIGABYTES = \" GB\";\n float fileSize = 0;\n String suffix = KILOBYTES;\n\n if (size > BYTES_IN_KILOBYTES) {\n fileSize = size / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n suffix = GIGABYTES;\n } else {\n suffix = MEGABYTES;\n }\n }\n }\n return String.valueOf(dec.format(fileSize) + suffix);\n }", "title": "" }, { "docid": "bc1f25f2e7934bb4da425658bdc19417", "score": "0.58783454", "text": "public static synchronized String getCacheSizes() {\n/* 102 */ return \"cache: \" + freeLargeArrays.size() + \", tcache: \" + freeSmallArrays.size() + \", allocated: \" + inUseLargeArrays.size() + \", tallocated: \" + inUseSmallArrays.size();\n/* */ }", "title": "" } ]
528168f95b0e925aabfdaec6ba9975b3
/ / / / / / /
[ { "docid": "2e47cef2daaa11b06ff31aea23da3e88", "score": "0.0", "text": "private JavaType _computeDelegateType(AnnotatedWithParams creator, SettableBeanProperty[] delegateArgs)\n/* */ {\n/* 274 */ if ((!this._hasNonDefaultCreator) || (creator == null)) {\n/* 275 */ return null;\n/* */ }\n/* */ \n/* 278 */ int ix = 0;\n/* 279 */ if (delegateArgs != null) {\n/* 280 */ int i = 0; for (int len = delegateArgs.length; i < len; i++) {\n/* 281 */ if (delegateArgs[i] == null) {\n/* 282 */ ix = i;\n/* 283 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* 287 */ return creator.getParameterType(ix);\n/* */ }", "title": "" } ]
[ { "docid": "f4bfb491658d23d04e324332ecb7e7a4", "score": "0.55878603", "text": "public abstract int slash();", "title": "" }, { "docid": "0a0082d3dcf27cffffdf481aa595adec", "score": "0.52825457", "text": "public void shiftplane(int xdir,int ydir){\n\n }", "title": "" }, { "docid": "82723eca209ee7ba33f769f9998acbc9", "score": "0.51051825", "text": "void crossbreed() {\r\n \t\r\n }", "title": "" }, { "docid": "ae8e806dbd82070be4fb53e047857f0c", "score": "0.5054667", "text": "private void traceback() {\n\t String x = \" \" + this.x;\n\t String y = \" \" + this.y;\n\t alignedX = \"\";\n\t alignedY = \"\";\n\t int i = n;\n\t int j = m;\n\t while(cache[i][j].getParent() != Direction.NONE) {\n\t\t if(cache[i][j].getParent() == Direction.DIAGONAL) {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = x.charAt(i) + alignedX;\n\t\t\t alignedY = y.charAt(j) + alignedY;\n\t\t\t i--;\n\t\t\t j--;\n\t\t }\n\t\t else if(cache[i][j].getParent() == Direction.LEFT) {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = Constants.GAP_CHAR + alignedX;\n\t\t\t alignedY = y.charAt(j) + alignedY;\n\t\t\t j--;\n\t\t }\n\t\t else {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = x.charAt(i) + alignedX;\n\t\t\t alignedY = Constants.GAP_CHAR + alignedY;\n\t\t\t i--;\n\t\t }\n\t }\n\t cache[0][0].markPath();\n\t \n }", "title": "" }, { "docid": "e0eed1b95e4d4e24eec4e6d43d79a380", "score": "0.5045221", "text": "public static void Base() {\r\n\t\tSystem.out.println(\" ____|_||________\");\r\n\t\tSystem.out.println(\" / /\\\\ \\\\ \\\\\");\r\n\t\tSystem.out.println(\" # /__\\\\ # #\");\r\n\t\tSystem.out.println(\" / /\\\\ /\\\\ \\\\ \\\\\");\r\n\t\tSystem.out.println(\" # /__\\\\/__\\\\ # #\");\r\n\t\tSystem.out.println(\" /____________________\\\\___\\\\\");\r\n\t}", "title": "" }, { "docid": "c68f1f5dcea76b039bbb82c88762c5e6", "score": "0.5042105", "text": "private int parent(int pos) \n { \n return pos / 2; \n }", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.50372493", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54c764657723f81db3a316130843065f", "score": "0.50319695", "text": "float aoTriTap( isofunction f, PVector ro, PVector nrm, float eps, float toff, float ff) {\r\n\t PVector tg = new PVector();\r\n\t PVector bi=new PVector();\r\n\t if ( abs(nrm.y)<0.99f)\r\n\t {\r\n\t // cross \r\n\t bi.x=nrm.z;\r\n\t bi.z=-nrm.x;\r\n\t bi.y=0.;\r\n\t float bimag=1./sqrt(bi.x*bi.x+bi.z*bi.z);\r\n\t bi.x*=bimag;\r\n\t bi.z*=bimag;\r\n\t \r\n\t tg.x=nrm.y*bi.z;\r\n\t tg.y=nrm.z*bi.x-nrm.x*bi.z;\r\n\t tg.z=-nrm.y*bi.x;\r\n\t }\r\n\t else\r\n\t {\r\n\t tg = new PVector(1.f,0.f,0.f);\r\n\t bi = tg.cross(nrm);\r\n\t bi.normalize(); \r\n\t \r\n\t tg = nrm.cross(bi);\r\n\t }\r\n\t int numsteps=3;\r\n\t PVector rdir0=new PVector(); \r\n\t PVector rdir1=new PVector(); \r\n\t PVector rdir2=new PVector();\r\n\t float dx,dy,dz;\r\n\t //http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_EfficientSelfShadowedRadiosityNormalMapping.pdf\r\n\t dx=ttDx;\r\n\t dy=ttDy;\r\n\t dz=ttDz;\r\n\t rdir0.x = tg.x*dx + nrm.x*dz + bi.x*dy;\r\n\t rdir0.y = tg.y*dx + nrm.y*dz + bi.y*dy;\r\n\t rdir0.z = tg.z*dx + nrm.z*dz + bi.z*dy; \r\n\t \r\n\t dy=-dy;\r\n\t rdir1.x = tg.x*dx + nrm.x*dz + bi.x*dy;\r\n\t rdir1.y = tg.y*dx + nrm.y*dz + bi.y*dy;\r\n\t rdir1.z = tg.z*dx + nrm.z*dz + bi.z*dy; \r\n\t dx=ttDx2;\r\n\t rdir2.x = tg.x*dx + nrm.x*dz;\r\n\t rdir2.y = tg.y*dx + nrm.y*dz;\r\n\t rdir2.z = tg.z*dx + nrm.z*dz; \r\n\t float dst=150.f;\r\n\t return aoCone(f,ro,rdir0,coneAngle,eps*dst,0.75f*.5,numsteps)*.33+\r\n\t aoCone(f,ro,rdir1,coneAngle,eps*dst,0.5f*.5,numsteps)*.33+\r\n\t aoCone(f,ro,rdir2,coneAngle,eps*dst,0.25f*.5,numsteps)*.33;\r\n\t}", "title": "" }, { "docid": "9cbd68e444456243ecfc9be82f14281f", "score": "0.5030268", "text": "public double getWidth(){\r\n return localWidth;\r\n }", "title": "" }, { "docid": "064cc36821673b19a06c5420f66db79b", "score": "0.49983776", "text": "private static void xyLyThongKe() {\n\t\t\n\t}", "title": "" }, { "docid": "d1632760ef9a60d86cac2f7f66b0d697", "score": "0.49872106", "text": "public int w()\r\n/* 189: */ {\r\n/* 190:219 */ return 160;\r\n/* 191: */ }", "title": "" }, { "docid": "d445a7d1d519980de0acae96ce627ae2", "score": "0.4968284", "text": "Divide createDivide();", "title": "" }, { "docid": "0defa4aacda623e161c2277189ce8a35", "score": "0.4964559", "text": "double calculate(){\n return length * breadth ;\n }", "title": "" }, { "docid": "1114b2da3c09a4dafa3d946060614994", "score": "0.4924915", "text": "double calculate()\n{\n return length*breadth*height; \n}", "title": "" }, { "docid": "720a79d7084b0111dd03f869be5bf0a5", "score": "0.4924262", "text": "double volume() {\nreturn width * height * depth;\n}", "title": "" }, { "docid": "a029b6fbf1105c898a596a531a76d945", "score": "0.4918997", "text": "public static void main(String[] args) {\nDominosString ds = new DominosString();\r\n//System.out.println(ds.pushDominoes(\".L.R...LR..L..\"));\r\n\r\nSystem.out.println(ds.uniquePaths(7, 3));\r\n\t}", "title": "" }, { "docid": "7549321302f42690b78a56067e62b04e", "score": "0.49140117", "text": "Rectangle()\n\n {\n\n length=9;\n\n breadth=9;\n\n }", "title": "" }, { "docid": "41d305187b8428fbf1e89ed5e4e1902d", "score": "0.49114764", "text": "private int rightChild(int pos) \n { \n return (2 * pos) + 1; \n }", "title": "" }, { "docid": "074ba248746e162579fe94cf5c07ee21", "score": "0.48919624", "text": "public int getSqueueObject(ImageProcessor ip, Point centerP){\n int wile = -1;\r\n //left X\r\n int x1 = centerP.x;\r\n int x2 = centerP.x - 1;\r\n int dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y); //x1 - x2;\r\n while((dx >= wile)/*|(x2<0)*/){ \r\n x1 = x2;\r\n x2 = x2 - 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n }\r\n IJ.log(\"End left X = \"+String.valueOf(x2)+\" dx = \"+String.valueOf(dx));\r\n int _x = x2;\r\n \r\n //right X\r\n x1 = centerP.x;\r\n x2 = centerP.x + 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n while((dx >= wile)/*|(x2>=ip.getWidth())*/){ \r\n x1 = x2;\r\n x2 = x2 + 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n }\r\n IJ.log(\"End right X = \"+String.valueOf(x2)+\" dx = \"+String.valueOf(dx));\r\n int _w = x2 - _x;\r\n \r\n //top y\r\n int y1 = centerP.y;\r\n int y2 = centerP.y - 1;\r\n int dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n while((dy >= wile)/*|(y2<0)*/){ \r\n y1 = y2;\r\n y2 = y2 - 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n }\r\n IJ.log(\"End top Y = \"+String.valueOf(y2)+\" dy = \"+String.valueOf(dy));\r\n int _y = y2;\r\n \r\n //foot y\r\n y1 = centerP.y;\r\n y2 = centerP.y + 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n while((dy >= wile)/*|(y2<=ip.getHeight())*/){ \r\n y1 = y2;\r\n y2 = y2 + 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n }\r\n IJ.log(\"End foot Y = \"+String.valueOf(y2)+\" dy = \"+String.valueOf(dy));\r\n int _h = y2 - _y;\r\n \r\n //ip.drawOval(_x, _y, _w, _h);\r\n \r\n return _w*_h;\r\n }", "title": "" }, { "docid": "ce2a4cd764625f1890deebfb3d32770a", "score": "0.4877495", "text": "public static void slashFigure(int dimension)\n {\n\n for (int rows = 1; rows <= dimension; rows++)\n {\n for (int i = 1; i < rows; i++)\n {\n System.out.print(\"\\\\\\\\\");\n }\n for (int j = 1; j <= dimension - rows; j++)\n {\n System.out.print(\"!!\");\n }\n System.out.print(\"!!\");\n for (int j = 1; j <= dimension - rows; j++)\n {\n System.out.print(\"!!\");\n }\n\n for (int i = 1; i < rows; i++)\n {\n System.out.print(\"//\");\n }\n System.out.println();\n }\n\n }", "title": "" }, { "docid": "a1becc5550c1588bbf54b6f7cb26fe16", "score": "0.48760122", "text": "@Override\n public void Draw()\n {\n\n\n }", "title": "" }, { "docid": "c63b9cd6a6d4fe3db5bd67eb3ea56666", "score": "0.48748213", "text": "double getWidth (){\n return width;\n }", "title": "" }, { "docid": "b09023388e165bec79f0769d2908f059", "score": "0.48631805", "text": "public void rootHolderInConsol() {\r\n\t\tfor(int i=0;i<pixel.length;i++) {\r\n\t\t\tif(i>0 && i%image.getWidth()==0) \r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4e4b06d415f6660ab5771d5bcbe26328", "score": "0.48620355", "text": "private void bm25() {\n \t\t\n \t}", "title": "" }, { "docid": "ecc767596c795ab5762a9f381fa7a19f", "score": "0.48546165", "text": "int width();", "title": "" }, { "docid": "2fab3f9364c51adaea0728ece5be7b15", "score": "0.48482078", "text": "private int parent (int i){\r\n return i/2;\r\n }", "title": "" }, { "docid": "0f3e301446ed33bbd5b8f9a737adc0d3", "score": "0.48452964", "text": "private void Linearize(Node root) {\n\r\n\t}", "title": "" }, { "docid": "b370cf7b8dab4b500733d84d6b9676af", "score": "0.4829434", "text": "@Override\n public double perimeter() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "a72a4a3e6ab24123f6c955861ac73e6f", "score": "0.48087573", "text": "void drawTree() {\n\t\tdouble initAngL = 36 * Math.PI / 180;\n\t\tdouble initAngR = 24 * Math.PI / 180;\n\t\tdouble initLen = -100;\n\t\tint maxBranchDepth = 6;\n\t\tdrawBranch(ORIGIN, 0, initAngL, initAngR, initLen, maxBranchDepth);\n\t}", "title": "" }, { "docid": "f9c1862cc79ad6f687fda76b52b2301a", "score": "0.4805031", "text": "int area()\n\n {\n\n int rectArea=length*breadth;\n\n return rectArea;\n\n }", "title": "" }, { "docid": "8dbc4ecc9572c88d8e34be55cf00f3eb", "score": "0.48036104", "text": "String swim();", "title": "" }, { "docid": "ca3d7a2b446533e8773c34b9f164cd04", "score": "0.4803128", "text": "@Override\r\n public int Keliling() {\r\n return (4*(p+l+t));\r\n }", "title": "" }, { "docid": "9d8d428fbdc9353613831833838f0a0d", "score": "0.4802456", "text": "private int location_left_child(int index){\n return 2 * index;\n }", "title": "" }, { "docid": "6996ef69a97c0c022b19531c66057e66", "score": "0.4799407", "text": "String getRing();", "title": "" }, { "docid": "05da22e3d7d44854b6c31874905ea8b4", "score": "0.47979093", "text": "@Override\r\n\tvoid around() {\n\t\tSystem.out.println(\"사각형 둘레: \" + 2*(side + height));\r\n\t}", "title": "" }, { "docid": "18c59761bf3737ad7178277fe259b678", "score": "0.479602", "text": "private int getParent(int c) {\n return (c - 1)/3;\n}", "title": "" }, { "docid": "4502d05dca2b036b99421d0be54b548f", "score": "0.47920182", "text": "@Override\r\n\tpublic void draw () {\n\t\t\r\n\t}", "title": "" }, { "docid": "b48730249280b0d20adeec6c32521203", "score": "0.47905833", "text": "public int getWidth() {\n/* 43 */ return this.width;\n/* */ }", "title": "" }, { "docid": "b9907d41eaf6d5a1aab31647ef32dedc", "score": "0.47895086", "text": "public void b()\r\n/* 46: */ {\r\n/* 47: 67 */ super.b();\r\n/* 48: 68 */ this.j.h.bi = this.h;\r\n/* 49: */ \r\n/* 50: 70 */ this.i = ((this.l - this.f) / 2);\r\n/* 51: 71 */ this.r = ((this.m - this.g) / 2);\r\n/* 52: */ }", "title": "" }, { "docid": "665e9eb68869e91ca82a83127c6f9166", "score": "0.47892973", "text": "public int getSideLength(){ return sideLength; }", "title": "" }, { "docid": "7f3480aa2ca6a3e068720ade564d70f5", "score": "0.47889155", "text": "private int getParent(int index){return index/2;}", "title": "" }, { "docid": "2726fa4e3f2d8e4e9f6793ee992529dc", "score": "0.47884515", "text": "public void rigth(){\n ArrayList<Image> sprite = super.getSprite();\n int num=0;\n super.setY(this.startPoint[0]*this.size);\n \n while(this.sharedBuffer.move(1, this.matrix, this.startPoint)){\n super.setImage(sprite.get(num));\n this.startPoint[1]++;\n super.setX(this.startPoint[1] * this.size);\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n Logger.getLogger(FastCharacter.class.getName()).log(Level.SEVERE, null, ex);\n }\n if(num==1){\n num=0;\n }else{\n num=1;\n }\n }\n this.left();\n }", "title": "" }, { "docid": "fbe7e71e90859705d1357ca55234c8fc", "score": "0.47875983", "text": "void update(int edgeWidth);", "title": "" }, { "docid": "ab96ba104c1a575dc60be1b807571915", "score": "0.47832075", "text": "public static void findAntagonists(){\n\n\t}", "title": "" }, { "docid": "f69f52de42c92a8f0d800951723cad8b", "score": "0.47783518", "text": "public void Move ()\n {\n nCycleSlot++;\n if ((nCycleSlot >= phPath.Length ()) || (nCycleSlot <= 0)) {\n nCycleSlot = 0;\n }\n\n nX = phPath.LookupX(nCycleSlot, bLeft);\n nY = phPath.LookupY(nCycleSlot);\n }", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.47767594", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.47767594", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.47767594", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.47767594", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "a322fe243685f8675cda94c6b8a0e991", "score": "0.47763965", "text": "public void longer(){\n //this.rectr.get(1).first = orixr+itemwr+itemwr;\n //this.rectr.get(2).first = orixr+itemwr+itemwr;\n this.itemwr += this.itemwr;\n updatePoints();\n return;\n }", "title": "" }, { "docid": "266699deacf2368bc5d50f199b0cb538", "score": "0.47666717", "text": "SV() {\n\t\t\n\t}", "title": "" }, { "docid": "b419495770bf21b1efe2bb00e113d537", "score": "0.4765123", "text": "protected int realWidth() {\n return 3 * size - 2;\n }", "title": "" }, { "docid": "fd58e55aaa32b98ce869a8cdf606ab45", "score": "0.47615197", "text": "private static void getPath() {\n\t\n }", "title": "" }, { "docid": "4a9558a50ce3fb6bfdfc57ad6806c44e", "score": "0.47585943", "text": "@Test(timeout=100)\n\t\tpublic void testcornerprefix2(){\n\t\t\tLinkedBinaryTree<String> a=Assignment.prefix2tree(\"* * * 0 a 2 + 1 - 8 * 2 6\");\n\t\t\tassertEquals(\"* * * 0 a 2 + 1 - 8 * 2 6\",Assignment.tree2prefix(a));\n\t\t}", "title": "" }, { "docid": "ffb1ce4f225de020945e0916e83a39da", "score": "0.47561526", "text": "public void reverseDirection() {\r\n\tsuper.reverseDirection();\r\n\tint index = volIndexNeighbor1;\r\n\tvolIndexNeighbor1 = volIndexNeighbor2;\r\n\tvolIndexNeighbor2 = index;\r\n}", "title": "" }, { "docid": "a294f0a5ae8331d8d0cd2e9af41ea818", "score": "0.474545", "text": "private int leftChild(int pos) \n { \n return (2 * pos); \n }", "title": "" }, { "docid": "e90837e049daeb83d0f2e6cbeb3d1181", "score": "0.4743528", "text": "@Override\r\n\tdouble getPathfinderOutputMultiplier() {\n\t\treturn 0.5;\r\n\t}", "title": "" }, { "docid": "add1db5a88b1d6cbf72a340fe7a74cd3", "score": "0.47424266", "text": "public List<Tuple<Integer,Integer>> findShortestPath()\n\t \n\t {\n\t\t Tuple<Integer,Integer> currentPosition = findStartPosition(); \n\t\t if(visitedPaths ==null)\n\t\t {\n\t\t\t visitedPaths = new ArrayList<>();\n\t\t }\n\t\t//visitedPaths.add(currentPosition);\n\t\t Tuple<Integer,Integer> endPostion = findEndPosition(mapTable);\n\t\t \n\t\t MyEnum.Direction direction = MyEnum.Direction.right; \n\t\t //check what is in front of us and around us\n\t\t\n\t\twhile(currentPosition != endPostion )\n\t\t{\n\t\tInteger col =currentPosition.x;\n\t\tInteger row = currentPosition.y;\n\t\tif(col < maxColumn - 1 && (mapTable[row ][col + 1 ].equals(\".\") || mapTable[row ][col + 1 ].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row ][col + 1 ].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t \tdirection =MyEnum.Direction.right;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t\t\n\t\t }\n\t\t\n\t\t else if(row < maxRow -1 && (mapTable[row + 1][col].equals(\".\") || mapTable[row + 1][col].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row + 1][col].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t\tdirection =MyEnum.Direction.down;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t }\n\t\t else if(row > 0 && (mapTable[row -1][col].equals(\".\") || mapTable[row -1][col].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row -1][col].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t direction =MyEnum.Direction.up;\n\t\t\t currentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t }\n\t\t else if(col >0 && mapTable[row][col- 1 ].equals(\".\"))\n\t\t {\n\t\t\t if(mapTable[row ][col - 1 ].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t \tdirection =MyEnum.Direction.left;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t\t \n \t\t\t\t\n\t\t }\n\t\t \n\t\t \n\t\t else\n\t\t {\n\t\t\t noEnd =true;\n\t\t }\n\t\t\t\n\t\t\tif(noEnd)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//find the last visited node and check that does not have wall and start from there\n\t\t\t\tfor (Integer i = visitedPaths.size()-1; i >= 0 ; i--)\n\t\t\t\t{\n\t\t\t\t Tuple<Integer,Integer> temp\t=visitedPaths.get(i);\n\t\t\t\t if(temp.x < maxColumn -1 && mapTable[temp.y][temp.x + 1].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition = temp;\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t else if(temp.y < maxRow - 1 && mapTable[temp.y + 1][temp.x ].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition =temp;// new Tuple<Integer,Integer>(temp.x, temp.y + 1);\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t else if(temp.y > 0 && mapTable[temp.y - 1][temp.x].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition = temp;new Tuple<Integer,Integer>(temp.x , temp.y-1);\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\n\t\t\t\t travelPath.remove(temp);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnoEnd = false;\n\t\t\t}\n\t\t\t displayTableMap(mapTable);\n\t\t}\n\t\tfor(Tuple<Integer,Integer> item: travelPath)\n\t {\n\t\t\tmapTable[item.y][item.x]=\"*\";\n\t }\n\t\tdisplayTableMap(mapTable);\n\n\t\treturn travelPath;\n\t\t \n\t }", "title": "" }, { "docid": "3b02482f46ed0a028290d29aca2fc58f", "score": "0.473308", "text": "String PARENT_GRADIENT_IE9();", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.47219518", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "f91a2a29a3c1fbcd9f4fa035343fc918", "score": "0.4721432", "text": "public int getWidth() {\r\n\treturn width;\r\n}", "title": "" }, { "docid": "a4b8163a5ca4900cd6036c9a2555dbea", "score": "0.47136584", "text": "public static void main(String[] args) {\n int row=5,r,str;\n /*for(r=1;r<=row;r++)\n\t{\n \t for(str=1;str<=r;str++)\n \t {\n \t\t System.out.print(\"*\");\n \t }\n System.out.println(\"\");\n\t}\n \n output \n *\n **\n ***\n ****\n ***** */\n \n for(r=1;r<=row; r++)\n {\n \t for(str=1;str<=(row-r)+1;str++)\n \t {\n \t\t System.out.print(\"*\");\n \t }\n \t System.out.println(\"\");\n }\n\t}", "title": "" }, { "docid": "58ddc84bae948c33064aedc5b1b64ba7", "score": "0.47088912", "text": "public static void printFigure() {\n\t\tfor(int lineNumber = 0; lineNumber < SIZE; lineNumber++) {\n\t\t\tprintChar(SIZE*2-2*lineNumber, '\\\\'); \t\n\t\t\tprintChar(2*lineNumber, '<');\n\t\t\tprintChar(2*lineNumber, '\\\\');\n\t\t\tprintChar(SIZE*2-2*lineNumber, '<'); \t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int lineNumber = SIZE-1; lineNumber >= 0; lineNumber--) {\n\t\t\tprintChar(SIZE*2-2*lineNumber, '>'); \t\n\t\t\tprintChar(2*lineNumber, '\\\\');\n\t\t\tprintChar(2*lineNumber, '>');\n\t\t\tprintChar(SIZE*2-2*lineNumber, '\\\\'); \t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "e438c8e9bd333e4ea3ca831f26ab4928", "score": "0.47056293", "text": "@Override\n public double getWidth() {\n return 0.5;\n }", "title": "" }, { "docid": "1334e727e250ea142f306b353a4594a4", "score": "0.4704856", "text": "String getDiagnosen();", "title": "" }, { "docid": "d4989512577392ce906d3647eaaf28ac", "score": "0.47009063", "text": "public abstract void mo64080b();", "title": "" }, { "docid": "c2a08ce499e3d2af59e70f41d1ec71cd", "score": "0.4691717", "text": "public double getWidth() {\r\n\treturn width;\r\n}", "title": "" }, { "docid": "a701cded1a870bc62fe7a168a87ada2b", "score": "0.46915525", "text": "public int width(){return values.width_;}", "title": "" }, { "docid": "3b320da854ac3a488e1cb13a4646aa37", "score": "0.46884918", "text": "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"/\";\n\t\t}", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.46856657", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "c12aea6373bf8e827c32b769971fa6d6", "score": "0.46851265", "text": "public static void slashFigure2(int dimension)\n {\n\n writeChars('!',\n 2 * dimension);\n System.out.print(\"!!\");\n writeChars('!',\n 2 * dimension);\n System.out.println();\n for (int rows = 1; rows <= dimension; rows++)\n {\n writeChars('\\\\',\n 2 * rows);\n writeChars('!',\n 2 * dimension - 2 * rows);\n System.out.print(\"!!\");\n writeChars('!',\n 2 * dimension - 2 * rows);\n writeChars('/',\n 2 * rows);\n System.out.println();\n }\n }", "title": "" }, { "docid": "210519cfb53a9d23ed20e1cb6f45303e", "score": "0.4681314", "text": "abstract void area();", "title": "" }, { "docid": "205d543ba350cf6861fb5f15fbf7495b", "score": "0.4676924", "text": "@Override\r\n\tpublic void arrastar(int x, int y) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.46767715", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "cf5e070ea3c82afcf11c603373d4f74d", "score": "0.46758586", "text": "public void drawSectors() {\n drawLeftUp(getDistanceStrength(checkNearestPoint(leftUp)));\n drawLeftDown(getDistanceStrength(checkNearestPoint(leftDown)));\n drawCenterUp(getDistanceStrength(checkNearestPoint(centerUp)));\n drawCenterDown(getDistanceStrength(checkNearestPoint(centerDown)));\n drawRightUp(getDistanceStrength(checkNearestPoint(rightUp)));\n drawRightDown(getDistanceStrength(checkNearestPoint(rightDown)));\n \n}", "title": "" }, { "docid": "ae695ad497c8fa4b66fd788d8a74c3da", "score": "0.46678016", "text": "@Override\r\n\tpublic void draw() {\n\t}", "title": "" }, { "docid": "e3053071861e2699ad63741661b4b5b1", "score": "0.46645227", "text": "public void Move ()\n {\n nCycleSlot++;\n if ((nCycleSlot >= ptbpPath.Length ()) || (nCycleSlot <= 0)) {\n nCycleSlot = 0;\n }\n\n nX = ptbpPath.LookupX(nCycleSlot);\n nY = ptbpPath.LookupY(nCycleSlot);\n }", "title": "" }, { "docid": "eb8ebc6574cc6ef13bd11f9e83ff05aa", "score": "0.46636888", "text": "public int getW()\r\n/* 44: */ {\r\n/* 45: 45 */ return 18;\r\n/* 46: */ }", "title": "" }, { "docid": "85aa113e540a91410ec16680b89607eb", "score": "0.46625915", "text": "void right();", "title": "" }, { "docid": "85aa113e540a91410ec16680b89607eb", "score": "0.46625915", "text": "void right();", "title": "" }, { "docid": "235e93513171b3855e448f7bbcbe2a09", "score": "0.46620694", "text": "private int location_right_child(int index){\n return (2 * index) + 1;\n }", "title": "" }, { "docid": "613bbd450ce798973c9cb10ccd4a021d", "score": "0.46617645", "text": "private void strokeWieght() {\n\t\t\n\t}", "title": "" }, { "docid": "775b9e312f41563868386b7c0ce05047", "score": "0.46570134", "text": "public static void main(String[] args) {\n\t\tint[] v={1,2,3,4,5,6,7,8};\n\t\tShortPath p=new ShortPath();\n\t\tdivide_and_Conquer d=new divide_and_Conquer();\n\t\t \n\t\tp.pn(d.sum(v));\n\t\t \n\n\t}", "title": "" }, { "docid": "316e213d0e67b64eb6b9acf613026d18", "score": "0.46566656", "text": "public static void main(String[]args)\r\n{\nfor (int c= 1;c<=9;c++)\r\n{\r\nfor(int r=2;r<=c;r++ )\r\n{\r\nSystem.out.print(\" \");\r\n}\r\n\r\nfor(int r=9;r>=c;r-- )\r\n{\r\nSystem.out.print(\" *\");\r\n}\r\n\r\n\r\nSystem.out.println(\" \");\r\n}\r\n\r\n}", "title": "" }, { "docid": "53e3bd8e2efee1b450548a12595252ed", "score": "0.465495", "text": "public void drawTree(Graphics g, HNode root) {\n\t int dx, dy, dx2, dy2;\n\t int SCREEN_WIDTH=800; //screen size for panel\n\t int SCREEN_HEIGHT=600;\n\t int XSCALE, YSCALE; \n\t int circleSize = 50;\n\t int halfCircleSize = circleSize/2;\n\t XSCALE=SCREEN_WIDTH/t.totalHNodes; //scale x by total HNodes in tree\n\t YSCALE=(SCREEN_HEIGHT-circleSize-ys)/(t.maxheight+1); //scale y by tree height\n\t\n\t if (root != null) { // inorder traversal to draw each HNode\n\t drawTree(g, root.left); // do left side of inorder traversal \n\t dx = (root.xpos * XSCALE)+circleSize; // get x,y coords., and scale them \n\t dy = root.ypos * YSCALE +ys;\n\t String s = (char)root.nodeIndex + \":\" +root.frequency.toString(); //get the word at this HNode\n\t g.drawString(s, dx, dy); // draws the word\n\t if(root.left == null && root.right == null)\n\t \tg.drawString(root.code, dx, dy+50);\n\t g.drawOval(dx-halfCircleSize,dy-halfCircleSize, circleSize, circleSize);\n\t// this draws the lines from a HNode to its children, if any\n\t if(root.left!=null){ //draws the line to left child if it exists\n\t dx2 = root.left.xpos * XSCALE+circleSize; \n\t dy2 = root.left.ypos * YSCALE +ys;\n\t g.drawLine(dx,dy,dx2,dy2); \n\t }\n\t if(root.right!=null){ //draws the line to right child if it exists\n\t dx2 = root.right.xpos * XSCALE+circleSize;//get right child x,y scaled position\n\t dy2 = root.right.ypos * YSCALE + ys;\n\t g.drawLine(dx,dy,dx2,dy2);\n\t }\n\t drawTree(g, root.right); //now do right side of inorder traversal \n\t }\n\t g.drawString(encodedMessage, 10, (int) (SCREEN_HEIGHT*1.1));\n\t }", "title": "" }, { "docid": "dddd26fdc93c16cea3f0d146d36310a0", "score": "0.4654813", "text": "public static String calculate(int height,int width,String t[],boolean mine) {\n Node node = new Node(height, width, t,mine);\r\n // Stack for storing path\r\n Stack<Cell> path = new Stack<>();\r\n // To Display in format\r\n StringBuilder solution = new StringBuilder();\r\n // Maze in memory\r\n String map[][] = node.toBinaryArray();\r\n // To calculate shorest path\r\n shortestPath(map, new Cell(node.start_x, node.start_y), new Cell(node.end_x, node.end_y), path);\r\n //Maintain direction\r\n int lastrow = node.start_x, lastcol = node.start_y, crow = node.start_x, ccol = node.start_y, count = 0;\r\n\r\n // Poping path from stack to string\r\n if(path.empty())\r\n solution.append(\"No_Path \");\r\n\r\n while (!path.isEmpty()) {\r\n\r\n lastrow = crow;\r\n lastcol = ccol;\r\n\r\n Cell c = path.pop();\r\n crow = c.row;\r\n ccol = c.col;\r\n //print the current cell\r\n\r\n if (!(crow % 2 == 1 || ccol % 2 == 1)) {\r\n // System.out.print(\" \"+c+\" \");\r\n if (map[crow][ccol].equals(\"m\")) count++;\r\n if (lastrow == crow && lastcol == ccol + 1) {\r\n solution.append(\"'left', \");\r\n } else if (lastrow == crow && lastcol + 1 == ccol) {\r\n solution.append(\"'right', \");\r\n\r\n } else if (lastrow == crow + 1 && lastcol == ccol) {\r\n solution.append(\"'up', \");\r\n\r\n } else if (lastrow + 1 == crow && lastcol == ccol) {\r\n solution.append(\"'down', \");\r\n }\r\n }\r\n }\r\n // System.out.println(\"mine \" + count);\r\n drawCanvas(height, width, t, solution.toString());\r\n return \"[ \" + solution.toString()+ \"]\";\r\n }", "title": "" }, { "docid": "cafe0743e92b146b83c54a51863a9721", "score": "0.46533036", "text": "public int getWidth(){\n return width;\n }", "title": "" }, { "docid": "dd510476fdc9d821ee65d1b97a50aa7e", "score": "0.4650853", "text": "public void getDirections(){\n\t\tsuper.getDirections();\n\t\tSystem.out.println(\"To prepare big blueberry fillingblah blah\");\n\t}", "title": "" }, { "docid": "5b523cbf379f5d9b51bb219e04ffe65e", "score": "0.46474886", "text": "int parent(int i) {\n\treturn (i-1)/2;\n }", "title": "" }, { "docid": "c4906f8ce45c5ec3d19fbdea7040ebf5", "score": "0.46447286", "text": "@Override\n\tpublic void draw() {\n\n\t}", "title": "" }, { "docid": "249acd9d90b9c8b57ba7db91ca177806", "score": "0.46435264", "text": "@Override\r\n\tpublic int area() {\n\t\treturn len * width;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f617cc1eb53b29bf6802c3a597a9a8ac", "score": "0.4643316", "text": "private int[] createTreeByUnionFind( ) {\n\t\tlong ti = System.currentTimeMillis();\n\t\tint parent[] = new int[imgR.length];\n\t\tint zPar[] = new int[imgR.length];\n\t\t\n\t\tfor (int p = 0; p < imgR.length; p++) {\n\t\t\tzPar[p] = NIL;\n\t\t}\n\t\t\n\t\tfor(int i=imgR.length-1; i >= 0; i--){\n\t\t\tint p = imgR[i];\n\t\t\tparent[p] = p;\n\t\t\tzPar[p] = p;\n\t\t\tfor (Integer n : getAdjPixels(p, zPar)) {\n\t\t\t\tint r = findRoot(zPar, n);\n\t\t\t\tif(p != r){\n\t\t\t\t\tparent[r] = p;\n\t\t\t\t\tzPar[r] = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// canonizacao da arvore\n\t\tfor (int i = 0; i < imgR.length; i++) {\n\t\t\tint p = imgR[i];\n\t\t\tint q = parent[p];\n\t\t\tif(imgU[parent[q]] == imgU[q]){\n\t\t\t\tparent[p] = parent[q];\n\t\t\t}\n\t\t}\n\t\tzPar = null;\n\t\t\n\t\tlong tf = System.currentTimeMillis();\n if(isLog)\n \tSystem.out.println(\"Tempo de execucao [union-find] \"+ ((tf - ti) /1000.0) + \"s\");\n\t\t\n return parent;\n\t}", "title": "" }, { "docid": "9222ced0084ee0ce97facd4908c87b78", "score": "0.46372938", "text": "public int getDepth(){\r\n return localDepth;\r\n }", "title": "" }, { "docid": "9b0e170ab3837385f15c703e0faf855a", "score": "0.46354458", "text": "@Override\n\tpublic float getWidth() {\n\t\treturn 32;\n\t}", "title": "" }, { "docid": "5f40763809ee01c0dec9f49194c5f47f", "score": "0.46329427", "text": "private int rchild(int index) {\n // TODO - complete this\n return index*2+1;\n }", "title": "" }, { "docid": "942ac19eb8e6fa6482aa15ca8cadb491", "score": "0.46276385", "text": "void left();", "title": "" }, { "docid": "942ac19eb8e6fa6482aa15ca8cadb491", "score": "0.46276385", "text": "void left();", "title": "" }, { "docid": "91da1c031eccabb52fe8213ed6186ac7", "score": "0.46260417", "text": "protected int[] makePath(int p, int q) {\n\n int[] spath = uf.pathFromRoot(p);\n\n int[] tpath = uf.pathToRoot(q);\n\n int[] fpath = concat(spath,tpath);\n\n int[] rpath = reverse(fpath);\n\n int[] path = concat(fpath,rpath);\n //ArrayOps.printArray(path);\n return path;\n }", "title": "" }, { "docid": "7d8ba9e819f9fd6fd3b7e309dabc72a4", "score": "0.46219254", "text": "int getWidth() { return width; }", "title": "" }, { "docid": "9d0c7a56424478713bad1cbfa6607ff3", "score": "0.46174198", "text": "public void right();", "title": "" }, { "docid": "f9a51714b34fbad55129346952468f52", "score": "0.46171656", "text": "public void widthHalfWipeTransit() {\n double[][] reference1 = new double[width / 2][height];\r\n double[][] reference2 = new double[width / 2][height];\r\n double angle1 = angle, angle2 = angle + 180;\r\n angle1 = -1.0 * ((angle1 * Math.PI) / 180.0);\r\n angle2 = -1.0 * ((angle2 * Math.PI) / 180.0);\r\n double dx1 = Math.cos(angle1), dy1 = Math.sin(angle1);\r\n double dx2 = Math.cos(angle2), dy2 = Math.sin(angle2);\r\n double min1 = 2000, min2 = 2000;\r\n for(int c1 = 0; c1 < width / 2; c1++) {\r\n for(int c2 = 0; c2 < height; c2++) {\r\n reference1[c1][c2] = ((c1 + 1) * dx1) + ((c2 + 1) * dy1);\r\n if(reference1[c1][c2] < min1)\r\n min1 = reference1[c1][c2];\r\n reference2[c1][c2] = ((c1 + 1) * dx2) + ((c2 + 1) * dy2);\r\n if(reference2[c1][c2] < min2)\r\n min2 = reference2[c1][c2];\r\n }\r\n }\r\n for(int c1 = 0; c1 < width / 2; c1++) {\r\n for(int c2 = 0; c2 < height; c2++) {\r\n reference1[c1][c2] -= min1;\r\n reference2[c1][c2] -= min2;\r\n }\r\n }\r\n for(int c1 = 0; c1 < width / 2; c1++) {\r\n for(int c2 = 0; c2 < height; c2++) {\r\n reference[c1][c2] = reference1[c1][c2];\r\n reference[c1 + (width / 2)][c2] = reference2[c1][c2];\r\n }\r\n }\r\n System.out.println(dx1 + \", \" + dy1 + \" and \" + dx2 + \", \" + dy2);\r\n stepSize = Math.abs(((width * Math.abs(dx1 / 2)) + 0.0 + (height * Math.abs(dy1 /2))) / (keyframes + 1.0));\r\n transit();\r\n }", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "8763acb6f900c866218d4116c125ae16", "score": "0.0", "text": "public bxb mo2511a(bwx bwx) {\n throw null;\n }", "title": "" } ]
[ { "docid": "561e1ad2be3078ec8b0e2ca7a4d4d261", "score": "0.62639445", "text": "A(A a){\n this.a = a.a;\n this.b = a.b;\n }", "title": "" }, { "docid": "9f48728c71c479e7c8162d75ccb161a3", "score": "0.62316394", "text": "public interface C16179d {\n /* renamed from: a */\n void mo29055a();\n }", "title": "" }, { "docid": "6a4d8ba62540d5dbd93c1a8f59c8d08e", "score": "0.6214001", "text": "public interface C3647a {\n /* renamed from: a */\n void mo22811a();\n }", "title": "" }, { "docid": "80c2764e00b7106c89304582ec5f8129", "score": "0.6140085", "text": "public interface C1646b {\n /* renamed from: a */\n void mo7387a();\n }", "title": "" }, { "docid": "4389b27d17ba65be7a2d9b4b8a941e5c", "score": "0.61353695", "text": "interface C2399a {\n /* renamed from: a */\n void mo28252a();\n }", "title": "" }, { "docid": "457230fe22fd977e9bc244b23858474b", "score": "0.61102384", "text": "public interface C2312a {\n /* renamed from: a */\n void mo3477a();\n }", "title": "" }, { "docid": "ca517679c96d7b4d332adefe1ec7e271", "score": "0.60967004", "text": "interface C0172a {\n /* renamed from: a */\n void m822a();\n\n /* renamed from: a */\n void m823a(int i);\n }", "title": "" }, { "docid": "a01b24f097b70f8e60f58d6d2bd1cf63", "score": "0.6052903", "text": "protected interface C3710d {\n /* renamed from: a */\n void mo55094a();\n\n /* renamed from: b */\n void mo55095b();\n }", "title": "" }, { "docid": "6780242f080b7a5592b821fdbe1bd105", "score": "0.60490143", "text": "public interface C6296b {\n /* renamed from: a */\n void mo18911a();\n }", "title": "" }, { "docid": "9d2104286883b6a6fc3cefcd4824e351", "score": "0.6025992", "text": "@Override\r\n\tpublic void name(A sA) {\n\t\tsuper.name(sA);\r\n\t}", "title": "" }, { "docid": "fadbbc1289577649a6e73509f7e3ae45", "score": "0.59992886", "text": "interface C1093a {\n /* renamed from: a */\n void mo12033a(C1095aw c1095aw);\n\n /* renamed from: b */\n void mo12034b(C1095aw c1095aw);\n }", "title": "" }, { "docid": "3fc8219949d8cb85c4d6f8a17c5d0ef7", "score": "0.5952041", "text": "public interface C28498a {\n /* renamed from: a */\n void mo24465a(C43302b c43302b);\n }", "title": "" }, { "docid": "fdd0517212a5ceeade5a762d3e23a0aa", "score": "0.59495753", "text": "interface C4775c {\n /* renamed from: a */\n void mo10995a();\n\n /* renamed from: a */\n void mo10996a(String str);\n\n /* renamed from: b */\n void mo10997b();\n\n /* renamed from: c */\n void mo10998c();\n }", "title": "" }, { "docid": "22e164686fc5557601ecba2bbac9cabb", "score": "0.59311694", "text": "public interface C26327e {\n /* renamed from: a */\n void mo33755a(C18508a c18508a);\n}", "title": "" }, { "docid": "2e3ddbf34dc8d2c1b6a07c22db4af13b", "score": "0.5910207", "text": "public interface C30988a {\n /* renamed from: a */\n void mo50166a();\n\n /* renamed from: b */\n void mo50167b();\n }", "title": "" }, { "docid": "d34fbcb41948f723a330a488a988489e", "score": "0.5895423", "text": "public interface EcirdelAubrac {\n /* renamed from: a */\n void mo34540a();\n\n /* renamed from: a */\n void mo34541a(int i);\n\n /* renamed from: b */\n void mo34542b();\n\n /* renamed from: c */\n void mo34543c();\n\n /* renamed from: d */\n void mo34544d();\n\n /* renamed from: e */\n void mo34545e();\n\n /* renamed from: f */\n void mo34546f();\n}", "title": "" }, { "docid": "7bc2a04e38eaf5e4d6f0aa270d8645ed", "score": "0.589214", "text": "public interface C0056a {\n /* renamed from: a */\n void mo14a(int i);\n }", "title": "" }, { "docid": "e70e11a8694b993832aff11987f53409", "score": "0.5880792", "text": "public interface C0577d {\n /* renamed from: a */\n void mo4766a(double d);\n}", "title": "" }, { "docid": "4316b8830fc268176261d60b624c9d23", "score": "0.58727145", "text": "public interface C4790a {\n /* renamed from: a */\n void mo25732a(String str);\n}", "title": "" }, { "docid": "57f14af64f595b71c43572585f6abe6a", "score": "0.5868772", "text": "public interface C39165c {\n /* renamed from: a */\n void mo97196a(int i);\n}", "title": "" }, { "docid": "e6f98abf447e8b12758843d48c747b22", "score": "0.5866959", "text": "interface C0216c {\n /* renamed from: a */\n void mo659a();\n\n /* renamed from: b */\n void mo660b();\n }", "title": "" }, { "docid": "56669ae8dd36b094e446cabeeeb83e3a", "score": "0.58562404", "text": "interface C0024a {\n /* renamed from: a */\n void mo41a();\n\n /* renamed from: b */\n void mo42b();\n\n /* renamed from: c */\n void mo43c();\n }", "title": "" }, { "docid": "bf079d20f1250ac40740c48e85da3537", "score": "0.58519495", "text": "interface C2401c {\n /* renamed from: a */\n void mo28250a(int i);\n }", "title": "" }, { "docid": "f788d62c7fb0fc233451192a81f263d6", "score": "0.58498687", "text": "public interface C1636d {\n /* renamed from: a */\n void mo16599a(int i);\n}", "title": "" }, { "docid": "488aa8b4900f4321da0dac162e1073fe", "score": "0.5829243", "text": "interface C10772a {\n /* renamed from: a */\n void mo34774a();\n\n /* renamed from: a */\n void mo34775a(MediaRenderView mediaRenderView);\n }", "title": "" }, { "docid": "2f872edbebddea52a678df028253a033", "score": "0.5825239", "text": "public interface C0421a {\n /* renamed from: a */\n void mo2887a(List<C0424m> list);\n }", "title": "" }, { "docid": "6a0681eba6e2bdb15e6e10eeb6c9b71e", "score": "0.5823772", "text": "public interface C31601a {\n /* renamed from: a */\n void mo82379a(String str, int i);\n }", "title": "" }, { "docid": "5b17342eeecf657a85837a9107d2952a", "score": "0.5813055", "text": "public interface C1949o<T> {\n /* renamed from: a */\n void mo16242a(T t);\n}", "title": "" }, { "docid": "1ca831847d27e90f02105ec7b03e2ba5", "score": "0.58121306", "text": "interface C16998ap {\n /* renamed from: a */\n C16997ao mo44216a();\n}", "title": "" }, { "docid": "75810c990897f486f3351a11b2e2dfc9", "score": "0.5800254", "text": "public interface C35198b {\n /* renamed from: a */\n void mo89519a(int i, int i2, int i3);\n }", "title": "" }, { "docid": "79231370d3c4b5420206d69110f94a29", "score": "0.57991016", "text": "public interface C0496a {\n /* renamed from: a */\n void mo365a();\n\n /* renamed from: a */\n void mo366a(int i, int i2, int i3, int i4, int i5);\n\n /* renamed from: a */\n void mo367a(Bundle bundle);\n\n /* renamed from: a */\n void mo368a(CharSequence charSequence);\n\n /* renamed from: a */\n void mo369a(Object obj);\n\n /* renamed from: a */\n void mo370a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo371a(List<?> list);\n\n /* renamed from: b */\n void mo372b(Object obj);\n }", "title": "" }, { "docid": "ba0768d1e377543701653e0a0ff4e95f", "score": "0.5791809", "text": "public interface C41132a {\n /* renamed from: a */\n void mo101600a(String str);\n }", "title": "" }, { "docid": "fbe03b3bd88be3cf21cfb67620fc6ea6", "score": "0.57904166", "text": "public interface C2104a {\n /* renamed from: a */\n void mo5913a(C2102d c2102d);\n }", "title": "" }, { "docid": "f22a1fd16ca3f78fa3d0c4a5c8df90bd", "score": "0.5777292", "text": "public interface C4474a {\n /* renamed from: a */\n void mo12243a(long j);\n\n /* renamed from: b */\n void mo12244b(long j);\n }", "title": "" }, { "docid": "aafe0cdade97801181213d461312295e", "score": "0.57604057", "text": "public interface C30987k {\n /* renamed from: a */\n void mo29183a(C24346dd c24346dd);\n }", "title": "" }, { "docid": "f949ab1794a743e26754be96a28bbbcf", "score": "0.57540977", "text": "interface C8936k {\n /* renamed from: a */\n void mo24333a();\n}", "title": "" }, { "docid": "48c0b53e62661dfb52ef3ca92f6dfe5c", "score": "0.5752176", "text": "public interface C1654c {\n /* renamed from: a */\n void mo7517a(int i, int i2);\n }", "title": "" }, { "docid": "f1ef5db7f259535aed974568df030397", "score": "0.5739353", "text": "public interface C29238ba {\n /* renamed from: a */\n float mo74856a(String str);\n}", "title": "" }, { "docid": "912fb32645e91eb3d6179ecfa90f6cec", "score": "0.57367957", "text": "public interface C23656a {\n /* renamed from: a */\n void mo61561a();\n\n /* renamed from: a */\n void mo61562a(float f);\n\n /* renamed from: b */\n void mo61563b(float f);\n }", "title": "" }, { "docid": "a11a7f972504b3a75987b95f5e0b58ca", "score": "0.57355344", "text": "public interface C11756b {\n /* renamed from: a */\n void mo40256a(int i);\n\n /* renamed from: b */\n void mo40257b(int i);\n}", "title": "" }, { "docid": "b6f53c25ef9fc8d5fa9e7e61cbef4c99", "score": "0.5730142", "text": "public interface C0450d {\n /* renamed from: a */\n String mo1853a(Field field);\n}", "title": "" }, { "docid": "70a6948666993d22da30857d799c9a41", "score": "0.571775", "text": "public interface C3987c {\n /* renamed from: a */\n void mo23348a();\n\n /* renamed from: b */\n void mo23349b();\n}", "title": "" }, { "docid": "9ba5db6d4b51890895cb7bc483e7b181", "score": "0.57158196", "text": "interface C10816b {\n /* renamed from: a */\n void mo31284a(int i);\n\n void show();\n }", "title": "" }, { "docid": "c0fbb9a82dabceb7e3bf7f2d0db10843", "score": "0.57091975", "text": "public interface C0785g {\n /* renamed from: a */\n void m212a(C0953e c0953e);\n}", "title": "" }, { "docid": "cdc058443024c2a4a0a77ee006ea592f", "score": "0.57056916", "text": "interface C1129bd {\n /* renamed from: a */\n void mo2892a();\n\n /* renamed from: a */\n void mo2893a(long j, String str);\n}", "title": "" }, { "docid": "0a087cd959c0ca821943b370ad5d5f15", "score": "0.5686981", "text": "public interface C6191a {\n /* renamed from: A */\n void mo29009A(View view, int i);\n }", "title": "" }, { "docid": "1d02b7c52a42f48f1c78c30ae8a48dd1", "score": "0.5673967", "text": "@Override\r\n\tvoid ab(int a) {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e3b8596b7b38c5a0bcfa05c5580b737", "score": "0.5673494", "text": "public interface C19953a {\n /* renamed from: a */\n List<String> mo53458a();\n\n /* renamed from: a */\n void mo53459a(Context context, ComponentName componentName, int i) throws RedBadgerException;\n}", "title": "" }, { "docid": "023e80b8415491ae29d65f3645fbbb4f", "score": "0.5672815", "text": "public interface C2784s {\n /* renamed from: a */\n void mo1975a(Result result);\n}", "title": "" }, { "docid": "4f6a7ae9cd13f50261b765af135d3f9c", "score": "0.56662065", "text": "public interface C1805e {\n /* renamed from: a */\n void mo7707a(C1796a aVar);\n}", "title": "" }, { "docid": "3ade5ecc125a3abe23f8d0d565f5f87d", "score": "0.56618756", "text": "public B(A a){\n this.a = a;\n }", "title": "" }, { "docid": "50fa72e02f1c99b0fe7d9026a57354a5", "score": "0.56531966", "text": "public interface C19382k {\n /* renamed from: a */\n void mo51367a();\n\n /* renamed from: a */\n void mo51368a(String str);\n}", "title": "" }, { "docid": "1c6288afa51480478a228545931ecf4e", "score": "0.56455433", "text": "public interface C12479h {\n /* renamed from: a */\n String mo30460a();\n}", "title": "" }, { "docid": "c4b58ea3a2d461bfc2678a555f6cd474", "score": "0.56429744", "text": "public interface C3798fk {\n /* renamed from: a */\n void mo15292a();\n\n /* renamed from: b */\n void mo15293b();\n}", "title": "" }, { "docid": "9d53da22f178fdaa6b37266b39793abc", "score": "0.5638306", "text": "public interface C1550o<T> {\n /* renamed from: a */\n void mo6237a(T t);\n}", "title": "" }, { "docid": "09f82bfe4caa2eaa08638354386c68f3", "score": "0.56379944", "text": "public interface C1470a {\n /* renamed from: a */\n C1539b mo6952a();\n}", "title": "" }, { "docid": "cb006ac6768ea987104805c5f03bfba2", "score": "0.562783", "text": "public interface C2400b {\n /* renamed from: a */\n void mo28251a(int i);\n }", "title": "" }, { "docid": "fb4aa3e06ab2ecb32ad2570db47a2d53", "score": "0.56180924", "text": "public interface C2937c {\n /* renamed from: a */\n void m13559a(View view, int i, int i2);\n }", "title": "" }, { "docid": "e4550f8652a2851f30740d0fe0ab5eef", "score": "0.5615221", "text": "public interface C0366a {\n /* renamed from: a */\n void mo1302a(int i);\n\n /* renamed from: a */\n void mo1303a(View view);\n }", "title": "" }, { "docid": "1e5c136c3f6e77651cefdbc370a4caba", "score": "0.5603126", "text": "private interface C9289b {\n /* renamed from: a */\n long mo24060a();\n }", "title": "" }, { "docid": "dd4e94ad1b5c3d9f00e495b2a1451766", "score": "0.5550608", "text": "public interface C2975u3<T> {\n /* renamed from: a */\n T mo13235a();\n}", "title": "" }, { "docid": "cdce99ff39b9a5468cf42f52e676fda6", "score": "0.55449855", "text": "public interface AbstractC4531a {\n /* renamed from: a */\n void mo33261a();\n }", "title": "" }, { "docid": "fd707275ed629b4a3e85b47ec106a61c", "score": "0.55263376", "text": "public interface C35974b {\n\n /* renamed from: com.tencent.mm.sandbox.b$a */\n public interface C30268a extends C15410a {\n /* renamed from: b */\n void mo27462b(int i, int i2, btd btd);\n\n /* renamed from: dN */\n void mo27463dN(int i, int i2);\n }\n\n /* renamed from: a */\n void mo56706a(C30268a c30268a);\n\n void cancel();\n}", "title": "" }, { "docid": "640263cc0febf32af39373a31af141a7", "score": "0.5523509", "text": "public interface C1690ak extends C1684ae {\n /* renamed from: a */\n C1690ak mo7302a(C2778au auVar);\n\n /* renamed from: a */\n C2543e mo7303a();\n}", "title": "" }, { "docid": "d2f1f905032a0f90178a6a2b44915291", "score": "0.5511447", "text": "public interface C2903e extends Cloneable {\n /* renamed from: a */\n aa mo3689a();\n\n /* renamed from: b */\n void mo3690b();\n}", "title": "" }, { "docid": "9a40411b08abba1fd1eff9f02e6e667f", "score": "0.55044734", "text": "public interface C12752a {\n /* renamed from: a */\n C12758a mo31252a(C12746a aVar, String str);\n\n /* renamed from: a */\n C12759b mo31253a(C12746a aVar);\n\n /* renamed from: b */\n C12764e mo31254b(C12746a aVar);\n }", "title": "" }, { "docid": "aa2661ab11c416a15c07730969505a17", "score": "0.55027384", "text": "public b(a aVar) {\n super(1);\n this.a = aVar;\n }", "title": "" }, { "docid": "4c2317242b09d323d6a7aa6237f728a1", "score": "0.55010444", "text": "public interface C30991i {\n /* renamed from: a */\n void mo50170a();\n }", "title": "" }, { "docid": "f843b0fb02913227d2f4f26b68a82e58", "score": "0.5497062", "text": "public interface C1179h {\r\n /* renamed from: a */\r\n void mo1913a();\r\n\r\n /* renamed from: b */\r\n void mo1914b();\r\n}", "title": "" }, { "docid": "546fd2b6892b93713987ac7aad180ac0", "score": "0.54928756", "text": "public interface C11936c {\n /* renamed from: a */\n void mo29548a(C11847a<?> aVar, C11848b<?> bVar);\n}", "title": "" }, { "docid": "cb3e233a5bd2afdfa9c1f17c94845fc9", "score": "0.54863036", "text": "public interface C2939e {\n /* renamed from: a */\n void m13562a(View view, int i);\n\n /* renamed from: b */\n void m13563b(View view, int i);\n\n /* renamed from: c */\n void m13564c(View view, int i);\n }", "title": "" }, { "docid": "c8499d1a7af6e20e4d40867b5badd444", "score": "0.54852605", "text": "public interface C14000K<T> {\n /* renamed from: a */\n void mo43559a(T t);\n}", "title": "" }, { "docid": "7f5e6e17de8db7f175d0859a91421599", "score": "0.547935", "text": "interface C19454a<T> {\n /* renamed from: a */\n void mo14704a();\n\n /* renamed from: a */\n void mo14705a(T t);\n\n /* renamed from: a */\n void mo14706a(Throwable th);\n\n /* renamed from: a */\n void mo14707a(ReplayProducer<T> replayProducer);\n\n /* renamed from: a */\n T[] mo14708a(T[] tArr);\n\n /* renamed from: b */\n boolean mo14709b();\n }", "title": "" }, { "docid": "8d280cb5aac23e9cc6120f7f3f0d329a", "score": "0.5478923", "text": "public interface C12753b {\n /* renamed from: a */\n void mo31255a();\n\n /* renamed from: a */\n boolean mo31256a(int i, String str);\n\n /* renamed from: a */\n boolean mo31257a(C12746a aVar);\n\n /* renamed from: b */\n boolean mo31258b(C12746a aVar);\n }", "title": "" }, { "docid": "8f79f15e3d90f065555dc439beac7787", "score": "0.5478056", "text": "public interface C23292a {\n /* renamed from: a */\n C33248at mo60578a(C33248at atVar);\n }", "title": "" }, { "docid": "f0dd6e7a7e741335f4a4e2b78ca38f94", "score": "0.54743886", "text": "@Override\n\tpublic void a() {\n\n\t}", "title": "" }, { "docid": "2f4b377b6bd57027f9ac8d6ecc36b6fd", "score": "0.5468367", "text": "private double fixangle(double a) {\n\n a = a - (360 * (Math.floor(a / 360.0)));\n\n a = a < 0 ? (a + 360) : a;\n\n return a;\n }", "title": "" }, { "docid": "291ad5db5a7e5a562d7f999ef4b2e003", "score": "0.54667985", "text": "public interface C0375c extends IInterface {\n /* renamed from: a */\n void mo6444a(C0373a aVar);\n}", "title": "" }, { "docid": "6e8ef32ad529081592e83d512736d8d1", "score": "0.54640454", "text": "public interface C0398a {\n /* renamed from: a */\n boolean mo1818a();\n }", "title": "" }, { "docid": "482fb4965bec327bbf85f04405dc018b", "score": "0.5462413", "text": "public interface C2938d {\n /* renamed from: a */\n void m13560a(View view, int i);\n\n /* renamed from: b */\n void m13561b(View view, int i);\n }", "title": "" }, { "docid": "8e10a9d6da0dd995196bfe408e590677", "score": "0.5431033", "text": "@Override\r\n\tpublic void visitar(Agua a) \r\n\t{\n\t}", "title": "" }, { "docid": "027fc129ead45994fd2b9bdb78b4360a", "score": "0.54299164", "text": "public interface C0796f {\n /* renamed from: a */\n boolean mo645a();\n}", "title": "" }, { "docid": "f218e1d5ebd509f862f838a95939c864", "score": "0.5428724", "text": "public interface C6482gg<P1, R> {\n /* renamed from: a */\n R mo34409a(P1 p1);\n}", "title": "" }, { "docid": "74a29531af8818ccac03312663a80f8a", "score": "0.5422628", "text": "public a(int i) {\n super(0);\n this.a = i;\n }", "title": "" }, { "docid": "3cb74225e297c31c56c0b5613478db45", "score": "0.542224", "text": "public interface C0814m extends C4416a<C0613a> {\n\n /* renamed from: f.a.a.g.b.b.m$a */\n public interface C0815a extends C4417a<C0613a> {\n }\n}", "title": "" }, { "docid": "df87de73b1097c5e83ea3858240ce607", "score": "0.54218644", "text": "public interface C0675b {\n /* renamed from: a */\n void mo3853a(C0857b bVar);\n\n /* renamed from: b */\n void mo3854b(C0857b bVar);\n\n /* renamed from: c */\n C0857b mo3855c();\n\n /* renamed from: t */\n void mo3856t();\n}", "title": "" }, { "docid": "437b1951aa15c4fd9e44c7fc91bcbd77", "score": "0.54154474", "text": "public interface C30981g {\n /* renamed from: a */\n void mo29181a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo29182a(C44490de c44490de);\n }", "title": "" }, { "docid": "bf31d775e81d732137f8c4320b3e21dc", "score": "0.54092646", "text": "public interface C7029ua {\n /* renamed from: a */\n void mo22566a(C7025sa saVar);\n\n /* renamed from: b */\n void mo22567b(C7025sa saVar);\n\n /* renamed from: c */\n void mo22568c(C7025sa saVar);\n}", "title": "" }, { "docid": "b57beebc894269b457ac44b4e384955b", "score": "0.54079676", "text": "public akt(atr paramatr)\r\n/* 7: */ {\r\n/* 8:15 */ this.a = paramatr;\r\n/* 9:16 */ a(akf.d);\r\n/* 10: */ }", "title": "" }, { "docid": "2f96ff37fffc48db0e09008e44ef9226", "score": "0.5406119", "text": "public final void a(a aVar) {\n }", "title": "" }, { "docid": "8671e5dce3de879e4a2dc6547108b2ca", "score": "0.53933424", "text": "public interface C1965a {\n /* renamed from: a */\n void mo1279a(View view);\n\n /* renamed from: a */\n void mo1280a(String str);\n\n /* renamed from: a */\n void mo1281a(String str, C1815d c1815d);\n }", "title": "" }, { "docid": "b0cba746052347fc7bb04f2665ba9f3c", "score": "0.53927", "text": "interface C7198q<T> {\n /* renamed from: a */\n void mo22856a(int i);\n\n /* renamed from: a */\n void mo22857a(T t, int i);\n}", "title": "" }, { "docid": "6b3413dba29af30f31a85f88bda096b0", "score": "0.53925216", "text": "public interface C1402b {\n /* renamed from: a */\n boolean mo3768a();\n\n /* renamed from: b */\n int mo3769b();\n}", "title": "" }, { "docid": "b2a0725de676b61e8e3ee2bf4b5dc9ef", "score": "0.538603", "text": "public interface C30251c {\n /* renamed from: a */\n int mo67727a();\n\n /* renamed from: a */\n void mo67728a(int i);\n\n /* renamed from: a */\n void mo67729a(int i, boolean z);\n}", "title": "" }, { "docid": "3ef4dc9a6e220a91fb84838ff25e1ba3", "score": "0.5363468", "text": "public bl a() {\n }", "title": "" }, { "docid": "3ff500e159786d448e667934bbe64c77", "score": "0.535566", "text": "public Vector turn(double a)\r\n {\r\n double x=this.x;\r\n double y= this.y;\r\n \r\n double xn;\r\n double yn;\r\n\r\n xn=(float)(x*Math.cos(a*Math.PI/180)-y*Math.sin(a*Math.PI/180));\r\n yn=(float)(x*Math.sin(a*Math.PI/180)+y*Math.cos(a*Math.PI/180));\r\n \r\n return new Vector(xn,yn);\r\n\r\n }", "title": "" }, { "docid": "71789d1f106df256e2474bba61d75dcf", "score": "0.53495365", "text": "public interface C6342a extends C6343b {\n /* renamed from: a */\n String mo22573a(String str);\n\n /* renamed from: b */\n boolean mo22574b(String str);\n}", "title": "" }, { "docid": "92a2ca2346ab55b5cfa4c63a880fb624", "score": "0.5344963", "text": "public interface C7314a {\n /* renamed from: a */\n void mo23727a(String str);\n\n /* renamed from: a */\n boolean mo23728a();\n}", "title": "" }, { "docid": "ba03edc643e93ea8b9013d9c6c77690a", "score": "0.5341089", "text": "public interface C2001b {\n /* renamed from: a */\n CyclingReportTrainStatisticsActivity m10314a();\n\n /* renamed from: a */\n void m10315a(TrainCourseDTO trainCourseDTO);\n\n /* renamed from: a */\n void m10316a(String str);\n\n /* renamed from: a */\n void m10317a(ArrayList<Entry> arrayList);\n\n /* renamed from: b */\n int m10318b();\n\n /* renamed from: b */\n void m10319b(String str);\n\n /* renamed from: b */\n void m10320b(ArrayList<Entry> arrayList);\n\n /* renamed from: c */\n ArrayList<C2411a> m10321c();\n\n /* renamed from: c */\n void m10322c(String str);\n}", "title": "" }, { "docid": "e0c21f8dbd658485edf408f7f43ae1be", "score": "0.5340893", "text": "public void a() {}", "title": "" }, { "docid": "e9723095d18f49d2bbad2aff73969dd4", "score": "0.53365916", "text": "private Type subst(Type t, String a, String b) {\n if (t instanceof UserType) {\n UserType tt = (UserType)t;\n if (tt.getName().equals(a)) return UserType.mk(b, null, tt.loc());\n return t;\n } else if (t instanceof MapType) {\n MapType tt = (MapType)t;\n return MapType.mk(\n (TupleType)subst(tt.getIdxType(), a, b),\n subst(tt.getElemType(), a, b),\n tt.loc());\n } else if (t instanceof IndexedType) {\n IndexedType tt = (IndexedType)t;\n return IndexedType.mk(\n subst(tt.getParam(), a, b),\n subst(tt.getType(), a, b),\n tt.loc());\n } else if (t instanceof DepType) {\n DepType tt = (DepType)t;\n return subst(tt.getType(), a, b);\n }\n assert t == null || t instanceof PrimitiveType;\n return t;\n }", "title": "" } ]
bf9700e9fd5cab2f067c474aedc6999b
Constructor. All we need is the context, the other information is predefined here.
[ { "docid": "58795a8dfb646b00edc8ee9a070b0ba1", "score": "0.0", "text": "public NutrientsDatabase(Context context) {\n\t\tsuper(context, DB_FILE, null, 1);\n\t\tthis.ctx = context;\n\t\t//Define the app's data directory path where the db is going to be stored permanently\n\t\tthis.DB_PATH = context.getApplicationInfo().dataDir +\"/databases/\";\n\t\tLog.d(\"DEBUG:\", \"Constructor called. DB_PATH: \"+DB_PATH);\n\t}", "title": "" } ]
[ { "docid": "53c0eb1b4b8b1c52a7ef6f7269eec44d", "score": "0.7126657", "text": "public OssClass(Context context){\n this.context=context;\n init();\n }", "title": "" }, { "docid": "aeb1e8e5466579aad3667f66fca1e7ee", "score": "0.71025914", "text": "private void init(Context context)\n\t{\n\t\tthis.context=context;\n\t}", "title": "" }, { "docid": "8bcea776c82d230ce6f37a34701fc491", "score": "0.7066466", "text": "Context createContext();", "title": "" }, { "docid": "8bcea776c82d230ce6f37a34701fc491", "score": "0.7066466", "text": "Context createContext();", "title": "" }, { "docid": "bfae2357329d2eb79b670ae3bd6ebf27", "score": "0.701107", "text": "protected abstract C createContext();", "title": "" }, { "docid": "9551a9840ff971adc0080521f455807d", "score": "0.69925976", "text": "public Examples(Context context) { this.context = context; }", "title": "" }, { "docid": "5d559e83791afa6296a24891a7145354", "score": "0.6991515", "text": "a(Context context) {\n super(0);\n this.$context = context;\n }", "title": "" }, { "docid": "ba9988fa64c2359386a9296c1892b953", "score": "0.6908515", "text": "public ReplacementContext() {\r\n }", "title": "" }, { "docid": "908955dee4fb4b72ef88bf5d9baeaae9", "score": "0.68999356", "text": "void init(Context context);", "title": "" }, { "docid": "7db903144ce813de933bdb53cbf7a8ae", "score": "0.68949807", "text": "public Context() {\n this.opportunity = new Opportunity();\n this.task = new Task();\n this.lead = new Lead();\n this.account = new Account();\n this.textCase = new Case();\n this.contact = new Contact();\n this.opportunityContactRole = new OpportunityContactRole();\n }", "title": "" }, { "docid": "102a0d6db8cce68584694c791cc38963", "score": "0.6828836", "text": "@Override\n public void init() throws Exception {\n context = getContext();\n }", "title": "" }, { "docid": "fbd2ea2c5b07d162d691f813f375cdfa", "score": "0.6827691", "text": "private ContextReaderFIMI() {\n }", "title": "" }, { "docid": "16af3b5f54f3fa3be8dc0f7e59562763", "score": "0.6814406", "text": "public static void init(Context context){\n }", "title": "" }, { "docid": "184de077625c552dbed10836cdb11c81", "score": "0.68025285", "text": "public JsonParser(Context aContext) {\r\n appContext = aContext;\r\n }", "title": "" }, { "docid": "75b7ae1cf413f228ea629a4d2ed233a0", "score": "0.675903", "text": "public Util(Context con) {\n context = con;\n }", "title": "" }, { "docid": "79b2cfcfa56c22dd6eba55282f708937", "score": "0.67202145", "text": "private ServiceContext() { \r\n\t\tlog.debug(\"Instantiating service context\");\r\n\t}", "title": "" }, { "docid": "725aaa92ec847a27b26d8e60732adbe8", "score": "0.67182016", "text": "private ContextSerializerSLF() {\n }", "title": "" }, { "docid": "cfee41e1eaafd5a4d18e9f78f69f58ce", "score": "0.66720927", "text": "public RealTimeScoringContext() {\n }", "title": "" }, { "docid": "afa59c6654882156896c9e3481fd2daf", "score": "0.6629001", "text": "private UserContext() {\n // Exists only to defeat instantiation.\n }", "title": "" }, { "docid": "6e996cc55c4a09ee88003b12057735b9", "score": "0.662196", "text": "@Override\n public void init(Context context) {\n\n }", "title": "" }, { "docid": "92894a8a907d508b8ebf32a2149a5fb3", "score": "0.660477", "text": "public AlphaContext() {\n nameToFObject = new HashMap<String, FormalObject>();\n nameToFAttribute = new HashMap<String, FormalAttribute>();\n classAttrToObjectSet = new HashMap<FormalAttribute, Set<FormalObject>>();\n fObjectToIntent = new HashMap<FormalObject, Set<FormalAttribute>>();\n\n }", "title": "" }, { "docid": "690cb38b4ac7bf004babb2dbc82e2ba8", "score": "0.65913266", "text": "public SubscriptionProcessor(Context context)\n {\n this.enc = new PtWittEnc(context);\n this.dbHelper = new DBHelper(context);\n }", "title": "" }, { "docid": "67a79acf8e3ea1b14bc955c94b9c700e", "score": "0.65740675", "text": "public InternshipAdapter( Context context){\n this.context = context;\n //callback = listener;\n }", "title": "" }, { "docid": "120c9cdb148c3005b2bcb356a11cb698", "score": "0.65349984", "text": "public RequestTask (Context context){\n\t\tthis.app_context = context;\n\t}", "title": "" }, { "docid": "10d5754681b80062470a73b0ce012df8", "score": "0.6501506", "text": "public AppWeatherClient(Context context){\r\n\t\tm_context=context;\r\n\t}", "title": "" }, { "docid": "a4cae29f4aa5cc3c8d8301de7c465b49", "score": "0.6444083", "text": "private FilteringContext() {\n }", "title": "" }, { "docid": "2e5605450b39634b84a4b73265bc9036", "score": "0.6415679", "text": "private ContextFactory() {\n //do nothing\n }", "title": "" }, { "docid": "a482d4d4ede0ee3fb1068ccfc8d3afaa", "score": "0.64083254", "text": "Context getContext();", "title": "" }, { "docid": "a482d4d4ede0ee3fb1068ccfc8d3afaa", "score": "0.64083254", "text": "Context getContext();", "title": "" }, { "docid": "a482d4d4ede0ee3fb1068ccfc8d3afaa", "score": "0.64083254", "text": "Context getContext();", "title": "" }, { "docid": "f0c0671a4b4d8e5e5a6621628cea438f", "score": "0.6374286", "text": "public void init(Context context) {\n this.context = context;\n\n initContainer();\n //initItem();\n //TODO\n }", "title": "" }, { "docid": "2b7741b9a26b04584f0572c1342f6c51", "score": "0.6371817", "text": "public abstract Context mo38075a();", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.6366445", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "e9a8c26a0c4faa5f5fc3d2d18902992b", "score": "0.6355322", "text": "public void setContext(Context c){this.context = c;}", "title": "" }, { "docid": "0f456a4b3467ffa835911b05eb994eed", "score": "0.6325675", "text": "Context mo799b();", "title": "" }, { "docid": "160b340cb55dfef353c821416bebd0f4", "score": "0.6302638", "text": "Http.Context initialize(final Http.Context context);", "title": "" }, { "docid": "7bab626abc2d65834ca673eee9f4c67a", "score": "0.6297628", "text": "public ContextInstanceModule() {\n this(null);\n }", "title": "" }, { "docid": "ad455d389f6a672d1688f7c3e493428d", "score": "0.6286604", "text": "public ProdutosHelper(Context context) {\r\n\t\tsuper(context);\r\n\t\tthis.context = context;\r\n\t}", "title": "" }, { "docid": "dba1db48e055b55a23102888ea901f8f", "score": "0.6284115", "text": "private DatabaseHelper( Context context )\n {\n super( context, DB_NAME, null, 1 );\n\n this.myContext = context;\n }", "title": "" }, { "docid": "ac9569b0e94a44d0e49ac06f2ad6cb67", "score": "0.627626", "text": "public a(Context context) {\n super(context);\n j.b(context, \"context\");\n }", "title": "" }, { "docid": "fb44b43318702c23053f80b346b9f90e", "score": "0.62751293", "text": "private InvocationContextHelper() {\n\n }", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.6273104", "text": "protected void init() {}", "title": "" }, { "docid": "5c09f5e281d711b63dbd05ddadc9ec65", "score": "0.62728864", "text": "public WingDocument(WingContext context) throws WingException\n {\n super(context);\n\n // These are all required so we just create them now.\n this.meta = new Meta(context);\n this.body = new Body(context);\n this.options = new Options(context);\n }", "title": "" }, { "docid": "2fd52a95c7f5a4949141d0fa089d882f", "score": "0.62533134", "text": "public RestHandler(Context c)\n {\n context = c;\n }", "title": "" }, { "docid": "b7e696d3072f95e58c1b860b7b615c70", "score": "0.6246561", "text": "protected void init() { }", "title": "" }, { "docid": "740ef3b990a0cc9135f62ee4f51e6d10", "score": "0.624083", "text": "public OnlineRequestTemplate()\n\t{\n\t\tsuper(ConnectionFactory.getConnectionForInstance(\n\t\t ApplicationConfig.APP_ID, \n\t\t RequestCtx.getPersonInfo().getInstanceId()));\n\t}", "title": "" }, { "docid": "85c3248ba53ec217b860d8422b0c9898", "score": "0.6238905", "text": "public MainApp( Context context )\r\n\t{\r\n\t\tthis.context = context;\t\r\n\t}", "title": "" }, { "docid": "cbac7d35bf1b38df3a10a63ce96f197e", "score": "0.6238388", "text": "private BoundaryTask ()\r\n {\r\n contexts = null;\r\n }", "title": "" }, { "docid": "7ae5c9551ef40065ea3d92992cc8978a", "score": "0.6237173", "text": "public XmlParser(Context context){\n super(context);\n }", "title": "" }, { "docid": "3868aa7cbb3e3d97962525530c287dc8", "score": "0.62298024", "text": "private EstateData(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "title": "" }, { "docid": "9d450b9572273692821d25d5505e99c7", "score": "0.6212046", "text": "public DatabaseHandler(Context context) { //Context is a class\n super(context, NAME, null, VERSION);\n //(context, Name of the database, Not sure, VERSION of database)\n }", "title": "" }, { "docid": "158088890a25271d44398464d93d1b97", "score": "0.6208615", "text": "public LTIConfiguration(WOContext context)\n {\n super(context);\n }", "title": "" }, { "docid": "a5435f7776d6661210445d7c181c908f", "score": "0.62067527", "text": "public GXObjectBase(HttpContext httpContext) {\n\t\tinit(httpContext, getClass());\n\t}", "title": "" }, { "docid": "12c257ed11ec89d2cdec128cd6d9b8db", "score": "0.61935127", "text": "public ThumbFetcher(Context context) {\n\t\tthis.context = context;\n\t}", "title": "" }, { "docid": "4ff992bc5b7f7850fd9aea0a78a33182", "score": "0.6191838", "text": "private StorageManager(Context context) {\n super(context);\n }", "title": "" }, { "docid": "baa7a60bd2c741406a60939eeef15a48", "score": "0.61895096", "text": "private New() {\n\t}", "title": "" }, { "docid": "ce8bde168cc34e9626274632583b4f50", "score": "0.6176939", "text": "public GoodsAdapter(Context baseContext) {\n\t\tsuper(baseContext);\n\t\tmUserWeb = new UserWeb(baseContext);\n context = baseContext;\n\t\timageLoader = PublicUtil.getImageLoader();\n\n\t\t//mOrderUtil = OrderUtil.getInstance();\n\t}", "title": "" }, { "docid": "2acadeac9780cb66b809404a32b3b60c", "score": "0.61674434", "text": "public ImageLoader(Context context) {\n super(context);\n }", "title": "" }, { "docid": "c78f83a383f6dc1efe10a7fece4f39bd", "score": "0.6165863", "text": "public StackMessages(Context context)\n {\n this.context = context;\n }", "title": "" }, { "docid": "6e466d7367ceaff8398f2024cc3e276c", "score": "0.6163245", "text": "private RequestContext(RequestContext that) {\n/* 231 */ for (Map.Entry<String, Object> entry : (Iterable<Map.Entry<String, Object>>)that.asMapLocal().entrySet()) {\n/* 232 */ if (!propMap.containsKey(entry.getKey())) {\n/* 233 */ asMap().put(entry.getKey(), entry.getValue());\n/* */ }\n/* */ } \n/* 236 */ this.endpointAddress = that.endpointAddress;\n/* 237 */ this.soapAction = that.soapAction;\n/* 238 */ this.soapActionUse = that.soapActionUse;\n/* 239 */ this.contentNegotiation = that.contentNegotiation;\n/* 240 */ that.copySatelliteInto((DistributedPropertySet)this);\n/* */ }", "title": "" }, { "docid": "5c754b3c3a5771888a15da5a0f585782", "score": "0.61593574", "text": "public DynamicBLightLogic(Context mContext) {\n super();\n this.mContext = mContext;\n }", "title": "" }, { "docid": "b1b34d71f8de34d8abac3eb0ca9335e4", "score": "0.6158758", "text": "private DatabaseHandler(Context context) {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n this.context = context;\n }", "title": "" }, { "docid": "9bc0a4e96676184fe765d9fd4319da24", "score": "0.61585164", "text": "private void initContext() {\n\t\tExecutionVariable intVar = new ExecutionVariable(\"intVar\", Integer.class,\r\n\t\t\t\t0);\r\n\t\tcontext.declareVariable(intVar);\r\n\t\tExecutionVariable boolVar = new ExecutionVariable(\"boolVar\",\r\n\t\t\t\tBoolean.class, false);\r\n\t\tcontext.declareVariable(boolVar);\r\n\t\tExecutionVariable realVar = new ExecutionVariable(\"realVar\", Float.class,\r\n\t\t\t\t0.0f);\r\n\t\tcontext.declareVariable(realVar);\r\n\t\tExecutionVariable stringVar = new ExecutionVariable(\"stringVar\",\r\n\t\t\t\tString.class, \"\");\r\n\t\tcontext.declareVariable(stringVar);\r\n\t\tExecutionEvent event = new ExecutionEvent(\"abc\", Integer.class);\r\n\t\tcontext.declareEvent(event);\r\n\t}", "title": "" }, { "docid": "057a152cb4b2c227d537ee0d953212b1", "score": "0.61578774", "text": "public ComponentsHolder(Context context) {\n mContext = context;\n }", "title": "" }, { "docid": "56b64968d654697b6c99ef8bdd9b6b1d", "score": "0.6157785", "text": "public SQLite(Context c){\n\t\tnContexto=c;\n\t}", "title": "" }, { "docid": "b7313c292f8d3cc174265080e6401608", "score": "0.6153514", "text": "@Override\n\tpublic synchronized void initialize(OperatorContext context)\n\t\t\tthrows Exception {\n \t// Must call super.initialize(context) to correctly setup an operator.\n\t\tsuper.initialize(context);\n Logger.getLogger(this.getClass()).trace(\"Operator \" + context.getName() + \" initializing in PE: \" + context.getPE().getPEId() + \" in Job: \" + context.getPE().getJobId() );\n \n // TODO:\n // If needed, insert code to establish connections or resources to communicate an external system or data store.\n // The configuration information for this may come from parameters supplied to the operator invocation, \n // or external configuration files or a combination of the two.\n tupleCnt = 0;\n\t}", "title": "" }, { "docid": "d689931ddcd81ed20b76bea8efcd7db6", "score": "0.6151179", "text": "private WebAppInterface(Context c) {\n mContext = c;\n }", "title": "" }, { "docid": "175fcc140ce5a8cecc0e6a094cc3087b", "score": "0.61350733", "text": "public LocalData(Context context) {\n\n\t\tsuper(context, db_name, null, 1);\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "7799bab29cbe3bf91bd95e576a1ee71e", "score": "0.6128599", "text": "public PositionRequestHandler(Context context) {\n mContext = context;\n\n }", "title": "" }, { "docid": "c002bd6c2485fba87aa8c5c2d5959ddc", "score": "0.6124509", "text": "Context mo71449a(Context context);", "title": "" }, { "docid": "a61d2c70d34062f948fbaa7891b24e35", "score": "0.61226386", "text": "public JavaScriptinterface(Context c) {\r\n\t\t\tmContext = c;\r\n\t\t}", "title": "" }, { "docid": "cd68fbb74ab0e8a33f4f73f5c9fb33ad", "score": "0.61206114", "text": "public GymLocator(Context context) {\n\t\tthis.context = context;\n\t}", "title": "" }, { "docid": "cfc95467ab455e9c17f1ee27a9e220d2", "score": "0.61174744", "text": "@Override\n public Context getContext() {\n return contexto;\n }", "title": "" }, { "docid": "3f1f629b213ad3c9987976b084a8b81d", "score": "0.6101386", "text": "public CLContext context(){\r\n\t\treturn context;\r\n\t}", "title": "" }, { "docid": "7f2a7cae2a0fa256ac343ed56de00933", "score": "0.6096849", "text": "public ExternalIdentifierDAO(Context context)\n {\n this.context = context;\n }", "title": "" }, { "docid": "b93d6265ef6770e93203a5b901d8da89", "score": "0.60938656", "text": "private Model() {\n context = MyApplication.getContext();\n firebaseModel = new ModelFirebase(context);\n modelCloudinary = new ModelCloudinary();\n modelSql = new ModelSql(MyApplication.getContext());\n\n }", "title": "" }, { "docid": "54d59155b5c527f58ff06ae219e9bec0", "score": "0.60935485", "text": "public MyFabricContext() {\n\n // load config from file system\n try {\n String configPath = System.getProperty(\"fabricConfigFile\", \"./my-config-local.yaml\");\n ObjectMapper mapper = new ObjectMapper(new YAMLFactory());\n mapper.findAndRegisterModules();\n config = mapper.readValue(new File(configPath), FabricContextConfigYaml.class);\n\n } catch (IOException e) {\n throw new FabricContextException(e);\n }\n\n try {\n fabClient = HFClient.createNewInstance();\n CryptoSuite cryptoSuite = CryptoSuite.Factory.getCryptoSuite();\n fabClient.setCryptoSuite(cryptoSuite);\n fabClient.setUserContext(getOrgAdmin(config.organizations.get(0)));\n\n ccName = config.channel.chaincode.name;\n String ccType = config.channel.chaincode.type;\n// ccMetaVersion = config.channel.chaincode.version;\n\n if (Strings.isNullOrEmpty(ccType) || ccType.compareToIgnoreCase(\"golang\") == 0)\n ccMetaType = TransactionRequest.Type.GO_LANG;\n else if (ccType.compareToIgnoreCase(\"java\") == 0)\n ccMetaType = TransactionRequest.Type.JAVA;\n else if (ccType.compareToIgnoreCase(\"node\") == 0)\n ccMetaType = TransactionRequest.Type.NODE;\n else throw new FabricContextException(String.format(\"Invalid chaincode type '%s'\", ccType));\n\n //Starts network configurations\n initNetworkConfiguration();\n\n// fabClient.setUserContext(getOrgAdmin(config.organizations.get(0)));\n\n //event listener\n addEventListerner();\n\n } catch (Throwable t) {\n if (RuntimeException.class.isAssignableFrom(t.getClass())) {\n throw (RuntimeException)t;\n } else {\n throw new FabricContextException(t);\n }\n }\n\n }", "title": "" }, { "docid": "4efc1689f6ba545ac335f73bef2a2e04", "score": "0.60927665", "text": "public abstract String getContext();", "title": "" }, { "docid": "2830c15122ea2c6c5da535e809673ac7", "score": "0.60902846", "text": "protected void init() {\r\n\r\n }", "title": "" }, { "docid": "16e539f870840dc63962c533e3669e0b", "score": "0.6088071", "text": "@Override\r\n public void onCreate() {\n super.onCreate();\r\n context = this;\r\n init();\r\n }", "title": "" }, { "docid": "072d60cd3f5f4962167d8a88fc73e006", "score": "0.60852414", "text": "public HttpBaseAction(Context context) {\r\n\t\tsuper(context);\r\n\t}", "title": "" }, { "docid": "ce694c176cd8dade5db6e49ddb0238ff", "score": "0.6083832", "text": "private SQLDataStore(Context context)\n {\n super(context, DATABASE_NAME, null, DATABASE_VERSION);\n }", "title": "" }, { "docid": "4d5957a0fd5a9af8c503f22c89333972", "score": "0.60757536", "text": "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tcontext = this;\n\n\t}", "title": "" }, { "docid": "c4244ea34e6b43c69956786f469ea623", "score": "0.6072484", "text": "public DataBaseHelper(Context context) {\n\t\tsuper(context, databaseName, null, databaseVersion);\n\t\t// TODO Auto-generated constructor stub\n\t\tcont = context;\n\t}", "title": "" }, { "docid": "f9a1e247043b353cc4df09d0f7f68d67", "score": "0.6072483", "text": "private ValidationContext(ValidationContext vCxt) {\n this(vCxt, vCxt.data, vCxt.shapes, vCxt.inProgress, vCxt.semActPluginIndex);\n }", "title": "" }, { "docid": "beb2eebdbfbdc2b82cf8b2fa06d79b3a", "score": "0.60651386", "text": "protected void setupContext() {\n\t\tgetTemplateHelper().setupContext();\t\t\n\t\tgetTemplateHelper().putInContext(\"exporter\", this);\n\t\tgetTemplateHelper().putInContext(\"c2h\", getCfg2HbmTool());\n\t\tgetTemplateHelper().putInContext(\"c2j\", getCfg2JavaTool());\n\t\t\n\t\tif(getOutputDirectory()!=null) getTemplateHelper().putInContext(\"outputdir\", getOutputDirectory());\n\t\tif(getTemplatePaths()!=null) getTemplateHelper().putInContext(\"template_path\", getTemplatePaths());\n\t\t\n\t\tif(getProperties()!=null) {\n\t\t\titerator = getProperties().entrySet().iterator();\n\t\t\twhile ( iterator.hasNext() ) {\n\t\t\t\tMap.Entry element = (Map.Entry) iterator.next();\n\t\t\t\tString key = element.getKey().toString();\n\t\t\t\tObject value = transformValue(element.getValue());\n\t\t\t\tgetTemplateHelper().putInContext(key, value);\n\t\t\t\tif(key.startsWith(ExporterSettings.PREFIX_KEY)) {\n\t\t\t\t\tgetTemplateHelper().putInContext(key.substring(ExporterSettings.PREFIX_KEY.length()), value);\n\t\t\t\t\tif(key.endsWith(\".toolclass\")) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tClass toolClass = ReflectHelper.classForName(value.toString(), this.getClass());\n\t\t\t\t\t\t\tObject object = toolClass.newInstance();\n\t\t\t\t\t\t\tgetTemplateHelper().putInContext(key.substring(ExporterSettings.PREFIX_KEY.length(),key.length()-\".toolclass\".length()), object);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\tthrow new ExporterException(\"Exception when instantiating tool \" + element.getKey() + \" with \" + value,e);\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tgetTemplateHelper().putInContext(\"artifacts\", collector);\n if(getConfiguration()!=null) {\n \tgetTemplateHelper().putInContext(\"cfg\", getConfiguration());\n }\n\t}", "title": "" }, { "docid": "b8e86f66661aae800049ebc004807373", "score": "0.6060715", "text": "@Override\n\t public final String getContext() {\n\t return CONTEXT;\n\t }", "title": "" }, { "docid": "bb4b7f612e2441bd4011fc66c4a97186", "score": "0.6055755", "text": "public static void init(Context context){\n instance = new BaseDataStore();\n instance.sharedPreferences = new MySharedPreferences(context);\n // instance.dbConnection = new DbConnection(context);\n }", "title": "" }, { "docid": "6ff6c5754e932622dc0ca2d738ded7d4", "score": "0.6052404", "text": "public FTPManager(Context context){\r\n this.context = context;\r\n }", "title": "" }, { "docid": "9f61e3a01351f5e45db3d13804980f74", "score": "0.6047059", "text": "private RequestManager(Context context) {\n mRequestQueue = Volley.newRequestQueue(context.getApplicationContext());\n mImageLoader = new ImageLoader(mRequestQueue, new LruBitmapCache());\n }", "title": "" }, { "docid": "da7caef90923a269c5692716b5bc9fb6", "score": "0.6044776", "text": "public ServiceParser(Context context){\n\t\tthis.context = context;\n\t\tthis.instance = TweetFlowDao.getInstance(context);\n\t}", "title": "" }, { "docid": "c73d583cde5b473db8d020ec5be33bc4", "score": "0.60341656", "text": "public ExamDB(Context context) {\n super(context,dbName, null, dbVersion);\n }", "title": "" }, { "docid": "d53a52a968f58526f8f0b61f167db4cb", "score": "0.6033401", "text": "protected AbstractState(StateContext aContext) {\n\t\tcontext = aContext;\n\t}", "title": "" }, { "docid": "01c1eb6fe6cbc643a08cce13f7f87a5a", "score": "0.60293937", "text": "public LfitcompraRequest(UserContext userContext)\r\n\t{\r\n\t\tsuper(userContext);\r\n\t}", "title": "" }, { "docid": "560689ce1ef891898036ae34a3486eff", "score": "0.6027777", "text": "public Context getContext();", "title": "" }, { "docid": "560689ce1ef891898036ae34a3486eff", "score": "0.6027777", "text": "public Context getContext();", "title": "" }, { "docid": "a64fdd529541dc295e2a47f5e8d64b4a", "score": "0.6024386", "text": "public static void create(final Context context) {\n\t\tcreate(context, Locale.US, DEFAULT_INIT_MESSAGE);\n\t}", "title": "" }, { "docid": "ee3e9edb4922047ceb18522f3ecb6e10", "score": "0.60189605", "text": "public TSetContext() {\n this.inputMap = new HashMap<>();\n }", "title": "" }, { "docid": "e37c113977b9450b31534993027dec5e", "score": "0.60175544", "text": "public GameView ( Context context ) {\n super (context);\n init( null , 0 );\n }", "title": "" }, { "docid": "5b74d66cf4989a453d1585e6e8bea0ca", "score": "0.60160804", "text": "@Override\n\tpublic void setContext(Context context) {\n\t\t\n\t}", "title": "" }, { "docid": "c345fcf212c3a4b4fb60301b6255d363", "score": "0.60148203", "text": "private DoctorPrefManager(Context context){\n\n mCtx = context;\n }", "title": "" } ]
adacdc94b03975902a3306e222d6e78d
no typing for enums (always "hard" type)
[ { "docid": "b487940cca3052696011dd8e5242c38f", "score": "0.0", "text": "@Override\n public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts) {\n return this;\n }", "title": "" } ]
[ { "docid": "aa0e33b62155648f4511e636bb599262", "score": "0.73381686", "text": "public void testPrimitiveEnum() {\n }", "title": "" }, { "docid": "f1d067d0b96302996de8378a62b5622f", "score": "0.6690008", "text": "EnumerationType createEnumerationType();", "title": "" }, { "docid": "b512692a3568bddfcdd55037cbff78be", "score": "0.66633266", "text": "public interface ZserioEnum\n{\n /**\n * Gets generic value which represent enumeration value.\n *\n * @return Generic value which represent enumeration value.\n */\n Number getGenericValue();\n}", "title": "" }, { "docid": "fa1bf8d9e74277bf6a03bad3677d7bca", "score": "0.6625376", "text": "public interface SettlementType {\n\n public static final SettleEnum BURG = SettleEnum.BURG;\n public static final SettleEnum TOWN = SettleEnum.TOWN;\n public static final SettleEnum CITY = SettleEnum.CITY;\n public static final SettleEnum CAPITAL = SettleEnum.CAPITAL;\n\n\n}", "title": "" }, { "docid": "d0869184b26ad06333f875f6b881e544", "score": "0.6591195", "text": "private UCharacterEnums() {}", "title": "" }, { "docid": "acd1614f2032ae585772826b340c5ea0", "score": "0.658995", "text": "EnumerationTypeType createEnumerationTypeType();", "title": "" }, { "docid": "a9773967002689defd6b481ca475b1a9", "score": "0.6498518", "text": "@Test\n public void enumTest() {\n TransitionKind local = TransitionKind.valueOf(\"Local\");\n assertThat(local, equalTo(TransitionKind.Local));\n }", "title": "" }, { "docid": "09102e596c29e829938e5a75e1b7db59", "score": "0.6488725", "text": "private TypeEnum(String val) {\r\n\t\tthis.value = val;\r\n\t}", "title": "" }, { "docid": "9e82a6652b6611ae1da7599fa04fccdf", "score": "0.64014846", "text": "EnumAlternative getValue();", "title": "" }, { "docid": "93e5c2ccb37402eed79726292a1f4494", "score": "0.6382756", "text": "Enumer createEnumer();", "title": "" }, { "docid": "358defbc9a655c3a72f0197cec830cd6", "score": "0.6370132", "text": "public interface CodeEnum<T> {\n T getCode();\n}", "title": "" }, { "docid": "1922ef3e10e41c001ffa46181a2c22b2", "score": "0.63483834", "text": "EnumerationValue createEnumerationValue();", "title": "" }, { "docid": "8360a326e9413207d21122d8367e1cac", "score": "0.63032055", "text": "HolderEnum holderType();", "title": "" }, { "docid": "b85e6f8d1fcc568f9b8033fb3f0f59c9", "score": "0.62784594", "text": "public void testValidEnums () {\n\t\tString example = \"INACTIVE_NOT_CONFIRMED\";\n\t\tVehicleDataActiveStatus enumInactiveNotConfirmed = VehicleDataActiveStatus.valueForString(example);\n\t\texample = \"INACTIVE_CONFIRMED\";\n\t\tVehicleDataActiveStatus enumInactiveConfirmed = VehicleDataActiveStatus.valueForString(example);\n\t\texample = \"ACTIVE_NOT_CONFIRMED\";\n\t\tVehicleDataActiveStatus enumActiveNotConfirmed = VehicleDataActiveStatus.valueForString(example);\n\t\texample = \"ACTIVE_CONFIRMED\";\n\t\tVehicleDataActiveStatus enumActiveConfirmed = VehicleDataActiveStatus.valueForString(example);\n\t\texample = \"FAULT\";\n\t\tVehicleDataActiveStatus enumFault = VehicleDataActiveStatus.valueForString(example);\n\n\t\tassertNotNull(\"INACTIVE_NOT_CONFIRMED returned null\", enumInactiveNotConfirmed);\n\t\tassertNotNull(\"INACTIVE_CONFIRMED returned null\", enumInactiveConfirmed);\n\t\tassertNotNull(\"ACTIVE_NOT_CONFIRMED returned null\", enumActiveNotConfirmed);\n\t\tassertNotNull(\"ACTIVE_CONFIRMED returned null\", enumActiveConfirmed);\n\t\tassertNotNull(\"FAULT returned null\", enumFault);\n\t}", "title": "" }, { "docid": "9fd67f49f786bf61eba542d1cd319a4d", "score": "0.62766856", "text": "@Test\n void createEnumClass() {\n Type type;\n }", "title": "" }, { "docid": "1f27388db23d3e901cd8c86f16c20bae", "score": "0.6216909", "text": "public JDefinedClass _enum (String name) throws JClassAlreadyExistsException;", "title": "" }, { "docid": "171db358f55dac77a2d1f59efd1df89d", "score": "0.61995655", "text": "public void testValidEnums () {\t\n\t\tString example = \"USER_EXIT\";\n\t\tSdlDisconnectedReason enumUserExit = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"IGNITION_OFF\";\n\t\tSdlDisconnectedReason enumIgnitionOff = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"BLUETOOTH_OFF\";\n\t\tSdlDisconnectedReason enumBluetoothOff = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"USB_DISCONNECTED\";\n\t\tSdlDisconnectedReason enumUsbDisconnected = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"REQUEST_WHILE_IN_NONE_HMI_LEVEL\";\n\t\tSdlDisconnectedReason enumRequestWhileInNoneHmiLevel = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"TOO_MANY_REQUESTS\";\n\t\tSdlDisconnectedReason enumTooManyRequests = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"DRIVER_DISTRACTION_VIOLATION\";\n\t\tSdlDisconnectedReason enumDriverDistractionViolation = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"LANGUAGE_CHANGE\";\n\t\tSdlDisconnectedReason enumLanuguageChange = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"MASTER_RESET\";\n\t\tSdlDisconnectedReason enumMasterReset = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"FACTORY_DEFAULTS\";\n\t\tSdlDisconnectedReason enumFactoryDefaults = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"TRANSPORT_ERROR\";\n\t\tSdlDisconnectedReason enumTransportError = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"APPLICATION_REQUESTED_DISCONNECT\";\n\t\tSdlDisconnectedReason enumApplicationRequestedDisconnect = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"DEFAULT\";\n\t\tSdlDisconnectedReason enumDefault = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"TRANSPORT_DISCONNECT\";\n\t\tSdlDisconnectedReason enumTransportDisconnect = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"HB_TIMEOUT\";\n\t\tSdlDisconnectedReason enumHbTimeout = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"BLUETOOTH_DISABLED\";\n\t\tSdlDisconnectedReason enumBluetoothDisabled = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"BLUETOOTH_ADAPTER_ERROR\";\n\t\tSdlDisconnectedReason enumBluetoothAdapterError = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"SDL_REGISTRATION_ERROR\";\n\t\tSdlDisconnectedReason enumSdlRegistrationError = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"APP_INTERFACE_UNREG\";\n\t\tSdlDisconnectedReason enumAppInterfaceUnreg = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"GENERIC_ERROR\";\n\t\tSdlDisconnectedReason enumGenericError = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"LEGACY_BLUETOOTH_MODE_ENABLED\";\n\t\tSdlDisconnectedReason enumLegacyMode = SdlDisconnectedReason.valueForString(example);\n\t\texample = \"RPC_SESSION_ENDED\";\n\t\tSdlDisconnectedReason enumRpcSessionEnded = SdlDisconnectedReason.valueForString(example);\n\t\t\n\t\tassertNotNull(\"USER_EXIT returned null\", enumUserExit);\n\t\tassertNotNull(\"IGNITION_OFF returned null\", enumIgnitionOff);\n\t\tassertNotNull(\"BLUETOOTH_OFF returned null\", enumBluetoothOff);\n\t\tassertNotNull(\"USB_DISCONNECTED returned null\", enumUsbDisconnected);\n\t\tassertNotNull(\"REQUEST_WHILE_IN_NONE_HMI_LEVEL returned null\", enumRequestWhileInNoneHmiLevel);\n\t\tassertNotNull(\"TOO_MANY_REQUESTS returned null\", enumTooManyRequests);\n\t\tassertNotNull(\"DRIVER_DISTRACTION_VIOLATION returned null\", enumDriverDistractionViolation);\n\t\tassertNotNull(\"LANGUAGE_CHANGE returned null\", enumLanuguageChange);\n\t\tassertNotNull(\"MASTER_RESET returned null\", enumMasterReset);\n\t\tassertNotNull(\"FACTORY_DEFAULTS returned null\", enumFactoryDefaults);\n\t\tassertNotNull(\"TRANSPORT_ERROR returned null\", enumTransportError);\n\t\tassertNotNull(\"APPLICATION_REQUESTED_DISCONNECT returned null\", enumApplicationRequestedDisconnect);\n\t\tassertNotNull(\"DEFAULT returned null\", enumDefault);\n\t\tassertNotNull(\"TRANSPORT_DISCONNECT returned null\", enumTransportDisconnect);\n\t\tassertNotNull(\"HB_TIMEOUT returned null\", enumHbTimeout);\n\t\tassertNotNull(\"BLUETOOTH_DISABLED returned null\", enumBluetoothDisabled);\n\t\tassertNotNull(\"BLUETOOTH_ADAPTER_ERROR returned null\", enumBluetoothAdapterError);\n\t\tassertNotNull(\"SDL_REGISTRATION_ERROR returned null\", enumSdlRegistrationError);\n\t\tassertNotNull(\"APP_INTERFACE_UNREG returned null\", enumAppInterfaceUnreg);\n\t\tassertNotNull(\"GENERIC_ERROR returned null\", enumGenericError);\n\t\tassertNotNull(\"LEGACY_BLUETOOTH_MODE_ENABLED returned null\", enumLegacyMode);\n\t\tassertNotNull(\"RPC_SESSION_ENDED returned null\", enumRpcSessionEnded);\n\t}", "title": "" }, { "docid": "95a96fbeab8e2389147e06d742c01011", "score": "0.61822844", "text": "public T caseEnum(org.xtext.branselic.domainmodel.Enum object)\n {\n return null;\n }", "title": "" }, { "docid": "148212acb8841c20ba0f7612ac044ef1", "score": "0.6179084", "text": "GlobalEnum getEnumeration();", "title": "" }, { "docid": "24c52b42f6643451924e56bc24a8fb7a", "score": "0.616829", "text": "@Test\n\n\tpublic void NumberingOfEnumIsStable() {\n\n\t\tAssert.assertEquals(0, (int) BinaryOperator.Unknown.ordinal());\n\n\t\t// Logical\n\t\tAssert.assertEquals(1, (int) BinaryOperator.LessThan.ordinal());\n\t\tAssert.assertEquals(2, (int) BinaryOperator.LessThanOrEqual.ordinal());\n\t\tAssert.assertEquals(3, (int) BinaryOperator.Equal.ordinal());\n\t\tAssert.assertEquals(4, (int) BinaryOperator.GreaterThanOrEqual.ordinal());\n\t\tAssert.assertEquals(5, (int) BinaryOperator.GreaterThan.ordinal());\n\t\tAssert.assertEquals(6, (int) BinaryOperator.NotEqual.ordinal());\n\t\tAssert.assertEquals(7, (int) BinaryOperator.And.ordinal());\n\t\tAssert.assertEquals(8, (int) BinaryOperator.Or.ordinal());\n\n\t\t// Arithmetic\n\t\tAssert.assertEquals(9, (int) BinaryOperator.Plus.ordinal());\n\t\tAssert.assertEquals(10, (int) BinaryOperator.Minus.ordinal());\n\t\tAssert.assertEquals(11, (int) BinaryOperator.Multiply.ordinal());\n\t\tAssert.assertEquals(12, (int) BinaryOperator.Divide.ordinal());\n\t\tAssert.assertEquals(13, (int) BinaryOperator.Modulo.ordinal());\n\n\t\t// Bitwise\n\t\tAssert.assertEquals(14, (int) BinaryOperator.BitwiseAnd.ordinal());\n\t\tAssert.assertEquals(15, (int) BinaryOperator.BitwiseOr.ordinal());\n\t\tAssert.assertEquals(16, (int) BinaryOperator.BitwiseXor.ordinal());\n\t\tAssert.assertEquals(17, (int) BinaryOperator.ShiftLeft.ordinal());\n\t\tAssert.assertEquals(18, (int) BinaryOperator.ShiftRight.ordinal());\n\t}", "title": "" }, { "docid": "a3b42844d4a0cd81053caeaf2364dc7a", "score": "0.6127775", "text": "protected EnumSyntax[] getEnumValueTable() {\n/* 238 */ return (EnumSyntax[])myEnumValueTable.clone();\n/* */ }", "title": "" }, { "docid": "fff36b13a288d59dd0d438996a17accb", "score": "0.61246294", "text": "private Enum<?> readEnum(boolean paramBoolean)\n/* */ throws IOException\n/* */ {\n/* 1722 */ if (this.bin.readByte() != 126) {\n/* 1723 */ throw new InternalError();\n/* */ }\n/* */ \n/* 1726 */ ObjectStreamClass localObjectStreamClass = readClassDesc(false);\n/* 1727 */ if (!localObjectStreamClass.isEnum()) {\n/* 1728 */ throw new InvalidClassException(\"non-enum class: \" + localObjectStreamClass);\n/* */ }\n/* */ \n/* 1731 */ int i = this.handles.assign(paramBoolean ? unsharedMarker : null);\n/* 1732 */ ClassNotFoundException localClassNotFoundException = localObjectStreamClass.getResolveException();\n/* 1733 */ if (localClassNotFoundException != null) {\n/* 1734 */ this.handles.markException(i, localClassNotFoundException);\n/* */ }\n/* */ \n/* 1737 */ String str = readString(false);\n/* 1738 */ Object localObject = null;\n/* 1739 */ Class localClass = localObjectStreamClass.forClass();\n/* 1740 */ if (localClass != null)\n/* */ {\n/* */ try {\n/* 1743 */ Enum localEnum = Enum.valueOf(localClass, str);\n/* 1744 */ localObject = localEnum;\n/* */ }\n/* */ catch (IllegalArgumentException localIllegalArgumentException)\n/* */ {\n/* 1748 */ throw ((IOException)new InvalidObjectException(\"enum constant \" + str + \" does not exist in \" + localClass).initCause(localIllegalArgumentException));\n/* */ }\n/* 1750 */ if (!paramBoolean) {\n/* 1751 */ this.handles.setObject(i, localObject);\n/* */ }\n/* */ }\n/* */ \n/* 1755 */ this.handles.finish(i);\n/* 1756 */ this.passHandle = i;\n/* 1757 */ return (Enum<?>)localObject;\n/* */ }", "title": "" }, { "docid": "d14717799f11388b009cd5eaaad4b8d0", "score": "0.61219174", "text": "@SuppressWarnings(\"null\")\n @Override\n public WurstType case_EnumDef(EnumDef enumDef) {\n return WurstTypeUnknown.instance();\n }", "title": "" }, { "docid": "ca0084c3b09f7a4e2439f94638c2e13a", "score": "0.6119212", "text": "InlineEnumerationType createInlineEnumerationType();", "title": "" }, { "docid": "0a234d07bad0dba76d0035efae5e95e9", "score": "0.61022824", "text": "@Override\n public boolean visit(EnumDeclaration node) {\n return false;\n }", "title": "" }, { "docid": "e887f1d2a39c0ddfbf5e43966b94dfaf", "score": "0.61013186", "text": "private static <E extends Enum<E>> E[] getUniverse(Class<E> paramClass) {\n/* 406 */ return (E[])SharedSecrets.getJavaLangAccess()\n/* 407 */ .getEnumConstantsShared(paramClass);\n/* */ }", "title": "" }, { "docid": "9549c04217d154049322a1a407b5af70", "score": "0.6079684", "text": "@DISPID(-4)\n @PropGet\n com4j.Com4jObject _newEnum();", "title": "" }, { "docid": "f21d8c1ec89e1f489213e8fee4a2a4e2", "score": "0.60746694", "text": "public interface EnumeratedConversion {\r\n\r\n\t/**\r\n\t * Convert an object to an enumerated value\r\n\t * \r\n\t * @param value\r\n\t * Must be of the type returned by type()\r\n\t * @return The converted value\r\n\t */\r\n\tpublic Object from(Object value);\r\n\r\n\t/**\r\n\t * Convert an enumerated value to an Object\r\n\t * \r\n\t * @param value\r\n\t * Any enumerated value\r\n\t * @return The converted value. The object must be of the type returned by\r\n\t * type()\r\n\t */\r\n\tpublic Object to(Object value);\r\n\r\n\t/**\r\n\t * @return The type that this converter handles.\r\n\t */\r\n\tpublic Class<?> type();\r\n\r\n\t/**\r\n\t * Returns the enumeration's name from a certain type. If this is not\r\n\t * possible, the enumeration must be registered manually.\r\n\t * \r\n\t * @param type\r\n\t * @return\r\n\t */\r\n\tpublic String getEnumerationName(Class<?> type);\r\n}", "title": "" }, { "docid": "69c6dae81a8b7da20cd0ab84424bf548", "score": "0.6056935", "text": "public void genericCompileSafeEnum() {\n System.out.println(\"Start: genericCompileSafeEnum()\");\n for (GenericCompileSafeEnum genericEnum : GenericCompileSafeEnum.values()) {\n // We can also use Java Generics to add a return value if needed.\n int i = genericEnum.switchCase(\n new GenericCompileSafeEnum.EnumSwitch<Integer>() {\n\n @Override\n public Integer xyz() {\n return 1;\n }\n\n @Override\n public Integer foo() {\n return 2;\n }\n\n @Override\n public Integer bar() {\n return 3;\n }\n\n @Override\n public Integer bla() {\n return 4;\n }\n });\n System.out.println(i);\n }\n System.out.println(\"End: genericCompileSafeEnum()\");\n }", "title": "" }, { "docid": "66a4b552e40c78f459676263b4294a8d", "score": "0.6042495", "text": "private USDLCoreEnum(String p, String t) {\n\t\tproperty = p;\n\t\ttype = t;\n\t}", "title": "" }, { "docid": "de64acd262b9be762fa47fd073dd748c", "score": "0.60417783", "text": "@Override\n\tpublic void visit(EnumDeclarationWrapper enumDeclaration) {\n\t}", "title": "" }, { "docid": "248a602246dcaf7c31143ab84f876737", "score": "0.60304755", "text": "@Override\n\tpublic void visit(UnresolvedEnumDeclarationWrapper unresolvedEnumDeclaration) {\n\t}", "title": "" }, { "docid": "ce2ae8f38b819c92c075d9b4e5fcca99", "score": "0.6020098", "text": "boolean isEnumProperty();", "title": "" }, { "docid": "baef4266f1632a31292f8335188c86b3", "score": "0.60012734", "text": "public void testInvalidEnum () {\n\t\tString example = \"FauLt\";\n\t\ttry {\n\t\t\tVehicleDataActiveStatus temp = VehicleDataActiveStatus.valueForString(example);\n\t\t\tassertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n\t\t\tfail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}", "title": "" }, { "docid": "91dbbbf68363333808b01e246c4123c2", "score": "0.59957767", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "b9e09ad3dd3a5ddedc510b6e5fb92296", "score": "0.59913826", "text": "public boolean isEnum() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "a4124f1e0a958445a049eef3813d7947", "score": "0.5969158", "text": "public TypeEnum v() throws IOException {\n TypeEnum type = null; // Stores the type\n\n if (SymbolTable.getToken(lAnalyzer.lexeme) == TokenEnum.VALUE) {\n type = SymbolTable.getType(lAnalyzer.lexeme); // Type is integer or character\n matchToken(TokenEnum.VALUE);\n } else if (SymbolTable.getToken(lAnalyzer.lexeme) == TokenEnum.TRUE) {\n type = SymbolTable.getType(lAnalyzer.lexeme); // Type is logic\n matchToken(TokenEnum.TRUE);\n } else if (SymbolTable.getToken(lAnalyzer.lexeme) == TokenEnum.FALSE) {\n type = SymbolTable.getType(lAnalyzer.lexeme); // Type is logic\n matchToken(TokenEnum.FALSE);\n } else {\n // Throws an error and exit the program\n System.out.println(lAnalyzer.currentLine + \"\\n\" + \"token nao esperado\" + \" [\" + lAnalyzer.lexeme + \"]\" + \".\");\n System.exit(1);\n }\n\n return type;\n }", "title": "" }, { "docid": "cc85e8f813934051b9da87a7cfd309fc", "score": "0.5959138", "text": "private PayTypeEnum(String value) {\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "e548268a7aa6f7195e3956f52932a24f", "score": "0.5952101", "text": "@Test\n\tpublic void enumConstFields1Test() throws EngineInvocationError {\n\t\tAssume.assumeTrue(GlobalSetting.EnableJSE);\n\t\tExceptionTestRunner runner = new ExceptionTestRunner(Commons.Groups.OO, FEATURE);\n\t\trunner.executeAndExpect(\"enum_illegal_1.jul\", new AttemptToChangeConstException());\n\t}", "title": "" }, { "docid": "03877267163259be147a64b60aa422b9", "score": "0.5941564", "text": "public static interface Valued {\n\t\tdefault int value() {\n\t\t\tvar cls = getClass();\n\t\t\tif (!cls.isEnum()) return 0;\n\t\t\tif (!initialized(cls)) initFromAnnotations(BasicUtil.uncheckedCast(cls));\n\t\t\treturn JnaEnum.enumValue((Enum<?>) this);\n\t\t}\n\t}", "title": "" }, { "docid": "b6403a6ab820f1872f7b68f80e45a723", "score": "0.59288156", "text": "protected ModuleType[] getEnumValueTable() {\n return enumValueTable;\n }", "title": "" }, { "docid": "375b5d24d4acf02569bde6fef11e3180", "score": "0.5901722", "text": "public interface ParameterEnum<T extends Object> extends ParameterItemBase<T> {\n\n /**\n * Return the enum name.\n *\n * @return the name\n */\n String name();\n\n /**\n * Default Constructor.\n *\n * @param <O> the type of the object paramter to create, shall be a subtype of enum generic type\n * @param object the parameter object\n */\n default <O extends T> void param(final O object) {\n set(new ObjectParameter<>(name(), object));\n }\n\n /**\n * Default Constructor.\n *\n * @param <O> the type of the object paramter to create, shall be a subtype of enum generic type\n * @param parameterName the name of the parameter\n * @param object the parameter object\n */\n default <O extends T> void param(final String parameterName, final O object) {\n set(new ObjectParameter<>(parameterName, object));\n }\n\n}", "title": "" }, { "docid": "85ee531ed05bfd794ddc35471ed308fb", "score": "0.58977026", "text": "@Test\n public void testEnum() {\n\n Category c = Category.getById(2);\n assertEquals(\"MEAT\", c.name());\n }", "title": "" }, { "docid": "660af11c45e0bb210feee188f5503c77", "score": "0.58968294", "text": "public void normalEnum() {\n System.out.println(\"Start: normalEnum()\");\n for (NormalEnum normalEnum : NormalEnum.values()) {\n switch (normalEnum) {\n case BAR:\n System.out.println(\" That is awesome\");\n break;\n case BLA:\n System.out.println(\" Bla, Bla, Bla\");\n break;\n case FOO:\n System.out.println(\" Foo, that hurts\");\n break;\n default:\n System.out.println(\" !!! Should not happen !!!\");\n // But it happens, because the enum definition is incomplete\n break;\n }\n }\n System.out.println(\"End: normalEnum()\");\n }", "title": "" }, { "docid": "ba764d269bf977789b15fdd79c448a51", "score": "0.58730674", "text": "public static IStatus validateEnumName(String name) {\n \t\tif (name == null) {\n \t\t\treturn new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_nullName, null); \n \t\t}\n \t\tString trimmed = name.trim();\n \t\tif ((!name.equals(trimmed)) || (name.indexOf(\" \") != -1) ){ //$NON-NLS-1$\n \t\t\treturn new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_nameWithBlanks, null); \n \t\t}\n \t\tint index = name.lastIndexOf(scopeResolutionOperator);\n \t\tchar[] scannedID;\n \t\tif (index == -1) {\n \t\t\t// simple name\n \t\t\tIStatus status = validateIdentifier(name);\n \t\t\tif (!status.isOK()){\n \t\t\t\treturn status;\n \t\t\t}\n \t\n \t\t\tscannedID = name.toCharArray();\n \t\t} else {\n \t\t\t// qualified name\n \t\t\tString pkg = name.substring(0, index).trim();\n \t\t\tIStatus status = validateScopeName(pkg);\n \t\t\tif (!status.isOK()) {\n \t\t\t\treturn status;\n \t\t\t}\n \t\t\tString type = name.substring(index + scopeResolutionOperator.length()).trim();\n \t\t\tstatus = validateIdentifier(type);\n \t\t\tif (!status.isOK()){\n \t\t\t\treturn status;\n \t\t\t}\n \t\t\tscannedID = type.toCharArray();\n \t\t}\n \t\n \t\tif (scannedID != null) {\n \t\t\tif (CharOperation.contains('$', scannedID)) {\n \t\t\t\treturn new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_dollarName, null); \n \t\t\t}\n \t\t\tif (scannedID.length > 0 && scannedID[0] == '_') {\n \t\t\t\treturn new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_leadingUnderscore, null); \n \t\t\t}\n \t\t\tif (scannedID.length > 0 && Character.isLowerCase(scannedID[0])) {\n \t\t\t\treturn new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_lowercaseName, null); \n \t\t\t}\n \t\t\treturn CModelStatus.VERIFIED_OK;\n \t\t}\n \t\treturn new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Messages.convention_enum_invalidName, null); \n \t}", "title": "" }, { "docid": "bd849219217c230db51e856a1fe86373", "score": "0.5861921", "text": "LiteralEnumerationAxiom createLiteralEnumerationAxiom();", "title": "" }, { "docid": "aaec497cc2be405213bd634ad181d55d", "score": "0.5838379", "text": "public interface FSInput {\n public enum Input {\n }\n}", "title": "" }, { "docid": "a80cb93a465642a6c7910698d491dcbd", "score": "0.58374655", "text": "@Test\n\tpublic void enumConstFields2Test() throws EngineInvocationError {\n\t\tAssume.assumeTrue(GlobalSetting.EnableJSE);\n\t\tExceptionTestRunner runner = new ExceptionTestRunner(Commons.Groups.OO, FEATURE);\n\t\trunner.executeAndExpect(\"enum_illegal_2.jul\", new AttemptToChangeConstException());\n\t}", "title": "" }, { "docid": "1b6fe0fe8d5ab3cab9e8e944e4d86aa6", "score": "0.58370936", "text": "@Override\n public boolean isEnumerated() {\n return false;\n }", "title": "" }, { "docid": "9afc0708ad182b291010b798bd865bcf", "score": "0.58360213", "text": "private String enumFeature(CimEnumeration cimEnum) {\r\n\t\tString javaName = getJavaName(cimEnum);\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tb.append(getExport(cimEnum.getQualifiers(),true, cimEnum.getNameSpacePath().getLocalPath(), null, null));\r\n\t\tif(isTrue(cimEnum.getQualifierValue(\"DEPRECATED\"))) b.append(\"@Deprecated\\n\");\r\n\t\tb.append(\"public \");\r\n\t\tif(isTrue(cimEnum.getQualifierValue(\"STATIC\"))) b.append(\"static \");\r\n\t\tb.append(\"enum \").append(javaName).append(\" {\\n\");\r\n\t\tClass<?> javaType = cimEnum.getDataType().getClassForType();\r\n\t\tboolean hasValues = cimEnum.hasDefinedValues();\r\n\t\tfor(String vName : cimEnum.getKeys()) {\r\n\t\t\tb.append(\"\\t\").append(vName);\r\n\t\t\tif(hasValues) {\r\n\t\t\t\tb.append(\"(\");\r\n\t\t\t\tswitch(cimEnum.getDataType()) {\r\n\t\t\t\tcase UINT8:\r\n\t\t\t\t\tb.append(\"new UInt8(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UINT16:\r\n\t\t\t\t\tb.append(\"new UInt16(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UINT32:\r\n\t\t\t\t\tb.append(\"new UInt32(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase UINT64:\r\n\t\t\t\t\tb.append(\"new UInt64(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SINT8:\r\n\t\t\t\t\tb.append(\"new Byte(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SINT16:\r\n\t\t\t\t\tb.append(\"new Short(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SINT32:\r\n\t\t\t\t\tb.append(\"new Integer(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase SINT64:\r\n\t\t\t\t\tb.append(\"new Long(\\\"\").append(cimEnum.getDataValue(vName).toMOF()).append(\"\\\")\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tb.append(cimEnum.getDataValue(vName).toMOF());\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tb.append(\")\");\r\n\t\t\t}\r\n\t\t\tb.append(\",\\n\");\r\n\t\t}\r\n\t\tb.setLength(b.length()-2);\r\n\t\tif(hasValues) {\r\n\t\t\tb.append(\";\\n\\tprivate final \").append(javaType.getSimpleName()).append(\" \").append(\"value;\\n\\t\");\r\n\t\t\tb.append(\"private \").append(javaName).append(\"(\").append(javaType.getSimpleName()).append(\" value){\\n\\t\\t\");\r\n\t\t\tb.append(\"this.value = value;\\n\\t}\");\r\n\t\t\tb.append(\"\\n\\tpublic \").append(javaType.getSimpleName()).append(\" value(){\\n\\t\\treturn value;\\n\\t}\");\r\n\t\t}\r\n\t\tb.append(\"\\n}\\n\");\r\n\t\treturn b.toString();\r\n\t}", "title": "" }, { "docid": "828b8f759114be2e1726b3e0b0559e76", "score": "0.58343256", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "828b8f759114be2e1726b3e0b0559e76", "score": "0.58343256", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "828b8f759114be2e1726b3e0b0559e76", "score": "0.58343256", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "828b8f759114be2e1726b3e0b0559e76", "score": "0.58343256", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "5bc9b3894aac8b8e94b36ff83c8595cb", "score": "0.58328754", "text": "public interface hm {\n\n /* compiled from: IResourceProxy */\n public enum a {\n a,\n marker_default,\n marker_gps_no_sharing\n }\n}", "title": "" }, { "docid": "85e71bf2b0fd89bcf60145683b5f2cbe", "score": "0.58261764", "text": "private PlayerStatusEnumeration(){\n\t\t\n\t}", "title": "" }, { "docid": "7323c5f5f570880582277a7216abfc18", "score": "0.5805828", "text": "public void testInvalidEnum () {\n\t\tString example = \"uSer_ExiT\";\n\t\ttry {\n\t\t SdlDisconnectedReason temp = SdlDisconnectedReason.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}", "title": "" }, { "docid": "e6fce251d73c99368374a34a87c10361", "score": "0.5798977", "text": "public D m4473a(String str) {\n D[] dArr;\n for (D d : (Enum[]) this.f3753n.getEnumConstants()) {\n if (d.name().equals(str)) {\n return d;\n }\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Enum value \");\n sb.append(str);\n sb.append(\" not found for type \");\n sb.append(this.f3753n.getName());\n sb.append(\".\");\n throw new IllegalArgumentException(sb.toString());\n }", "title": "" }, { "docid": "aafb0bb06bbe109748ebf9eab8d5848d", "score": "0.5794248", "text": "private DataTypeEnum(int value, String name, String literal)\n {\n this.value = value;\n this.name = name;\n this.literal = literal;\n }", "title": "" }, { "docid": "ea5150547197ec6389252c8d0c3c4404", "score": "0.57871974", "text": "@Override\n\tpublic void visit(EnumConstantDeclarationWrapper enumConstantDeclaration) {\n\t}", "title": "" }, { "docid": "02d188e02c9afb80b60a05525fa3a8a3", "score": "0.5784882", "text": "private void generateEnumDecls(\n final StringBuilder sb,\n final String enumName,\n final String golangType,\n final List<Token> tokens,\n final Token encodingToken)\n {\n final String nullValue = \"NullValue\";\n int longest = nullValue.length();\n for (final Token token : tokens)\n {\n longest = Math.max(longest, token.name().length());\n }\n\n // Enums are modelled as a struct and we export an instance so\n // you can reference known values as expected.\n sb.append(String.format(\n \"type %1$sEnum %2$s\\n\" +\n \"type %1$sValues struct {\\n\",\n enumName,\n golangType));\n\n for (final Token token : tokens)\n {\n sb.append(String.format(\n \"\\t%1$s%2$s%3$sEnum\\n\",\n token.name(),\n generateWhitespace(longest - token.name().length() + 1),\n enumName));\n }\n\n // Add the NullValue\n sb.append(String.format(\n \"\\t%1$s%2$s%3$sEnum\\n\" +\n \"}\\n\",\n nullValue,\n generateWhitespace(longest - nullValue.length() + 1),\n enumName));\n\n // And now the Enum Values expressed as a variable\n sb.append(String.format(\n \"\\nvar %1$s = %1$sValues{\",\n enumName));\n\n for (final Token token : tokens)\n {\n sb.append(generateLiteral(\n token.encoding().primitiveType(), token.encoding().constValue().toString())).append(\", \");\n }\n\n // Add the NullValue and close\n sb.append(encodingToken.encoding().applicableNullValue().toString()).append(\"}\\n\");\n }", "title": "" }, { "docid": "8d15cfb4370321b958190d5d75f43bc1", "score": "0.57828313", "text": "public interface IMajiangCard {\n\n enum ECardType {WAN, TONG, TIAO}\n\n enum ECardValue {OneWan, TwoWan, ThreeWan, FourWan, FiveWan, SixWan, SevenWan, EightWan, NineWan,\n OneTong, TwoTong, ThreeTong, FourTong, FiveTong, SixTong, SevenTong, EightTong, NineTong,\n OneTiao, TwoTiao, ThreeTiao, FourTiao, FiveTiao, SixTiao, SevenTiao, EightTiao, NineTiao,\n }\n}", "title": "" }, { "docid": "379c17b9d0affac2c6ae5cc4a38c9614", "score": "0.57782346", "text": "@Test\n public void testEnumPropertyStorageType() {\n assertEnumProperty(ExtendedEnumTypeTest.Widget.class, ExtendedEnumTypeTest.ExtendedEnumType.class, \"status\", STRING);\n // test that property 'status2' translates to an enum type that is stored by position (e.g. ORDINAL)\n assertEnumProperty(ExtendedEnumTypeTest.Widget.class, ExtendedEnumTypeTest.ExtendedEnumType.class, \"status2\", ORDINAL);\n }", "title": "" }, { "docid": "7fee7a5715b012c0929215a4bfef68e9", "score": "0.57718253", "text": "public IPowerEnum getEnumOnLinkStringToInt(int type, Object param);", "title": "" }, { "docid": "3500c2aef22d6c1a2c667765dcce65dd", "score": "0.577056", "text": "boolean supportsEnumeration();", "title": "" }, { "docid": "dc2a2d5120c018483bc31380b56dd3c6", "score": "0.5764135", "text": "public Expression visit(ASTEnumLiteral e){\n\t\tString type = e.getType();\n\t\tString literal = e.getLiteral();\n\t\tint index = modelTranslator.getEnumLiteralIndex(type,literal);\n\t\tif (index!=-1)\n\t\t\treturn new NumLiteral(index);\n\t\telse\n\t\t\tthrow new TranslatorException(\"error: Enum <\"+type+\"> does not have literal <\"+literal+\">\");\n\t}", "title": "" }, { "docid": "139b3059fbd79f1a67cc9ebb4297980e", "score": "0.57636863", "text": "private ConfigPropertyEnumsProtoTranslator() {}", "title": "" }, { "docid": "88b6c645883346c520313e72ea4791c2", "score": "0.57420176", "text": "private Object readResolve() {\n/* 445 */ EnumSet<E> enumSet = EnumSet.noneOf(this.elementType);\n/* 446 */ for (Enum<?> enum_ : this.elements)\n/* 447 */ enumSet.add((E)enum_); \n/* 448 */ return enumSet;\n/* */ }", "title": "" }, { "docid": "7c2a83efc66cc84d2b12377a793185b3", "score": "0.5721684", "text": "public interface GosuEnumConstant extends IGosuField\n{\n GosuEnumConstant[] EMPTY_ARRAY = new GosuEnumConstant[0];\n}", "title": "" }, { "docid": "8ba0594451b5f3b75950c509af77a1ad", "score": "0.57153046", "text": "@Override\n public void validateOnSchema(EnumModel model) {\n }", "title": "" }, { "docid": "f63ed1ed2870fb8526f498e7d0e8fc8c", "score": "0.57152796", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "f63ed1ed2870fb8526f498e7d0e8fc8c", "score": "0.57152796", "text": "public static Enum forInt(int i)\r\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "753a3115b0a3d97f0c5501f44cb3b148", "score": "0.5714458", "text": "public abstract Type getTypeByState();", "title": "" }, { "docid": "cb65e5fd258dcbab8fb371dae84792a7", "score": "0.5706398", "text": "public boolean isEnum() {\n return (this == DataType.ENUM1) || (this == DataType.ENUM2) || (this == DataType.ENUM4);\n }", "title": "" }, { "docid": "1f8f610876d4a54ba3d551aef45a77f7", "score": "0.57033664", "text": "public CustomMof14Enumeration createCustomMof14Enumeration();", "title": "" }, { "docid": "1a4d0b7d559af91d94300c6c7cbdd62b", "score": "0.5701577", "text": "String getShowAsEnumId();", "title": "" }, { "docid": "926144f068606f4038264ee20a91adf0", "score": "0.56997335", "text": "@Override\n public String toString(){\n return \"Error: you passed a null pointer instead of an enum!\";\n }", "title": "" }, { "docid": "24f556096c2aaccfd9d8be557085c82d", "score": "0.56963533", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "24f556096c2aaccfd9d8be557085c82d", "score": "0.56963533", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "24f556096c2aaccfd9d8be557085c82d", "score": "0.56963533", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "24f556096c2aaccfd9d8be557085c82d", "score": "0.56963533", "text": "public static Enum forInt(int i)\n { return (Enum)table.forInt(i); }", "title": "" }, { "docid": "229c5cb2fd639e4cd7befb107d27e1e3", "score": "0.56950885", "text": "@Override\r\n\tpublic Enum translate(String token) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "c40b21a9b1779b911f7dbe169bdf2976", "score": "0.5694568", "text": "public void visit(EnumDeclaration n, Object arg) {\r\n\t\t //enumDecalratiin is typeDeclaration\r\n\t printJavadoc(n.getJavaDoc(), arg);\r\n\t printMemberAnnotations(n.getAnnotations(), arg);\r\n\t printModifiers(n.getModifiers());\r\n\r\n\t System.out.print(\"enum \");\r\n\t System.out.println(n.getName());\r\n\t printer.print(\" static class \" +n.getName());\r\n\t if(enumType.get(n.getName())==null)\r\n\t {\r\n\t \tenumType.put(n.getName(), new HashSet());\r\n\t }\r\n\t Set enumS= enumType.get(n.getName());\r\n\t String classname = cus.peek().getPackage().getName() +\".\"+cOrIs.peek().getName();\r\n\t enumS.add(classname); //spec.jbb.Company\r\n\t //System.out.println(classname);\r\n\t \r\n\t \r\n\r\n\r\n\t if (n.getImplements() != null) {\r\n\t \tif(true ) throw new RuntimeException(\"not supported\");\r\n\t printer.print(\" implements \");\r\n\t \r\n\t for (Iterator<ClassOrInterfaceType> i = n.getImplements().iterator(); i.hasNext();) {\r\n\t ClassOrInterfaceType c = i.next();\r\n\t c.accept(this, arg);\r\n\t if (i.hasNext()) {\r\n\t printer.print(\", \");\r\n\t \r\n\t \r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t System.out.println(\"{\");\r\n\t printer.printLn(\" {\");\r\n\t \r\n\t \r\n\t printer.indent();\r\n\t if (n.getEntries() != null) {\r\n\t printer.printLn();\r\n\t System.out.println();\r\n\t for (Iterator<EnumConstantDeclaration> i = n.getEntries().iterator(); i.hasNext();) {\r\n\t EnumConstantDeclaration e = i.next();\r\n\t e.accept(this, arg);\r\n\t if (i.hasNext()) {\r\n\t \t System.out.println(\",\");\r\n\t printer.print(\"; \");\r\n\t \r\n\t \r\n\t }\r\n\t }\r\n\t }\r\n\t if (n.getMembers() != null) {\r\n\t \tif(true)\r\n\t \tthrow new RuntimeException(\"not aware of this path yet!\");\r\n\t printer.printLn(\";\");\r\n\t printMembers(n.getMembers(), arg);\r\n\t \r\n\t \r\n\t } else {\r\n\t if (n.getEntries() != null) {\r\n\t \tSystem.out.println(\"\");\r\n\t printer.printLn(\" ; \");\r\n\t \r\n\t }\r\n\t }\r\n\t \r\n\t System.out.println(\"}\");\r\n\t printer.unindent();\r\n\t printer.print(\"}\");\r\n\t \r\n\t }", "title": "" }, { "docid": "51ef972091e5c6a4f60db0942ad31a3c", "score": "0.56936765", "text": "public static <E extends Enum<E>> EnumSet<E> of(E paramE) {\n/* 215 */ EnumSet<Enum> enumSet = noneOf(paramE.getDeclaringClass());\n/* 216 */ enumSet.add((Enum)paramE);\n/* 217 */ return (EnumSet)enumSet;\n/* */ }", "title": "" }, { "docid": "c613cd91cfba0da75c2f69dc41f3fe8b", "score": "0.56870025", "text": "public static Enum forString(java.lang.String s)\r\n { return (Enum)table.forString(s); }", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" }, { "docid": "09128759a50bb868664e4d69b15383f2", "score": "0.56801957", "text": "int getTypeValue();", "title": "" } ]
7a2046e3e512a2aaf6705271796efd73
Returns the letter of the direction.
[ { "docid": "8a788b6b52e78c95bdabd0faebea4849", "score": "0.6981061", "text": "public String getDir()\n {\n return letter;\n }", "title": "" } ]
[ { "docid": "7e6e613ce1da33969b6acc3d7f49efdd", "score": "0.7493901", "text": "public char getDirection() {\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "d01e1bf8bb794fa91ae852231ca0a40a", "score": "0.7303815", "text": "public String getDirection()\n {\n \tif (letter == \"N\") {\n \t\treturn \"North\";\n \t}\n \telse if (letter == \"S\") {\n \t\treturn \"South\";\n \t}\n \telse if (letter == \"E\") {\n \t\treturn \"East\";\n \t}\n \telse if (letter == \"W\") {\n \t\treturn \"West\";\n \t}\n \treturn \"Unknown\";\n }", "title": "" }, { "docid": "f2d1584384f822453d939b258992e37b", "score": "0.7145204", "text": "public static char getLetter() {\n\t\treturn letter;\n\t}", "title": "" }, { "docid": "1d798fc1147270a3673d4751cf34b446", "score": "0.7043317", "text": "public char getLetter() { return letter; }", "title": "" }, { "docid": "f2979e2717eca684573152861a05bd2c", "score": "0.7040356", "text": "public char getLetter() {\n\t\t\treturn letter;\n\t\t}", "title": "" }, { "docid": "8bd70ad90f78686c4d8d5f1da50603aa", "score": "0.6941845", "text": "public String getDirection(){\n if(direction == 0){\n return \"FROM\";\n }\n else if(direction == 1){\n return \"TO\";\n }\n else if(direction == 3){\n return \"ABEAM\";\n }\n else{\n return \"ERROR\";\n }\n }", "title": "" }, { "docid": "9db1a5c14b443d5b9556faabba151207", "score": "0.691317", "text": "public char getDirectionKey(){\n return this.directionKey;\n }", "title": "" }, { "docid": "eda3c9105fcaa2a7a7937f2b0f59fd1d", "score": "0.69045126", "text": "public String getDirection();", "title": "" }, { "docid": "03b5b4d9a698f5969ca2dc5d43711e85", "score": "0.6881406", "text": "String getLetterClosing();", "title": "" }, { "docid": "eef841d0c2fc015bb2293020ebc326b3", "score": "0.6713321", "text": "char getDirection(KeyCode keyCode);", "title": "" }, { "docid": "5dc1b8cd65b1b77913bf4d2e4a8db794", "score": "0.6671169", "text": "public String getDirection()\r\n {\r\n \treturn direction;\r\n }", "title": "" }, { "docid": "bc7deca7055fbcb6898beebf49a1c5b4", "score": "0.6667567", "text": "public char getLetterAt(int i) {\r\n\t if (i < sequence.length) {\t \r\n\t return sequence[i];\r\n\t } else {\r\n\t return ' ';\r\n\t }\r\n\t }", "title": "" }, { "docid": "3bbe87496cfb134ebf455c37b914e8b7", "score": "0.66264516", "text": "@Override\r\n\tpublic char toChar() {\r\n\t\treturn 'D';\r\n\t}", "title": "" }, { "docid": "d3dc2f310b60f3401100e9072b925b8c", "score": "0.6554392", "text": "@Override\n public String toString() {\n String ch = \"dir: \";\n if (this == UP) {\n ch += \"UP\";\n } else if (this == DOWN) {\n ch += \"DOWN\";\n } else if (this == RIGHT) {\n ch += \"RIGHT\";\n } else {\n ch += \"LEFT\";\n }\n return ch;\n }", "title": "" }, { "docid": "e96fa72cc58207dd348429c02cac7f95", "score": "0.6532731", "text": "public String getDirection() {\n return direction;\n }", "title": "" }, { "docid": "c447202a13fa84962add46caa3b3d40f", "score": "0.65123934", "text": "private static char getLetter(int num) {\n switch (num) {\n case 10:\n return 'A';\n case 11:\n return 'B';\n case 12:\n return 'C';\n case 13:\n return 'D';\n case 14:\n return 'E';\n case 15:\n return 'F';\n case 16:\n return 'G';\n }\n return ' ';\n }", "title": "" }, { "docid": "4c994d00d9271ab3e905e0af74d3f768", "score": "0.65014803", "text": "@Override\r\n\tpublic String getCharacter() {\n\t\treturn CHARACTER_ZEN;\r\n\t}", "title": "" }, { "docid": "621700bc70bb2f0d81efe00564179a21", "score": "0.6501078", "text": "public String getDirection() {\r\n\t\treturn direction;\r\n\t}", "title": "" }, { "docid": "18f9fcd9ace0412f73bfe8ae457a9d37", "score": "0.6499359", "text": "public String getDirection() {\n\t\treturn this.direction;\n\t}", "title": "" }, { "docid": "a0cb7aeb9868261b567ff19df8502a42", "score": "0.64713335", "text": "public char getLetter(int i, int j) {\r\n return board[i][j];\r\n }", "title": "" }, { "docid": "e840711b41e55aec86ed2cf72ec7012c", "score": "0.63859046", "text": "@Override\n public String toString() {\n return String.valueOf(letter) + suffix;\n }", "title": "" }, { "docid": "8cd9b360b18e71e68bd0102fa0a35ce0", "score": "0.6370349", "text": "public int getLetter(final int i) {\n\t\treturn Math.abs(data[i]);\n\t}", "title": "" }, { "docid": "31079ad3e64137721660edfbc9e7184c", "score": "0.6357377", "text": "public int getDirection() {\r\n\t\treturn dir & 3;\r\n\t}", "title": "" }, { "docid": "c8e578c838521f7850c7f9696b14fe67", "score": "0.6353146", "text": "public char toChar() {\n\t\n\t\treturn shortName;\n\t\t\n\t}", "title": "" }, { "docid": "9ed4556e0f50b9e23599cecaeb1a2f0e", "score": "0.6324218", "text": "public String Word() {\n\t\tif (parent != null)\n\t\t\treturn parent.Word() + String.valueOf(letter);\n\t\telse \n\t\t\treturn \"\";\n\t}", "title": "" }, { "docid": "4647ab4cd3767ff9519ac91e507f4378", "score": "0.62814015", "text": "int getDirection();", "title": "" }, { "docid": "8a66e165a18734fa6157ccf44ee29265", "score": "0.6272208", "text": "public String getDirection() {\r\n System.out.println(\"What side of the board would you like to place the Domino?\");\r\n String direction = choiceScanner.nextLine().toLowerCase();\r\n\r\n while(!direction.equals(\"left\") && !direction.equals(\"right\")) {\r\n System.out.println(\"Not a valid direction. Please choose either left or right.\");\r\n direction = choiceScanner.nextLine().toLowerCase();\r\n }\r\n\r\n this.direction = direction;\r\n\r\n return direction;\r\n }", "title": "" }, { "docid": "41d9619171e6aa25191228e78f801f6e", "score": "0.62347645", "text": "public String toString()\n {\n \treturn Character.toUpperCase(letter) + (point >= 10 ? \"+\" : Integer.toString(point));\n }", "title": "" }, { "docid": "f1d747c10bbe12649fea75031a3d680b", "score": "0.6215158", "text": "private int direction() {\n if (getSide() == Side.WHITE) {\n return 1;\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "d44ff85450062fdcc58f5b19686a48ca", "score": "0.6211471", "text": "public String getwrongLetter(){\n\n\t\tif(this.getGameStatus() == Game.GameStatus.BAD_GUESS)\n\t\t{\n\t\t\twrongLetter = wrongLetter +inputedLetter;\n\t\t}\n\t\treturn wrongLetter;\n\t}", "title": "" }, { "docid": "e726cf351238584979d73f2ea80a586e", "score": "0.6198085", "text": "String getAChar();", "title": "" }, { "docid": "6a6fd61795043009bdc4444ab2e7191b", "score": "0.6192101", "text": "public String intToLetter(int i) {\n\t\t\tswitch(i) {\n\t\t\t\n\t\t\tcase 0:\n\t\t\t\treturn \"A\";\n\t\t\tcase 1:\n\t\t\t\treturn \"B\";\n\t\t\tcase 2:\n\t\t\t\treturn \"C\";\n\t\t\tcase 3:\n\t\t\t\treturn \"D\";\n\t\t\tcase 4:\n\t\t\t\treturn \"E\";\n\t\t\tcase 5:\n\t\t\t\treturn \"F\";\n\t\t\tcase 6:\n\t\t\t\treturn \"G\";\n\t\t\tcase 7:\n\t\t\t\treturn \"H\";\n\t\t\tcase 8:\n\t\t\t\treturn \"I\";\n\t\t\tcase 9:\n\t\t\t\treturn \"J\";\n\t\t\tcase 10:\n\t\t\t\treturn \"K\";\n\t\t\tcase 11:\n\t\t\t\treturn \"L\";\n\t\t\tcase 12:\n\t\t\t\treturn \"M\";\n\t\t\tcase 13:\n\t\t\t\treturn \"N\";\n\t\t\tcase 14:\n\t\t\t\treturn \"O\";\n\t\t\tcase 15:\n\t\t\t\treturn \"P\";\n\t\t\tcase 16:\n\t\t\t\treturn \"Q\";\n\t\t\tcase 17:\n\t\t\t\treturn \"R\";\n\t\t\tcase 18:\n\t\t\t\treturn \"S\";\n\t\t\tcase 19:\n\t\t\t\treturn \"T\";\n\t\t\tcase 20:\n\t\t\t\treturn \"U\";\n\t\t\tcase 21:\n\t\t\t\treturn \"V\";\n\t\t\tcase 22:\n\t\t\t\treturn \"W\";\n\t\t\tcase 23:\n\t\t\t\treturn \"X\";\n\t\t\tcase 24:\n\t\t\t\treturn \"Y\";\n\t\t\tcase 25:\n\t\t\t\treturn \"Z\";\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tif(i>25) { //this is here so if the number is higher than 25 than we need to move to double letters Y, Z, AA, AB, etc.\n\t\t\t\t\tint prefix = i/26-1;\n\t\t\t\t\tint suffix = i%26;\n\t\t\t\t\treturn intToLetter(prefix) + intToLetter(suffix);\n\t\t\t\t}else {\n\t\t\t\t\treturn \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1bf4872183a7e81ad39b6b737e809d28", "score": "0.6187557", "text": "public Letter(char ltr) {\n this.ltr = ltr;\n }", "title": "" }, { "docid": "2ef940cdd4186c2fc3deb21fb822805b", "score": "0.6177042", "text": "public Object getLetterName(final int i) {\n\t\treturn alphabet.letterToName(Math.abs(data[i]));\n\t}", "title": "" }, { "docid": "761f195985183f48cdf06764df733c3a", "score": "0.61650765", "text": "public Vector2 getDirection() { return direction.cpy(); }", "title": "" }, { "docid": "a02cb82d89ca5ed63c3f12101c70d367", "score": "0.6149721", "text": "public char getDriveLetter() {\n return driveLetter;\n }", "title": "" }, { "docid": "6cd44fcf10bb36f8a79c3f5ca67f770e", "score": "0.6148628", "text": "public Direction getDirection() {\n\t\treturn dir;\n\t}", "title": "" }, { "docid": "12ff1b819ad677d7ee13a599972c7738", "score": "0.61418283", "text": "Direction(final String s)\n {\n letter = s;\n }", "title": "" }, { "docid": "f1955bb5e7c24146b56c4f10158ae6ea", "score": "0.61345226", "text": "public Direction getDirection() {\n\t\treturn (this.direction);\n\t}", "title": "" }, { "docid": "621e1058dce3529a00390582d78f8636", "score": "0.61059666", "text": "public final double getDirection() {\n return dir;\n }", "title": "" }, { "docid": "620349b4847ef29d1f57f4e6caa5b164", "score": "0.609986", "text": "public Direction getDirection() {\n \t\treturn direction;\n \t}", "title": "" }, { "docid": "e72fbeb60b5bfe475cf1fc23b6f10a3d", "score": "0.6071397", "text": "public int getDirection()\n\t{\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "6084b55eb23d6500d74531e40b8136c4", "score": "0.6065976", "text": "public char getChar();", "title": "" }, { "docid": "e3450a829f442971db5ac8aa3169543f", "score": "0.60129005", "text": "float getDirection();", "title": "" }, { "docid": "82cbfa1adada83112085d4e60ef7fe17", "score": "0.5999577", "text": "private char getLetter(int index, boolean lowerCase) {\r\n return lowerCase ? ALPHABET.charAt(index) : ALPHABET.toUpperCase().charAt(index);\r\n }", "title": "" }, { "docid": "13db90b2e8dd03172319ad2987dd0acf", "score": "0.5995104", "text": "public final double getDirection() {\n\t\treturn this.direction;\n\t}", "title": "" }, { "docid": "25b276e69c9bde8ada445d9f927434a5", "score": "0.59943014", "text": "public int getDirection() {\r\n\t\t\treturn direction;\r\n\t\t}", "title": "" }, { "docid": "85bf8947f80756701b27fa3345483035", "score": "0.5978438", "text": "public int getDirection(){\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "019007b797da73fd749e397539476755", "score": "0.59784085", "text": "public Direction getDirection() {\r\n\t\treturn direction;\r\n\t}", "title": "" }, { "docid": "1cd7cc99c30ef136ee1e77882c68bec7", "score": "0.59778607", "text": "public char getLetter(int row, int col) {\n\t\treturn letters[row][col];\n\t}", "title": "" }, { "docid": "78f74e6b201bec5c8812103e4b64802f", "score": "0.5973182", "text": "public int getDirection() {\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "deef351e2007f2461181de0d457ca287", "score": "0.59648675", "text": "public String Direction(int position)\r\n\t{\r\n\t\tif(position<=10)\r\n\t\t\treturn \"North\";\r\n\t\telse if(position>10 && position<=19)\r\n\t\t\treturn \"East\";\r\n\t\telse if(position>19 && position<=30)\r\n\t\t\treturn \"South\";\r\n\t\telse\r\n\t\t\treturn \"West\";\r\n\t}", "title": "" }, { "docid": "0224ee8feecefafc576e077cc038f5eb", "score": "0.5960683", "text": "@Basic @Raw\n\tpublic double getDirection() {\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "f9e3a29409ef385098d28dd68d078ea7", "score": "0.5959494", "text": "public abstract String look(int direction);", "title": "" }, { "docid": "cd2d3f3da134de2d8adf0134f402c701", "score": "0.5957627", "text": "static String getDirection(float bearing) {\n return (POINTS_STR[((int)((bearing + (STEP / 2f)) / STEP) % POINTS_STR.length)]);\n }", "title": "" }, { "docid": "0cb73ceb8b16b15790df55f108d272ec", "score": "0.59459966", "text": "public Letter getLetterAt(int i)throws IOException{\n Vector letters = this.wordSplit();\n\n if(i>letters.size())\n return null;\n\n Letter let = (Letter)letters.elementAt(i-1);\n\n return let;\n }", "title": "" }, { "docid": "17aaa9cdb60df0f79fcf28e7bd897548", "score": "0.59106237", "text": "public Direction getDirection() {\r\n return direction;\r\n }", "title": "" }, { "docid": "17aaa9cdb60df0f79fcf28e7bd897548", "score": "0.59106237", "text": "public Direction getDirection() {\r\n return direction;\r\n }", "title": "" }, { "docid": "e009a3f30aef8217e8a7885f7f5ea8ea", "score": "0.59083605", "text": "public static char convertIntToLetter(int i) {\n return (char) (i + 64);\n }", "title": "" }, { "docid": "ac7aafa2e31b8af865555955b39f3827", "score": "0.58982736", "text": "public DirectionKind getDirection()\n {\n return direction;\n }", "title": "" }, { "docid": "8e75a29a1e473ddb2a4fa427f3ed76d6", "score": "0.5888837", "text": "public static char otherLetter(char letter) {\n\t\tswitch (letter) {\n\t\tcase X:\n\t\t\treturn O;\n\t\tcase O:\n\t\t\treturn X;\n\t\tdefault:\n\t\t\tassert(false);\n\t\t\treturn 'E';\n\t\t}\n\t}", "title": "" }, { "docid": "35d698b51e98cdfd338bdca9b95e034c", "score": "0.5883634", "text": "@Override\n public int getDirection() {\n return direction;\n }", "title": "" }, { "docid": "4d5484244980a9fd948c176315d44e7b", "score": "0.58825713", "text": "public int getDirection(){\n return direction; \r\n }", "title": "" }, { "docid": "e6ec74755fa3226a00f3e993e5a6df41", "score": "0.5877755", "text": "public Direction getDirection() {\n return direction;\n }", "title": "" }, { "docid": "6a2167f2479ba7ea4cd4e5b567d5a131", "score": "0.5871922", "text": "public static char letterGrade(int average)\r\n {\r\n switch (average / 10)\r\n {\r\n case 10: case 9:\r\n return 'A';\r\n case 8:\r\n return 'B';\r\n case 7:\r\n return 'C';\r\n case 6:\r\n return 'D';\r\n default:\r\n return 'F';\r\n }\r\n }", "title": "" }, { "docid": "cd4706649523a24b3046518513de40bf", "score": "0.58692443", "text": "public int getDirection() { return direction; }", "title": "" }, { "docid": "692a88ee7ab1ee2dfc12cc3747400932", "score": "0.58646625", "text": "@java.lang.Override\n public int getDirection() {\n return direction_;\n }", "title": "" }, { "docid": "910bc588465dd86cab4d39e7dcbbb819", "score": "0.5849976", "text": "public String getDir() {\n return _direction;\n }", "title": "" }, { "docid": "2bb7cd93ceee43372d8aaf4c06128eff", "score": "0.5849648", "text": "@Override\n public String getMovementAbbr(EntityMovementType mtype) {\n switch (mtype) {\n case MOVE_NONE:\n return \"N\";\n case MOVE_WALK:\n return \"W\";\n case MOVE_RUN:\n return \"R\";\n case MOVE_JUMP:\n return \"J\";\n case MOVE_VTOL_WALK:\n case MOVE_VTOL_RUN:\n return \"F\";\n default:\n return \"?\";\n }\n }", "title": "" }, { "docid": "d811f6dbc09955dbb32ef78e348c7c5a", "score": "0.5843702", "text": "public abstract Direction getDirection();", "title": "" }, { "docid": "ad613be11ddd6765bce5b8419c5a0a28", "score": "0.5842051", "text": "public char getShortcut() {\n return !this.mMenu.isQwertyMode() ? this.mShortcutNumericChar : this.mShortcutAlphabeticChar;\n }", "title": "" }, { "docid": "49c325e85f8ce0c6d517758b058804ce", "score": "0.58322626", "text": "@java.lang.Override\n public int getDirection() {\n return direction_;\n }", "title": "" }, { "docid": "ce00f6d9662d8ac908a42d4ad9a55982", "score": "0.58314836", "text": "public String toString() {\n\t\treturn \"Letter \"+letter+\": \"+value;\n\t}", "title": "" }, { "docid": "a7cf570a7d4f775f147bf767df7f760d", "score": "0.5820554", "text": "public double getDirection() {\n return Math.tan(yComp/xComp);\n }", "title": "" }, { "docid": "db83421ba36f683765669900cade03f1", "score": "0.58165383", "text": "public Position getDirection() {\r\n return direction;\r\n }", "title": "" }, { "docid": "f02f5ad57110f4ab80dfaa418352cf37", "score": "0.581653", "text": "private int getDirection() {\n\t\t\treturn mDirection;\n\t\t}", "title": "" }, { "docid": "242a59904fa58768cc6d4d778ae3577e", "score": "0.5815804", "text": "public abstract char toChar();", "title": "" }, { "docid": "92bcfa604f60ad37f762be892f9a6bce", "score": "0.5811525", "text": "public String getLetterGrade()\n {\n if (avgNumber >= 90)\n avgLetter = \"A\";\n else if (avgNumber >= 80)\n avgLetter = \"B\";\n else if (avgNumber >= 70)\n avgLetter = \"C\";\n else\n avgLetter = \"F\";\n return avgLetter;\n }", "title": "" }, { "docid": "84be4d17b618d4d4c0308a5831ec5939", "score": "0.58104306", "text": "public TurkicLetter getAsciiEquivalentLetter(TurkicLetter letter) {\r\n return ASCII_EQUIVALENT_LETTER_LOOKUP[letter.alphabeticIndex() - 1];\r\n }", "title": "" }, { "docid": "624415c9f4e80b1d5baf9a7f543c23cd", "score": "0.58017683", "text": "public float getDirection() {\n return direction;\n }", "title": "" }, { "docid": "f8445f17878d8b07ff3ba21d2c2a2f90", "score": "0.5796978", "text": "public String getDirection(String roomId);", "title": "" }, { "docid": "01d1961872ad80d0ef75faacdc918c8f", "score": "0.5796334", "text": "@Attribute(passThrough = true,\n description = @Description(\n value = \"Direction indication for text that does not inherit directionality. Valid values are \\\"LTR\\\" (left-to-right) and \\\"RTL\\\" (right-to-left).\",\n displayName = \"Direction\"))\n String getDir();", "title": "" }, { "docid": "409a1ab008e7f6bcb7da18d7e69cb3d5", "score": "0.57960314", "text": "public ROVector2f getDirection() {\n return direction;\n }", "title": "" }, { "docid": "d3a1e3407063f9fe101e60fdcd125eda", "score": "0.5792495", "text": "public double getDirection() {\n\t\treturn (getAngle() < pid.getTarget()) ? 1 : -1;\n\t}", "title": "" }, { "docid": "994e713f3ceea2c0aaf00af019c58d20", "score": "0.5786993", "text": "public Direction getDirection() { return direction; }", "title": "" }, { "docid": "55da59a3b9a60a322d0cbb174584cd0e", "score": "0.57818097", "text": "public int getDirection(){\n return this.direction;\n }", "title": "" }, { "docid": "820f4237bf1bdf093db36b2ac7ce0a67", "score": "0.5777881", "text": "public Vector2D getDirection() {\r\n\t\treturn direction;\r\n\t}", "title": "" }, { "docid": "b2b7e648ed389893b48f77d86d2f94df", "score": "0.57725185", "text": "public void guide(char direction);", "title": "" }, { "docid": "f623cae0287fb6ece09280a79578f009", "score": "0.5763036", "text": "public float getDirection() {\n return direction_;\n }", "title": "" }, { "docid": "77ec58fe74c46adb531872b632a2b7d2", "score": "0.57592756", "text": "public Point2D getDirection() {\n \t\treturn direction;\n \t}", "title": "" }, { "docid": "e2106a0d2403912322c4349f53af2083", "score": "0.575704", "text": "public float getDirection() {\n return direction_;\n }", "title": "" }, { "docid": "4b9ecdae877e7f069294b919b0bd7a3f", "score": "0.5755045", "text": "public int getDirectionIndex()\n\t{\n\t\treturn direction;\n\t}", "title": "" }, { "docid": "eb834108e0d5c875a257eb21b5b470bd", "score": "0.5743284", "text": "public char getChar() { return 'x'; }", "title": "" }, { "docid": "990d24832dc2cce7711c1f0cfa3a5510", "score": "0.5720188", "text": "public int getDirection(){\n return direction;\n }", "title": "" }, { "docid": "1daf3fe49a18689c2c5b293360692ffa", "score": "0.5716023", "text": "public String toString()\r\n {\r\n return myLetterCounter.toString();\r\n }", "title": "" }, { "docid": "fe6d1089f5449c58ff258dc7b3165cef", "score": "0.57115126", "text": "public int getDirection()\n {\n\n int direction = NORTH;\n\n int rot = getRotation();\n\n if (rot == 0) // east\n direction = EAST;\n else if (rot == 180) // west\n direction = WEST;\n else if (rot == 90) // south\n direction = SOUTH;\n else if (rot == 45)\n direction = SOUTH_EAST;\n else if (rot == 135)\n direction = SOUTH_WEST; \n else if (rot == -45)\n direction = NORTH_EAST;\n else if (rot == -135)\n direction = NORTH_WEST; \n return direction;\n\n }", "title": "" }, { "docid": "6a0a40281265222066b7b2812b335b8f", "score": "0.5706674", "text": "public TurkicLetter getLetter(char c) {\r\n if (c >= MAX_CHAR_VALUE || !VALID_CHAR_TABLE[c])\r\n throw new IllegalArgumentException(\"Unexpected char:\" + c);\r\n else return CHAR_TO_LETTER_LOOKUP[c];\r\n }", "title": "" }, { "docid": "a5d2e408c9c70f7e84360af45727d30a", "score": "0.5702475", "text": "public float getDirection()\n {\n return _direction;\n }", "title": "" }, { "docid": "52fcd7540400e717680256ddf0368867", "score": "0.5689117", "text": "public char asChar() {\n return value;\n }", "title": "" }, { "docid": "10cd541c90ea9a8af62ef9792c5ecf00", "score": "0.5676594", "text": "private char getFileAsChar() {\n return (char) (this.coordinate.getX() + 'a');\n }", "title": "" } ]
26875d52f35a2b616b9094f625f5acc7
Set the value stored at the indexed spot in the tensor
[ { "docid": "2f69f963088af1147dd47dc9abfb4515", "score": "0.0", "text": "public void setValue(double value, int[] indices) {\r\n\tint valueIndex = translateIndices(indices);\r\n\tvalues[valueIndex] = value;\r\n }", "title": "" } ]
[ { "docid": "627c0d278510ee7d2241e2b1318988b4", "score": "0.7260943", "text": "public abstract T set(int index, T value);", "title": "" }, { "docid": "37b854553b6265052079654a28e2712b", "score": "0.7063051", "text": "public void set(int index, T value) {\n Node<T> node = node(index);\n node.data = value;\n }", "title": "" }, { "docid": "5db107c5604aa7b6777ccbda32b02f2e", "score": "0.6912871", "text": "ArrayValue set(int index, int value);", "title": "" }, { "docid": "75ca7cdd9cea3138823044bf7b319240", "score": "0.6910546", "text": "public void set(long index, T value)\n {\n array[BigArrays.segment(index)][BigArrays.offset(index)] = value;\n }", "title": "" }, { "docid": "e35803f911392d8a5b715caceec2458f", "score": "0.6860385", "text": "public void setElement(int index, Object value);", "title": "" }, { "docid": "dbf938d04029354a70ffdf167a4bfcb4", "score": "0.6694278", "text": "public void setValueAt(Object value, int row, int col){\r\n \r\n }", "title": "" }, { "docid": "ca3d4935e9df2af87c1651de6fa5b627", "score": "0.66844785", "text": "public void update(int index, int val);", "title": "" }, { "docid": "f4170ddc67e047dd263e0a52c342cad1", "score": "0.66730726", "text": "void set(int index, E data);", "title": "" }, { "docid": "96b58684285517c34afdb5d1f3c3effc", "score": "0.66675484", "text": "Object set(int index, Object x);", "title": "" }, { "docid": "f9a8b069f7c54e648ebb7dd627254dbb", "score": "0.66528726", "text": "public void setNodeValue(T value, int[] index) {\r\n\t\tthis.getNode(index).setValue(value);\r\n\t}", "title": "" }, { "docid": "d6a65d60da3645e231d704d18496bffe", "score": "0.6616812", "text": "public void set(int index, T el){\n findElementByIndex(index).setData(el);\n }", "title": "" }, { "docid": "ef87a6378b7fc51725e2366b1062913f", "score": "0.6592665", "text": "public void setValueAt(Object aValue, Object node, int column);", "title": "" }, { "docid": "93c1979274dfee8a5ee11a78eb9b0ee6", "score": "0.65796864", "text": "public AnyType set( int idx, AnyType newVal )\r\n {\r\n Node<AnyType> p = getNode( idx );\r\n AnyType oldVal = p.data;\r\n\r\n p.data = newVal;\r\n return oldVal;\r\n }", "title": "" }, { "docid": "981f68aebf94630f77676251508c5592", "score": "0.657293", "text": "@Override\n\tpublic void set(int index, T element) {\n\t\tcheckIndex(index);\n\t\t\n\t\tgetNode(index).data = element;\n\t}", "title": "" }, { "docid": "3a149c2edb4e7301210920747b27de12", "score": "0.65198004", "text": "@Override\n public void set(int index, E value) {\n\n }", "title": "" }, { "docid": "f07200c3ee85272495cdab76055732f7", "score": "0.65112", "text": "ArrayValue set(int index, FieldValue value);", "title": "" }, { "docid": "eddb8091fa3467a796a64f73f8e52355", "score": "0.6486764", "text": "public T set(int index, T t) {\r\n\t\treturn genList.set(index, t);\r\n\t}", "title": "" }, { "docid": "0e570fe37c492ff683d1c5a2830f9bbc", "score": "0.6477402", "text": "public @Override E set(int index, E element) {\n\t if(index<0 || index>=size) {\n\t \t throw new IndexOutOfBoundsException(\"index is not in [0..size)\");\n\t }\n\t E oldVal = get(index);\n\t getNode(index).data= element;\n\t return oldVal;\n }", "title": "" }, { "docid": "245f27913e18c93bfe33151cc28bbaa3", "score": "0.6462094", "text": "void set(final int i, final T value);", "title": "" }, { "docid": "65db447601a9deb652d0ce3f9d6198d9", "score": "0.64072216", "text": "ArrayValue set(int index, float value);", "title": "" }, { "docid": "6ab627e61e9bff619cabe7fdaaa3091b", "score": "0.6391901", "text": "void set(int index, double value);", "title": "" }, { "docid": "b5b284c1d3afc3d15cd28ebe41aefc30", "score": "0.6366362", "text": "public void set (int position, T element);", "title": "" }, { "docid": "aeaa6d99ac654189f66a11989ded9466", "score": "0.6358022", "text": "void set(int index, long value);", "title": "" }, { "docid": "4720f74dc49f82505ccb5bf1b57be12b", "score": "0.6352702", "text": "public void setValueAt(int index, T value) {\n\t\tif (this.mGarbage) {\n\t\t\tgc();\n\t\t}\n\n\t\tthis.mValues[index] = value;\n\t}", "title": "" }, { "docid": "b2321f05a73153c6f95f05e44c572a1b", "score": "0.63417816", "text": "@Override\n public E set(int index, E element) throws IllegalArgumentException {\n getNodeByIndex(index).value = element;\n return element;\n }", "title": "" }, { "docid": "eee7b73be0ee118334bab57e9946ab42", "score": "0.63124436", "text": "@Override\r\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\r\n\t}", "title": "" }, { "docid": "eee7b73be0ee118334bab57e9946ab42", "score": "0.63124436", "text": "@Override\r\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\r\n\t}", "title": "" }, { "docid": "4f73f609d3e2433574df2c2026003f26", "score": "0.63040745", "text": "void set(int index, Double value);", "title": "" }, { "docid": "f8792abfc020eca0770c0fbec7f544f1", "score": "0.63017184", "text": "@Override\n public E set(int index, E element)\n {\n if (index < size && index >= 0)\n {\n getNode(index).setElement(element);\n }\n \n return null;\n }", "title": "" }, { "docid": "54fb049ebbfe98dffeaad2af02993557", "score": "0.6298675", "text": "public N set(int index, N data) {\n\t\tJNode<N> node = getNodeAt(index);\n\t\tN old = node.data;\n\t\tnode.data = data;\n\t\treturn old;\t\n\t}", "title": "" }, { "docid": "306f84da3309e8c3a5f34e8d1b46d912", "score": "0.6285879", "text": "@Override\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\t\t\n\t}", "title": "" }, { "docid": "b30b00383fa2d5978bc757fa13028085", "score": "0.62774533", "text": "@Override\n E set(int index, E element);", "title": "" }, { "docid": "f131487f421e6707c8c82d09fbeb46d6", "score": "0.6266603", "text": "public int set(int index, int value) {\n checkIndexForAccess(index);\n int rtn = mData[index];\n mData[index] = value;\n mModCount++;\n return rtn;\n }", "title": "" }, { "docid": "d7944cf537b8d2fd451d32265e12f991", "score": "0.62596565", "text": "@Override\r\n\tpublic void setValueAt(Object arg0, int arg1, int arg2) {\n\r\n\t}", "title": "" }, { "docid": "e4ddec218669897a546dbd7d55648016", "score": "0.6238819", "text": "public void setQuick(int index, double value) {\r\n\t\tcontent.setQuick(index, value);\r\n\t}", "title": "" }, { "docid": "fab840258df94b610e56bb5528e7a52b", "score": "0.6220638", "text": "public void set(int index, T x) throws IndexOutOfBoundsException, NullPointerException\n\t{\n\t\tvalidIncParams(index);\n\t\tvalidObject(x);\n\t\t\n\t\tarr[index] = x;\n\t}", "title": "" }, { "docid": "0977c79642167d79d609e8e0941d871f", "score": "0.62055165", "text": "void set(int index, Long value);", "title": "" }, { "docid": "5575c8f4fc65678d5438b91d89f96432", "score": "0.6199399", "text": "void put(int index, int value);", "title": "" }, { "docid": "ab894fa509a0f5d86d1a590d6fde0c3e", "score": "0.6198801", "text": "G setIndex(I index, G arg);", "title": "" }, { "docid": "2d034a9df8744d88ca6fdf16fe9256a8", "score": "0.6187753", "text": "@Override\n\tpublic T set(int index, T value) {\n\n\t\tif ((index < size) && (index >= 0)) {\n\t\t\t// get first node in list\n\t\t\tNode<T> currentNode = head;\n\n\t\t\t// int to keep track of index\n\t\t\tint listIndex = 0;\n\n\t\t\t// go through all nodes until you reach the end\n\t\t\t// where next would be null\n\t\t\twhile (currentNode != null) {\n\t\t\t\t// compare list passed into method with listIndex\n\t\t\t\t// if the same replace value in currentNode with passed in value\n\t\t\t\tif (listIndex == index) {\n\t\t\t\t\tT oldValue = currentNode.getValue();\n\t\t\t\t\tcurrentNode.setValue(value);\n\t\t\t\t\treturn oldValue;\n\t\t\t\t}\n\t\t\t\t// advance to next node\n\t\t\t\tlistIndex++;\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t}\n\t\t}\n\t\tthrow new IndexOutOfBoundsException(\"index is out of range\");\n\t}", "title": "" }, { "docid": "c4f861e2df4131a364506006bbc70a31", "score": "0.61813015", "text": "ArrayValue setNumber(int index, int value);", "title": "" }, { "docid": "cd4b5b4b961390c92e842f8e2c70be04", "score": "0.6173717", "text": "private E set(int idx, E element) {\r\n\t\t\tif(0 == idx) {\r\n\t\t\t\tE o = next.data;\r\n\t\t\t\tnext.data = element;\r\n\t\t\t\treturn o;\r\n\t\t\t} else {\r\n\t\t\t\tidx--;\r\n\t\t\t\treturn next.set(idx, element);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "4cd8fc817c07689dac6a8d4728b69781", "score": "0.61643344", "text": "public void setElementAt(int x, int y, int value) {\n grid[y][x] = value;\n }", "title": "" }, { "docid": "3c93ac03ee17330719f01752dac95548", "score": "0.6164093", "text": "public void setIndex(int index, int value) {\n nextCells[index] = value;\n }", "title": "" }, { "docid": "dd89895429ea013f73b5ab45a58eb460", "score": "0.6158284", "text": "public void set(int index, int value){\r\n\t\tcheckIndex(index);\r\n\t\telementData[index] = value;\r\n\t}", "title": "" }, { "docid": "8ab7bfab130f70369e1274fbef8c55de", "score": "0.6157103", "text": "void set(int index, JsonArray value);", "title": "" }, { "docid": "a10c2d766c864f6bf5279df67abe6db7", "score": "0.6154546", "text": "public void set(int index, String value){\n Node currNode = getNode(index);\n currNode.setData(value);\n }", "title": "" }, { "docid": "2aee70106095b698e63eede88459bb30", "score": "0.6142996", "text": "public Object set( int idx, Object newVal )\n {\n if( idx < 0 || idx >= size( ) )\t\t\t\t\t// fix: missing in original version\n throw new IndexOutOfBoundsException( ); \n \t\n Node p = getNode( idx );\n Object oldVal = p.data;\n \n p.data = newVal; \n return oldVal;\n }", "title": "" }, { "docid": "d5fbac1adb4b959d6168c0719287b6ba", "score": "0.61330324", "text": "void setValue(int pos, E value) {\n this.array[pos] = value;\n }", "title": "" }, { "docid": "d983759ce61d076a79da6d47dbc0d83f", "score": "0.611413", "text": "public void set(int index, E e) {\n Assert.isTrue(index >= 0 && index < size(), \"index must be in [0, \" + size() + \").\");\n\n data[index] = e;\n set(0, 0, size() - 1, index, e);\n }", "title": "" }, { "docid": "7bbb7e1a3d701faa3a90125418e4e0cd", "score": "0.61100334", "text": "@Override\n public E set(int index, E data) {\n this.rangeCheck(index);\n Node<E> result = this.first;\n for (int position = 0; position < index; position++) {\n result = result.next;\n }\n E oldData = result.data;\n result.data = data;\n return oldData;\n }", "title": "" }, { "docid": "620b8131414b932835afe33cd507439d", "score": "0.61062264", "text": "@Override\r\n\t\t\tpublic T set(int index, T element) {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "a53b18ac8c469293cf598e8b54b119ac", "score": "0.60990804", "text": "public void set(int index)\n\t{\n\t\tbits = bits | (0x1 << index);\n\t}", "title": "" }, { "docid": "9bc08db34ffe21c1564d0509f5fd6f08", "score": "0.6097363", "text": "public void updateSingle(int index, int value) {\n if (index >= 0 && index < sz) updateSingleHelper(root, index, value);\n }", "title": "" }, { "docid": "73cfbb6c1ab9876e092938171da1664f", "score": "0.6096857", "text": "public void set(int index, Object value) {\n\t\tcheckIndex(index);\n\t\tcheckType(value);\n\t\tthis.array[index] = value;\n\t}", "title": "" }, { "docid": "c5153db85d885f061f8c87a4b04b7906", "score": "0.6096586", "text": "private void setIndex(int idx) {\r\n\r\n\t\tindex = idx;\r\n\t}", "title": "" }, { "docid": "a463857a8a61ac5ff4edc2fa4d439bcf", "score": "0.6092247", "text": "ArrayValue set(int index, long value);", "title": "" }, { "docid": "f7e266243a9d9b16131919a0be805a9b", "score": "0.6089875", "text": "public void setValue(int index, ArgValue value) \n throws IndexOutOfBoundsException{\n this.values.set(index, value);\n }", "title": "" }, { "docid": "0b0cb8127eb100df0690c6d0bc4f040b", "score": "0.60776234", "text": "void set(int x, int y, T value);", "title": "" }, { "docid": "faa9caf9a5d8a6db3891909531a41197", "score": "0.606927", "text": "ArrayValue set(int index, double value);", "title": "" }, { "docid": "d2082cb30a971cbe93785511a2f72e92", "score": "0.605591", "text": "public void setIndex(int ind){indexOnCell = ind;}", "title": "" }, { "docid": "29f3e63e44c878501541219b0c79637d", "score": "0.60545546", "text": "public Object set(int index, Object element) {\n\t\tObject rv = delegate.elementAt(index);\n\t\tdelegate.setElementAt(element, index);\n\t\tfireContentsChanged(this, index, index);\n\t\treturn rv;\n\t}", "title": "" }, { "docid": "c83ecef8190551012fabb51dc05f9652", "score": "0.60372293", "text": "E set(int index, E obj);", "title": "" }, { "docid": "98a3f03a70235a01808af66f42717897", "score": "0.60306615", "text": "public void setValue (int _index, Value _value) {\n switch (_index) {\n case 0 : nx = _value.getInteger(); break;\n case 1 : ny = _value.getInteger(); break;\n\n case 2 :\n if (!_value.getString().equals(variableX)) { variableX = _value.getString(); updateIndexes = true; }\n break;\n case 3 :\n if (!_value.getString().equals(variableY)) { variableY = _value.getString(); updateIndexes = true; }\n break;\n\n case 4 : // onParseError\n removeAction (ACTION_ERROR,getProperty(\"onErrorAction\"));\n addAction(ACTION_ERROR,_value.getString());\n return;\n case 5 : // onParseSuccess\n removeAction (ACTION_SUCCESS,getProperty(\"onSuccessAction\"));\n addAction(ACTION_SUCCESS,_value.getString());\n return;\n case 6 :\n if (_value.getBoolean()!=useJavaSyntax) {\n useJavaSyntax = _value.getBoolean();\n changedXfunction = changedYfunction = changedAnglefunction = changedMagfunction = true;\n }\n break;\n\n case ANALYTIC_X_COMPONENT :\n if (!_value.getString().equals(functionX)) { functionX = _value.getString(); changedXfunction= true; }\n break;\n case ANALYTIC_Y_COMPONENT :\n if (!_value.getString().equals(functionY)) { functionY = _value.getString(); changedYfunction= true; }\n break;\n case ANALYTIC_ANGLE_COMPONENT :\n if (!_value.getString().equals(functionAngle)) { functionAngle = _value.getString(); changedAnglefunction= true; }\n break;\n case ANALYTIC_MAGNITUDE :\n if (!_value.getString().equals(functionMag)) { functionMag = _value.getString(); changedMagfunction=magnitudeSet= true; }\n break;\n\n default : super.setValue(_index-ANALYTIC_VECTORFIELD_ADDED,_value); break;\n }\n if (isUnderEjs) preupdate();\n }", "title": "" }, { "docid": "2989fff1f1dab8e8d5d1283b311df244", "score": "0.6029127", "text": "public void setIdx(Integer idx) {\r\n this.idx = idx;\r\n }", "title": "" }, { "docid": "221ad8834d57b385b8b9d682256cea01", "score": "0.6028941", "text": "public void setIndex(Object index);", "title": "" }, { "docid": "154465b90bfcbd13e019c5467d2273c6", "score": "0.60138", "text": "void setObjectAt(int index, Object o);", "title": "" }, { "docid": "c995cf75afdba0f9a3acae14dd8a5a95", "score": "0.60046107", "text": "void setCell(int x, int y, double value) throws MatrixOutOfBoundException;", "title": "" }, { "docid": "7c10d65adf5ce4646b1087f0561a21e6", "score": "0.6000734", "text": "public T set(int index, T value)\n\t{\t\t\n\t\tif (isGoodIndex(index)) // if index is within range, set new value at index\n\t\t{\n\t\t\tT oldValue = storage[index];\n\t\t\tstorage[index] = value;\n\t\t\treturn oldValue;\n\t\t}\n\t\t\n\t\telse\n\t\t\tthrow new IndexOutOfBoundsException(\"Index out of Bounds.\");\n\n\t}", "title": "" }, { "docid": "3186d1cd5c2bf118b14ad4698d647790", "score": "0.5979186", "text": "public void set(int index, Integer element) {\r\n\t\tint counter = 0;\r\n\t\tcurrent = head.getNext();\r\n\t\ttry {\r\n\t\t\t//find necessary element\r\n\t\t\twhile (counter!=index) {\r\n\t\t\tcurrent = current.getNext();\r\n\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\t//update its value\r\n\t\t\tcurrent.setValue(element);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\t//in case of incorrect index, immediately return\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "62c255cb8c7e146e17159523a4c1c657", "score": "0.5978956", "text": "ArrayValue setNumber(int index, float value);", "title": "" }, { "docid": "fbd279dfcd311e844f5003ca20b4c1c1", "score": "0.59743893", "text": "public void mySetValueAt(Object value, int row, int col) {\r\n bookin[row][col] = value;\r\n}", "title": "" }, { "docid": "af508bed6662eecb3c0293aa2ff243c0", "score": "0.5971118", "text": "void setValue(V value);", "title": "" }, { "docid": "af508bed6662eecb3c0293aa2ff243c0", "score": "0.5971118", "text": "void setValue(V value);", "title": "" }, { "docid": "af508bed6662eecb3c0293aa2ff243c0", "score": "0.5971118", "text": "void setValue(V value);", "title": "" }, { "docid": "af508bed6662eecb3c0293aa2ff243c0", "score": "0.5971118", "text": "void setValue(V value);", "title": "" }, { "docid": "0a71632fecdd8ea54c0009d8bfa158c3", "score": "0.59653044", "text": "ArrayValue set(int index, boolean value);", "title": "" }, { "docid": "6894465319bcaef8f14d15213dd6e412", "score": "0.59652215", "text": "public void set(int index, T element) throws InvalidIndexException {\n this.numSet++;\n super.set(index, element);\n }", "title": "" }, { "docid": "f93a8f7bf37542dbb0b541dba1cc0954", "score": "0.59645283", "text": "void set(int index, Boolean value);", "title": "" }, { "docid": "f2ccd95f59458a5c1accfe40c54f870b", "score": "0.5959691", "text": "ArrayValue set(int index, byte[] value);", "title": "" }, { "docid": "5cde03490c1240865b9ab29906daa5d4", "score": "0.5954068", "text": "void set(int index, String value);", "title": "" }, { "docid": "01c9e2cc105b9c2924ff5b4cf5ca03b0", "score": "0.5953746", "text": "public void setValueAt(Object value, int row, int col) {\n\n\t\t\tdata[row][col] = value;\n\t\t}", "title": "" }, { "docid": "b7f2f978fd09148a440f8ce15e27508e", "score": "0.5940715", "text": "public void setElem(int i, int val) {\n data[i + offset] = (short) (val & 0xffff);\n theTrackable.markDirty();\n }", "title": "" }, { "docid": "827b681e44bbc0dd95e1a1d699983e3b", "score": "0.5933502", "text": "private void setTile(int x, int y, int value) \n\t{\n\t\tpuzzle[y * 3 + x] = value;\n\t}", "title": "" }, { "docid": "dee9e2c3dc997157df252de4d87aa2de", "score": "0.59328955", "text": "@Override\n\tpublic K set(int index, K element) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a0fcc704919df47ae139c6230cb5c504", "score": "0.5928213", "text": "@Override\n\tpublic void set(final int index, final Object element) {\n\t\tif (index >= size || index < 0) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tDNode temp = head.getnext();\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\ttemp = temp.getnext();\n\t\t}\n\t\ttemp.setElement(element);\n\t}", "title": "" }, { "docid": "479061326ae4a70fd03bfe88fbc9d6bd", "score": "0.59058523", "text": "public void setValueAt(Object value, int rowIndex, int columnIndex) {\n\t\t\n\t}", "title": "" }, { "docid": "059f758a5ae2af60ff126263dded93d9", "score": "0.5905079", "text": "public void setElem(int i, int val) {\n data[i + offset] = val;\n theTrackable.markDirty();\n }", "title": "" }, { "docid": "4bfe61201782a92527ca48da861c55f5", "score": "0.5898262", "text": "public void setValueAt(Object arg0, Object arg1, int arg2)\n\t\t{\n\t\t\n\t\t}", "title": "" }, { "docid": "d086435b7da3322759d69dbedb70786c", "score": "0.5889851", "text": "void set(int index, boolean value);", "title": "" }, { "docid": "d086435b7da3322759d69dbedb70786c", "score": "0.5889851", "text": "void set(int index, boolean value);", "title": "" }, { "docid": "d715270b0099393e263c8e7aa8702218", "score": "0.58895934", "text": "public void set(int index, int val) {\n\t\tmyArray[index] = val;\n\t}", "title": "" }, { "docid": "26f66cb711a6623e8bc460221c2fa392", "score": "0.5883732", "text": "public E set(int idx, E element)\r\n\t{\r\n\t\tif(idx >= size() || idx < 0 ) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\tif(element == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tif(contains(element)) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tif(idx == 0) {\r\n\t\t\tE r = front.data;\r\n\t\t\tfront.data = element;\r\n\t\t\treturn r;\r\n\t\t}\r\n\t\treturn front.set(idx - 1, element);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a260e3614afa3ef6d4325a5897408724", "score": "0.5881949", "text": "public void setAt(int x, int y, int value) {\n influenceMap[x][y] = value;\n }", "title": "" }, { "docid": "464ca58d004e6b5b09d7e6ff0b9c8393", "score": "0.5872813", "text": "void set(int index, JsonObject value);", "title": "" }, { "docid": "1ebabd89283036c6d81ee900343d3385", "score": "0.58686966", "text": "private void setUpdates(\n int index, com.elarian.hera.proto.CommonModel.CustomerIndex value) {\n value.getClass();\n ensureUpdatesIsMutable();\n updates_.set(index, value);\n }", "title": "" }, { "docid": "1ebabd89283036c6d81ee900343d3385", "score": "0.58686966", "text": "private void setUpdates(\n int index, com.elarian.hera.proto.CommonModel.CustomerIndex value) {\n value.getClass();\n ensureUpdatesIsMutable();\n updates_.set(index, value);\n }", "title": "" }, { "docid": "342dfab6c7795197a8e683a357e09f05", "score": "0.58661556", "text": "protected void setCell(int x, int y, MineSweeperCell value)\n {\n m[y][x] = value;\n }", "title": "" }, { "docid": "fe360f630e0f0d2d441f37edf805dd49", "score": "0.5862613", "text": "public void set(int index, T element) {\r\n\t\tDoubleNode<T> node = new DoubleNode<T>(element);\r\n\t\t\r\n\t\tif(index < 0 || index >= count)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\telse\r\n\t\t{\r\n\t\t\tDoubleNode<T> current = head;\r\n\t\t\tfor(int i = 0; i < index; i++ )\r\n\t\t\t\tcurrent = current.getNext();\r\n\t\t\tcurrent.setElement(element);\t\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "153230b93dd69d14e610974ed2763bce", "score": "0.58481944", "text": "@Override\n\t\tpublic void setValueAt(Object aValue, int rowIndex, int columnIndex) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "153230b93dd69d14e610974ed2763bce", "score": "0.58481944", "text": "@Override\n\t\tpublic void setValueAt(Object aValue, int rowIndex, int columnIndex) {\n\t\t\t\n\t\t}", "title": "" } ]
26e9c045234d2fdabed4ce4c11b0591c
This class manages reading from the journal.
[ { "docid": "3c2876119721df0882c6220d9dc7f696", "score": "0.676391", "text": "@NotThreadSafe\npublic interface JournalReader extends Closeable {\n /**\n * Reads an entry from the journal. Return null if there is no more entry left.\n *\n * @return the journal entry, null if no more entry left\n * @throws IOException if it failed to read an entry due to an I/O error\n */\n JournalEntry read() throws IOException, InvalidJournalEntryException;\n}", "title": "" } ]
[ { "docid": "bbb30fef33e8c8b298eeaa51abebc1b7", "score": "0.7675147", "text": "JournalEntry read() throws IOException, InvalidJournalEntryException;", "title": "" }, { "docid": "4cfd3a0edd92fb4cfad4525e0d433b0a", "score": "0.62449163", "text": "protected abstract String getJournal();", "title": "" }, { "docid": "4dd001eab4311a93d4896ee156329610", "score": "0.594581", "text": "Read createRead();", "title": "" }, { "docid": "9490ed32298e327111af55f5e6381aeb", "score": "0.5944226", "text": "public interface Journal{\n public void write(String text);\n public String readLast();\n}", "title": "" }, { "docid": "2a610c9371e93e8053b68ee8a9974be7", "score": "0.59414566", "text": "public void reading() {\n\n\t}", "title": "" }, { "docid": "10821de639e6296e332e6ba6979fe48a", "score": "0.5850146", "text": "protected void readLog() {\n try {\n if (!Utility.fileExists(owner, kLogFileName))\n return;\n \n PersistentStorageReader logReader = owner.getReader(kLogFileName);\n if (!logReader.ready()) {\n System.err.println(\"WARN: Could not read cache dirtylog!\");\n return;\n }\n \n System.err.println(\"NOTE: About to replay dirty log\");\n while (logReader.ready()) {\n String entry = logReader.readLine();\n DFSFilename entryKey = new DFSFilename(entry.substring(1));\n \n load(entryKey);\n \n if (entry.substring(0,1).equals(\"+\"))\n setDirty(entryKey, false);\n else if (entry.substring(0,1).equals(\"-\"))\n setClean(entryKey, false);\n else\n System.err.println(\"WARN: Invalid dirty state (\" + entry.substring(0,1) + \") in log file!\");\n }\n System.err.println(\"NOTE: Log replay complete!\");\n } catch (IOException ioe) {\n System.err.println(\"While replaying log:\");\n ioe.printStackTrace();\n System.err.println(\"Please fix this before you restart the cache!\");\n throw new IllegalStateException(\"IOException while reading log!\", ioe);\n }\n }", "title": "" }, { "docid": "43f075375b8d92f75aa4ddec58c24fd5", "score": "0.5840752", "text": "protected T read() {\n this.log.info(this + \": reading persistent file `\" + this.getFile() + \"'\");\n final FileStreamRepository streamRepositorySnapshot;\n synchronized (this) {\n streamRepositorySnapshot = this.streamRepository;\n }\n if (streamRepositorySnapshot == null)\n throw new PersistentObjectException(\"no file configured\");\n try (final BufferedInputStream input = new BufferedInputStream(streamRepositorySnapshot.getInputStream())) {\n final StreamSource source = new StreamSource(input);\n source.setSystemId(this.getFile());\n return PersistentObject.read(this.delegate, source, false);\n } catch (IOException e) {\n throw new PersistentObjectException(\"error reading persistent file\", e);\n }\n }", "title": "" }, { "docid": "5d770d345f6122ea671ec56cefad0175", "score": "0.58405495", "text": "@Override\n\tpublic void read() {\n\t\tSystem.out.println(\"In read \");\n\n\t\tint count = 0;\n\t\ttry {\n\t\t\twhile (!terminate) {// HelloWorldReader.get_status_changes() >0){\n\t\t\t\ttry {\n\n\t\t\t\t\tint status = HelloWorldReader.take(msgSeq, infoSeq,\n\t\t\t\t\t\t\tLENGTH_UNLIMITED.value, ANY_SAMPLE_STATE.value,\n\t\t\t\t\t\t\tANY_VIEW_STATE.value, ANY_INSTANCE_STATE.value);\n\n\t\t\t\t\tDate dateRecvd = new Date();\n\t\t\t\t\tfor (int i = 0; i < msgSeq.value.length; i++) {\n\t\t\t\t\t\tmsgRecvd++;\n\t\t\t\t\t\taddToStatisticsPool(null,\n\t\t\t\t\t\t\t\tmsgSeq.value[i].message.length(), dateRecvd);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Exception while retrieving data \");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t++count;\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception Occurred\");\n\t\t}\n\n\t\tHelloWorldReader.return_loan(msgSeq, infoSeq);\n\n\t}", "title": "" }, { "docid": "45464d2188bf7fc18638d817685f0ba2", "score": "0.5672406", "text": "public abstract void readIn();", "title": "" }, { "docid": "f3ac260c7e9a3f51da50285d851da836", "score": "0.5661274", "text": "public void read() {\r\n\r\n\t\tfinal CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\r\n\t\tfinal CriteriaQuery<Parcel> criteriaQuery = criteriaBuilder.createQuery(Parcel.class);\r\n\t\tcriteriaQuery.from(Parcel.class);\r\n\t\tfinal TypedQuery<Parcel> typedQuery = entityManager.createQuery(criteriaQuery);\r\n\t\tfinal List<Parcel> parcelList = typedQuery.getResultList();\r\n\t\tfor (Parcel parcel : parcelList) {\r\n\t\t\treport.add(String.format(\"parcel: id[%d], text[%s].\", parcel.getId(), parcel.getText()));\r\n\t\t}\r\n\t\tlogger.info(String.format(\"read(): parcelList size[%d]\", parcelList.size()));\r\n\t}", "title": "" }, { "docid": "452e0b56ad31e43b2766c1280450d5f9", "score": "0.559754", "text": "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t}", "title": "" }, { "docid": "8b3c5c84c4258f74eb2ec6a3f4ff51df", "score": "0.5585596", "text": "protected final void read() {\n \t\tinitialize( false );\n \t}", "title": "" }, { "docid": "cae6113651be8ab82b7ef1cba0bb8be8", "score": "0.5538274", "text": "public void read()\r\n {\r\n readFile();\r\n }", "title": "" }, { "docid": "0daccc39cdf881ca78e2124d599ab8e0", "score": "0.5443726", "text": "@Override\n public void loadJournaalFromStream(BufferedReader reader) {\n List<Bankrekening> rekeningenList = entityManager.createQuery(\"from BankrekeningPO\", Bankrekening.class)\n .getResultList();\n Map<String, Bankrekening> rekeningen = new HashMap<>();\n for (Bankrekening rekening : rekeningenList) {\n rekeningen.put(rekening.getRekeningnr(), rekening);\n }\n\n // Ophalen van maximum datum en afschriftnummer\n LocalDate maxDatum = getMaxDatum();\n Integer maxAfschriftnummer = getMaxAfschriftnummer(maxDatum);\n\n logger.info(\"maxDatum = \" + maxDatum + \"; maxAfschriftnummer = \" + maxAfschriftnummer);\n\n // Evalueren van header lijn\n CheckFirstlineFilter firstlineFilter = new CheckFirstlineFilter();\n\n // Pattern die spaties zal reduceren in de transactie-String\n Pattern patternSpatiesReduceren = Pattern.compile(\" +\");\n\n // Doorlopen van bestand\n reader.lines()\n .skip(12)\n .filter(firstlineFilter)\n .map(s -> s.split(\";\", -1))\n .map(IntermediairJournaal::new)\n .map(s -> {\n Journaal journaal = new JournaalPO();\n\n // Transactie => eerst spaties reduceren, en zo nodig nog\n // afkappen op 250 posities\n String transactie = s.getTransactie();\n Matcher matcherSpatiesReduceren = patternSpatiesReduceren.matcher(transactie);\n transactie = matcherSpatiesReduceren.replaceAll(\" \");\n transactie = StringUtils.abbreviate(transactie, 250);\n\n journaal.setBankrekening(rekeningen.get(s.getRekening()));\n journaal.setDatum(s.getBoekingsdatum());\n journaal.setAfschriftnummer(s.getAfschriftnummer());\n journaal.setTransactienummer(s.getTransactienummer());\n journaal.setTegenpartijRekening(s.getTegenpartijRekenening());\n journaal.setTegenpartijEigenRekening(rekeningen.get(s.getTegenpartijRekenening()));\n journaal.setTegenpartijNaam(s.getTegenpartijNaam());\n journaal.setTegenpartijAdres(s.getTegenpartijAdres());\n journaal.setTegenpartijPlaats(s.getTegenpartijPlaats());\n journaal.setTransactie(transactie);\n journaal.setValutadatum(s.getValutadatum());\n journaal.setBedrag(s.getBedrag());\n journaal.setDevies(s.getDevies());\n journaal.setBic(s.getBic());\n journaal.setLandcode(s.getLandcode());\n\n return journaal;\n })\n .filter(s -> s.getAfschriftnummer() > 0\n && (maxDatum == null || s.getDatum().compareTo(maxDatum) > 0 || (s.getDatum().equals(maxDatum) && s\n .getAfschriftnummer() > maxAfschriftnummer))).forEach(s -> {\n if (!s.getLandcode().equals(\"BE\") && !s.getLandcode().isEmpty() && !s.getLandcode().equals(\"00\")) {\n throw new RuntimeException(\"Onverwachte landcode \" + s.getLandcode());\n }\n if (!s.getDevies().equals(\"EUR\")) {\n throw new RuntimeException(\"Onverwachte munt \" + s.getDevies());\n }\n\n entityManager.persist(s);\n });\n\n if (firstlineFilter.isFirstline()) {\n throw new RuntimeException(\"Er werd geen header lijn gevonden\");\n }\n }", "title": "" }, { "docid": "e1d42080c3e3cb03e39eff3047f665b6", "score": "0.5414511", "text": "private void getBookList()\n {\n Scanner bookListReader;\n try\n {\n bookListReader = new Scanner(new File(this.bookListURI));\n\n while(bookListReader.hasNextLine())\n {\n String[] tempLine = bookListReader.nextLine().split(\",\\\"|\\\",\\\\{|},\\\"|\\\",\");\n\n Book tempBook = new Book(tempLine[0],\n tempLine[1],\n tempLine[3],\n tempLine[4]);\n\n ArrayList<String> authors = new ArrayList<>();\n String[] tempAuthors = tempLine[2].split(\",\");\n\n for(int i=0; i<tempAuthors.length; ++i)\n authors.add(tempAuthors[i]);\n\n tempBook.setAuthors(authors);\n\n this.bookRegistry.put(tempLine[0], tempBook);\n }\n }\n catch(FileNotFoundException e)\n {\n e.printStackTrace();\n }\n try{\n bookListReader = new Scanner(new File(\"purchasedBooks.log\"));\n\n bookTotal = Integer.parseInt(bookListReader.nextLine());\n\n while(bookListReader.hasNextLine()){\n String templine = bookListReader.nextLine();\n String quantity = bookListReader.nextLine().split(\"=\")[1];\n String bookObject = templine.split(\",\")[0];\n this.getPurchasedBooks().put(this.bookRegistry.get(bookObject),Integer.parseInt(quantity));\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n try //This try catch obtains data from the borrowBooks log and stores bookloan data to the system.\n {\n Scanner loadBookReg = new Scanner(new File(\"borrowBooks.log\"));\n\n while (loadBookReg.hasNextLine()) {\n String tempLine = loadBookReg.nextLine();\n if(tempLine.equals(\"\")){\n continue;\n }\n String[] books = tempLine.split(\":\");\n Book bookObject = bookRegistry.get(books[1]);\n Visitor visitor = visitorOperations.getVisitorRegistry().get(Long.parseLong(books[0]));\n visitor.add_book(new Book_Loan(visitor,bookObject,Double.parseDouble(books[2].trim()),true,books[3],books[4].trim()));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3c9673efabc54f28a1ed25862611328d", "score": "0.541229", "text": "public void readProcessSave() {\n\t\treadData();\n\t\tprocessData();\n\t\tsaveData();\n\t}", "title": "" }, { "docid": "6a6ccad67218db588028ac80994c2a8c", "score": "0.541063", "text": "public void ReadBibFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(inputBibFileName))) {\n result = btp.parse(br); // Read the whole file\n dbc = result.getDatabaseContext();\n } // end of try for BufferedReader\n catch (IOException e) {\n System.out.println(\"Unable to read input bib file.\");\n System.exit(1);\n return;\n }\n // System.out.println(\"Finished reading the input bib file.\");\n // Retrieve the individual entries in the database for processing.\n db = dbc.getDatabase();\n entries = db.getEntries();\n }", "title": "" }, { "docid": "811b9f49fe7ae23911856cfa30fa4f49", "score": "0.5400657", "text": "private void read() throws InvalidRaceDataException {\n readRace();\n readParticipants();\n readCourse();\n }", "title": "" }, { "docid": "af8e2fa3e25e01c0ab7e25ac28c439f3", "score": "0.53940296", "text": "private void readObject() {}", "title": "" }, { "docid": "af8e2fa3e25e01c0ab7e25ac28c439f3", "score": "0.53940296", "text": "private void readObject() {}", "title": "" }, { "docid": "af8e2fa3e25e01c0ab7e25ac28c439f3", "score": "0.53940296", "text": "private void readObject() {}", "title": "" }, { "docid": "a20e9f013b72949b16193091e7705882", "score": "0.53914386", "text": "public synchronized LogUnitEntry handleRetrieval(Long address) {\n LogUnitEntry entry = localLog.read(address);\n log.trace(\"Retrieved[{} : {}]\", address, entry);\n return entry;\n }", "title": "" }, { "docid": "59ac33b557c214acc4546a112758ccf4", "score": "0.53004926", "text": "private void readObject(ObjectInputStream inputStream) {\n\t\ttry {\n\t\t\tinputStream.defaultReadObject();\n\t\t\t\n\t\t\ttimer = new Timer();\n\t\t\tdp = new DataPersistence();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "title": "" }, { "docid": "7c497f34e1f2a73590ef24b49c8dfbb1", "score": "0.5289224", "text": "AchievementManager read() throws IOException;", "title": "" }, { "docid": "4753802cd30d7fcd578a65ee9400cbd5", "score": "0.52813804", "text": "Reader getReader();", "title": "" }, { "docid": "7649ac6ccdccd7c6e8cbb397bdb4fcca", "score": "0.52686197", "text": "@Override\n\tpublic void readImpl()\n\t{\n\t\t_id = readD();\n\t}", "title": "" }, { "docid": "e953324aa8e83b4c8eb130f8d68b02b8", "score": "0.52585876", "text": "public void ReadInvoice() {\n\t\t\n\t}", "title": "" }, { "docid": "f44708f80dc370a3a24d8693c1220c75", "score": "0.5255197", "text": "protected abstract void doBeginRead() throws Exception;", "title": "" }, { "docid": "27a02fd467f591cf85514786bfe7442b", "score": "0.52496254", "text": "@Test\n void testLoadEntries() throws Exception {\n final String uuid = writeRandomJournal();\n JournalReader.getJournalPaths(tmpDir);\n long oneOffset = 0;\n long twoOffset = 0;\n try (JournalReader instance = new JournalReader(this.tmpDir.resolve(uuid + Journal.EXT))) {\n Journal j = instance.getJournal();\n final Collection<JournalEntry> entries = j.getEntries();\n assertEquals(4, entries.size(), \"Expected 4 entries but was \" + entries.size());\n for (final JournalEntry entry : entries) {\n if ((uuid + \"-1\").equals(entry.getVal())) {\n oneOffset = entry.getOffset();\n } else {\n twoOffset = entry.getOffset();\n }\n }\n }\n assertEquals(500, oneOffset, \"Entry expecting 500\");\n assertEquals(2000, twoOffset, \"Entry expecting 2000 \");\n }", "title": "" }, { "docid": "3f462b3d61bda0f50f626c940bba81e8", "score": "0.52430904", "text": "public void readFile() {\r\n\r\n\t\tFile archive = this.validateFile(Constant.ARCHIVE_INPUT);\r\n\t\tFileReader fileReader = null;\r\n\t\tBufferedReader bufferedReader = null;\r\n\t\t// List<PlantillasNotificacion> listaPlantillasNotificacion = null;\r\n\t\tHashMap<String, String> plantillaNotificacionMap = null;\r\n\r\n\t\ttry {\r\n\t\t\tplantillaNotificacionMap = new HashMap<String, String>();\r\n\t\t\tfileReader = new FileReader(archive);\r\n\t\t\tbufferedReader = new BufferedReader(fileReader);\r\n\r\n\t\t\tString line;\r\n\t\t\t// listaPlantillasNotificacion = new ArrayList<PlantillasNotificacion>();\r\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\t\t// PlantillasNotificacion plantillasNotificacion = loadLine(line, Constantes.SEPARADOR_URL);\r\n\t\t\t\t// listaPlantillasNotificacion.add(plantillasNotificacion);\r\n\t\t\t\t// plantillaNotificacionMap.put(plantillasNotificacion.getNombreDescriptivoPlantilla(),\r\n\t\t\t\t// plantillasNotificacion);\r\n\r\n\t\t\t\tString[] lineSplited = line.split(\"\\\\s\");\t\t\t\t\r\n\t\t\t\tif (lineSplited.length < 4 && line.contains(\"is\")) {\r\n\t\t\t\t\tvalidateValues(line, Constant.DELIMITER_PRIMARY_VALUES);\r\n\t\t\t\t} else if (lineSplited.length > 4 && line.startsWith(Constant.QUESTION_HOW)) {\r\n\t\t\t\t\tString resultsQuestionHow = processHowMuchQuestion(line, Constant.QUESTION_HOW);\r\n\t\t\t\t\tSystem.out.print(resultsQuestionHow + \"\\n\");\r\n\t\t\t\t} else if (lineSplited.length > 4 && line.trim().toLowerCase(new Locale(\"English\")).endsWith(Constant.DELIMITER_PRIMARY_CREDITS)) {\r\n\t\t\t\t\tvalidateCredits(line, \" is \", Constant.DELIMITER_PRIMARY_CREDITS);\t\t\t\t\t\r\n\t\t\t\t} else if (lineSplited.length > 4 && line.startsWith(Constant.QUESTION_HOW_MANY)){\r\n\t\t\t\t\tString resultsQuestionHowMany = processHowManyQuestion(line, Constant.QUESTION_HOW_MANY);\r\n\t\t\t\t\tSystem.out.print(resultsQuestionHowMany + \"\\n\");\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception errorFinal) {\r\n\t\t\tSystem.out.println(\"Error reading file \" + Constant.ARCHIVE_INPUT + \" \" + errorFinal);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tif (null != fileReader) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfileReader.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (null != bufferedReader) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbufferedReader.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "70cae47b028f4ee837412dbd0fb56acb", "score": "0.5222059", "text": "@Override\n\tprotected void read(String filename) {\n\t\t\n\t}", "title": "" }, { "docid": "93069230ec0cba329f097c9fb8baa8af", "score": "0.52052206", "text": "public void readUpdate(InputStream in, ClassLoader loader) throws Exception{\n\tObjectInputStream s = new LogObjectInputStream(in, loader);\n\tapplyUpdate(s.readObject());\n }", "title": "" }, { "docid": "491d5b0e092d89f7a0c7363a86675e50", "score": "0.5185728", "text": "public void _read(InputStream _is)\r\n {\r\n identifier = LabelHelper.read(_is);\r\n count = MembershipCountHelper.read(_is);\r\n status = QuorumStatusHelper.read(_is);\r\n }", "title": "" }, { "docid": "fea6145c75d3a90224d62f7a7909c09d", "score": "0.5184093", "text": "public void process(){\n startReadProcess(getFileName());\r\n print();\r\n organize();\r\n checkThis.process();\r\n }", "title": "" }, { "docid": "d3d57a8aa3fa66dfb1f2674ceeb0c922", "score": "0.5182005", "text": "private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n ois.defaultReadObject();\n \n for (int i=0; i<entries.length; i++) \n if (entries[i] != null)\n entries[i].setParent(new PhantomLogEntry(entries[i]));\n }", "title": "" }, { "docid": "17f7659685a664598e58ad4edc84f54e", "score": "0.5176534", "text": "private void readFile() {\n //StringBuilder for additional information\n StringBuilder remarks = new StringBuilder();\n StringBuilder header = new StringBuilder();\n StringBuilder title = new StringBuilder();\n StringBuilder compound = new StringBuilder();\n StringBuilder source = new StringBuilder();\n StringBuilder journal = new StringBuilder();\n StringBuilder author = new StringBuilder();\n StringBuilder revdat = new StringBuilder();\n\n String line;\n try {\n FileReader fr = new FileReader(filePath);\n BufferedReader br = new BufferedReader(fr);\n //Read the lines of the file\n line = br.readLine();\n int index = 0;\n while (line != null && line != \"END\") {\n Atom atom = new Atom();\n //If atom, save all necessary information\n if (line.startsWith(\"ATOM\")) {\n atom.setNumber(Integer.parseInt(line.substring(FileFormatConstants.NUMBER_START, FileFormatConstants.NUMBER_END).replace(\" \", \"\")));\n atom.setIdentity(line.substring(FileFormatConstants.IDENTITY_START, FileFormatConstants.IDENTITY_END).replace(\" \", \"\"));\n atom.setBase(line.substring(FileFormatConstants.BASE_START, FileFormatConstants.BASE_END).replace(\" \",\"\"));\n atom.setResidueNumber(Integer.parseInt(line.substring(FileFormatConstants.RESIDUE_NUMBER_START, FileFormatConstants.RESIDUE_NUMBER_END).replace(\" \",\"\")));\n atom.setCoordinates(new float[] {\n Float.parseFloat(line.substring(FileFormatConstants.X_START,FileFormatConstants.X_END).replace(\" \",\"\")),\n Float.parseFloat(line.substring(FileFormatConstants.Y_START,FileFormatConstants.Y_END).replace(\" \", \"\")),\n Float.parseFloat(line.substring(FileFormatConstants.Z_START, FileFormatConstants.Z_END).replace(\" \",\"\"))\n });\n atom.make3DPoint();\n atom.setElement(line.substring(FileFormatConstants.ELEMENT_START,FileFormatConstants.ELEMENT_END).replace(\" \",\"\"));\n //Store atom in atom array\n this.atoms[index] = atom;\n index++;\n line = br.readLine();\n //System.out.println(atom.getResidueNumber() + \" \" + atom.getIdentity() + \" \" + atom.getCoordinates()[0] + \" \" +\n //atom.getCoordinates()[1] + \" \" + atom.getCoordinates()[2]);\n }\n //Append remarks\n else if (line.startsWith(\"REMARK\")){\n remarks.append(line);\n line = br.readLine();\n }\n //Append header\n else if (line.startsWith(\"HEADER\")){\n header.append(line);\n line = br.readLine();\n }\n //Append title\n else if (line.startsWith(\"TITLE\")){\n title.append(line);\n line = br.readLine();\n }\n //Append comund\n else if (line.startsWith(\"COMPND\")){\n compound.append(line);\n line = br.readLine();\n }\n //Append source\n else if (line.startsWith(\"SOURCE\")){\n source.append(line);\n line = br.readLine();\n }\n //Append author\n else if (line.startsWith(\"AUTHOR\")){\n author.append(line);\n line = br.readLine();\n }\n //Append journal\n else if (line.startsWith(\"JRNL\")){\n journal.append(line);\n line = br.readLine();\n }\n //Append revdat\n else if (line.startsWith(\"REVDAT\")){\n revdat.append(line);\n line = br.readLine();\n }\n else line = br.readLine();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"System can't find PDB file. (PDBFile.readFile())\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n //If available, save information of the file\n if (header != null) this.header = header.toString();\n if (title != null) this.title = title.toString();\n if (remarks != null) this.remarks = remarks.toString();\n if (compound != null) this.compound = compound.toString();\n if (author != null) this.author = author.toString();\n if (journal != null) this.journal = journal.toString();\n if (source != null) this.source = source.toString();\n if (revdat != null) this.revdat = revdat.toString();\n\n //Center all the atoms\n centerAllAtoms(atoms);\n }", "title": "" }, { "docid": "f24a8f6209ade5e20615fbd2a26e2114", "score": "0.5174676", "text": "public void doneReadingContents() {\n\t\tif (contentReader == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tString contents = contentReader.toString().trim();\n\n\t\tcontentReader = null;\n\n\t\t// oho, we have a dictionary! we actually know what to do with this! :)\n\t\tif (contents.startsWith(\"<<\")) {\n\t\t\tdictContent = new PdfDictionary();\n\t\t\tdictContent.loadFromString(contents);\n\t\t} else {\n\t\t\tthis.content = contents;\n\t\t}\n\t}", "title": "" }, { "docid": "5ca78da033a60f3012cfc71e38d7e0eb", "score": "0.5168716", "text": "public void readData();", "title": "" }, { "docid": "40d2b0197f1ade43c495262b4e35929c", "score": "0.5164671", "text": "public void readEntry(LogEntryHeader header,\n ByteBuffer entryBuffer,\n boolean readFullItem)\n throws DatabaseException;", "title": "" }, { "docid": "284f5864ed379687b8e6e6ca16cd8e7b", "score": "0.5161804", "text": "protected abstract Ebook readEbook(InputStream is);", "title": "" }, { "docid": "719bc53a4b81d3b603a4b4c5dd383701", "score": "0.5139821", "text": "@SuppressWarnings(\"unchecked\")\n public synchronized ReadResult read()\n {\n while (true)\n {\n /*\n long thisRead = logPointer.getAndIncrement();\n if (thisRead == 0L)\n {\n //log.trace(\"Read[{}]: initial learn\", streamID);\n //use backpointers to build\n //TODO: if this is a contiguous prefix, store in order to do a selective read.\n //runtime.getAddressSpaceView().readPrefix(streamID);\n }\n */\n\n // Pop the context if it has changed.\n if (getCurrentContext().logPointer.get() > getCurrentContext().maxAddress) {\n StreamContext last = streamContexts.pollFirst();\n log.trace(\"Completed context {}@{}, removing.\", last.contextID, last.maxAddress);\n }\n\n Long thisRead = getCurrentContext().currentBackpointerList.pollFirst();\n if (thisRead == null) {\n getCurrentContext().currentBackpointerList =\n resolveBackpointersToRead(getCurrentContext().logPointer.get());\n log.trace(\"Backpointer list was empty, it has been filled with {} entries.\",\n getCurrentContext().currentBackpointerList.size());\n if (getCurrentContext().currentBackpointerList.size() == 0)\n {\n log.trace(\"No backpointers resolved, nothing to read.\");\n return null;\n }\n thisRead = getCurrentContext().currentBackpointerList.pollFirst();\n }\n\n getCurrentContext().logPointer.set(thisRead+1);\n\n log.trace(\"Read[{}]: reading at {}\", streamID, thisRead);\n ReadResult r = runtime.getAddressSpaceView().read(thisRead);\n if (r.getResult().getResultType() == LogUnitReadResponseMsg.ReadResultType.EMPTY)\n {\n //determine whether or not this is a hole\n long latestToken = runtime.getSequencerView().nextToken(Collections.singleton(streamID), 0).getToken();\n log.trace(\"Read[{}]: latest token at {}\", streamID, latestToken);\n if (latestToken < thisRead)\n {\n getCurrentContext().logPointer.decrementAndGet();\n return null;\n }\n log.debug(\"Read[{}]: hole detected at {} (token at {}), attempting fill.\", streamID, thisRead, latestToken);\n try {\n runtime.getAddressSpaceView().fillHole(thisRead);\n } catch (OverwriteException oe) {\n //ignore overwrite.\n }\n r = runtime.getAddressSpaceView().read(thisRead);\n log.debug(\"Read[{}]: holeFill {} result: {}\", streamID, thisRead, r.getResult().getResultType());\n }\n Set<UUID> streams = (Set<UUID>) r.getResult().getMetadataMap().get(IMetadata.LogUnitMetadataType.STREAM);\n if (streams != null && streams.contains(getCurrentContext().contextID))\n {\n log.trace(\"Read[{}]: valid entry at {}\", streamID, thisRead);\n Object res = r.getResult().getPayload(runtime);\n if (res instanceof StreamCOWEntry) {\n StreamCOWEntry ce = (StreamCOWEntry) res;\n log.trace(\"Read[{}]: encountered COW entry for {}@{}\", streamID, ce.getOriginalStream(),\n ce.getFollowUntil());\n streamContexts.add(new StreamContext(ce.getOriginalStream(), ce.getFollowUntil()));\n //reset the pointer to 0\n }\n else {\n return r;\n }\n }\n }\n }", "title": "" }, { "docid": "e176c5c00690eff89a64e3d2af5373b9", "score": "0.5135536", "text": "public void read(com.tangosol.io.ReadBuffer.BufferInput input)\n throws java.io.IOException\n {\n // import com.tangosol.util.ExternalizableHelper;\n \n super.read(input);\n \n setWaitMillis(ExternalizableHelper.readLong(input));\n setLeaseMillis(ExternalizableHelper.readLong(input));\n }", "title": "" }, { "docid": "445f388fd45fad67ee55366bfd6df043", "score": "0.51288843", "text": "protected abstract T readNextEntry(DataInput in) throws IOException;", "title": "" }, { "docid": "c7d52f037f344bb34843ab670cc965f4", "score": "0.51096", "text": "public static void readLog() \n\t{\n\n\t\t// Create file instance\n\t\tFile file = new File(\"Userlog.txt\");\n\n\t\t// Try to create file if needed\n\t\ttry \n\t\t{\n\t\t\t// Check if file exists in storage\n\t\t\tif (!file.getParentFile().exists()) \n\t\t\t{\n\n\t\t\t\t// Create file in storage\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\t\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// Blank\n\t\t}\n\n\t\t// Try to read the file\n\t\ttry (BufferedReader reader = new BufferedReader(new FileReader(file))) \n\t\t{\n\n\t\t\t// Use to get content from file\n\t\t\tString content = reader.readLine();\n\t\t\t\n\t\t\t// Printer Writer class for requirement\n\t\t\tWriter print = new PrintWriter(System.out);\n\n\t\t\t// Loop for every message\n\t\t\twhile (content != null) \n\t\t\t{\n\n\t\t\t\t// Print message and get next line\n\t\t\t\tprint.append(content + System.lineSeparator());\n\t\t\t\tprint.flush();\n\t\t\t\tcontent = reader.readLine();\n\t\t\t}\n\t\t} \n\t\t\n\t\tcatch (Exception e) \n\t\t{\n\n\t\t\t// Print message to console\n\t\t\tSystem.out.println(\"Error unable to read file.\");\n\t\t}\n\t}", "title": "" }, { "docid": "a0af7fafa024cce29720854ca3781508", "score": "0.510159", "text": "@Override\n protected Stream<Pair<String, List<String>>> read() {\n try {\n // Use the helper Reader class\n Reader reader = new Reader(path);\n return reader.read();\n } catch(IOException e) {\n e.printStackTrace();\n return Stream.empty();\n }\n }", "title": "" }, { "docid": "c4158c981bf87c2db2d75d994c6102bf", "score": "0.5100899", "text": "@Override\n\tpublic void processRead(RawRead read) {\n\t\tString sseq = read.getSequenceString();\n\t\t//System.out.println(sequence);\n\t\tint indice = busquedaBinaria(sseq);\n\t\tint posOriginal = positions[indice];\n\t\t\n\t //System.out.println(\"Sequence \" + sseq + \" is in pos: \" + posOriginal);\n\t\tSystem.out.print(posOriginal+\",\");\n\t //System.out.println(\"o sea \"+ sequence.substring(posOriginal, posOriginal + 35));\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "a3508a522708d37f9db514c8604d4923", "score": "0.50668997", "text": "void makeReads(){\r\n\t\t\tif(verbose){outstream.println(\"tid \"+tid+\" started makeReads.\");}\r\n\t\t\t\r\n\t\t\tArrayList<byte[]> list=takeBytes();\r\n\t\t\twhile(list!=POISON_BYTES){\r\n\t\t\t\tArrayList<Read> reads=new ArrayList<Read>(list.size());\r\n\t\t\t\tfor(byte[] line : list){\r\n\t\t\t\t\tif(line[0]=='@'){\r\n\t\t\t\t\t\t//ignore;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tSamLine sl=new SamLine(line);\r\n\t\t\t\t\t\tRead r=sl.toRead(false);\r\n\t\t\t\t\t\tif(!r.validated()){r.validate(true);}\r\n\t\t\t\t\t\tr.obj=sl;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treads.add(r);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treadsProcessedT++;\r\n\t\t\t\t\t\tbasesProcessedT+=r.length();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(reads.size()>0){putReads(reads);}\r\n\t\t\t\tlist=takeBytes();\r\n\t\t\t}\r\n\t\t\tif(verbose || verbose2){outstream.println(\"tid \"+tid+\" done making reads.\");}\r\n\r\n\t\t\tputBytes(POISON_BYTES);\r\n\t\t\tif(verbose || verbose2){outstream.println(\"tid \"+tid+\" done poisoning bytes.\");}\r\n\t\t\t\r\n//\t\t\tputReads(POISON_READS);\r\n//\t\t\tif(verbose || verbose2){outstream.println(\"tid \"+tid+\" done poisoning reads.\");}\r\n\t\t}", "title": "" }, { "docid": "4e6d2e47256b237f0521f1a8db127656", "score": "0.5053668", "text": "public void readRecord()\n {\n DecimalFormat twoDigits = new DecimalFormat( \"0.00\" );\n\n try\n {\n do {\n\t\t data.read(input);\n\t }\n\n\t while (data.getAccount() == 0);\n\n\taccountNumber.setText(String.valueOf( data.getAccount() ) );\n firstNameField.setText( data.getFirstName() );\n lastNameField.setText( data.getLastName() );\n balance.setText( String.valueOf(twoDigits.format( data.getBalance() ) ) );\n overdraft.setText( String.valueOf(twoDigits.format( data.getOverdraft() ) ) );\n }\n\tcatch (EOFException eof )\n {\n closeFile(); }\n catch (IOException e )\n {\n System.err.println(\"Error during read from file\\n \" + e.toString() );\n System.exit( 1 );\n }\n }", "title": "" }, { "docid": "3ae631123973bdaa9b04b6d1fb3b5377", "score": "0.5039381", "text": "@Override\n public void readMetaData(DataInputStream inputStream) throws KettleFileException, KettleEOFException {\n\n // Loading the type is not handled here, this should be read from the stream previously!\n //\n try {\n\n // Handle storage type\n storageType = inputStream.readInt();\n\n // Read the data in the index\n switch (storageType) {\n case STORAGE_TYPE_INDEXED: {\n int indexSize = inputStream.readInt();\n if (indexSize < 0) {\n index = null;\n } else {\n index = new Object[indexSize];\n for (int i = 0; i < indexSize; i++) {\n switch (type) {\n case TYPE_STRING:\n index[i] = readString(inputStream);\n break;\n case TYPE_NUMBER:\n index[i] = readNumber(inputStream);\n break;\n case TYPE_INTEGER:\n index[i] = readInteger(inputStream);\n break;\n case TYPE_DATE:\n index[i] = readDate(inputStream);\n break;\n case TYPE_BIGNUMBER:\n index[i] = readBigNumber(inputStream);\n break;\n case TYPE_BOOLEAN:\n index[i] = readBoolean(inputStream);\n break;\n case TYPE_BINARY:\n index[i] = readBinary(inputStream);\n break;\n default:\n throw new KettleFileException(toString()\n + \" : Unable to de-serialize indexed storage type for data type \" + getType());\n }\n }\n }\n }\n break;\n\n case STORAGE_TYPE_BINARY_STRING: {\n // In case we do have storage metadata defined, we read that back in as\n // well..\n if (inputStream.readBoolean()) {\n storageMetadata = new ValueMetaBase(inputStream);\n }\n }\n break;\n\n default:\n break;\n }\n\n // name\n name = readString(inputStream);\n\n // length & precision\n length = inputStream.readInt();\n precision = inputStream.readInt();\n\n // Origin\n origin = readString(inputStream);\n\n // Comments\n comments = readString(inputStream);\n\n // formatting Mask, decimal, grouping, currency\n\n conversionMask = readString(inputStream);\n decimalSymbol = readString(inputStream);\n groupingSymbol = readString(inputStream);\n currencySymbol = readString(inputStream);\n trimType = inputStream.readInt();\n\n // Case sensitivity\n caseInsensitive = inputStream.readBoolean();\n\n // Sorting type\n sortedDescending = inputStream.readBoolean();\n\n // Output padding?\n outputPaddingEnabled = inputStream.readBoolean();\n\n // is date parsing lenient?\n //\n dateFormatLenient = inputStream.readBoolean();\n\n // What is the date format locale?\n //\n String strDateFormatLocale = readString(inputStream);\n if (Const.isEmpty(strDateFormatLocale)) {\n dateFormatLocale = null;\n } else {\n dateFormatLocale = EnvUtil.createLocale(strDateFormatLocale);\n }\n\n // What is the time zone to use for date parsing?\n //\n String strTimeZone = readString(inputStream);\n if (Const.isEmpty(strTimeZone)) {\n dateFormatTimeZone = TimeZone.getDefault();\n } else {\n dateFormatTimeZone = EnvUtil.createTimeZone(strTimeZone);\n }\n\n // is string to number parsing lenient?\n lenientStringToNumber = inputStream.readBoolean();\n } catch (EOFException e) {\n throw new KettleEOFException(e);\n } catch (IOException e) {\n throw new KettleFileException(toString() + \" : Unable to read value metadata from input stream\", e);\n }\n\n \n }", "title": "" }, { "docid": "1b2d2162da2f55a17f7cf3d5c9951855", "score": "0.50346965", "text": "protected void beforeReadOperation() {\n //\n }", "title": "" }, { "docid": "d6bb6a7f6b8806204bb4a762013f43ea", "score": "0.5033487", "text": "public abstract String readAll();", "title": "" }, { "docid": "a379288e5b36279e4ea14284e28aed25", "score": "0.50304735", "text": "@Override\n \tpublic void beginRead() {\n \t\tinitializing = true;\n \t}", "title": "" }, { "docid": "9af372fcd595f9eb1b018149663a5d84", "score": "0.5012871", "text": "public void read(\n \t\tfinal InputStream stream)\n throws IOException\n {\n \tif (readerListener == null) {\n \t\tsuper.read(stream);\n \t\treturn;\n \t}\n \t\n registryClosed = true;\n\n // read the header block from the stream\n HeaderBlockReader header_block_reader = new HeaderBlockReader(stream);\n\n // read the rest of the stream into blocks\n RawDataBlockList data_blocks = new RawDataBlockList(stream, header_block_reader.getBigBlockSize());\n\n // set up the block allocation table (necessary for the\n // data_blocks to be manageable\n new BlockAllocationTableReader(header_block_reader.getBigBlockSize(),\n \t\t\t\t\t\t\t header_block_reader.getBATCount(),\n header_block_reader.getBATArray(),\n header_block_reader.getXBATCount(),\n header_block_reader.getXBATIndex(),\n data_blocks);\n\n // get property table from the document\n PropertyTable properties =\n new PropertyTable(header_block_reader.getBigBlockSize(),\n \t\t\t \t header_block_reader.getPropertyStart(),\n data_blocks);\n\n // process documents\n processProperties(\n \t\tSmallBlockTableReader.getSmallDocumentBlocks(\n \t\t\t\theader_block_reader.getBigBlockSize(), data_blocks, properties.getRoot(), header_block_reader.getSBATStart()), \n \t\tdata_blocks, \n \t\tproperties.getRoot().getChildren(), \n \t\tnew POIFSDocumentPath());\n }", "title": "" }, { "docid": "13d41f9593fd0f678e71a12bbe8d2ba3", "score": "0.49916953", "text": "Reader getReader() throws IOException;", "title": "" }, { "docid": "0c87ee63b42737ab2253761e1d25ca75", "score": "0.4975148", "text": "public void readExternal(ObjectInput in) throws IOException, java.lang.ClassNotFoundException {\r\n this.id = (ObjID)in.readObject();\r\n this.targetObjectPrimaryKeys = in.readObject();\r\n this.row = (AbstractRecord)in.readObject();\r\n this.isInstantiated = in.readBoolean();\r\n }", "title": "" }, { "docid": "62d67620c5d49d9a7bdad27628c394f7", "score": "0.49744725", "text": "@Override\n public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n\n BufferedReader Reader = ReaderOf(Source.Access);\n if (Reader == null) return;\n\n Log.d(LogTag, \"File \"+Source.Access.getName()+\" was recorded \"+Source.Infos.NbDays+\" days ago.\");\n\n LoaderJSON.Head(Reader);\n Source.Infos.NbNodes = 0;\n String StringJSON;\n try {\n while ((StringJSON = Reader.readLine()) != null) {\n Source.Infos.NbNodes++;\n Sample Values = LibJSON.fromJSON(StringJSON);\n if (Values == null) continue;\n Listener.loaded(Values);\n }\n } catch (Exception FileError) {\n Log.d(LogTag, \"Error while loading :\" + Source.Access.getName());\n Listener.finished(false);\n State = Loader.finished;\n return;\n }\n State = Loader.finished;\n Listener.finished(true);\n }", "title": "" }, { "docid": "c987480c033dd7df2a35654343a2bb0a", "score": "0.4964125", "text": "private void read() {\n int index = in.nextInt();\n int count = in.nextInt();\n try {\n byte[] bytes = fileSystem.read(index,count);\n out.println(count + \" bytes read: \" + getBytesString(bytes));\n } catch (ReadWriteException | IllegalArgumentException e) {\n out.println(\"error: \" + e.getMessage());\n }\n\n }", "title": "" }, { "docid": "c450dfb64e51c75d93237f8960337f0b", "score": "0.49554104", "text": "private void start() {\n this.book.readerUser(this.file);\n this.book.readerSAX(this.file);\n }", "title": "" }, { "docid": "eab6ccbce5b8a32c60a7dace324780b9", "score": "0.49477407", "text": "private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {\n\t\t\ts.defaultReadObject();\n\t\t\treadHolds = new ThreadLocalHoldCounter();\n\t\t\tsetState(0); // reset to unlocked state\n\t\t}", "title": "" }, { "docid": "fed2cf2ac5b09cbe4188b4c9d5076de1", "score": "0.49442363", "text": "private void handleReadStateChanged() {\n assert mNotification != null;\n // TODO: Move the alpha levels up to resources.\n mIconAlpha = mNotification.isRead() && mIndicateReadState ? 120 : 255;\n setImageAlpha(mIconAlpha);\n }", "title": "" }, { "docid": "0fe6c0dd7d523b4ee7f36f68a31e5a1e", "score": "0.49423632", "text": "private void readObject(final ObjectInputStream in) throws ClassNotFoundException, IOException {\r\n\t\tin.defaultReadObject();\r\n\t\tthis.logId = this.getClass().getSimpleName();\r\n\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"DeSERIALIZE (restore) component [\" + logId + \"] (\" + this.hashCode() + \")\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "906e4cdf5ba512f857c9e3d285547c26", "score": "0.49358964", "text": "public void readRecord(){\r\n int n;\r\n String s;\r\n double d;\r\n try {\r\n n = dis.readInt();\r\n s = dis.readUTF();\r\n d = dis.readDouble();\r\n number.setText(String.valueOf(n));\r\n name.setText(String.valueOf(s));\r\n marks.setText(String.valueOf(d));\r\n } catch (EOFException e) {\r\n //TODO: handle exception\r\n moreRecords = false;\r\n } catch(IOException e){\r\n System.out.println(e);\r\n System.exit(1);\r\n }\r\n }", "title": "" }, { "docid": "03498b8403a7a282869635ac22a1fbc3", "score": "0.4935167", "text": "public void indexAllJournal() throws RemoteException {\n \r\n }", "title": "" }, { "docid": "fd2baec1415ddad0be562fda8ff40636", "score": "0.49151856", "text": "public interface IReadManager\r\n{\r\n\tpublic int size();\r\n\r\n\t/** Returns the read at the given position, or null if no read is there. */\r\n\tpublic Read getReadAt(int line, int nucleotidePosition);\r\n\r\n\tpublic int getLineForRead(Read read);\r\n\r\n\tpublic ArrayList<Read> getReadNames(int startIndex, int endIndex);\r\n\r\n\tpublic ArrayList<Read> getLine(int line);\r\n\r\n\tpublic LineData getPixelData(int line, int start, int end, float scale, boolean getMetaData);\r\n\r\n\t/**\r\n\t * Returns the pair of reads that form each end of the (possible) link line\r\n\t * at the given position. Returns null if no link line is at that position.\r\n\t */\r\n\tpublic Read[] getPairForLink(int rowIndex, int colIndex);\r\n}", "title": "" }, { "docid": "54e812363994a43d5e84ad9696df59b5", "score": "0.49045348", "text": "public JLDLSerialReader (final FileHandle path) {\n\t\tthis.filePath = path;\n\n\t\tthis.initialize();\n\t}", "title": "" }, { "docid": "d076282a4d075389e6c7ddd6a13db5fb", "score": "0.49037847", "text": "public void read(com.tangosol.io.ReadBuffer.BufferInput input)\n throws java.io.IOException\n {\n // import com.tangosol.util.Base;\n // import com.tangosol.util.Binary;\n // import com.tangosol.util.ExternalizableHelper;\n \n super.read(input);\n \n setResourceExpiry(ExternalizableHelper.readLong(input));\n \n // load the binary value of the resource\n Binary binResource = new Binary(Base.read(input));\n setResourceBinary(binResource);\n \n // we have to defer the deserialization until the ClassLoader is known\n // (see CacheHandler#getCachedResource());\n // since Coherence 2.2: keep it as Binary\n setResource(binResource);\n }", "title": "" }, { "docid": "579d6b8a3e36bd3d233a3e68e1311cda", "score": "0.48983243", "text": "private void loadLog() {\r\n try {\r\n log = jsonReader.read();\r\n System.out.println(\"Loaded from \" + JSON_STORE);\r\n } catch (IOException e) {\r\n System.out.println(\"Unable to read from file: \" + JSON_STORE);\r\n }\r\n }", "title": "" }, { "docid": "b994106bb16d5d380e009adc7b45b1e2", "score": "0.4897481", "text": "@Override\n\tpublic void readRep(Repository rep, ObjectId id_step,\n\t\t\tList<DatabaseMeta> databases, Map<String, Counter> counters)\n\t\t\tthrows KettleException {\n\n\t}", "title": "" }, { "docid": "381e1d208a1cf76233b9db9aa9f1aed2", "score": "0.48964554", "text": "@Override\n public void loadMP3Library() throws mp3libraryPersistenceException {\n Scanner sc;\n \n try {\n //Create Scanner for reading the file\n sc = new Scanner(new BufferedReader(new FileReader(FILE)));\n } catch (FileNotFoundException e) {\n throw new mp3libraryPersistenceException(\"-_- Could not load MP3 Library data into memory.\", e);\n }\n \n //currentLine holds the most recent line read from the file\n String currentLine;\n \n //currentMP3 holds the most recent address unmarshalled\n mp3 currentMP3;\n \n //Go through the FILE line by line, decoding each line into an \n //mp3 object by calling the unmarshallMP3 method.\n //Process while we have more lines in the file\n while (sc.hasNextLine()) {\n //Get the next line in the file\n currentLine = sc.nextLine();\n \n //Unmarshall the line into an mp3\n currentMP3 = unmarshallMP3(currentLine);\n \n //Putting all mp3 objects into the Map in memory\n mp3Collection.put(currentMP3.getTitle(), currentMP3);\n }\n }", "title": "" }, { "docid": "b768283b3d5e7bc3d04b531eefb84261", "score": "0.48889095", "text": "private static void readingDataObjectsOperationOne() {\n String fileName = \"files/person.bin\";\n\n // Build a new file object using fileName\n File file = new File(fileName);\n\n // Create InputStream, using FileInputStream created from file object\n // Wrap ObjectInputStream over InputStream object\n try (InputStream inputStream = new FileInputStream(file);\n ObjectInputStream objectInputStream = new ObjectInputStream(inputStream)) {\n\n // Read and get list of person from binary file\n @SuppressWarnings(\"unchecked\")\n List<Person> personList = (List<Person>) objectInputStream.readObject();\n\n // Print list of person fetched from binary file\n personList.forEach(System.out::println);\n\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7cc5df4aec30e4e14ae381d013a58c2b", "score": "0.48865455", "text": "public ReadWorker(SimpleReadWriteLock lock, StringBuffer buffer) {\n this.lock = lock;\n this.buffer = buffer;\n }", "title": "" }, { "docid": "6e1774875cae4fbfc9c441f1a9927c2f", "score": "0.48749614", "text": "public void readContents(String contents) {\n\t\tif (contentReader == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tcontentReader.append(contents + \"\\r\\n\");\n\t}", "title": "" }, { "docid": "1e91e2f61df71b238b4d5ededdb7b1d1", "score": "0.48677468", "text": "protected abstract T readItem(Cursor cursor);", "title": "" }, { "docid": "45c9d5217fabc4ed8f221c519cb6b824", "score": "0.4864345", "text": "public void readData(){\n\t\ttry\n\t\t{\n\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(\"Player.dat\"));\n\t\t\t// objects are read out in the order they were read in\n\t\t\tp3 = (Serialization) in.readObject();\n\t\t\tp4 = (Serialization) in.readObject();\n\t\t\tin.close();\n\t\t}\n\t\tcatch (SecurityException e)\n\t\t{\n\t\t\tSystem.out.println(\"Serialization restore error 1\");\n\t\t}\n\t\tcatch (ClassNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"Serialization restore error 2\");\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Serialization restore error 3\");\n\t\t}\n\n }", "title": "" }, { "docid": "3f8da7269a5573f6dc21e59dcc3a9eb7", "score": "0.4863306", "text": "public void readUndo(UndoLog log) throws LogNotFoundException,\n BufferNotFound, InterruptedException {\n transactionLogger.readUndo(log);\n }", "title": "" }, { "docid": "0acfaf98dd37e710bac772c8d012dd00", "score": "0.48571327", "text": "public void ReadBtn() {\n try {\r\n FileInputStream fileIn=openFileInput(\"savedArticles.txt\");\r\n InputStreamReader InputRead= new InputStreamReader(fileIn);\r\n\r\n char[] inputBuffer= new char[100];\r\n String s=\"\";\r\n int charRead;\r\n\r\n while ((charRead=InputRead.read(inputBuffer))>0) {\r\n // char to string conversion\r\n String readstring=String.copyValueOf(inputBuffer,0,charRead);\r\n s +=readstring;\r\n }\r\n InputRead.close();\r\n\r\n\r\n Log.d(\"TEXTFILE\", s);\r\n listFreshArticles(s.substring(0,s.length()-1), \"Downloaded\");\r\n\r\n\r\n //Toast.makeText(getBaseContext(), s, Toast.LENGTH_SHORT).show();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "455373cae6ac2b73e98f3d29569f7035", "score": "0.4854811", "text": "void readAdditionalData(InputStream in) throws IOException, ParseException;", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.4853075", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "da7c3a740a82b50d872926dba54bd614", "score": "0.48466992", "text": "ObservableList<JournalEntry> getJournalEntryList();", "title": "" }, { "docid": "52818c5038338939333cbac8245646a3", "score": "0.4840249", "text": "public ArchivedObjectReader(InputStream is) throws IOException {\n if (!is.markSupported())\n is = new BufferedInputStream(is);\n this.is = is;\n }", "title": "" }, { "docid": "0d4f9cb21e63b2c08a0a81ae5aff5da1", "score": "0.48388937", "text": "@Override\n\tpublic void readAlerts() {\n\n\t}", "title": "" }, { "docid": "f651ae378685e26c35045561310a0608", "score": "0.48095036", "text": "private void readFromParcel(Parcel in) { \n\t\t// We just need to read back each \n\t\t// field in the order that it was \n\t\t// written to the parcel \n\t\tnumVerse = in.readInt();\n\t\ttext = in.readString();\n\t}", "title": "" }, { "docid": "1b0e40ddcdac9a03f32aeb266888bf56", "score": "0.48090103", "text": "public void readProcess(IAeBusinessProcess aProcess) throws AeBusinessProcessException;", "title": "" }, { "docid": "f90911ae7c58ecb4a48f5d077b4a42d4", "score": "0.48018885", "text": "void read();", "title": "" }, { "docid": "f90911ae7c58ecb4a48f5d077b4a42d4", "score": "0.48018885", "text": "void read();", "title": "" }, { "docid": "511f8a94e9ab93f3708480a8015ef706", "score": "0.4796673", "text": "private static void loadData()\t{\n\t\tint index = 0;\n\t\tObjectInputStream input = null;\n\t\ttry\t{\n\t\t\tinput = new ObjectInputStream(Files.newInputStream(Paths.get(\"contacts.ser\")));\n\t\t\twhile (true)\t{\n\t\t\t\tContact contact = (Contact) input.readObject();\n\t\t\t\tincreaseArrayLength();\n\t\t\t\tcontactRoll[index++] = contact;\n\t\t\t}\n\t\t} catch (EOFException e)\t{\n\t\t\t;\n\t\t} catch (IOException e)\t{\n\t\t\tSystem.err.println(\"Error opening file. Terminating.\");\n\t\t\tSystem.exit(1);\n\t\t} catch (ClassNotFoundException e)\t{\n\t\t\tSystem.err.println(\"Invalid object type. Terminating.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\ttry\t{\n\t\t\tif (input != null)\n\t\t\t\tinput.close();\n\t\t} catch (IOException e)\t{\n\t\t\tSystem.err.println(\"Error opening file. Terminating.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "title": "" } ]
6a608f31bbe9d6179d5b3d2b756489cd
Provides a base constructor that stores the linker for the document.
[ { "docid": "a895c9c219b29b1e94d2382e45bd2bdc", "score": "0.65296334", "text": "public RenderNode(Linkable linker) {\n this.linker = linker;\n }", "title": "" } ]
[ { "docid": "30f7c29ec6924b6914f338e5d2b94c8e", "score": "0.6418485", "text": "public LinksImpl(XMLDocument d) {\n super(d);\n initLinks();\n }", "title": "" }, { "docid": "add9943b6e82af76ca82a776d59ff2b6", "score": "0.63815296", "text": "public LinkImpl(XMLDocument d) {\n super(d);\n initLink();\n }", "title": "" }, { "docid": "96e772cbfccb3e02e455822757bde7f2", "score": "0.6162684", "text": "public PDFDocument() {\r\n\t\tthis(USENONE);\r\n\t}", "title": "" }, { "docid": "67aa1c63146a4b9b1b4d2dba2e069d64", "score": "0.60630345", "text": "public LinkImpl() {\n super();\n initLink();\n }", "title": "" }, { "docid": "835442ea9566d5927c937bc2c9862e4b", "score": "0.6028534", "text": "public LinksImpl() {\n super();\n initLinks();\n }", "title": "" }, { "docid": "d4081c8ea477da4a678badd1649f086d", "score": "0.6006061", "text": "protected Link(){}", "title": "" }, { "docid": "1415226649cfe2044bdd0feb7dca4799", "score": "0.59919786", "text": "public Link() {\n super(XML_NAME);\n }", "title": "" }, { "docid": "71e3016bcaade1a22d005cdc100766f9", "score": "0.599135", "text": "public ADocument (){\n city = \"\";\n textTerms = new HashMap<String, Term>();\n }", "title": "" }, { "docid": "2824e971efc5e2a30b8837256659fbb4", "score": "0.57436544", "text": "public PdfInfo() {\n\t\t\n\t}", "title": "" }, { "docid": "34e588ce9a46ea87db6515a53b21b644", "score": "0.57405007", "text": "public LanguageLinker() {\n\t\tGlobalRegistry.mvcLinker.registerSystemObservable(this);\n\t}", "title": "" }, { "docid": "36bddfe1fb71b958e973f2e0b8c8d46a", "score": "0.573622", "text": "public CmsDocRelTVOImpl() {\n }", "title": "" }, { "docid": "fd10d6ceaabfe81584bb299c6cbae72f", "score": "0.57345253", "text": "public DocInfo() {\n super();\n }", "title": "" }, { "docid": "fc56c3fc8ee96d5b1fb866ce2fb1ca1a", "score": "0.56860596", "text": "private LinkageHandler() {\n }", "title": "" }, { "docid": "4b2e17366938bea921de70766ab7c454", "score": "0.568264", "text": "public LinkModelFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "f4ad7b6ad3600109999b86d4a1f7c3d2", "score": "0.5680921", "text": "public DocumentationInstanceBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }", "title": "" }, { "docid": "f0b943b28c611ab65f5877501011e947", "score": "0.56658125", "text": "public Document() {\r\n }", "title": "" }, { "docid": "acee4019310d8cb711d7eeba67773488", "score": "0.55859756", "text": "public Book() {\r\n\t\tsuper();\r\n\t\tthis.numPages = 1;\r\n\t\tthis.publisher = \"Default Publishing\";\r\n\t}", "title": "" }, { "docid": "bc6bf2b42fc8779f353b090b690e1fa4", "score": "0.55608726", "text": "private ConvertPdfDocument() {}", "title": "" }, { "docid": "6dd6d4787cbf6ee1c4f9c34acdb1ade7", "score": "0.55528456", "text": "public CNlGenerator() {\n\t\tthis(CNlGenerator.DEFAULT_URL);\n\t}", "title": "" }, { "docid": "38ade19aee2d01900271cf6e41b033d7", "score": "0.5549048", "text": "public Document(String url){\n this.url = url;\n this.content = OPEN + url + CLOSE; // text is not available\n this.embdDocs = new HashMap<>();\n }", "title": "" }, { "docid": "72af519b648242509e8fc870127f5d3d", "score": "0.5546922", "text": "private LinkDetectorRegistry() {\r\n }", "title": "" }, { "docid": "6b78926f333f9135399c79137e9f97d1", "score": "0.5522286", "text": "public Reference() {\r\n\t\t\tsuper();\r\n\t\t}", "title": "" }, { "docid": "e96208ca9c7a059daa722c0ace6d0514", "score": "0.5509959", "text": "public WbDocumentInfo() {\n super();\n }", "title": "" }, { "docid": "84dcd843e5ef3991b7059d6ac09a4631", "score": "0.54914916", "text": "public ProjectDocumentListing() {\r\n\t}", "title": "" }, { "docid": "fdd35adc34fc150f949ad3a74fcc244a", "score": "0.5488394", "text": "protected IdLink() {\n super();\n this.id = null;\n }", "title": "" }, { "docid": "757a0fa00208c05e095308e6fe13c1ee", "score": "0.545368", "text": "public DocumentNode() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "21b46f5cc523d37fc7ea267594489a58", "score": "0.5449006", "text": "public DocumentController() {\n document = new Document();\n }", "title": "" }, { "docid": "0f0eceaf66443413d9881a9e3c67f1db", "score": "0.54442024", "text": "public Library() {\n super(\"\");\n this.collections = new ArrayList<LibraryCollection>();\n }", "title": "" }, { "docid": "6567877ace46c1b125cf0e7faee0b1e1", "score": "0.54427016", "text": "@Method(selector = \"initWithLink:domainURIPrefix:\")\n protected native @Pointer long init(NSURL link, String domainURIPrefix);", "title": "" }, { "docid": "0d22fedbea351169b8c70cad5a330cb7", "score": "0.5435363", "text": "public Document() {\n super(0, null, null);\n }", "title": "" }, { "docid": "2d4d6653c6b04369cf98107277ee563e", "score": "0.5434148", "text": "TestWithReferenceDocument(String name) {\r\n super(name+REFERENCE);\r\n throw new IllegalArgumentException(\"You cannot use the name-only constructor\");\r\n }", "title": "" }, { "docid": "fc81269210034a9e5743c184d7b88588", "score": "0.5431743", "text": "public Laerer()\n\t{\n\t}", "title": "" }, { "docid": "18105aba755c0ab366a469a5a6fa33f5", "score": "0.54208314", "text": "public Reference() {\n super();\n }", "title": "" }, { "docid": "32eed6920cc4abb06b7155f7149de433", "score": "0.5406552", "text": "public Mapping (Xref xref){\n this.sourceUri = new HashSet<String>();\n this.source = xref;\n this.targetUri = new HashSet<String>();\n this.target = xref;\n this.mappingSetId = null;\n this.predicate = null;\n }", "title": "" }, { "docid": "c53db3781376c5836d63870b1d54f66f", "score": "0.54053926", "text": "public Library()\n\t{}", "title": "" }, { "docid": "9a4217c2739046411f6818091d75a533", "score": "0.5391014", "text": "public TagLink() \n {\n }", "title": "" }, { "docid": "02f250b050f307b8f36adcce4ffea0d1", "score": "0.538138", "text": "public AbstractDocument(Application a) {\n\t\t_application = a;\n\t\t_undoManager = new UndoManager();\n\t\t_editSupport = new UndoableEditSupport();\n\t}", "title": "" }, { "docid": "2963f771f10ddba71c99f36006450c18", "score": "0.53771764", "text": "public DocCompanion ()\n {\n super(\"Docs\", DESC);\n\n if (Installer.hasUI()) {\n view = new BasicCompanionView(this, 60);\n }\n }", "title": "" }, { "docid": "9243654b83db0a856a78ebeb2a02a9b7", "score": "0.5377004", "text": "public FIRDynamicLinkComponents() {}", "title": "" }, { "docid": "c11aeaf3dce28db8ba89830d81b8ec2c", "score": "0.5349648", "text": "public RendererBase() {\n }", "title": "" }, { "docid": "530ff25d154091c35fd45a84b7ad57d6", "score": "0.5326421", "text": "public CatalogOntology() {\n this(true);\n }", "title": "" }, { "docid": "e70354041986c90b2bdf5b313bf08bf3", "score": "0.5322994", "text": "public DocumentationBuilder() {\n\n }", "title": "" }, { "docid": "01ea55a22f3893a01a07fc1b488a0af1", "score": "0.5317046", "text": "public HttpLinkBean() {\r\n\tsuper();\r\n}", "title": "" }, { "docid": "33a7356ad533ac63000477a0a32c88f0", "score": "0.53132147", "text": "public DocumentEditor() {\n super();\n }", "title": "" }, { "docid": "59a31b6ecae80ea8e5858b884161c2c2", "score": "0.53051037", "text": "public Hyperlink() {\n this(DOM.createDiv());\n }", "title": "" }, { "docid": "c8bf38c25767d17a233ea8786cdecbed", "score": "0.52987224", "text": "protected Liaison() {\n\t}", "title": "" }, { "docid": "a87729d6bfbb101743b2e087d1ec7d69", "score": "0.52889633", "text": "public Document() {\n\t\tthis(\"DEF_CV\");\n\t}", "title": "" }, { "docid": "57ba53498b15daced4a20baf04cee2fb", "score": "0.528193", "text": "public interface DocumentLoader {\n /**\n * Loads a Document from a local file.\n *\n * @param file the file containing the XML document\n * @return the content of the file as a Document\n * @throws IOException if there was a problem reading the file\n * @throws SAXException if there was a problem with the document\n */\n Document load(File file) throws IOException, SAXException;\n\n /**\n * Loads a Document from a physical resource.\n *\n * @param url the location of the resource\n * @return the content of the resource as a Document\n * @throws IOException if there was a problem reading the resource\n * @throws SAXException if there was a problem with the document\n */\n Document load(URL url) throws IOException, SAXException;\n\n /**\n * Loads a Document from a logical resource.\n * <p/>\n * How the resource is converted to a physical location is implementation defined.\n *\n * @param uri the logical location of the resource\n * @return the content of the resource as a Document\n * @throws IOException if there was a problem reading the resource\n * @throws SAXException if there was a problem with the document\n */\n Document load(URI uri) throws IOException, SAXException;\n\n /**\n * Loads a Document from a logical source.\n *\n * @param source the source of the document text\n * @return the content as a Document\n * @throws IOException if there was a problem reading the content\n * @throws SAXException if there was a problem with the document\n */\n Document load(InputSource source) throws IOException, SAXException;\n}", "title": "" }, { "docid": "3c9544f8dd022e73858f3c69fc7244cc", "score": "0.5281403", "text": "public DocumentWriter() {\n state = new RootState(this);\n }", "title": "" }, { "docid": "43c47c329279069f0a360ca2fbd7ee6b", "score": "0.5268964", "text": "public SuperLink(String newWord){\r\n\t\tkey = newWord;\r\n\t\tbList = new BabyList();\r\n\t\tnext = null;\r\n\t}", "title": "" }, { "docid": "4d3bcd6fbcbe41925f499f0da1395c94", "score": "0.5220738", "text": "public AllocPage()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "15a8cc0641f580faad7e0b3145f55a32", "score": "0.5219737", "text": "public void init()\n{\n\n sourceCodeFileList = new FileList();\n linkerFileList = new FileList();\n docFileList = new FileList();\n\n loadFile();\n\n}", "title": "" }, { "docid": "2836be729f072ca4411755da79c9fb0c", "score": "0.52095", "text": "protected CoreferenceChain() {/* intentionally empty block */}", "title": "" }, { "docid": "603b9a8235e45e433725cbf67bb26d41", "score": "0.51937926", "text": "public Astrogation (References ref) \r\n {\r\n references = ref; \r\n }", "title": "" }, { "docid": "cffe7ea0871271463b73adc9c157fc07", "score": "0.51917577", "text": "protected AbstractReferenceHandler()\r\n {\r\n internalObjects = new LinkedHashMap<T, U>();\r\n referenceCounter = new ReferenceCounter();\r\n }", "title": "" }, { "docid": "247635ccccf140301e79d7a59e75ce20", "score": "0.5185491", "text": "private LinkerDatabaseManager() {\n }", "title": "" }, { "docid": "b8cbd48a5b02552e6b1add4c2275dcfb", "score": "0.51786196", "text": "public DocumentsPanel() {\n super();\n\n properties =\n new String[] { \"protocol\", \"description\", \"job\", \"recipient\", \"isDigital\", \"uri\", \"isOutgoing\",\n \"releaseDate\", \"notes\" };\n columnsNames =\n new String[] { getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.protocol\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.description\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.job\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.recipient\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.isDigital\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.file\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.outgoing\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.date\"),\n getResourceMap().getString(LOCALIZATION_PREFIX + \"Table.notes\") };\n writables = new boolean[] { false, false, false, false, false, false, false, false, false };\n }", "title": "" }, { "docid": "f25fe554cbf4f3a94ca41ca516a1d48a", "score": "0.51782554", "text": "private JavaDocGen() {\n }", "title": "" }, { "docid": "eb0a940d667c0687e051ef84841be29b", "score": "0.5177197", "text": "Library(final Dictionary<SyntaxChecker> syntaxCheckers,\n final Dictionary<Digester> digesters,\n final Dictionary<Constructor<? extends KeywordValidator>> validators,\n final Dictionary<FormatAttribute> formatAttributes)\n {\n this.syntaxCheckers = syntaxCheckers;\n this.digesters = digesters;\n this.validators = validators;\n this.formatAttributes = formatAttributes;\n }", "title": "" }, { "docid": "26b8f47fdcaf61457c7f8377d1ab3f57", "score": "0.5167857", "text": "private DocumentosDelegate() throws IdeamException {\n documentoService = ServletLocator.getDocumentoService();\n }", "title": "" }, { "docid": "cabcd17911b5301320604a057f81eeeb", "score": "0.5167351", "text": "public Biblioteca() { // constructor vacio del objeto Biblioteca\r\n\r\n\t}", "title": "" }, { "docid": "f558246f636a1964d100d583058fb769", "score": "0.5152461", "text": "public Library(String name) {\n this.id = Library.nextId++;\n this.name = name;\n this.documents = new HashMap<>();\n this.registredUsers = new ArrayList<>();\n }", "title": "" }, { "docid": "61b4bb8691bae48dc340e3675708649f", "score": "0.5147591", "text": "public MarkdownDocumentBuilder() {\n\t\tthis.buffer = new StringBuffer();\n\t}", "title": "" }, { "docid": "5b86ab39b307cfc02451a43ef7f15fae", "score": "0.51404846", "text": "public FileVersificationMapping() {\n //no work to do.\n }", "title": "" }, { "docid": "da010d4600d7881bed1f837e3d7458b2", "score": "0.51402", "text": "public Gerant() {\n\t}", "title": "" }, { "docid": "869bec4a8be791834311d35673b3024b", "score": "0.51384705", "text": "public ReferenceImportRecord() {\r\n super();\r\n }", "title": "" }, { "docid": "a7a0bede56ec6a187fe6e4e6d2cbfd9e", "score": "0.5137893", "text": "private LinkTable<DocumentDTO> createLinkTable(){\n\t\tLinkTable<DocumentDTO> tableDocument = new LinkTable<DocumentDTO>(\r\n\t\t\t\t\"document\", \"table.title\",\r\n\t\t\t\t\"table.summary\", \"table.caption\");\r\n\r\n\t\t// Nomes dos getters das variaveis a apresentar\r\n\t\tString[] columns = {\"id\", \"author\", \"length\", \"extention\", \"creationDate\"};\r\n\r\n\t\ttableDocument.setColumnsNames(columns);\r\n\r\n\t\ttableDocument.addColumnProperties(\"id\", new ColumnsProperties(\r\n\t\t\t\t\"id\", \"table.headername.id\"));\r\n\r\n\t\ttableDocument.addColumnProperties(\"length\", new ColumnsProperties(\r\n\t\t\t\t\"size\", \"table.headername.length\"));\r\n\r\n\t\ttableDocument.addColumnProperties(\"author\", new ColumnsProperties(\r\n\t\t\t\t\"author\", \"table.headername.author\"));\r\n\r\n\t\ttableDocument.addColumnProperties(\"extention\", new ColumnsProperties(\r\n\t\t\t\t\"extention\", \"table.headername.extention\"));\r\n\r\n\t\ttableDocument.addColumnProperties(\"creationDate\", new ColumnsProperties(\r\n\t\t\t\t\"creationDate\", \"table.headername.creationDate\"));\r\n\t\t\r\n\t\ttableDocument.setIdFieldName(\"id\");\r\n\r\n\t\treturn tableDocument;\r\n\t}", "title": "" }, { "docid": "67adc7b84babcb5dc11ff97871522f46", "score": "0.5136245", "text": "private FileLocator() {\n super();\n }", "title": "" }, { "docid": "d228d953b5025582e1bbdccb252f9e99", "score": "0.51304275", "text": "private TestLinkHelper() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "5e9f105bddaf731048899a1e5bf6a84e", "score": "0.5128612", "text": "public SnippetDocs() { }", "title": "" }, { "docid": "0cf424b2447354b54f6f8a785c27b41c", "score": "0.512204", "text": "public static Linker newLinker(Compiler compiler) {\n return new Linker(compiler);\n }", "title": "" }, { "docid": "0c05331d456de16b2a9fbc369726911c", "score": "0.5121801", "text": "public Book() { super(); }", "title": "" }, { "docid": "e95e3ecbd01d5f1182dac7a096a004ba", "score": "0.5120383", "text": "public Library() {}", "title": "" }, { "docid": "02ce74a5790d9238a3aceaf244696dae", "score": "0.5116693", "text": "protected Document ( Model model, URI classURI, org.ontoware.rdf2go.model.node.Resource instanceIdentifier, boolean write ) {\n\t\tsuper(model, classURI, instanceIdentifier, write);\n\t\t/*if (!(this instanceof CollectedDocument)) {\n\t\t\tStatement stm = model.createStatement(this, Thing.RDF_TYPE, Document.RDFS_CLASS);\n\t\t model.addStatement(stm); //rdf:type Document\n\t\t}*/\t\t\n\t}", "title": "" }, { "docid": "7d498ef4f90c3bc7e708e2ac071d6c4a", "score": "0.5112511", "text": "public void initialize(UimaContext aContext) throws ResourceInitializationException {\n super.initialize(aContext);\n\n /*String stopFilePath = (String) aContext.getConfigParameterValue(PARAM_STOP_WORD_FILE);\n String content = FileOp.getFileAsStream(stopFilePath, DocReranker.class);\n String[] lines = content.split(\"\\n\");\n Set<String> tmpSet = new HashSet<String>();\n for (String line : lines) {\n tmpSet.add(line);\n }\n Set<String> stopSet = Collections.unmodifiableSet(tmpSet);\n\n REFINED_TKFACTORY = IndoEuropeanTokenizerFactory.INSTANCE;\n REFINED_TKFACTORY = new StopTokenizerFactory(REFINED_TKFACTORY, stopSet);\n REFINED_TKFACTORY = new LowerCaseTokenizerFactory(REFINED_TKFACTORY);\n REFINED_TKFACTORY = new PorterStemmerTokenizerFactory(REFINED_TKFACTORY);\n */\n }", "title": "" }, { "docid": "fbbb94e6a97e4b3c9d829ead328f2c58", "score": "0.5110279", "text": "public DocumentController(Document document) {\n this.document = document;\n }", "title": "" }, { "docid": "865a5c49ed89d913f8c5aa1cf388f3e5", "score": "0.5105174", "text": "@Override\r\n public void startDocument() {\r\n document = new Document();\r\n }", "title": "" }, { "docid": "f6c4b7ac9a41d321beafca5fb68410d7", "score": "0.51020205", "text": "public Libro(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f9d5afe052456845e6ad82def1327c80", "score": "0.5095289", "text": "public WordDictionary() {\n root = new WordNode();\n }", "title": "" }, { "docid": "cd65cac65fd3c196b7dcab964784468a", "score": "0.50952095", "text": "private void initInConstructor() {\n htmlStartSB = new StringBuilder(tagName == null ? 0\n : tagName.length() + 2\n + ((attributes == null ? 0 : attributes.length) * 16));\n\n htmlEndSB = new StringBuilder(\n tagName == null ? 16 : tagName.length() + 3);\n }", "title": "" }, { "docid": "0fe521223dc745b3043b363ad57353a2", "score": "0.509468", "text": "public PdfStripper() {\n super(null);\n }", "title": "" }, { "docid": "69284b7ded3d643a63e861f9e7794665", "score": "0.509393", "text": "public DocumentWriter(InputSource source) {\n super(source);\n documentGenerated = true;\n }", "title": "" }, { "docid": "da2c3a4e994e9b64db43d2f30f49f4df", "score": "0.50874084", "text": "public CellMLGraphProducer (CellMLDocument cellmlDoc)\n\t{\n\t\tsuper (true);\n\t\tthis.cellmlDocA = cellmlDoc;\n\t}", "title": "" }, { "docid": "6ce925e193afa60f80a904d989303c2f", "score": "0.5075409", "text": "public XMLImporter () {\n \n Validator validator = null;\n try {\n InputStream validatorInput = Activator\n .locateFile(Messages.XMLImporter_SchemaFileName);\n validator = buildValidator(validatorInput);\n }\n catch (IOException e) {\n // Could load the validator\n e.printStackTrace();\n }\n setXMLParser(validator);\n }", "title": "" }, { "docid": "5d907e71a2d62623ff43f12675e0b995", "score": "0.5072684", "text": "private void initialize() {\n String str;\n\n // Set base name\n str = getGrammar().getFileName();\n if (str.indexOf('/') >= 0) {\n str = str.substring(str.lastIndexOf('/') + 1);\n }\n if (str.indexOf('\\\\') >= 0) {\n str = str.substring(str.lastIndexOf('\\\\') + 1);\n }\n if (str.indexOf('.') > 0) {\n str = str.substring(0, str.indexOf('.'));\n }\n if (Character.isLowerCase(str.charAt(0))) {\n str = Character.toUpperCase(str.charAt(0)) + str.substring(1);\n }\n baseName = str;\n }", "title": "" }, { "docid": "bc7afa92cdc15cb0efa20e5fcfddf83f", "score": "0.50702137", "text": "public PagesRecord() {\r\n super(Pages.PAGES);\r\n }", "title": "" }, { "docid": "c776687b7ef3945dc66a47595613bb52", "score": "0.50686604", "text": "public OneObjectPointer() {\n\t}", "title": "" }, { "docid": "79e3160a74318a7086c84a0bd6ce487c", "score": "0.5068273", "text": "public LinkStrand(String s) {\n\t\tinitialize(s);\n\t}", "title": "" }, { "docid": "86a0a72650c8dd17b1c457a68cdeedd4", "score": "0.5065785", "text": "public DefinitionsDocument(GlobalEventNotifier notifier, CompoundUndoManager undoManager) {\n super();\n _notifier = notifier;\n _editor = new DefinitionsEditorKit(notifier);\n _undoManager = undoManager;\n }", "title": "" }, { "docid": "2833f4fa18852d29d77ea561166b9d85", "score": "0.506404", "text": "public WordDictionary() {\n root = new Node();\n }", "title": "" }, { "docid": "5d533d459b8cab241d94912258891ccc", "score": "0.5062694", "text": "public XPathGenerator () {\t\n\t}", "title": "" }, { "docid": "58f94f2a86f95db650bdee6233195206", "score": "0.50611955", "text": "public WordGeneratorRegistry() {\n \tthis(false);\n }", "title": "" }, { "docid": "dcace930a37bea4568d9817d03529519", "score": "0.5058716", "text": "public Relation(Workspace workspace) {\n\t\tsuper(workspace);\n\t\t_elementName = \"relation\";\n\t}", "title": "" }, { "docid": "a9be057f4d17bec17ab1b9fcf7888c2c", "score": "0.5054264", "text": "public DocumentSynchronizer(ChameleonDocument document){\r\n\t\t_document = document;\r\n\t}", "title": "" }, { "docid": "128dbeb33283efe79f2207458eb38282", "score": "0.50410724", "text": "public interface DocumentLoader {\n Document loadDocument(InputSource inputSource) throws Exception;\n}", "title": "" }, { "docid": "8ea20f905fab539414402a7e0e87ea26", "score": "0.5040868", "text": "public LRPDemon()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "9f1526ecd5181a52a03845b77262f920", "score": "0.50397396", "text": "public Reference(String spelling, Line line) {\n\t\tsuper(line);\n\t\tthis.spelling = spelling;\n\t}", "title": "" }, { "docid": "465011996ffa6fbae7411eaf0d11f4a1", "score": "0.5039066", "text": "public StyleSheetGenerator( ProcessorManager pm )\r\n\t{\r\n\t\tVERBOSE \t= DxfPreprocessor.verboseMode();\r\n\t\tDEBUG\t\t= DxfPreprocessor.debugMode();\r\n\t\tMAKE_CSS \t= DxfPreprocessor.cssMode();\r\n\t\tGEN_NEW_CSS = true;\r\n\r\n\r\n\t\t// Initialize the TableStyles \r\n\t\t// HashMap and create one 'DEFAULT'\r\n\t\t// style. We do this because in some cases we have text discribed\r\n\t\t// in the DXF, but there is no \"default\" text style, or any style\r\n\t\t// at all defined. This occurs when a dimension is the only text\r\n\t\t// on a drawing with no styles defined. This will ensure that\r\n\t\t// there is always one style.\r\n\t\tStyleTables = new Hashtable();\r\n\t\t// now create a default style\r\n\t\tTableStyles defaultStyle = new TableStyles( pm.getSvgUtilInstance() );\r\n\t\tdefaultStyle.setStyleName(\"default\");\r\n\t\tdefaultStyle.setFixedTextHeight(8.0);\r\n\t\tdefaultStyle.setFontFamilyName(\"Courier\");\r\n\t\t// Now there is at least one style on the hashmap.\r\n\t\tStyleTables.put(\"default\",defaultStyle);\r\n\r\n\t\tStyleStr = new String();\r\n\t\tStyleSheet = new String();\r\n\t\t// Now let's create a repository for attribute definitions.\r\n\t\tAttdef = new Vector();\r\n\t}", "title": "" }, { "docid": "6f32a66d97e86a767936ea270e5947a2", "score": "0.50342816", "text": "public Document build(Reader in, String baseURI) \n throws ParsingException, ValidityException, IOException {\n \n baseURI = canonicalizeURL(baseURI);\n InputSource source = new InputSource(in);\n source.setSystemId(baseURI);\n return build(source);\n \n }", "title": "" }, { "docid": "578603b8278d4d22fe441b218779fe1a", "score": "0.5033353", "text": "public Heading() {}", "title": "" } ]
6c940eddb152484604354ad3d1f11642
/Test the deactivateUser method in NexusDB.
[ { "docid": "146dd42650d247e5d6d4f231cd940a25", "score": "0.8434884", "text": "@Test\n public void deactivateUserTest() throws Exception {\n\n System.out.println(\"deactivateUser method test results:\");\n System.out.println();\n\n /*Returns true if user \"test4\" is deactivated.*/\n Boolean deactivatedUser = nexusDB.deactivateUser(\"test4\");\n\n assertTrue(deactivatedUser);\n\n System.out.println();\n }", "title": "" } ]
[ { "docid": "2c5cfe578f583371d617784477c0371e", "score": "0.7754775", "text": "ServiceResult deactivate(ApplicationUser user);", "title": "" }, { "docid": "9b2f08e9b5708e317835bd7faa3f6b23", "score": "0.72270334", "text": "void desactivarUsuario(String username) throws StateException;", "title": "" }, { "docid": "ab83674a7c2d5073c9937f07df96be5d", "score": "0.69304836", "text": "public void deActivateLastAdminUser() throws Exception {\n\n\t\ttry {\n\n\t\t\t// send get all ADMIN user request toward BE\n\t\t\tRestResponse getAllAdminUsers = UserRestUtils.getAllAdminUsers(sdncAdminUser);\n\n\t\t\tassertNotNull(\"check response object is not null after create user\", getAllAdminUsers);\n\t\t\tassertNotNull(\"check error code exists in response after create user\", getAllAdminUsers.getErrorCode());\n\t\t\tassertEquals(\"Check response code after create user\", 200, getAllAdminUsers.getErrorCode().intValue());\n\n\t\t\tTypeToken<List<User>> typeToken = new TypeToken<List<User>>() {\n\t\t\t};\n\t\t\tList<User> listOfUsersOnResponse = gson.fromJson(getAllAdminUsers.getResponse(), typeToken.getType());\n\t\t\tlogger.debug(\"listOfUsers: {}\", listOfUsersOnResponse);\n\n\t\t\t// build map of all Admin users from listOfUsersOnResponse from\n\t\t\t// response\n\t\t\tMap<String, User> mapAllUsersOnResponse = new HashMap<String, User>();\n\t\t\tfor (User sdncUser : listOfUsersOnResponse) {\n\t\t\t\tmapAllUsersOnResponse.put(sdncUser.getUserId(), sdncUser);\n\t\t\t}\n\n\t\t\t// remove from mapAllUsersOnResponse map one of admin users\n\t\t\tmapAllUsersOnResponse.remove(sdncAdminUser.getUserId());\n\t\t\tlogger.debug(\"map Of all Admin users exclude one : {}\", mapAllUsersOnResponse);\n\n\t\t\t// deActivate all Admin users from the userIdAllAdminList list\n\t\t\tfor (Entry<String, User> entry : mapAllUsersOnResponse.entrySet()) {\n\t\t\t\tUserRestUtils.deActivateUser(entry.getValue(), sdncAdminUser);\n\t\t\t}\n\n\t\t\t// deActivate last Admin user user\n\t\t\tRestResponse deActivateUserResponse = UserRestUtils.deActivateUser(sdncAdminUser, sdncAdminUser);\n\n\t\t\tErrorInfo errorInfo = ErrorValidationUtils\n\t\t\t\t\t.parseErrorConfigYaml(ActionStatus.DELETE_USER_ADMIN_CONFLICT.name());\n\n\t\t\tassertEquals(\"Check response code after deActive user\", errorInfo.getCode(),\n\t\t\t\t\tdeActivateUserResponse.getErrorCode());\n\n\t\t\tList<String> variables = Arrays.asList();\n\t\t\tErrorValidationUtils.checkBodyResponseOnError(ActionStatus.DELETE_USER_ADMIN_CONFLICT.name(), variables,\n\t\t\t\t\tdeActivateUserResponse.getResponse());\n\n\t\t} finally {\n\t\t\t// UserRestUtils.deleteUser(UserRestUtils.getAdminDetails2(),\n\t\t\t// sdncAdminUser);\n\t\t\t// UserRestUtils.deleteUser(UserRestUtils.getAdminDetails3(),\n\t\t\t// sdncAdminUser);\n\t\t\t// UserRestUtils.createUser(UserRestUtils.getAdminDetails2(),\n\t\t\t// sdncAdminUser);\n\t\t\t// UserRestUtils.createUser(UserRestUtils.getAdminDetails3(),\n\t\t\t// sdncAdminUser);\n\t\t}\n\n\t}", "title": "" }, { "docid": "4a131830baed6a75e99872496170b9a3", "score": "0.6891523", "text": "@Override\n\tpublic void deactivateUser(int userId) {try{\n\t\t\tUser result=(User) this.sessionFactory.getCurrentSession().createQuery(\"from user where userId= :userId\").setParameter(\"userId\", userId).list().get(0);\n\t\tresult.setActive(false);\n\t\tthis.sessionFactory.getCurrentSession().update(result);}\n\t\tcatch(Exception ex){\n\t\t\tlogger.info(\"else returning UserDAOImpl:deactivateUser\"+ex.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "da217f29be262333f7764510e4437bf8", "score": "0.6878387", "text": "public String deactivateCloudUser() {\n\t\tLOG.debug(\"Entering deActivateCloudUser\");\n\t\tStringBuffer responseBuffer = new StringBuffer();\n\t\ttry {\n\t\t\tif (StringUtils.isNotEmpty(this.oktaId)) {\n\t\t\t\t// Building the URL to deActivate the user\n\t\t\t\tRestResponse response = api.postToOkta(\n\t\t\t\t\t\tnew URIBuilder(formatUrl(apiURL + ConstantUtils.USER,\n\t\t\t\t\t\t\t\tCollections.singletonMap(ConstantUtils.OKTA_ID, this.oktaId))\n\t\t\t\t\t\t\t\t+ \"/lifecycle/deactivate\"), null, apiKey);\n\t\t\t\tif (null != response) {\n\t\t\t\t\tLOG.debug(\"Response Code \" + response.getResponseCode() + \" Response Message :: \"\n\t\t\t\t\t\t\t+ response.getResponseMessage() + \" Resp Body :: \" + response.getResponseBody().toString());\n\n\t\t\t\t\tif (isSuccessCode(response.getResponseCode())) {\n\t\t\t\t\t\tresponseBuffer.append(\"DEACTIVATE SUCCESS: \").append(this.oktaId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresponseBuffer.append(\"DEACTIVATE ERROR: \").append(response.getResponseMessage());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tLOG.error(\"Response object is null\");\n\t\t\t\t\tresponseBuffer.append(\"DEACTIVATE ERROR: Reponse Object is Null\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresponseBuffer.append(\"ERROR: \").append(\"Error while fetching Okta ID for user \");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"DEACTIVATE ERROR: \" + e.getMessage());\n\t\t\tresponseBuffer.append(\"DEACTIVATE ERROR: \").append(e.getMessage());\n\t\t}\n\t\tLOG.debug(\"Exiting deActivateCloudUser\");\n\t\treturn responseBuffer.toString();\n\t}", "title": "" }, { "docid": "46d19818b9b1c24d10987f03f69bfa06", "score": "0.6769763", "text": "public boolean DeActivedUsers(User udto) {\r\n\t\ttry (Connection con = DBConnection.getConnection();\r\n\t\t\t\tPreparedStatement ps = con\r\n\t\t\t\t\t\t.prepareStatement(\"update tbl_user set active=? where id=?\");) {\r\n\r\n\t\t\tps.setInt(1, 0);\r\n\t\t\tps.setInt(2, udto.getId());\r\n\r\n\t\t\tif (ps.executeUpdate() <= 0) {\r\n\r\n\t\t\t\treturn false;\r\n\t\t\t} else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "641729f14bd63e52b79b0874b4fbf849", "score": "0.67669314", "text": "public void disableUser(User user);", "title": "" }, { "docid": "2732d16260d5602ceb8d29c1c3c858b2", "score": "0.6666776", "text": "@PUT\n @Path(\"/deactivateUser/{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response deactivateUser(@PathParam(\"id\") Long uId) {\n try {\n userSessionLocal.deactivateUser(uId);\n return Response.status(204).build();\n } catch (GeneralException e) {\n JsonObject exception = Json.createObjectBuilder()\n .add(\"error\", \"User Not Found\")\n .build();\n return Response.status(404).entity(exception)\n .type(MediaType.APPLICATION_JSON).build();\n }\n }", "title": "" }, { "docid": "0d6b05143a2da00e2cfc993f815376ce", "score": "0.65177965", "text": "public static void deletetestuser(int userID) {\n\t\t\t\tnew QxDao().deletetestuser(userID);\n\t\t\t}", "title": "" }, { "docid": "d4ac364fdf0d7a641e7eb9664fc98f3d", "score": "0.65052474", "text": "@Test\n public void activateUserTest() throws Exception {\n\n System.out.println(\"activateUser method test results:\");\n System.out.println();\n\n /*Returns true if user \"test4\" is activated.*/\n Boolean activatedUser = nexusDB.activateUser(\"test4\");\n\n assertTrue(activatedUser);\n\n System.out.println();\n }", "title": "" }, { "docid": "bf5a71e54abf837241bc341a6d8b35d7", "score": "0.64032686", "text": "public void deactivate();", "title": "" }, { "docid": "bf5a71e54abf837241bc341a6d8b35d7", "score": "0.64032686", "text": "public void deactivate();", "title": "" }, { "docid": "3eeb3bc625be8d60cb7abe67a16e504e", "score": "0.6339", "text": "@Test\n public void testDisabledUser() {\n loginUser();\n logoutFromRealm(bc.providerRealmName());\n logoutFromRealm(bc.consumerRealmName());\n\n RealmResource realm = adminClient.realm(bc.consumerRealmName());\n UserRepresentation userRep = realm.users().search(bc.getUserLogin()).get(0);\n UserResource user = realm.users().get(userRep.getId());\n\n userRep.setEnabled(false);\n\n user.update(userRep);\n\n logInWithBroker(bc);\n errorPage.assertCurrent();\n assertEquals(\"Account is disabled, contact admin.\", errorPage.getError());\n }", "title": "" }, { "docid": "8cc5ac7a88a7877ced5d1e8881def9fb", "score": "0.6301083", "text": "@Test\n public void disableAccountTest() throws IdfyException, Exception {\n api.disableAccount();\n }", "title": "" }, { "docid": "9dbbbbf4ed9c2aef664736dfd81678d9", "score": "0.6268592", "text": "protected void naaDeactivateAsNeeded() {\r\n }", "title": "" }, { "docid": "363f6b3087f1198265b7f0329801dadd", "score": "0.61634904", "text": "@Override\n\tpublic void deactivate() {\n\t\t\n\t}", "title": "" }, { "docid": "24468cb44c7e987d6e7f9839b1f972c3", "score": "0.6147662", "text": "@Override\n\tpublic void deactivate() {\n\n\t}", "title": "" }, { "docid": "fefed9bf300d22b76048f9540d9f548c", "score": "0.6137474", "text": "@Override\n public void unSuspendUser(final Long userKey) {\n this.logger.log(\"unsuspend user for an account cannot be set on stage or live.\");\n }", "title": "" }, { "docid": "70982205b8d2a8617eac1f3cbf949052", "score": "0.61262065", "text": "@Override\r\n\tpublic void deactivate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.6081589", "text": "void deactivate();", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.6081589", "text": "void deactivate();", "title": "" }, { "docid": "3e5494c19632cef6b13f7c7a05e91642", "score": "0.6081589", "text": "void deactivate();", "title": "" }, { "docid": "97fac840bd41ae4220cd8a66200ef745", "score": "0.6042092", "text": "public void logOut(UserBean user) throws DatabaseException;", "title": "" }, { "docid": "d1359617d3e21d173b90808615c320a6", "score": "0.6040856", "text": "@Override\n public void deactivate() {\n\n }", "title": "" }, { "docid": "cc5725a077c159f7883f360857a64aac", "score": "0.60375154", "text": "@Test(priority=6)\npublic void userunassignfromtokentest() throws Exception{\n\thp.tokendisablemethodh();\n\t\n\tactual=prop.getProperty(\"unmae1\");\n\texpected=tp.unassignusermethod(prop.getProperty(\"unmae1\"),\n\t\t\tprop.getProperty(\"tokenpwd\"),prop.getProperty(\"tokenrptpwd\"));\n\t\n\tassertEquals(actual, expected);\n}", "title": "" }, { "docid": "582088b3e6d21bcfb65e5eec1cb196c7", "score": "0.6020792", "text": "@Override\r\n\tpublic void deactivate() {\n\r\n\t}", "title": "" }, { "docid": "afcbf9259e6ac7c07351e196d3a7d108", "score": "0.6008125", "text": "@POST\n @Path(\"{sandboxId}/unbind_usr/{usrId}\")\n public Response unbindUser(@CookieParam(value = \"security-Kloudgis.org\") String auth_token, @PathParam(\"sandboxId\") Long sandboxId, @PathParam(\"usrId\") Long userId) {\n HibernateEntityManager em = PersistenceManager.getInstance().getAdminEntityManager();\n AuthorizationManager authMan = new AuthorizationManager();\n UserDbEntity userSecure = authMan.getUserFromAuthToken(auth_token, em);\n if (userSecure != null) {\n em.getTransaction().begin();\n SandboxDbEntity sandbox = em.find(SandboxDbEntity.class, sandboxId);\n UserDbEntity userDb = em.find(UserDbEntity.class, userId);\n sandbox.unBindUser(userDb);\n em.getTransaction().commit();\n em.close();\n return Response.ok().build();\n } else {\n em.close();\n return Response.status(Response.Status.UNAUTHORIZED).build();\n }\n }", "title": "" }, { "docid": "99d639622212802d331a0bbb542d3a7c", "score": "0.6007048", "text": "protected abstract void handleDeactivation();", "title": "" }, { "docid": "391604081df68b0918904d8fdcfa886b", "score": "0.5982507", "text": "void unsetDisabledStatus( String username );", "title": "" }, { "docid": "7e95a293bb95c0a728467f8714cfeb79", "score": "0.5960053", "text": "@Test\n\tpublic void UW020_revokeRole_SD() {\n\t\t\n\t\tdoNothing().when(userService).updateUser(user6);\n // Assert.\n assertEquals(\"<200 OK,role revoked,{}>\", uc.revokeRole(user6, UserRole.NURSE).toString());\n }", "title": "" }, { "docid": "8c5f31fd9f63ad72624abe2db9091afb", "score": "0.59569746", "text": "@Test\n public void deleteStrainFromUser()\n {\n }", "title": "" }, { "docid": "68590c77f964d16f9cf0f43f8e5c50b6", "score": "0.59450966", "text": "public void testRemoveUser1() throws Exception {\r\n assertFalse(\"No user should be removed.\", manager.removeUser(\"user3\"));\r\n }", "title": "" }, { "docid": "3572158a519b6b1d72c238bd97957aab", "score": "0.59362024", "text": "@AfterMethod(alwaysRun = true)\n\tpublic void logoutUser(){\n\t\tnew CreateUserPage(driver).logoutUser();\n\t\t//new LoginPage(driver).waitUntilAvailable();\n\t}", "title": "" }, { "docid": "c7e71876985ec0132848f23f11bc3549", "score": "0.5926601", "text": "boolean deactivate(Product product);", "title": "" }, { "docid": "00a80a983a07a7114cc8e711fecedad7", "score": "0.5924467", "text": "public void disableUser(String accountId, Attribute attr){\n\t\tlog.info(\"BEGIN\");\n\t\ttry {\n\t\t\tObject value = null;\n\t\t\tif (attr.getValue().get(0).toString().equalsIgnoreCase(\"true\")) {\n\t\t\t\ttry {\n\t\t\t\t\tDate dtValidThro = null;\n\t\t\t\t\tDateUtil dtUtil = new DateUtil();\n\t\t\t\t\tdtValidThro = dtUtil.returnDate(\"9999-12-31\", \"yyyy-MM-dd\");\n\t\t\t\t\tString sDate = dtUtil.parseTime(dtValidThro, \"yyyy-MM-dd\");\n\t\t\t\t\tdtValidThro = dtUtil.returnDate(sDate, \"yyyy-MM-dd\");\n\t\t\t\t\tTimestamp tStart = new Timestamp(dtValidThro.getTime());\n\t\t\t\t\tString formattedDateTime = tStart.toString();\n\t\t\t\t\tvalue = formattedDateTime;\n\t\t// Start:: Bug 19567995 - WHEN AN USER FROM CUA IS DISABLED AND ENABLED AGAIN, THE USER IS STILL DISABLED\n\t\t\t\t\tString lockStatus = getUserLockStatus(accountId);\n\t\t\t\t\t\n\t\t\t\t\tif(lockStatus.equalsIgnoreCase(_configuration.getdisableLockStatus()));\n\t\t\t\t\t{\n\t\t \t\tmodifyLockUnlockUser(accountId, false);\n\t\t \t}\n\t\t// End:: Bug 19567995 - WHEN AN USER FROM CUA IS DISABLED AND ENABLED AGAIN, THE USER IS STILL DISABLED\n\t\t\t\t} catch (ConnectorException eException) {\n\t\t\t\t\tthrow ConnectorException.wrap(eException);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDate dtValidThro = new Date();\n\t\t\t\tDateUtil dtUtil = new DateUtil();\n\t\t\t\tlong mymillidate = dtValidThro.getTime();\n\t\t\t\tmymillidate = mymillidate - 24 * 60 * 60 * 1000;\n\t\t\t\tdtValidThro = new Date(mymillidate);\n\t\t\t\tString sDate = dtUtil.parseTime(dtValidThro, \"yyyy-MM-dd\");\n\t\t\t\tdtValidThro = dtUtil.returnDate(sDate, \"yyyy-MM-dd\");\n\t\t\t\tvalue = dtValidThro;\n\n\t\t\t}\n\t\t\tFunction function = new Function(\"BAPI_USER_CHANGE\", accountId,\n\t\t\t\t\t_connection, _configuration.getConnectorMessages(),\n\t\t\t\t\t_configuration.getEnableCUA(), _configuration\n\t\t\t\t\t\t\t.getRetryWaitTime());\n\t\t\tfunction.setImportValue(\"LOGONDATA\", \"GLTGB\", value, true);\n\t\t\tfunction.executeWithRetry(_configuration.getMaxBAPIRetries());\n\t\t\tfunction.jcoErrorCheck();\n\t\t} catch (JCoException ex) {\n\t\t\tthrow new ConnectorException(ex);\n\t\t}\n\t\tcatch (ConnectorException ex) {\n\t\t\tthrow new ConnectorException(ex);\n\t\t}\n\t\tlog.info(\"RETURN\");\n\t}", "title": "" }, { "docid": "472c94459c672adc4b32f1147c2d37f3", "score": "0.5917146", "text": "@Override\n\tpublic User deactivate() {\n\t\toutE(HAS_GROUP).removeAll();\n\t\tdisable();\n\t\treturn this;\n\t}", "title": "" }, { "docid": "28b56830b41a45d762c581c863bf8b71", "score": "0.59167653", "text": "private void signoffUser(UserSession usersession) throws Exception {\n\t\tInitialContext ic = new InitialContext();\n\t\tSignonUserHome home =\n\t\t\t(SignonUserHome)ic.lookup(SignonUserHome.JNDI_NAME);\n\t\tSignonUser su = home.create();\n\t\tsu.signOffUser(usersession);\n\n\t}", "title": "" }, { "docid": "aff8865e97bbb3b4aae4a92ac8e67b81", "score": "0.5912151", "text": "@AfterEach\n\tvoid teardown() {\n\t\tthis.testUser = null;\n\t}", "title": "" }, { "docid": "16ec2a4eb498bd5e431c2468a2e23c56", "score": "0.5910494", "text": "public void disableUser() {\n System.out.println(\"disableUser\");\n if (user != null && user.getId() > 0) {\n try {\n userBean.archive(user);\n disabledUsers.add(user);\n activeUsers.remove(user);\n } catch (Exception ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n }", "title": "" }, { "docid": "17f62c88c964289d70d9701b95b5ac2c", "score": "0.5902686", "text": "@Override\r\n\tpublic int deletMember(String userid) {\n\t\treturn dao.deletMember(userid);\r\n\t}", "title": "" }, { "docid": "ebcd0a09946a8918dccb45ce82b1acf0", "score": "0.5896719", "text": "public void deleteuser() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "a89b252160cb62fac595652bdb857d87", "score": "0.5865576", "text": "public boolean signOut(User user) throws SQLException, RemoteException;", "title": "" }, { "docid": "b2be6d5c3c93b836001f755aea0ec8c7", "score": "0.58629125", "text": "@Test\n public void testVadDeactivate() throws Exception {\n ActivationTimeoutTest.TestEnv env =\n new ActivationTimeoutTest.TestEnv(testConfig());\n\n env.context.setActive(true);\n assertEquals(SpeechContext.Event.ACTIVATE, env.event);\n // reset the event so we can verify nothing gets sent until the\n // minimum activation time has passed\n env.event = null;\n\n env.context.setSpeech(true);\n env.process();\n env.process();\n\n env.context.setSpeech(false);\n assertNull(env.event);\n\n env.process();\n assertEquals(SpeechContext.Event.DEACTIVATE, env.event);\n assertFalse(env.context.isActive());\n }", "title": "" }, { "docid": "7194cd193bc95dfae8148663e0b391de", "score": "0.5855397", "text": "@Test\n public void testDeleteUser_User() throws Exception {\n user = db.createUser(user);\n int id = user.getUserid();\n db.deleteUser(user);\n User user2 = db.getUser(id);\n assertNull(user2);\n }", "title": "" }, { "docid": "2858a78de09b305bf1c974756f3c1fc3", "score": "0.58466303", "text": "public void demoteUser(){\n try(Connection connection = Database.getMySqlConnection()){\n PreparedStatement preparedStatement = connection.prepareStatement(((isAdministrator()) ? \"DELETE FROM administrators WHERE username = ?;\" : \"DELETE FROM moderators WHERE username = ?;\"));\n preparedStatement.setString(1, username);\n preparedStatement.executeUpdate();\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "0c8413b50809623f14150977c3cb01df", "score": "0.5829706", "text": "public void setDeactivate(Administrator admin){\n activateLicense = false;\n }", "title": "" }, { "docid": "4c9f376330a9bebd2914b4f8f379bb1c", "score": "0.58245045", "text": "public String deleteCloudUser() {\n\t\tLOG.debug(\"Entering deleteCloudUser\");\n\t\tStringBuffer responseBuffer = new StringBuffer();\n\n\t\tString oktaId = \"\";\n\t\t// Check to see if okta ID already exists. If not attempt to look up the user\n\t\tif (this.oktaId != null && !this.oktaId.isEmpty()) {\n\t\t\toktaId = this.oktaId;\n\t\t} else if (this.login != null && !this.login.isEmpty()) {\n\t\t\ttry {\n\t\t\t\toktaId = getOktaId();\n\t\t\t} catch (IOException | URISyntaxException e) {\n\t\t\t\tLOG.error(\"Failed to obtain oktaId\");\n\t\t\t\tresponseBuffer.append(\"ERROR: \").append(e.getMessage());\n\t\t\t}\n\t\t}\n\t\t// Check to see the previous check did not fail\n\t\tif (oktaId == null || oktaId.isEmpty()) {\n\t\t\tLOG.error(\"deleteCloudUser: OktaId and login missing or OktaId lookup failed\");\n\t\t\tresponseBuffer.append(\"DELETE ERROR: OktaId and login missing or OktaId lookup failed\");\n\t\t\treturn responseBuffer.toString();\n\t\t}\n\n\t\t// Attempt to deactivate the user\n\t\tRestResponse response = null;\n\t\ttry {\n\t\t\tresponseBuffer.append(\"DEACTIVATE \");\n\t\t\tresponse = api.postToOkta(\n\t\t\t\t\tnew URIBuilder(formatUrl(apiURL + ConstantUtils.USER,\n\t\t\t\t\t\t\tCollections.singletonMap(ConstantUtils.OKTA_ID, oktaId))\n\t\t\t\t\t\t\t+ \"/lifecycle/deactivate\"), null, apiKey);\n\t\t\tif (response != null) {\n\t\t\t\tif (isSuccessCode(response.getResponseCode())) {\n\t\t\t\t\tresponseBuffer.append(\"SUCCESS: \").append(oktaId);\n\t\t\t\t} else {\n\t\t\t\t\tresponseBuffer.append(\"ERROR: \").append(response.getResponseMessage());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresponseBuffer.append(\"ERROR: Deactivate response null\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"deleteCloudUser: Exception while deactivating the user: \" + e.getMessage());\n\t\t\tresponseBuffer.append(\"ERROR: \").append(e.getMessage());\n\t\t}\n\n\t\t// Attempt to delete the user\n\t\ttry {\n\t\t\tresponseBuffer.append(\"; DELETE \");\n\t\t\tresponse = api.deleteToOkta(\n\t\t\t\t\tnew URIBuilder(formatUrl(apiURL + ConstantUtils.USER,\n\t\t\t\t\t\t\tCollections.singletonMap(ConstantUtils.OKTA_ID, oktaId))), apiKey);\n\t\t\tif (response != null) {\n\t\t\t\tif (isSuccessCode(response.getResponseCode())) {\n\t\t\t\t\tresponseBuffer.append(\"SUCCESS: \").append(oktaId);\n\t\t\t\t} else {\n\t\t\t\t\tresponseBuffer.append(\"ERROR: \").append(response.getResponseMessage());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresponseBuffer.append(\"ERROR: Delete response null\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"deleteCloudUser: Exception while deleting the user: \" + e.getMessage());\n\t\t\tresponseBuffer.append(\"ERROR: \").append(e.getMessage());\n\t\t}\n\t\tLOG.debug(\"Exiting deleteCloudUser\");\n\t\treturn responseBuffer.toString();\n\t}", "title": "" }, { "docid": "f4f8b7911e7ff8f1a8efc50c9ee8a940", "score": "0.58218104", "text": "public void testDeleteUser() {\n }", "title": "" }, { "docid": "1386a8d069f8449fc9d55c3fa10d3da4", "score": "0.5821446", "text": "public void deactivate(){\r\n\r\n\t\tisActive = false;\r\n\r\n\t}", "title": "" }, { "docid": "aa2eaba15fc499e0abbadf780a0ec0c3", "score": "0.58042115", "text": "@Test\n public void testRemoveUserDNE() throws ConnectionFailureException {\n UserDirectory ud = create();\n assertFalse(ud.removeUser(username()));\n }", "title": "" }, { "docid": "ad6bf0e607d7f98c7e177e8514b09efa", "score": "0.5800388", "text": "boolean cancelTestSession(long testSessionId, User user);", "title": "" }, { "docid": "690ba701e433c044f7035f997ee56afd", "score": "0.5790254", "text": "@Override\n public void unLicenseUser(final Long userKey, final String licenseKey) {\n this.logger.log(\"unlicense user for an account cannot be set on stage or live.\");\n }", "title": "" }, { "docid": "180c0a4e562a2a5ef99bb9f9c4c79664", "score": "0.5787145", "text": "@Override\r\n\tpublic void delUser() {\n\r\n\t}", "title": "" }, { "docid": "e00ed36e32065ae1439a13d5facb881f", "score": "0.57813615", "text": "public boolean deleteUser(int userid , String password , String ename);", "title": "" }, { "docid": "303786ef7a6211c53140071251cd7bb7", "score": "0.5759189", "text": "@Override\n\tpublic synchronized void deactivate() {\n\t\tthis.isActivated.set(false);\n\t}", "title": "" }, { "docid": "e1821a1822e1ed7bfa759b3502d95571", "score": "0.5750498", "text": "public void kickoutUser(User u){\n\t}", "title": "" }, { "docid": "2d0808310fb1509388cf321e507c8b34", "score": "0.57465214", "text": "private void setActiveUserTest(boolean userTest) {\n // set the activeUserTest\n activeUserTest = userTest;\n }", "title": "" }, { "docid": "f4e9b6630dc379933455d71586a82f5e", "score": "0.5744982", "text": "boolean delUser(String user_id);", "title": "" }, { "docid": "6aa8d08c2317f9b84564f593fed487a7", "score": "0.5732378", "text": "public void userLeave() throws RemoteException {\n whiteboard.userLeave(this.userid);\n if(sessions != null){\n if(userid == 0) {\n // if user is the administrator\n sessions.closeSession(sessionID);\n }\n else{\n sessions.leaveSession(sessionID);\n }\n }\n // set the flag to stop the listener thread.\n isUserLeave = true;\n }", "title": "" }, { "docid": "64b7827c2536144131ac51d43e8e7695", "score": "0.570721", "text": "public final void deactivate() {\n deactivate(true);\n }", "title": "" }, { "docid": "137937bb8e24374c00a18a8ac9b4bf0b", "score": "0.5687917", "text": "@Then(\"^he System shows User account of demowebshop$\")\r\n\tpublic void he_System_shows_User_account_of_demowebshop() throws Throwable {\n\t driver.quit();\r\n\t}", "title": "" }, { "docid": "40f62d5ad0c39b6fdcc2790b7beeef35", "score": "0.5683436", "text": "public void logoff() throws DBMUserManagementException {\n try {\n m_MyDBMSession.cmd(\"exit\");\n m_IsLoggedOn = false;\n m_OpenSessions.remove(m_MyDBMSession);\n }\n catch( Exception e ) { \n throw new DBMUserManagementException( \"logoff \" + e.getClass().getName(), m_Name, e.getMessage());\n }\n }", "title": "" }, { "docid": "69daa32d4a8db9eda6c5dd2775309959", "score": "0.56826687", "text": "public void dropUserAndDatabase(String adminUserName, String adminPassword, StringSet invalidateKeys)\n throws ManifoldCFException;", "title": "" }, { "docid": "61867a25db02d2e32c7abc54ab0f1231", "score": "0.5676985", "text": "Usuario_baneadoResource unbanUser(String user);", "title": "" }, { "docid": "0676db2eb6869201b3dc2da073fe6a55", "score": "0.5668789", "text": "public void Deactivate() {}", "title": "" }, { "docid": "622d8502f7cb7de74c1f023a1c0830ac", "score": "0.56595945", "text": "@Test\n public void testRemoveUser() throws Exception {\n testAddUserToSession();\n\n // assert that the user is there\n assertEquals(1, controller.getSession()\n .getActiveUsers()\n .size());\n\n // get the user name\n Map<String, User> users = controller.getSession()\n .getActiveUsers();\n String[] names = users.keySet()\n .toArray(new String[users.size()]);\n\n assertEquals(1, names.length);\n String username = URLEncoder.encode(names[0], \"utf-8\");\n\n // remove the user now\n mockMvc.perform(delete(\"/sessions/users/\" + username))\n .andExpect(status().isOk());\n\n assertEquals(0, controller.getSession()\n .getActiveUsers()\n .size());\n }", "title": "" }, { "docid": "ece68c46e0838f1432c1375c7493809d", "score": "0.5657524", "text": "@Test( groups = \"Smoke Test\" , \n\t\t\tenabled = true , \n\t\t\tpriority = 3)\n\tpublic void deletetAStudent() {\n\t\tlogin = new Login(driver);\n\t\tstudent = new StudentActions(driver);\n\t\tassertpage = new Assertion(driver);\n\t\t\n\t\t//Login using existing username and password from excel sheet\n\t\tlogin.enter_usernameAndPassword();\n\t\t \n\t\t//Delete a student from 'edit a student test case'\n\t\tstudent.deletAStudent();\n\t\tAssert.assertEquals(assertpage.assert_successAlert(), AlertUtilites.ALERT_SUCCESS_DELETE_STUDENT);\t\t\n\t}", "title": "" }, { "docid": "b5907ced930a6e44ca2d88af68960a91", "score": "0.56541574", "text": "@WebMethod\n public boolean adminLogoff(String userName, boolean group) {\n User user = resolveUser(userName, group);\n\n if(group) {\n synchronized (userListA) {\n if (user != null) {\n user.isAdmin = false;\n return true;\n } else {\n return false;\n }\n }\n } else {\n synchronized (userListB) {\n if (user != null) {\n user.isAdmin = false;\n return true;\n } else {\n return false;\n }\n }\n }\n }", "title": "" }, { "docid": "4859e29a545f127ddd8056a74db2212a", "score": "0.5647064", "text": "private void deactivate(Invoker obj) {\n\t\texecuteMethodsWithAnnotation(obj, Deactivate.class);\n\t}", "title": "" }, { "docid": "164aae1f06e8442d0082119f268684ac", "score": "0.5646313", "text": "public void kickoutUser(User u){\n\t\t\t\t}", "title": "" }, { "docid": "7cd0521ce57d5f2925a8869c8a34adf4", "score": "0.56439686", "text": "@Test\n\tpublic void afterUserHaveUsernameTakenByUserBeforeButThatUserDisconnectedThatUsernameIsOk() throws Exception{\n\t\tint port = getter.getFreePortNumber();\n\t\tFakeUserRunner user1 = new FakeUserRunner(port, new Username(\"User\"), new URL(\"http://127.0.0.1:\"+port));\n\t\t port = getter.getFreePortNumber();\n\t\tFakeUserRunner user2 = new FakeUserRunner(port, new Username(\"User\"), new URL(\"http://127.0.0.1:\"+port));\n\t\t\n\t\tuser1.connectTo(serverUrl);\n\t\tuser1.sendIntroductoryRequest();\n\t\tuser1.assertRecievedUsernameOkResponse();\n\t\tuser1.stop();\n\t\tThread.sleep(200);\n\t\t\n\t\tuser2.connectTo(serverUrl);\n\t\tuser2.sendIntroductoryRequest();\n\t\tuser2.assertRecievedUsernameOkResponse();\t\t\n\t}", "title": "" }, { "docid": "e5be6cd870bf3393491cf0bc60d2f940", "score": "0.56414", "text": "@Override\n\tpublic boolean deactivateEmployee(int empID) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d67ad178182222b5f4b3ad1533a51a04", "score": "0.5640617", "text": "private void unlockSystemUser(TimingsTraceAndSlog t) {\n Slogf.i(TAG, \"Unlocking system user\");\n t.traceBegin(\"unlock-system-user\");\n try {\n // This is for force changing state into RUNNING_LOCKED. Otherwise unlock does not\n // update the state and USER_SYSTEM unlock happens twice.\n t.traceBegin(\"am.startUser\");\n boolean started = mAms.startUserInBackgroundWithListener(UserHandle.USER_SYSTEM,\n /* listener= */ null);\n t.traceEnd();\n if (!started) {\n Slogf.w(TAG, \"could not restart system user in background; trying unlock instead\");\n t.traceBegin(\"am.unlockUser\");\n boolean unlocked = mAms.unlockUser(UserHandle.USER_SYSTEM, /* token= */ null,\n /* secret= */ null, /* listener= */ null);\n t.traceEnd();\n if (!unlocked) {\n Slogf.w(TAG, \"could not unlock system user either\");\n return;\n }\n }\n } finally {\n t.traceEnd();\n }\n }", "title": "" }, { "docid": "2fea59d9721c7e34732fed7d858592a1", "score": "0.563837", "text": "public Behaviour deactivate();", "title": "" }, { "docid": "e19188e94bcf1c49018302bcfc61a276", "score": "0.56272304", "text": "public void invoke() {\n removeUser(username);\n }", "title": "" }, { "docid": "6d667d7c26d537e1a98a4bed6ce49d39", "score": "0.5621865", "text": "private void revokeAdmin(){\n\n if(user.getText().toString().isEmpty()){\n Toast.makeText(getApplicationContext(), \"Please enter a valid user email\", Toast.LENGTH_SHORT).show();\n }\n else {\n revokeAdminStatus(user.getText().toString());\n }\n }", "title": "" }, { "docid": "f523759bfacbcbc7a333216b783bbc52", "score": "0.561783", "text": "boolean deactivateCalendar(String calendarId, String userId)\n\t\t\tthrows QCalendarException;", "title": "" }, { "docid": "763f464e2ca7820621852bc8b284d0b6", "score": "0.56101674", "text": "@Override\n public boolean disable(User user) {\n return false;\n }", "title": "" }, { "docid": "200d24f03747ab65155790f8d29804ae", "score": "0.5601644", "text": "@Then(\"^user logs out\\\\.$\")\n public void user_logs_out() throws Throwable {\n }", "title": "" }, { "docid": "d61cd153d51e941633ae8fea244e38ab", "score": "0.5598059", "text": "@Test\n public void testDeleteUser_int() throws Exception {\n user = db.createUser(user);\n int id = user.getUserid();\n db.deleteUser(id);\n User user2 = db.getUser(id);\n assertNull(user2);\n }", "title": "" }, { "docid": "64ae85f98a3b151a0141ed7cca88a4eb", "score": "0.5594031", "text": "void unblockAccount(Integer accountId);", "title": "" }, { "docid": "9d4a3ec015af7bd0ddb14d173fb6a30a", "score": "0.5591538", "text": "public void deleteUser(User user);", "title": "" }, { "docid": "0ea9de3d5b1651641914d723e6b15990", "score": "0.55861074", "text": "int resetUserPassword(UserEntity user) throws Exception;", "title": "" }, { "docid": "14f2237e9b2c06036d47e6d5faf63e29", "score": "0.557656", "text": "@DisabledTest\n void should_request_logout() throws Exception {\n }", "title": "" }, { "docid": "328fc70529b4e43a826cf7eeff575e47", "score": "0.5575531", "text": "@Test(priority=5)\npublic void unassignusertest() throws Exception{\n\thp.tokendisablemethodh();\n\t\n\tactual=prop.getProperty(\"enabletext\");\n\texpected=tp.tokenenablemethod();\n\t\n\tassertEquals(actual, expected);\n\t\n}", "title": "" }, { "docid": "90cf79cb9ace5685c9d88bf3a2e90ee4", "score": "0.55729157", "text": "public abstract void resetUserState(int userId);", "title": "" }, { "docid": "66ddfbdcb775ccc9615fa28db7ad9db3", "score": "0.55717677", "text": "public final DisableUserResponse disableUser(\n\t\t\tFunction<DisableUserRequest.Builder, ObjectBuilder<DisableUserRequest>> fn) throws IOException {\n\t\treturn disableUser(fn.apply(new DisableUserRequest.Builder()).build());\n\t}", "title": "" }, { "docid": "212eebf80519d6294a3419f3cc69f3da", "score": "0.5571298", "text": "public void deleteUser() {\n int trans_estate = KO;\n try {\n dOut.writeUTF(DELETE_ACCOUNT);\n\n trans_estate = dIn.readInt();\n controller.networkDeleteAccountResult(trans_estate);\n if (trans_estate == OK) {\n dOut.writeUTF(GO_BACK);\n }\n } catch (IOException e) {\n controller.networkDeleteAccountResult(KO);\n }\n }", "title": "" }, { "docid": "93ea4d783db0da90cfb87b01e8885031", "score": "0.5571232", "text": "public void testRemoveUser2() throws Exception {\r\n assertTrue(\"The user should be removed.\", manager.removeUser(\"user1\"));\r\n // verify remvoe from internal map\r\n assertEquals(\"Size of internal map should be decreased.\", 1, manager.getNames().size());\r\n\r\n // verify remove from userPersistence\r\n assertEquals(\"Size of user persistence should be descreased.\", 1, userPersistence\r\n .getUsers().size());\r\n\r\n // verify remove from authPersistence\r\n assertEquals(\"Size of authPersistence should be decreased.\", 1, authPersistence\r\n .getPrincipals().size());\r\n }", "title": "" }, { "docid": "4e366173f67cb8cffe76ef0ec49a5fba", "score": "0.55661887", "text": "@Test\n\tpublic void deleteUser() {\n\t\tassertNotNullUserProperties(secondUser);\n\t\tAssert.assertTrue(\"User can not be added! User : \" + secondUser, getUserService().addUser(secondUser));\n\t\tAssert.assertTrue(\"User can not be deleted! User : \" + secondUser, getUserService().deleteUser(secondUser));\n\t}", "title": "" }, { "docid": "0b860b7c11f76a6f55e89ad13e936abf", "score": "0.5565268", "text": "@Test\r\n\tpublic void successToDeleteIsInSession() {\r\n\t\tboolean deleted = false;\r\n\t\tString token = addUserToSession(USERNAME_TO_DELETE_2);\r\n\r\n\t\tRemoveUserIntegrator service = new RemoveUserIntegrator(root, USERNAME_TO_DELETE_2);\r\n\t\tservice.execute();\r\n\r\n\t\ttry { \r\n\t\t\tgetUserFromSession(token); \r\n\t\t} catch (LoginBubbleDocsException le) {\r\n\t\t\tdeleted = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(\"Removed user but not removed from session\", deleted);\r\n\t}", "title": "" }, { "docid": "8cc4728098502b56182208b9dc28c7dd", "score": "0.5559346", "text": "public void Deactivate();", "title": "" }, { "docid": "20e9a851016a287bd6a3bd7d24fdf15f", "score": "0.554315", "text": "void deleteUser(String name);", "title": "" }, { "docid": "f68e5cdf6c5e9db21d8f0b25d9784b0a", "score": "0.5536589", "text": "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(HealthcheckCheckHealth.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "9833e1ed56c5975a98055be90c7ff722", "score": "0.5533777", "text": "public boolean deleteAccount(User user);", "title": "" }, { "docid": "5af561004e4862f6c06d70117b6fdd3a", "score": "0.5522578", "text": "@Test\n public void deleteAndGetUser() {\n mDataSource.insertOrUpdateUser(USER);\n\n // When we are deleting all users\n mDataSource.deleteAllUsers();\n\n // The user is no longer in the data source\n User dbUser = mDataSource.getUser();\n assertNull(dbUser);\n }", "title": "" }, { "docid": "5fb42aa3ef1fa7afd805f64268a89463", "score": "0.5522251", "text": "void deactivateOldEntry(int userId, int questionId) throws DaoException;", "title": "" }, { "docid": "30cf01364ab6a4daa862d70b7a0bbe51", "score": "0.5512806", "text": "public void deleteUser(long id) throws Exception;", "title": "" }, { "docid": "1e5e2dd6ee9591a7d67d6d6f75537269", "score": "0.5506588", "text": "public final void deactivate() {\n this.deactivate(null);\n }", "title": "" }, { "docid": "8cbf1cc623a4b13e7f9c01d58a109f27", "score": "0.5499658", "text": "@Override\r\n\tpublic void deleteUser(int Userid) {\n\t\t\r\n\t}", "title": "" } ]
68ded75a05808df9facfb1c855cc9418
static HashMap> graph=new HashMap();
[ { "docid": "f4e5c988be8cdeafe26b506ad84b2511", "score": "0.0", "text": "public static void addEdge(int u, int v ) {\r\n\t\t\r\n\t\tif( graph.containsKey(u)){\r\n\t\t\tLinkedList<Integer> ll = graph.get(u);\r\n\t\t\tll.add(v);\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tLinkedList<Integer> ll = new LinkedList<>();\r\n\t\t\tll.add(v);\r\n\t\t\tgraph.put( u, ll );\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "bd28fb02228a5420ec2bd2601df53fa4", "score": "0.7258041", "text": "public Graph() \n {\n vertices = new HashMap<String, Vertex>();\n }", "title": "" }, { "docid": "3f76c15578a745b4211792275f3d7e92", "score": "0.7190735", "text": "public Graph(){\n nodeListMap = new HashMap<>();\n }", "title": "" }, { "docid": "1cbda651c502275bd363926b57aadc64", "score": "0.694156", "text": "public Graph_DS()\n {\n this.nodes_of_graph = new HashMap<Integer, node_data>();\n this.edges_number=0;\n this.MC= 0;\n }", "title": "" }, { "docid": "9098d41abb30b832d67350bbfbd6a6af", "score": "0.6931366", "text": "public Graph()\r\n {\r\n //initiate the totalDistance to 0\r\n totalDistance=0;\r\n //instantiate the hash map \r\n vertexMap = new HashMap<E,Vertex<E>>( );\r\n //instantiate the ArrayList stores Coffeeshop\r\n coffeeshopList=new ArrayList<CoffeeShop<E>>();\r\n //instantiate the ArrayList stores warehouse\r\n WarehouseList = new ArrayList<Warehouse<E>>();\r\n\r\n }", "title": "" }, { "docid": "fb1e0d86671fcf9de7799b02bf1a79c0", "score": "0.683335", "text": "private void initializeGraph() {\r\n map = new HashMap<String, EdgeSubmodular>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }", "title": "" }, { "docid": "b705c2653f2136e3619d83bdb195418a", "score": "0.668198", "text": "public Graph() {\n\t\tv_table = new Hashtable<String, Node>();\n\t\tsize = 0;\n\t}", "title": "" }, { "docid": "b89f025f57748e3ee12ea20ba1e881a8", "score": "0.66494524", "text": "public SimpleGraph() {\n parents = new HashMap<N,HashSet<N>>();\n children = new HashMap<N,HashSet<N>>();\n }", "title": "" }, { "docid": "3d95044694536fb804932cedffa853a3", "score": "0.6558734", "text": "public Graph() {\n\t\tnodes=new HashMap<TN,Node<TN,TE>>();\n//\t\tcheckRep();\n\t\tEC=null;\n\t}", "title": "" }, { "docid": "12dabe8ca973091e278be43ca756d59e", "score": "0.655478", "text": "public MapGraph() {\n \tthis.neighbors = getEmptyMap();\n \tthis.edges = 0;\n \tthis.m = 0;\n }", "title": "" }, { "docid": "c09dd4872a0922c8b89ced172aadd832", "score": "0.650835", "text": "public static void main(String[] args) {\n\t\tMap<GraphNode, List<GraphNode>> graph = new HashMap<GraphNode, List<GraphNode>>();\n\t\tGraphNode node2 = new GraphNode(2);\n\t\tGraphNode node3 = new GraphNode(3);\n\t\tGraphNode node4 = new GraphNode(4);\n\t\tGraphNode node5 = new GraphNode(5);\n\t\tGraphNode node6 = new GraphNode(6);\n\t\t\n\t\tList<GraphNode> neis = null;\n\t\tneis = new ArrayList<>();\n\t\tneis.add(node3);\n\t\tneis.add(node4);\n\t\tneis.add(node5);\n\t\tneis.add(node6);\n//\t\tgraph.put(node2, neis);\n\t\tnode2.neighbors = neis;\n\t\t\n\t\tneis = new ArrayList<>();\n\t\tneis.add(node5);\n\t\tneis.add(node6);\n//\t\tgraph.put(node3, neis);\n\t\tnode3.neighbors = neis;\n\t\t\n\t\tneis = new ArrayList<>();\n\t\tneis.add(node5);\n\t\tneis.add(node6);\n//\t\tgraph.put(node4, neis);\n\t\tnode4.neighbors = neis;\n\n\t\tneis = new ArrayList<>();\n\t\tneis.add(node6);\n//\t\tgraph.put(node5, neis);\n\t\tnode5.neighbors = neis;\n\t\t\n\t\tneis = new ArrayList<>();\n//\t\tgraph.put(node6, neis);\n\t\tnode6.neighbors = neis;\n\n\t\t\n//\t\tneis = new ArrayList<>();\n//\t\tneis.add(node2);\n//\t\tneis.add(node3);\n//\t\tneis.add(node4);\n//\t\tneis.add(node5);\n//\t\tgraph.put(node6, neis);\n\t\t\n\t\tSystem.out.println(\"graph:\"+graph);\n\t\tSystem.out.println(\"node2:\"+node2.toNeis());\n\t\tSystem.out.println(\"node3:\"+node3.toNeis());\n\t\tSystem.out.println(\"node4:\"+node4.toNeis());\n\t\tSystem.out.println(\"node5:\"+node5.toNeis());\n\t\tSystem.out.println(\"node6:\"+node6.toNeis());\n\n//\t\tList<List<GraphNode>> allPaths = findAllPaths(graph, node2, node2);\n//\t\tList<List<GraphNode>> allPaths = findAllPaths(graph, node2, node5);\n//\t\tList<List<GraphNode>> allPaths = findAllPaths(graph, node2, node6);\n\t\tList<List<GraphNode>> allPaths = findAllPaths(graph, node3, node6);\n//\t\tList<List<GraphNode>> allPaths = findAllPaths(graph, node2, node5);\n\t\tSystem.out.println(\"allPaths:\"+allPaths);\n//\t\tprint(allPaths);\n\t\t\n\t}", "title": "" }, { "docid": "36afcc13b8453fbb3ecbe02b18d80647", "score": "0.6423489", "text": "public Graph_DS(graph graph_const)\n {\n this.nodes_of_graph = new HashMap<Integer, node_data>();\n this.edges_number=0;\n this.MC= graph_const.getMC()-graph_const.nodeSize()-graph_const.edgeSize();\n }", "title": "" }, { "docid": "a38f16002796258e890b5c06d96c97f4", "score": "0.64210826", "text": "public DirectedAcyclicGraph(){\r\n\t\tadjList = new HashMap<String, LinkedList<String>>();\r\n\t}", "title": "" }, { "docid": "5d7cdcb2b0c64b88af14d5b0f685510a", "score": "0.63886297", "text": "private SmallGraph() {\r\n\r\n\t}", "title": "" }, { "docid": "b809c686f4847be0fc77f9f0a5270248", "score": "0.63706535", "text": "public void init(HashMap<Point,Vertex> graph) {\n HashMap<Point, Vertex> BFSGraph = new HashMap<>(graph);\n Queue<Point> queue = new LinkedList<>();\n\n Vertex actual = BFSGraph.get(start);\n actual.setVisited(true);\n BFSGraph.put(start, actual);\n queue.add(start);\n while (!queue.isEmpty()) {\n if(!BFSGraph.containsKey(queue.element()))\n {\n queue.remove();\n }\n else {\n actual = BFSGraph.get(queue.element());\n queue.remove();\n if (actual.getAdjacencyList().size() > 0) {\n for (Vertex neighbour : actual.getAdjacencyList()) {\n if(BFSGraph.containsKey(neighbour.getPosition())) {\n neighbour = BFSGraph.get(neighbour.getPosition());\n if (!neighbour.getVisited()) {\n neighbour.setVisited(true);\n neighbour.setPrevious(actual);\n queue.add(neighbour.getPosition());\n BFSGraph.put(neighbour.getPosition(), neighbour);\n\n }\n }\n }\n }\n }\n }\n this.BFSGraph = BFSGraph;\n }", "title": "" }, { "docid": "742ac4a535ca904602a1bca307d33bd7", "score": "0.63505244", "text": "myGraph (){\n this.adj = new LinkedList<>();\n this.Edges = new ArrayList<>();\n this.Sets = new ArrayList<>();\n this.redNodes = new LinkedList<>();\n this.blueNodes = new LinkedList<>();\n }", "title": "" }, { "docid": "6818598fd4dbd709acb58417358d2730", "score": "0.6316275", "text": "public MyHashMap() {\n map = new LinkedList[SIZE];\n }", "title": "" }, { "docid": "b4efc142466ef394bff49ce06be149e4", "score": "0.6275593", "text": "public static void graph(int n){\n\n adj = new HashMap<>();\n for(int i=0;i<n;i++){\n List<Edge> obj = new ArrayList<>();\n adj.put(i,obj);\n }\n }", "title": "" }, { "docid": "2dbd8e701707a5ca74e07201f2d2c1e1", "score": "0.6214763", "text": "private Graph<String,String> g() {\n return new Graph<String,String>();\n }", "title": "" }, { "docid": "36f1aa1b8e8f1f4016e75ce25b73f094", "score": "0.6192332", "text": "public Graph (List<Edge> edges){\r\n graph = new HashMap<Character, Vertex>(edges.size());\r\n originalEdges=edges;\r\n //Perform a single pass to find every Vertex possible\r\n for(Edge e: edges){\r\n if(!graph.containsKey(e.start)) graph.put(e.start,new Vertex(e.start,e.isAutobahn));\r\n if(!graph.containsKey(e.end)) graph.put(e.end,new Vertex (e.end,e.isAutobahn));\r\n }\r\n //Perform a second pass to set neighboring vertices\r\n for (Edge e : edges){\r\n graph.get(e.start).neighbours.put(graph.get(e.end),e.distance);\r\n graph.get(e.end).neighbours.put(graph.get(e.start),e.distance);\r\n }\r\n }", "title": "" }, { "docid": "c2ec0a3f293574ae0f23e88c51437b64", "score": "0.6156412", "text": "public Graph() {\n // Choose any implementation of sets you please, but you need to\n // choose one.\n nodes = new LinkedHashMap<A, Node<A>>();\n }", "title": "" }, { "docid": "de6489c0152b0960642d35938fd6c8a0", "score": "0.6144853", "text": "public TwoSumIII_DataStructureDesign() {\n hash = new HashMap<>();\n }", "title": "" }, { "docid": "6695226dbf2d24100e5ea7213a289ea2", "score": "0.6138013", "text": "public DirectedGraph(HashMap<V, ArrayList<V>> hashmap) {\n\t\tif(hashmap == null) throw new IllegalArgumentException();\n\t\tthis.hashmap = hashmap;\n\t}", "title": "" }, { "docid": "e5d593a01151f0699704358825760b22", "score": "0.6111696", "text": "public Graph() {\r\n verticies = new ArrayList<Vertex<T>>();\r\n edges = new ArrayList<Edge<T>>();\r\n }", "title": "" }, { "docid": "5bb51f41b54a311b187fb7c362110852", "score": "0.6063316", "text": "public interface Graph extends Serializable {\n\n Map<Vertex, ? extends HashSet<Edge>> getAdjacencyList();\n\n Map<Vertex, ? extends HashSet<Edge>> getTransposedAdjacencyList();\n\n void addVertex(Vertex v);\n\n void addEdge(Edge e);\n\n void removeVertex(Vertex v);\n\n void removeEdge(Edge e);\n\n boolean containsVertex(Vertex v);\n\n boolean containsEdge(Edge e);\n}", "title": "" }, { "docid": "742561deb7ae9137371ca5ec68823a09", "score": "0.6035395", "text": "public Graph() {\r\n\t\tthis.destinations = new LinkedList[26];\r\n\t}", "title": "" }, { "docid": "0025350d3ddfaa9cf773f3f0f6b92782", "score": "0.6021086", "text": "public final void initialize() {\n n1 = new Node(\"HHCLR\", \"\", 1);\n n2 = new Node(\"HHR\", \"LC\", 2);\n n3 = new Node(\"HHCR\", \"L\", 3);\n n4 = new Node(\"HR\", \"HCL\", 4);\n n5 = new Node(\"HRCL\", \"H\", 5);\n\n n6 = new Node(\"HHLR\", \"C\", 6);\n n7 = new Node(\"HH\", \"LRC\", 7);\n n8 = new Node(\"CHH\", \"LR\", 8);\n n9 = new Node(\"H\", \"CHLR\", 9);\n n10 = new Node(\"LCH\", \"HR\", 10);\n n11 = new Node(\"C\", \"LHHR\", 11);\n\n n12 = new Node(\"CL\", \"HHR\", 12);\n n13 = new Node(\"\", \"HHCLR\", 13);\n n14 = new Node(\"L\", \"CHHR\", 14);\n\n n15 = new Node(\"LR\", \"CHH\", 15);\n n16 = new Node(\"CLHH\", \"R\", 16);\n\n n17 = new Node(\"CLR\", \"HH\", 17);\n n18 = new Node(\"R\", \"CLHH\", 18);\n\n graph.put(n1, Arrays.asList(new Node[]{n2}));\n graph.put(n2, Arrays.asList(new Node[]{n1, n3, n6}));\n graph.put(n3, Arrays.asList(new Node[]{n2, n4, n7}));\n graph.put(n4, Arrays.asList(new Node[]{n3, n5, n6}));\n graph.put(n5, Arrays.asList(new Node[]{n4, n15}));\n\n graph.put(n6, Arrays.asList(new Node[]{n2, n7, n4, n15}));\n graph.put(n7, Arrays.asList(new Node[]{n6, n8, n3, n16}));\n graph.put(n8, Arrays.asList(new Node[]{n7, n9, n11}));\n graph.put(n9, Arrays.asList(new Node[]{n8, n10}));\n graph.put(n10, Arrays.asList(new Node[]{n9, n11, n14}));\n graph.put(n11, Arrays.asList(new Node[]{n10, n12, n8, n17}));\n\n graph.put(n12, Arrays.asList(new Node[]{n11, n13, n14}));\n graph.put(n13, Arrays.asList(new Node[]{n12}));\n graph.put(n14, Arrays.asList(new Node[]{n12, n10, n17}));\n\n graph.put(n15, Arrays.asList(new Node[]{n6, n5, n17}));\n graph.put(n16, Arrays.asList(new Node[]{n7}));\n\n graph.put(n17, Arrays.asList(new Node[]{n15, n18, n14, n11}));\n graph.put(n18, Arrays.asList(new Node[]{n17}));\n }", "title": "" }, { "docid": "6466a39e6bfcc7262d6fe7aefea76d54", "score": "0.6016353", "text": "GraphObj() {\n _edges = new ArrayList<>();\n _vertices = new ArrayList<>();\n _removeVert = new ArrayList<>();\n _neighborEdges = new ArrayList<ArrayList<Integer>>();\n _maxVert = 0;\n _numEdges = 0;\n }", "title": "" }, { "docid": "9234987fcaeb9354a2cc798468dd7d11", "score": "0.60158885", "text": "public MyHashMap() {\n list = new ArrayList<>();\n }", "title": "" }, { "docid": "43c8899e1ed873bb7293e594c7c9124b", "score": "0.6014084", "text": "public Graph() {\r\n\t\tnodes = new LinkedList<Node>();\r\n\t}", "title": "" }, { "docid": "df2177a71dfb287d0d17659661bb94fb", "score": "0.6000947", "text": "public Solution677() {\n map = new HashMap<String, Integer>();\n }", "title": "" }, { "docid": "fc0e1148f618678365968bae4b4703f6", "score": "0.59811336", "text": "public SocialGraph(HashMap<String, ArrayList<String>> hashmap) {\n\t\tsuper(hashmap);\n\t}", "title": "" }, { "docid": "d08a00c0582fd47b9423473e281d548e", "score": "0.5944176", "text": "public MyHashMap() {\n list = new LinkedList[BASE];\n for (int i = 0; i < BASE; i++) {\n list[i] = new LinkedList<Pair>();\n }\n }", "title": "" }, { "docid": "c82b490f3bdad245b68742fbde56de58", "score": "0.59417665", "text": "public SocialGraph(HashMap<String, ArrayList<String>> hashmap) {\n super(hashmap);\n }", "title": "" }, { "docid": "b4e0fc6909a3d9afe266341624ae5985", "score": "0.59201574", "text": "public MapAdjacentListDirectedGraph() {\n // Inizializza la mappa con la mappa vuota\n this.adjacentLists = new HashMap<GraphNode<L>, Set<GraphEdge<L>>>();\n }", "title": "" }, { "docid": "93a2bf978560c19d1f4784513d0c98ec", "score": "0.59133846", "text": "public Graph() {\r\n init();\r\n }", "title": "" }, { "docid": "eddb96f15141bceeabab358d3e7797fb", "score": "0.5904479", "text": "public KeyValueGraph(){}", "title": "" }, { "docid": "abebec889c74d676dba289d1b0826797", "score": "0.58728796", "text": "void createEdges() {\n \t\n \tfor(int i=0; i<map.keySet().size()*1.3; i++) {\n \t\tgraph.addEdge(new Double(Math.random()), randomNodo(), randomNodo(), EdgeType.DIRECTED);\n \t}\n }", "title": "" }, { "docid": "88a8a1d4259f51eb666610f206e9b49f", "score": "0.5848697", "text": "public GraphSexpVisitor(HashMap<ArrayList<Coord>, ArrayList<GraphType>> graphs) {\n this.graphs = graphs;\n }", "title": "" }, { "docid": "7b88128410ee52dd027bc7aaf1cbb453", "score": "0.5844347", "text": "public interface Graph {\n public final String LOGTO = \"logTo\";\n public final String DATADISPLAYED = \"dataDisplayed\";\n public final String DISPLAY = \"display\";\n public final String MINX = \"minX\";\n public final String MAXX = \"maxX\";\n public final String STEPX = \"stepX\";\n public final String MINY = \"minY\";\n public final String MAXY = \"maxY\";\n public final String GRIDSTEPX = \"gridStepX\";\n public final String GRIDSTEPY = \"gridStepY\";\n public final String XOFFSET = \"xOffset\";\n public final String YOFFSET = \"yOffset\";\n public final String POSITIONDISPLAY = \"positionDisplay\";\n public final String FRAMETITLE = \"frameTitle\";\n public final String HISTOGRAM = \"histogram\";\n public final String ADJUST = \"adjust\";\n public final String KEYSALLOWED = \"keysAllowed\";\n public final String PENCILCOLOUR = \"pencilColour\";\n public final String PANELWIDTH = \"panelWidth\";\n public final String PANELHEIGHT = \"panelHeight\";\n public final String POLLINGPERIOD = \"pollingPeriod\";\n public final String DATASOURCE = \"dataSource\";\n public final String GRAPHPENCILWIDTH = \"graphPencilWidth\";\n}", "title": "" }, { "docid": "3ca8e75601427876f1281586e7ff4fe7", "score": "0.5836339", "text": "public DirectedGraph() {\n\t\tthis(new HashMap<V, ArrayList<V>>());\n\t}", "title": "" }, { "docid": "0e776284ca3278c3c4c2e23a77af3afd", "score": "0.5834287", "text": "public WGraph_Algo(){}", "title": "" }, { "docid": "0e429bd9e3e56cfd8ca80953fdb506fa", "score": "0.58288085", "text": "GraphObj() {\n vertices = new ArrayList<>();\n edges = new ArrayList<>();\n succ = new ArrayList<>();\n pred = new ArrayList<>();\n succ.add(null);\n pred.add(null);\n }", "title": "" }, { "docid": "a246c43c20d24ee256bcde1fa0790999", "score": "0.5828714", "text": "public HashMapDictionary() {\n\t\thashTable = new HashMap<>();\n\t}", "title": "" }, { "docid": "7ac18136f3b7edc874eb87803561079e", "score": "0.5822954", "text": "public void hashTable(){\n for (int i=0; i<size ; i++){\n linkhash[i] = new LinkedList();//construct empty linked list \n\n }\n }", "title": "" }, { "docid": "9ac051e775e84854e82e44c3359bd9d5", "score": "0.58171415", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic static Graph getGraph() {\n\t\treturn graph;\n\t}", "title": "" }, { "docid": "55e908d35516e5df8cc0defb02c78681", "score": "0.5803419", "text": "public Graph_Algo() {\n\t\tthis.algoGraph = new DGraph();\n\t}", "title": "" }, { "docid": "d628bd38578220457d31e7ecfb8a927d", "score": "0.5784861", "text": "private void initTraversalGraph() {\n for(int i = -1 ; i >= (-1*rectangles.size()); i--) {\n HashSet<Integer> neighbours = rectangleNeighbours(i);\n traversalGraph.put(i, neighbours);\n }\n for (Object o : traversalGraph.entrySet()) {\n Map.Entry pair = (Map.Entry) o;\n System.out.println(pair.getKey() + \" = \" + pair.getValue());\n }\n }", "title": "" }, { "docid": "af5e0a3d990114187506406891bd9d42", "score": "0.57841617", "text": "private void createMaps() {\n\t\t//Long beginTime = System.currentTimeMillis();\n\t\tassumeGraphFinished = true;\n\n\t\t// initialize now to avoid the containsKey() checks later\n\t\tfor (NodeType node: getNodes()) \n\t\t\tdistMap.put(node, new HashMap<NodeType,Byte>());\n\n\t\tMap<NodeType,Byte> nodeDist = null; \n\t\tMap<NodeType,Byte> neighbor1Dist = null; \n\t\tMap<NodeType,Byte> neighbor2Dist = null; \n\n\t\tfor (NodeType node: getNodes()) {\n\n\t\t\tboolean distPut = false;\n\t\t\t\n\t\t\t// to minimize the number of gets\n\t\t\tnodeDist = distMap.get(node);\n\n\t\t\tfor (NodeType neighbor1: getNeighbors(node)) {\n\n\t\t\t\t// to minimize the number of gets\n\t\t\t\tneighbor1Dist = distMap.get(neighbor1);\n\n\t\t\t\tnodeDist.put(neighbor1,(byte)1);\n\t\t\t\tneighbor1Dist.put(node,(byte)1);\n\n\t\t\t\tfor (NodeType neighbor2: getNeighbors(node)) {\n\n\t\t\t\t\tif ( neighbor1 == neighbor2 )\n\t\t\t\t\t\tcontinue;\n\t\t\t\n\t\t\t\t\t// to minimize the number of gets\n\t\t\t\t\tneighbor2Dist = distMap.get(neighbor2);\n\n\t\t\t\t\t// only add new dist/prob if it hasn't already been set\n\t\t\t\t\t// if it has been set once, we know that it has been set\n\t\t\t\t\t// with the min possible value.\n\n\t\t\t\t\t// only check one direction because we always set both\n\t\t\t\t\t// at a given time.\n\n\t\t\t\t\tif ( !neighbor1Dist.containsKey(neighbor2) ) {\n\t\t\t\t\t\tneighbor1Dist.put(neighbor2,(byte)2);\n\t\t\t\t\t\tneighbor2Dist.put(neighbor1,(byte)2);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Long totalTime = System.currentTimeMillis() - beginTime;\n\t\t//System.out.println(\"createMap duration: \" + totalTime + \" for size: \" + probMap.size());\n\t}", "title": "" }, { "docid": "bec27472020ad58770d3d0c4b802cef3", "score": "0.5763336", "text": "public HashMap<Integer, HashSet<MyNode>> findCommunities(int numCommunities){\n\n// List<Graph> result = new LinkedList<Graph>();\n\n //compute betweenness of all edges\n //for each node do a bfs\n int count = 0;\n// int innerCount = 0;\n Set<Integer> allNodeKeys = nodes.keySet();\n int size = allNodeKeys.size();\n int totalPermutations = size;\n int significantWork = (int) (totalPermutations/10000);\n LocalDateTime startTime = LocalDateTime.now();\n\n for (Integer start : allNodeKeys) {\n\n //track & display progress\n count++;\n if (count % significantWork == 0) {\n displayProgress(count, totalPermutations, startTime);\n }\n if(count % 100 == 0){\n System.out.println(\"Starting bfs for \" + count + \"th node: from \" + start);\n }\n\n //do work\n HashMap<Integer, ArrayList<MyNode>> parent = bfs(start);//doing BFS with no goal. stops when out of nodes.\n\n for(Integer end : allNodeKeys){//now we reconstruct from all nodes back to start\n MyNode endNode = nodes.get(end);\n if (start != end && endNode.getStepReached() > 0){//stepReached == -1 mean there is no path (is set in the bfs)\n// innerCount++;\n\n ArrayList<LinkedList<MyNode>> shortestPaths = reconstructPaths(start, end, endNode.getStepReached(), parent);\n calculateFlow(shortestPaths);\n }\n }\n }\n\n System.out.println(\"Sorting edges...\");\n LinkedList<Entry<SimpleEdge, Double>> sortedEdges = sortByFlow(flow);\n System.out.println(\"Finding Communities\");\n\n HashMap<Integer, HashSet<MyNode>> result = divideInCommunities(numCommunities, sortedEdges);\n\n return result;\n }", "title": "" }, { "docid": "7f42d7c35f0b063e193d20c2c30abb95", "score": "0.5749762", "text": "public SynchedHashMap() {}", "title": "" }, { "docid": "4a3bc464c90879a69af308a158c40b84", "score": "0.5739507", "text": "public Graph() {\n vertices = new ArrayList<String>();\n edges = new ArrayList<ArrayList<String>>();\n numEdges = 0;\n }", "title": "" }, { "docid": "ecf5d8e2b8e9cae4c314a32ee932c607", "score": "0.5739", "text": "public static Graph initGraph() {\n Graph graph = new Graph();\n graph.zonesByLinkedZone = createZonesByLinkedZone();\n graph.enemyBase = ZoneInitializer.initEnemyBase();\n graph.friendBase = ZoneInitializer.initFriendBase();\n return graph;\n }", "title": "" }, { "docid": "60507ed841c04dd507a7feb5251a4f94", "score": "0.5737848", "text": "public Digraph(){\n\t\tthis(new HashMap<String,Vertex>(),new LinkedList<Edge>());\n\t}", "title": "" }, { "docid": "874de6484da38d788a25e0c1049e9e86", "score": "0.5732831", "text": "IGraph getGraph();", "title": "" }, { "docid": "567a92dd2b54370802fc5eebef00b9f2", "score": "0.5726328", "text": "public MyHashMap() {\n\t\tkeys = new ArrayList<K>();\n\t\tvalues = new ArrayList<V>();\n\t\tnumBuckets = 0;\n\t}", "title": "" }, { "docid": "2ac1027f4a569a982c3f1d64e1936f6c", "score": "0.5695077", "text": "public Graph getGraph();", "title": "" }, { "docid": "7ea5f0f1101df76b7aad279fcd2a5ef6", "score": "0.5682309", "text": "public Graph(List<Edge> edges) {\n graph = new HashMap<>(edges.size());\n\n //one pass to find all vertices\n for (Edge e : edges) {\n if (!graph.containsKey(e.v1)) graph.put(e.v1, new Vertex(e.v1));\n if (!graph.containsKey(e.v2)) graph.put(e.v2, new Vertex(e.v2));\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.v1).neighbours.put(graph.get(e.v2), e.dist);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }", "title": "" }, { "docid": "c7a1ae7df65c5990c7ae5fcd24aac1ea", "score": "0.56819266", "text": "private DepthFirstSearch(){\n\n searchExecution = new ArrayList<>();\n vertexFinalTime = new HashMap<>();\n vertexInitialTime = new HashMap<>();\n vertexParent = new HashMap<>();\n vertexesColors = new HashMap<>();\n\n }", "title": "" }, { "docid": "8a843c68581fd317067b3f47ef849e95", "score": "0.5674892", "text": "private HashTreePMap() {}", "title": "" }, { "docid": "7bdc8ad6a64b8adc3a7d75623bf15476", "score": "0.56556666", "text": "public WGraph_DS(weighted_graph g) {\n this.keys = new HashMap<>();\n this.edges = new HashMap<>();\n if (g != null) {\n for (node_info n : g.getV()) { // loop and create new nodes and copy content from each node\n node_info a = new NodeInfo(n);\n this.keys.put(a.getKey(), a);\n }\n for (node_info node : g.getV()) { // loop through the nodes in the graph\n for (node_info n : g.getV(node.getKey())) { // loop through the neighbors of each node\n if (g.hasEdge(node.getKey(), n.getKey())) { // check if already two nodes has an edge\n int node1 = node.getKey();\n int node2 = n.getKey();\n connect(getNode(node1).getKey(), getNode(node2).getKey(), g.getEdge(node1, node2)); // connect an edge with two nodes\n }\n }\n }\n this.edgeSize = g.edgeSize();\n this.mc = g.getMC();\n }\n }", "title": "" }, { "docid": "ab207c52a6325530a9584e2ca061fa39", "score": "0.5645355", "text": "protected abstract Graph createGraph();", "title": "" }, { "docid": "3394563a3a019bfd8a4c0ee4c199bd70", "score": "0.5611652", "text": "@Test\n void getNodeMapTest() {\n assertNotNull(graph.getNodeMap());\n graph.addEdge(edge.getV1(), edge);\n graph.addEdge(weightedEdge.getV1(), weightedEdge);\n assertEquals(2, graph.getNodeMap().size());\n }", "title": "" }, { "docid": "3a5d8b32c2417959971fb55392624399", "score": "0.56055003", "text": "public static ArrayList<Graph> getGraphList(){\n\t\treturn graphList;\n\t}", "title": "" }, { "docid": "b1c16181308a0d3628fe005b4a38417f", "score": "0.5601333", "text": "Grafo(){\n\t\tthis.grafo = new HashSet<ArrayList<Integer>>();\n\t\tthis.dim = new ArrayList<Integer>();\n\t}", "title": "" }, { "docid": "0c05582a4639a96269e1eead2d0c5063", "score": "0.5596446", "text": "public Graph getGraph() {\n return graph;\n }", "title": "" }, { "docid": "0c05582a4639a96269e1eead2d0c5063", "score": "0.5596446", "text": "public Graph getGraph() {\n return graph;\n }", "title": "" }, { "docid": "a108cae72bde8751473dcaf07d1e7695", "score": "0.5588888", "text": "public MyHashMap() {\n\t\t// TODO Complete this!\n\t\tcapacity = DEFAULT_CAPACITY;\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\n\t\tmyMap = new ArrayList<LinkedList<KVPair>>(capacity);\n\t\tfor (int i=0; i<capacity; i++) {\n\t\t\tmyMap.add(i, new LinkedList<KVPair>());\n\t\t}\n\t}", "title": "" }, { "docid": "e46dab0299bb4f04d5685f462fd8a29c", "score": "0.558207", "text": "public ADTMap(){\n\t\tsize=0;//initialize size\n\t\t map = new LinkedList<Student>();//linked list to be used for separate chaining\n\t}", "title": "" }, { "docid": "b2571c134da775f7439a044692308580", "score": "0.5574801", "text": "@Override\n public void init(directed_weighted_graph g) {\n this.g = g;\n Tarjan_Node.nodes = new HashMap<>();\n }", "title": "" }, { "docid": "e97468314f5ee369f959c5259f6decfd", "score": "0.5573885", "text": "public Graph loadMapAsGraph() {\n Map l_Map = this.getCurrentMap();\n int l_NumberOfCountries = l_Map.getListOfCountries().size();\n Graph l_Graph = new Graph(l_NumberOfCountries);\n for (int l_I = 0; l_I < l_Map.getListOfBorders().size(); l_I++) {\n Border l_Border = l_Map.getListOfBorders().get(l_I);\n for (int l_CountryId : l_Border.getNeighbours()) {\n l_Graph.addEdge(l_Border.getCountryId(), l_CountryId);\n }\n\n }\n return l_Graph;\n }", "title": "" }, { "docid": "6add61d19206f197aa869323177afd8c", "score": "0.55735254", "text": "private void buildGraph(Map<Integer, Set<Integer>> g, int[] A) {\n \tint max = Integer.MIN_VALUE;\n for (int a : A) max = Math.max(max, a);\n for (int i = 0; i <= max; i++) g.put(i, new HashSet<>());\n \n \tfor (int a : A) {\n \t\tfor (int k = 2; k <= Math.sqrt(a); k++) {\n \t\t\tif (a % k == 0) {\n \t\t\t\tg.get(a).add(k);\n \t\t\t\tg.get(k).add(a);\n \t\t\t\tg.get(a).add(a / k);\n \t\t\t\tg.get(a / k).add(a);\n \t\t\t}\n \t\t}\n \t}\n }", "title": "" }, { "docid": "107587162d31cf0170ba4d5e579fbc1c", "score": "0.5573457", "text": "String getGraph();", "title": "" }, { "docid": "9a9a56ed3876fc0a57840cc9ccc2fbd4", "score": "0.5570295", "text": "public void createCourseHashMap() {\n }", "title": "" }, { "docid": "7a296617dbb32d772bffe45515d5548d", "score": "0.55619866", "text": "public void addVertices(E vertex){\n hashMap.put ( vertex , new LinkedList<E> () );\n }", "title": "" }, { "docid": "35ba0b433eb69ffaf708fe3323ec5824", "score": "0.5551534", "text": "public TGraph<L, T> graph();", "title": "" }, { "docid": "4e05eb560c0ed53829e638858cbbcbcd", "score": "0.55512017", "text": "public graph() throws FileNotFoundException {\r\n\t\tadj = new ArrayList<ArrayList<Integer>>();\r\n\t\tmergedVertices = new ArrayList<Integer>();\r\n\t\t//System.out.println(\"Initializing a graph object ...\");\r\n\t\tload();\r\n\t\t//print();\r\n\t}", "title": "" }, { "docid": "a2eb68226ccb1c37a416d074cef7ccec", "score": "0.554908", "text": "public abstract HashMap getTypeHashMapInstance();", "title": "" }, { "docid": "f516424bf2cd7b4b29c964f4c9611e48", "score": "0.5546669", "text": "@Override\r\n\tpublic void init(weighted_graph g) {\r\n\r\n\t\tthis.graph = (WGraph_DS) g;\r\n\t\tfor (node_info nd : g.getV()) {\r\n\t\t\tnd.setTag(Double.POSITIVE_INFINITY);\r\n\t\t}\r\n\t\tthis.parent = new HashMap<Integer, node_info>();\r\n\t\tthis.visited = new HashMap<Integer, Integer>();\r\n\t\tfor (node_info node : g.getV()) {\r\n\t\t\tparent.put(node.getKey(), null);\r\n\t\t\tvisited.put(node.getKey(), 0);\r\n\t\t}\r\n\t\twhile (!pq.isEmpty()) {\r\n\t\t\tpq.remove();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "54c56870731ad8613e384e2b03472189", "score": "0.55350393", "text": "public interface Graph {\n}", "title": "" }, { "docid": "b8dbfbdd294e24a43591d716f2618c5b", "score": "0.55118614", "text": "public TopMap()\n {\n this.Top = new TreeMap<Integer,HashMap<Integer,Anime>>();\n }", "title": "" }, { "docid": "f7e8c3aad3a31aee7cc51d865a720544", "score": "0.5511712", "text": "private SimpleGraph<Person, Relationship> createGraph() {\n SimpleGraph<Person, Relationship> relationshipSimpleGraph = new SimpleGraph<>(Relationship.class);\n populateGraph(relationshipSimpleGraph, personService.loadAllPersons(), relationshipService.loadAll());\n return relationshipSimpleGraph;\n }", "title": "" }, { "docid": "585fee1f5ae64c9b47e8d5f726a901df", "score": "0.55076313", "text": "public void parseFile() {\n\t\tgraphMap = new HashMap<String, ArrayList<String>>();\r\n\t\tFile f = new File(fileName);\r\n\t\tScanner s = null;\r\n\t\ttry {\r\n\t\t\ts = new Scanner(f);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//Initalize the hashmap that holds the graph adjacency list\r\n\t\tgraphMap = new HashMap<String, ArrayList<String>>();\r\n\t\t//Try to have a hashTable of edges, the key would be the edgename, the value would be the edge object\r\n\t\tedgeTable = new Hashtable<String, Edge>();\r\n\t\t//TODO initializign the test\r\n\t\tadjEdgeTest = new HashMap<String, HashMap<String, Edge>>();\r\n\r\n\r\n\t\t//The first line is going to be the number of vertices in the graph\r\n\t\tnumVertices = s.nextInt();\r\n// System.out.println(numVertices);\r\n\t\t//The second is going to be the number of edges in the graph\r\n\t\tnumEdges = s.nextInt();\r\n// System.out.println(numEdges);\r\n\r\n\r\n\t\t//So now we know that we can get the input properly and that we ignore the new line character\r\n\t\t//A scanner should only have 5 ints on the line seperated by spaces\r\n\t\t//TODO fixed a null error by not going parsing a line that does not have the stuff we need\r\n\t\twhile (s.hasNextLine() && s.hasNextInt()){\r\n\t\t\t//Make the source vertex\r\n\t\t\tint sourceX = s.nextInt();\r\n\t\t\tint sourceY = s.nextInt();\r\n\t\t\t//Make the destination verex\r\n\t\t\tint destX = s.nextInt();\r\n\t\t\tint destY = s.nextInt();\r\n\t\t\t//Save the weight of the edge\r\n\t\t\tint weight = s.nextInt();\r\n\r\n\r\n\t\t\tString sourceXYString = String.valueOf(sourceX) + ',' + String.valueOf(sourceY);\r\n\t\t\tString destXYString = String.valueOf(destX) + ',' + String.valueOf(destY);\r\n\r\n\t\t\tvertexList.add(sourceXYString);\r\n\t\t\tvertexList.add(destXYString);\r\n\r\n// System.out.println(\"source: \" + sourceXYString + \" dest \" + destXYString + \" weight \" + weight);\r\n\r\n\t\t\t//Let's try this again adding it to a hashtable with the full edgename as the key, new edge as value\r\n\t\t\tedgeTable.put((sourceXYString+\",\"+destXYString), new Edge(sourceXYString, destXYString, weight));\r\n\t\t\t//TODO testing making nested hashmap\r\n\t\t\t//If the key doesn't already exist, make a new hashmap for it\r\n\t\t\tif (!(adjEdgeTest.containsKey(sourceXYString))){\r\n\t\t\t\tadjEdgeTest.put(sourceXYString, new HashMap<String, Edge>());\r\n\t\t\t}\r\n\t\t\t//Get the hashmap returned by our node, add the child node and the edge\r\n\t\t\tadjEdgeTest.get(sourceXYString).put(destXYString, new Edge(sourceXYString,destXYString,weight));\r\n\r\n\t\t\t//If this entry in the hashmap does not exist, add it and initialize the arraylist\r\n\t\t\tif (!(graphMap.containsKey(sourceXYString))){\r\n\t\t\t\tgraphMap.put(sourceXYString, new ArrayList<String>());\r\n\t\t\t\tif (!(graphMap.containsKey(destXYString))) {\r\n\t\t\t\t\tgraphMap.put(destXYString, new ArrayList<String>());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Gets the key of the sourceXY string and adds the destination string to the arraylist of children\r\n\t\t\tgraphMap.get(sourceXYString).add(destXYString);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3db3742ec99511a34d6e8877e882c890", "score": "0.5505685", "text": "public SpyGraph(){\n vlist = new ArrayList<>();\n }", "title": "" }, { "docid": "c7f1fd2869251f848323c798e7593572", "score": "0.5503064", "text": "private void makeGraph(String[] pubs) {\r\n for (String s : pubs) {\r\n String[] names = s.split(\" \");\r\n\r\n for (String t: names) {\r\n //myGraph.putIfAbsent(t, )\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "e22a5d2ccb4fb293c87cf8ae5a1863a3", "score": "0.55005586", "text": "@Override\n public void addNode(node_data n) {\n //if node not in graph , add it\n if(!nodes_of_graph.containsKey(n.getKey()))\n {nodes_of_graph.put(n.getKey(),n);\n MC++; }\n }", "title": "" }, { "docid": "86298fd418cf8c5e7f57ac579bd1dea9", "score": "0.5498741", "text": "DFS(){\n gr = new Graph();\n ver = gr.ver;\n marked = new boolean[ver];\n adj = gr.adj;\n }", "title": "" }, { "docid": "784e1debdd2a920aecc48f2fb42822ae", "score": "0.5492319", "text": "public QuickMap() {\n map = new HashMap<>();\n }", "title": "" }, { "docid": "e68721ad94114dbe11de0372b5e0f639", "score": "0.54846007", "text": "public static Graph createGraph(Scanner scan){\n\t\tGraph graph = new Graph();\n\t\t//First line of input file is the number of vertices\n\t\tint numVertex = Integer.parseInt(scan.next());\n\t\tfor(int i = 0; i <numVertex; i++){\n\t\t\tString id = scan.next();\n\t\t\tVertex vertex = new Vertex(id,new LinkedList<Edge>());\n\t\t\tgraph.vertexMap.put(id, vertex);\n\t\t}\n\t\t//The number of edges following all vertices in input file\n\t\tint numEdge = Integer.parseInt(scan.next());\n\t\tscan.nextLine();\n\t\tfor(int i = 0; i < numEdge; i++){\n\t\t\tString readLine = scan.nextLine();\n\t\t\t//Edge is denoted as A B 10 in input file\n\t\t\tString delims = \"[ ]+\";\n\t\t\tString[] temp = readLine.split(delims);\n\t\t\tString endpoint1 = temp[0];\n\t\t\tString endpoint2 = temp[1];\n\t\t\tdouble wgt = Double.parseDouble(temp[2]);\n\t\t\t//undirected graph, add two edges\n\t\t\tgraph.vertexMap.get(endpoint1).setEdges(new Edge(graph.vertexMap.get(endpoint2),wgt));\n\t\t\tgraph.vertexMap.get(endpoint2).setEdges(new Edge(graph.vertexMap.get(endpoint1),wgt));\n\t\t}\n\t\treturn graph;\n\t}", "title": "" }, { "docid": "e49cfa7791e172cdb5a6e0e3468e8b3f", "score": "0.54764104", "text": "GraphWrapper(AdjacencyListGraph inGraph) {\n this.keys = new ArrayList<T>();\n this.graph = inGraph;\n this.vtcs = new HashMap<T, Integer>(inGraph.getNumVerts() * 2 + 1, \n this.loadFactor);\n }", "title": "" }, { "docid": "b760456b517ecfea1bc534eb55ac6866", "score": "0.5472022", "text": "public void getVertexCount() \r\n\t { \r\n\t System.out.println(\"The graph has \"\r\n\t + map.keySet().size() \r\n\t + \" vertex\"); \r\n\t }", "title": "" }, { "docid": "88e43e3603fd374dde328040b9733c64", "score": "0.5460561", "text": "public Graph(){\r\n getImage();\r\n }", "title": "" }, { "docid": "2f29c4587563ccde4623b03fe80eeede", "score": "0.5455794", "text": "public static Graph<Coordinate> getGraph() {\n if (defaultGraph == null)\n generateGraph();\n return defaultGraph;\n }", "title": "" }, { "docid": "f3065334028addee1918684d1184255c", "score": "0.544593", "text": "private void init() {\n this.naoVisitados = new HashSet<Vertice<T>>();\n this.anteriores = new HashMap<Vertice<T>, Vertice<T>>();\n this.custos = new HashMap<Vertice<T>, Double>();\n this.melhorCaminho = new Stack<Vertice<T>>();\n this.custoTotal = 0;\n }", "title": "" }, { "docid": "60e7f4afeab5eaf875ae7e7d005a27b5", "score": "0.54459286", "text": "public Graph() {\r\n this(new ArrayList<>(), new ArrayList<>());\r\n }", "title": "" }, { "docid": "fb9f7d38db7184c79880d4062a3a9e19", "score": "0.5423239", "text": "private static void createGraph(){\n for (int i = 0; i < votes.length; i += 1) {\n Vote vote = votes[i];\n for (int k = i + 1; k < votes.length; k += 1) {\n Vote nextVote = votes[k];\n if (vote.isContradiction(nextVote)){\n\t\t vote.addEdge(nextVote);\n nextVote.addEdge(vote);\n\t\t if (vote.isCatLover()) {\n catLovers.add(vote);\n } else {\n catLovers.add(nextVote);\n }\n dist.put(vote, Integer.MAX_VALUE);\n dist.put(nextVote, Integer.MAX_VALUE);\n }\n }\n }\n }", "title": "" }, { "docid": "60196f863d1bdd30543dbecb2d19b0d9", "score": "0.54156035", "text": "public static synchronized KnowledgeGraph getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new KnowledgeGraph();\n\t\t}\n\t\treturn instance;\n\t}", "title": "" }, { "docid": "42eae9a611be8d9aed835f8a04f4ff16", "score": "0.54143995", "text": "public ASDGrammar()\n { table = new HashMap<String, ArrayList<ASDGrammarNode>>();\n }", "title": "" }, { "docid": "2c648feeccfcb77e942bf7710fd5d9f5", "score": "0.54133147", "text": "public HashDictionary(int size) {\n\n\t\tNode<Configuration> emptyNode = new Node<Configuration>();\n\n\t\thashDictionary = new Node[size];\n\n\t\tthis.size = size;\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\thashDictionary[i] = emptyNode;\n\t\t}\n\n\t}", "title": "" }, { "docid": "4aec29c9e11a4e2393e12449e147469f", "score": "0.5411921", "text": "public void createGraph()\n {\n graph = new Graph();\n for(int i=0;i<inputs.nodes;i++)\n {\n Vertex v = new Vertex(i);\n v.adjacencies = new Edge[inputs.nodes];\n graph.vertices.add(v);\n }\n \n //add all the edges and their weights\n for(int i=0;i<inputs.nodes;i++)\n {\n for(int j=0;j<inputs.nodes;j++)\n {\n graph.vertices.get(i).adjacencies[j] = new Edge(graph.vertices.get(j),inputs.aij[i][j]);\n }\n }\n \n }", "title": "" }, { "docid": "aabd412606a6504268334a37db6d83f8", "score": "0.539235", "text": "@Test\n\tpublic void testVertices() {\n\t\tGraph<String> map = emptyInstance();\n\t\tmap.add(\"a\");\n\t\tmap.add(\"b\");\n\t\tSet<String> set_1 = new HashSet<String>();\n\t\tset_1.add(\"a\");\n\t\tset_1.add(\"b\");\n\t\tassertEquals(set_1,map.vertices());\n\t\tset_1.add(\"c\");\n\t\tassertNotEquals(set_1,map.vertices());\n\t}", "title": "" }, { "docid": "40ede0e2e7bd400c5730b2f2d3bcc6f8", "score": "0.5390804", "text": "public GraphSocialManager() {\r\n this.network = new Network<>();\r\n this.userOnGraph = new DoubleLinkedUnorderedList<>();\r\n this.comentariosOnGraph = new DoubleLinkedUnorderedList<>();\r\n this.mensagensOnGraph = new DoubleLinkedUnorderedList<>();\r\n }", "title": "" } ]
8af206eb3ec125353bb19d03fbc7d21c
Site site = Context.getCurrentSite(request); User user = Context.getCurrentUser(request);
[ { "docid": "857e3916665492052a0efc4798c583f6", "score": "0.0", "text": "@RequestMapping(value = \"/updateInfo.htx\")\n\tpublic String updateInfo(@ModelAttribute(\"bean\") ServInfoDetail bean,Integer serviceId, Integer orgId, String image, String redirect, RedirectAttributes ra, HttpServletRequest request) throws Exception {\n\t\tLong userId = context.getCurrentUserId();\n\t\tif(userId == null){\n\t\t\treturn \"redirect:/\";\n\t\t}\n\t\tAppService appService = service.getAppServiceById(serviceId);\n\t\t\n\t\tServInfo info = new ServInfo();\n\t\tinfo.setPublishDate(new Timestamp(new Date().getTime()));\n\t\tinfo.setUserid(userId);\n\t\tinfo.setOrgId(orgId);\n//\t\tinfo.setFSiteId(site.getId());\n\t\tinfo.setComments(0);\n\t\tinfo.setDownloads(0);\n\t\tinfo.setDiggs(0);\n\t\tinfo.setPriority(0);\n\t\tinfo.setViews(0);\n\t\tinfo.setScore(0);\n\t\tinfo.setIsWithImage(false);\n\t\tinfo.setStatus(\"A\");\n\t\tinfo.setDetail(bean);\n\t\tinfo.setHtmlStatus(\"A\");\n\t\tinfo.setAppService(appService);\n\t\t\n\t\tbean.setIsEm(\"A\");\n\t\tbean.setIsStrong(\"A\");\n\t\tbean.setTitle(\"A\");\n\t\tbean.setSmallImage(image);\n\t\tbean.setInfo(info);\n\t\t\n\t\tservMsgService.save(userId, info, appService);\n\t\treturn \"redirect:sendMsgList.htx\";\n\t}", "title": "" } ]
[ { "docid": "444e5c7f2f4b4e99351db0478d36eb32", "score": "0.7268699", "text": "Spiritist getCurrentUser();", "title": "" }, { "docid": "35aba0f0e6ea4ca69ce3edf497d1aa5b", "score": "0.7263941", "text": "Users getCurrentUser();", "title": "" }, { "docid": "4d82da08b11f7ea8c88ba08f3092ec40", "score": "0.722349", "text": "User getUser(HttpServletRequest request);", "title": "" }, { "docid": "666b31c3d618c4c550ee5f728c2f12c7", "score": "0.7208737", "text": "public User getUser() {\n return getContextBroker().extractRequestContext().getUser();\n}", "title": "" }, { "docid": "6c10378b6422f41cb6ed1899935709ec", "score": "0.71266526", "text": "public UserInfo getCurrentUser();", "title": "" }, { "docid": "ac7bd5fe1755801be120c449f0705374", "score": "0.6806547", "text": "User getActiveUser();", "title": "" }, { "docid": "949994e2b5e4e1c0e507c16c78c1ea5e", "score": "0.671878", "text": "String getSiteUserId();", "title": "" }, { "docid": "da64e449dba815875e2319e53b9f7db7", "score": "0.65845275", "text": "private User getCurrentUser(){\n\t\t//get the action context\n\t\tActionContext cxt = ActionContext.getContext();\n\t\t//http session, map format\n\t\tMap<String,Object> session = cxt.getSession();\n\t\treturn (User)session.get(\"user\");\n\t}", "title": "" }, { "docid": "35e20b7b9bf2585c941554c449453539", "score": "0.6511105", "text": "@Override\r\n\tpublic void getUser(HttpServletRequest req) {\n\r\n\t}", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "420ac05931b5e10519f0a19478bac3d2", "score": "0.6464581", "text": "public int getSiteId(){\n return localSiteId;\n }", "title": "" }, { "docid": "68584a43805218b272178ca68d57fb05", "score": "0.6425226", "text": "public String getSiteUserId() {\n return siteUserId_;\n }", "title": "" }, { "docid": "475da9d363c4692fb8ede9f11c92e4a7", "score": "0.6423415", "text": "public Site getSite() {\n return site_;\n }", "title": "" }, { "docid": "ffe81e95c78efd2127c356dc2cd02bb0", "score": "0.6417079", "text": "public User getUserLocal();", "title": "" }, { "docid": "044e6183effe8f673e4d792b3a4f9991", "score": "0.638159", "text": "public IUserSicce getCurrentUser() {\n return currentUser;\n }", "title": "" }, { "docid": "5ad97a9751c846166212ae3e31c6ba10", "score": "0.63722533", "text": "public User getCurrentUser() {\n return currentUser;\n }", "title": "" }, { "docid": "6b664e8f142432412edb569dfe225e3f", "score": "0.63647485", "text": "public userdata getCurrentUser() {\r\n\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n return userrepo.findByUsername(auth.getName());\r\n }", "title": "" }, { "docid": "cd770cc58636f0ac0e8000c9657f9583", "score": "0.6322912", "text": "public Principal getUserPrincipal() {\n/* 225 */ return _getHttpServletRequest().getUserPrincipal();\n/* */ }", "title": "" }, { "docid": "0c3dd00351b712cbdde48d7328cbf5f6", "score": "0.63114434", "text": "@RequestMapping(\"/me\")\n @ResponseBody\n public Principal getCurrentLoggedInUser(Principal user) {\n return user;\n }", "title": "" }, { "docid": "8a67931e1efcebd385fe19512e4bb2c3", "score": "0.62979174", "text": "User getUserDetails();", "title": "" }, { "docid": "2fb991dd3c7356360b61724c38702551", "score": "0.62976015", "text": "public String getSiteUserId() {\n return instance.getSiteUserId();\n }", "title": "" }, { "docid": "fc2ef96307e12601bcca4f7323918abe", "score": "0.6288919", "text": "public Context getInternalUserContext();", "title": "" }, { "docid": "dfc0dee1fe567224b698d5783ce231d4", "score": "0.6280526", "text": "public User getCurrentUser() {\n return getUser();\n }", "title": "" }, { "docid": "a9b8153a68ee6bbe220598e939211b38", "score": "0.6245862", "text": "public String getRemoteUser() {\n/* 207 */ return _getHttpServletRequest().getRemoteUser();\n/* */ }", "title": "" }, { "docid": "6ffda0dab1493335c61b7fe4a21b3f0e", "score": "0.623719", "text": "User getAuthUser();", "title": "" }, { "docid": "40972baa78782a33a7ee60a928bc370f", "score": "0.6232612", "text": "public Principal user() { return user; }", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "40563adbb41964595b07db42551f713e", "score": "0.62213594", "text": "User getUser();", "title": "" }, { "docid": "4da4018e411fe6dbeeed3f2e478c6a1e", "score": "0.6182344", "text": "public User getCurrentUser() {\n\t\treturn currentUser;\n\t}", "title": "" }, { "docid": "efd985ef3a9a406516178041a1e5cfe3", "score": "0.61438465", "text": "@Override\n public User getLoggedInUser(HttpServletRequest request) {\n\t\tint userId = Integer.parseInt(request.getHeader(\"userid\"));\n\t\treturn userService.getUserByUserId(userId);\n }", "title": "" }, { "docid": "2853a9d5b2f84d4f18c47c2a59fe50be", "score": "0.6125362", "text": "private void getDetailsForCurrentUser()\n {\n // Load everything into user Resource\n if(getCurrentUserInfo())\n {\n _userDetailsLoaded = true;\n }\n }", "title": "" }, { "docid": "b9de13eae1aba78d1c143116a8836846", "score": "0.6111015", "text": "public User getUser();", "title": "" }, { "docid": "0326b3ecd3b468fc8f7fa503037fadcd", "score": "0.6098682", "text": "public User getCurrentUser() {\n return this.currentUser;\n }", "title": "" }, { "docid": "b313263158ae6b922722ad42fb9f5e76", "score": "0.6084409", "text": "public User getAuthenticatedUser() {\n return authenticatedUser;\n }", "title": "" }, { "docid": "4db67a154d4d679789c08299113c13b7", "score": "0.60378194", "text": "String getLoggedInUser();", "title": "" }, { "docid": "ea121e02907ee77ab49ab656df3e8d7e", "score": "0.60288674", "text": "public static WikiUser currentUser(HttpServletRequest request) throws Exception {\r\n \t\tSecurityContext ctx = SecurityContextHolder.getContext();\r\n \t\tif (ctx != null) {\r\n \t\t\tAuthentication auth = ctx.getAuthentication();\r\n \t\t\treturn ((auth == null) || \"anonymousUser\".equals(auth.getPrincipal())) ? null : (WikiUser)auth.getPrincipal();\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "title": "" }, { "docid": "600b040a716e3b0d828094d794268266", "score": "0.60250366", "text": "public User getUser(){\n return user;\n }", "title": "" }, { "docid": "f744e9900508879dfa1e6dc1973a8ec3", "score": "0.60066086", "text": "@RequestMapping(value=\"/info\", method = RequestMethod.GET)\n public User getMyInfo(HttpServletRequest req){\n String name = req.getRemoteUser();\n return userRepository.findByUsername(name);\n }", "title": "" }, { "docid": "93b974e725d817ad61d5341050878346", "score": "0.59834063", "text": "public String getSiteUuid() {\n return _siteUuid;\n}", "title": "" }, { "docid": "0ad877ef221f62b5f332169c00723626", "score": "0.59775126", "text": "private User getCurrentUser() {\n\n // Get current authenticated user\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n User user = userService.findByUsername(username);\n\n logger.info(\"Successfully obtained user: \" + username);\n\n if (user == null) {\n throw new UserNotFoundException(\"User Not Found!\");\n }\n return user;\n }", "title": "" }, { "docid": "5c4b61b034877989bbc4282cee565425", "score": "0.5976646", "text": "public void setCurrentUser(User user){\n currentUser=user;\n }", "title": "" }, { "docid": "f9bb40cba37fc3241e0bf914667dd255", "score": "0.59744287", "text": "public User getLoggedInUser() {\n return loggedInUser;\n }", "title": "" }, { "docid": "e0f80a7575a4ed7117d1fbabf7c3807d", "score": "0.59670115", "text": "public User getBlogUser() {\n return blogUser;\n }", "title": "" }, { "docid": "2a249363918aed0d869feee53bbc5053", "score": "0.5964097", "text": "private void setCurrentUser(HttpServletRequest request) throws SQLException {\n String email = request.getHeader(\"user\");\n if (email == null) {\n currentUser.set(new Guest());\n } else {\n currentUser.set(User.lookup(email));\n }\n }", "title": "" }, { "docid": "5a80f6763ec5bfe60b31d5d7e73571e2", "score": "0.59492594", "text": "public java.lang.String getUser(){\r\n return localUser;\r\n }", "title": "" }, { "docid": "5a80f6763ec5bfe60b31d5d7e73571e2", "score": "0.59492594", "text": "public java.lang.String getUser(){\r\n return localUser;\r\n }", "title": "" }, { "docid": "5a80f6763ec5bfe60b31d5d7e73571e2", "score": "0.59492594", "text": "public java.lang.String getUser(){\r\n return localUser;\r\n }", "title": "" }, { "docid": "0af0c390eb28d82bde7928e0c52ff004", "score": "0.59340733", "text": "@GetMapping(\"/user\")\n @PreAuthorize(\"hasRole('USER')\")\n public UserSummary getCurrentUser(@CurrentUser UserPrincipal currentUser) {\n\n System.out.println(\"login/user: \" + currentUser.toString());\n\n //Add admin into this class\n UserSummary userSummary = new UserSummary(currentUser.getIdAccount(), currentUser.getUsername(), currentUser.getProfile(), currentUser.isAccountIsAdmin());\n //Add admin into this class\n return userSummary;\n }", "title": "" }, { "docid": "0dae2b0a9165d6ae505e7ce7ee3fdab8", "score": "0.59196305", "text": "@RequestMapping(value = \"/user\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic User getUser() {\r\n\r\n\t\tServletRequestAttributes t = (ServletRequestAttributes) RequestContextHolder\r\n\t\t\t\t.currentRequestAttributes();\r\n\t\tHttpServletRequest req = t.getRequest();\r\n\t\tUser user = (User) req.getSession().getAttribute(\"user\");\r\n\t\treturn user;\r\n\t}", "title": "" }, { "docid": "c88ce3fde5afcf4165a04181e0c927ff", "score": "0.5910272", "text": "public LocalUser getLocalUser()\r\n {\r\n return user;\r\n }", "title": "" }, { "docid": "37eb60392183c1ecbe5e0ffbd7dac5bb", "score": "0.58944696", "text": "@Override\n public Site getSite() {\n return site;\n }", "title": "" }, { "docid": "be75111ef788b864cd1990a1c4c3154b", "score": "0.5889691", "text": "private String getOwnerUserId(ServletRequest request)\r\n\t {\n\t\t\tString hostname = request.getServerName();\r\n\t\t\tString userid = AppObjects.getValue(\"aspire.multiweb.\" + hostname + \".userid\",null);\r\n\t\t\treturn userid;\r\n\t }", "title": "" }, { "docid": "4d52c57d8df3046fd9965947c51ef122", "score": "0.5874284", "text": "@Override\n\tpublic Site getSite() {\n\t\treturn site;\n\t}", "title": "" }, { "docid": "6aec072e869e93893158bba8c9c2b072", "score": "0.58696985", "text": "protected AuthenticatedUser getUser(HttpServletRequest request) {\n\t\t// Get session\n\t\tSession session = getSessionForRequest(request);\n\n\t\tif (session != null) {\n\t\t\tint userID = session.getUser();\n\t\t\treturn (AuthenticatedUser) ProProjectContext.getUser(userID);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "938220bca9815274a5ca4fe44f145ff4", "score": "0.58674115", "text": "public static User getCurrentUser() {\r\n\t\treturn RestClient.getUserWithName(getCurrentUserName());\r\n\t}", "title": "" }, { "docid": "927dc41a46ecfeba70b49af3c90dcba2", "score": "0.58489394", "text": "public User GetUser() { return (mainUser); }", "title": "" }, { "docid": "9eb79ad61f4a09fddce6c60333362a4a", "score": "0.5846317", "text": "public String getSite();", "title": "" }, { "docid": "65e18594b7125b632573e7cacc27e9da", "score": "0.5813786", "text": "public User getCreatedBy();", "title": "" }, { "docid": "f528e5e636d2b72522dc6cd5f5c54076", "score": "0.58132964", "text": "public long getUserId(){\n return localUserId;\n }", "title": "" }, { "docid": "40ea28720ee211f65480cc8f17b678d8", "score": "0.5809632", "text": "@Override\r\n\tpublic String perform(HttpServletRequest request) {\n\t\t\r\n\t\tHttpSession session = request.getSession(true);\r\n\t\tICustomer loggedInUser = (ICustomer) session.getAttribute(\"loggedInUser\");\r\n\t\tICustomer customer = customerDAO.getCustomerById(loggedInUser.getID()); \r\n\t\trequest.setAttribute(\"customer\", customer);\r\n\t\treturn \"accountInfo.jsp\";\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8625d981672f30afcd65d112e3c8e5dc", "score": "0.58030105", "text": "static User getLoggedInUser() {\n return User.find.where().eq(\"username\", request().username()).findUnique();\n }", "title": "" } ]
447997228fe348eaff5f97443e1a7bfe
$ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl" $ANTLR start "rule__XMemberFeatureCall__Group_1_1__0" ../org.xtext.httprouting.ui/srcgen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8055:1: rule__XMemberFeatureCall__Group_1_1__0 : rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 ;
[ { "docid": "dc341dd552f6957440a9e61cc824db39", "score": "0.80620056", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8059:1: ( rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8060:2: rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1__016560);\n rule__XMemberFeatureCall__Group_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1_in_rule__XMemberFeatureCall__Group_1_1__016563);\n rule__XMemberFeatureCall__Group_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" } ]
[ { "docid": "ac0ca43c613b437b4998cf2306227799", "score": "0.8314285", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8630:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8631:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8631:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8632:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8633:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n loop66:\n do {\n int alt66=2;\n int LA66_0 = input.LA(1);\n\n if ( (LA66_0==53) ) {\n alt66=1;\n }\n\n\n switch (alt66) {\n \tcase 1 :\n \t // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8633:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl17697);\n \t rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop66;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \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 }", "title": "" }, { "docid": "0174fe3f60c5940c294c4f1dbbd7e82a", "score": "0.8300485", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8224:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8225:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8225:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8226:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8227:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8227:2: rule__XMemberFeatureCall__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_1_0__0__Impl16897);\n rule__XMemberFeatureCall__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_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 }", "title": "" }, { "docid": "b403817f6722332e9dc2d498f5207abd", "score": "0.8270871", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7913:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7914:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7914:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7915:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7916:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7916:2: rule__XMemberFeatureCall__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0_in_rule__XMemberFeatureCall__Group_1_0_0__0__Impl16281);\n rule__XMemberFeatureCall__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_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 }", "title": "" }, { "docid": "d4523f4dcb9d95ba1c6cf634d40bec7e", "score": "0.8238489", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8213:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8214:2: rule__XMemberFeatureCall__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0__016870);\n rule__XMemberFeatureCall__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "bd8101aeba434e774e3ed9c23c1d4ab4", "score": "0.8219516", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7853:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7854:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7854:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7855:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7856:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7856:2: rule__XMemberFeatureCall__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_0__0__Impl16163);\n rule__XMemberFeatureCall__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_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 }", "title": "" }, { "docid": "383a3007d84fbfb81d1f771db9e83d28", "score": "0.82192546", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7902:1: ( rule__XMemberFeatureCall__Group_1_0_0__0__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7903:2: rule__XMemberFeatureCall__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0__016254);\n rule__XMemberFeatureCall__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "24757dd17bd60d5491f912781e1b8cd9", "score": "0.82162935", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8071:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8072:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8072:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8073:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8074:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8074:2: rule__XMemberFeatureCall__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0_in_rule__XMemberFeatureCall__Group_1_1__0__Impl16590);\n rule__XMemberFeatureCall__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_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 }", "title": "" }, { "docid": "6af7c2da183c495041f754ef48900653", "score": "0.82010806", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8023:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8024:2: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__316496);\n rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cd9f83e7f721dcecb8c45c32599e30e5", "score": "0.8188667", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8682:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8683:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__117794);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "00cf523fc8fa06f78eadc3e56a7c4db4", "score": "0.81874", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8274:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8275:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__116990);\n rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3ff364e7bf4e84c7a5ba335d7fe73352", "score": "0.81827456", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8590:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8591:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__017610);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__017613);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "bd05176019451463554c2c427699dd4c", "score": "0.8182322", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8619:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8620:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__117670);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cb9a1d146db065afb119cef02ffb8624", "score": "0.8178761", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8378:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8379:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8379:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8380:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8381:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n loop64:\n do {\n int alt64=2;\n int LA64_0 = input.LA(1);\n\n if ( (LA64_0==53) ) {\n alt64=1;\n }\n\n\n switch (alt64) {\n \tcase 1 :\n \t // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8381:2: rule__XMemberFeatureCall__Group_1_1_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0_in_rule__XMemberFeatureCall__Group_1_1_1__2__Impl17203);\n \t rule__XMemberFeatureCall__Group_1_1_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop64;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \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 }", "title": "" }, { "docid": "477ea48957ed4666cda81503b4240141", "score": "0.81647766", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8243:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8244:2: rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__016929);\n rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1_in_rule__XMemberFeatureCall__Group_1_1_0_0__016932);\n rule__XMemberFeatureCall__Group_1_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ea8302b5522fe23d9dbfff1e3e0981d6", "score": "0.8161646", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8255:1: ( ( () ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8256:1: ( () )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8256:1: ( () )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8257:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8258:1: ()\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8260:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5b2a489e9352b9cc074b43c514e9b70b", "score": "0.81563634", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8651:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8652:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__017732);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__017735);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "27f703e67cddd55d0fbf767a289b4ba2", "score": "0.8144331", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8306:1: ( rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8307:2: rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__017051);\n rule__XMemberFeatureCall__Group_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_1__017054);\n rule__XMemberFeatureCall__Group_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3b243fc4c28d3a7f64a2eab1fe2b5823", "score": "0.8142979", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8496:1: ( rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8497:2: rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__017424);\n rule__XMemberFeatureCall__Group_1_1_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__1_in_rule__XMemberFeatureCall__Group_1_1_3__017427);\n rule__XMemberFeatureCall__Group_1_1_3__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "75be5c11dc1bec010c4114ef524ca598", "score": "0.8139537", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7932:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7933:2: rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__016313);\n rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__1_in_rule__XMemberFeatureCall__Group_1_0_0_0__016316);\n rule__XMemberFeatureCall__Group_1_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "fbe47d75995203b72b1896107847646b", "score": "0.8134556", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8100:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8101:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8101:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8102:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8103:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==23) ) {\n alt61=1;\n }\n switch (alt61) {\n case 1 :\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8103:2: rule__XMemberFeatureCall__Group_1_1_1__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1__1__Impl16650);\n rule__XMemberFeatureCall__Group_1_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \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 }", "title": "" }, { "docid": "a75df8e10dbb4a7b55cdbe0799f823d9", "score": "0.8132332", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7963:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7964:2: rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__116374);\n rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2_in_rule__XMemberFeatureCall__Group_1_0_0_0__116377);\n rule__XMemberFeatureCall__Group_1_0_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "b01ce8cf4bad7dba439bf2bf0594686c", "score": "0.81185913", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7975:1: ( ( '.' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7976:1: ( '.' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7976:1: ( '.' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7977:1: '.'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1()); \n }\n match(input,36,FOLLOW_36_in_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl16405); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1()); \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 }", "title": "" }, { "docid": "278ca9b7bd88497a678a32fefd746cbf", "score": "0.8113965", "text": "public final void rule__XMemberFeatureCall__Group_1_1__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8158:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8159:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8159:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8160:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8161:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n int alt62=2;\n alt62 = dfa62.predict(input);\n switch (alt62) {\n case 1 :\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8161:2: rule__XMemberFeatureCall__Group_1_1_3__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__0_in_rule__XMemberFeatureCall__Group_1_1__3__Impl16771);\n rule__XMemberFeatureCall__Group_1_1_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \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 }", "title": "" }, { "docid": "9651a99cbae030aba72683104d929c88", "score": "0.8111668", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7994:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7995:2: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__216436);\n rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3_in_rule__XMemberFeatureCall__Group_1_0_0_0__216439);\n rule__XMemberFeatureCall__Group_1_0_0_0__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "81b1a8278729a0e4679f2e87a420c0c8", "score": "0.810813", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8433:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8434:2: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__017301);\n rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1_in_rule__XMemberFeatureCall__Group_1_1_1_2__017304);\n rule__XMemberFeatureCall__Group_1_1_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "efdcaa964be1396c24b0b472d7d89516", "score": "0.80882", "text": "public final void rule__XMemberFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7780:1: ( rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7781:2: rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__0__Impl_in_rule__XMemberFeatureCall__Group__016012);\n rule__XMemberFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1_in_rule__XMemberFeatureCall__Group__016015);\n rule__XMemberFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "684b9bb709c25d33defb478a79a123fb", "score": "0.8086506", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8337:1: ( rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8338:2: rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__117113);\n rule__XMemberFeatureCall__Group_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2_in_rule__XMemberFeatureCall__Group_1_1_1__117116);\n rule__XMemberFeatureCall__Group_1_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "14b791f5e46f57501f21b4fbf85be397", "score": "0.80859387", "text": "public final void rule__XMemberFeatureCall__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7870:1: ( rule__XMemberFeatureCall__Group_1_0__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7871:2: rule__XMemberFeatureCall__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0__116193);\n rule__XMemberFeatureCall__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "4c50e98cd48acc271b568d4f98dd5334", "score": "0.80796003", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7841:1: ( rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7842:2: rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0__016133);\n rule__XMemberFeatureCall__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1_in_rule__XMemberFeatureCall__Group_1_0__016136);\n rule__XMemberFeatureCall__Group_1_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "fa69c0fcf593e365aeb9652f9ca4b73f", "score": "0.8068122", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8554:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8555:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__217545);\n rule__XMemberFeatureCall__Group_1_1_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "b9623ebdaa92adb7cc6099165d41ce1f", "score": "0.8060869", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8395:1: ( rule__XMemberFeatureCall__Group_1_1_1__3__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8396:2: rule__XMemberFeatureCall__Group_1_1_1__3__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__317234);\n rule__XMemberFeatureCall__Group_1_1_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "84bc96f81ad16e0693c9811a2aa31055", "score": "0.80378556", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6327:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6328:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6328:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6329:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6330:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6330:2: rule__XMemberFeatureCall__Group_1_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_1_0__0__Impl13076);\n rule__XMemberFeatureCall__Group_1_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_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 }", "title": "" }, { "docid": "666080e8c59f4cfc503376e444ec29d8", "score": "0.8034671", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6016:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6017:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6017:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6018:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6019:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6019:2: rule__XMemberFeatureCall__Group_1_0_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0_in_rule__XMemberFeatureCall__Group_1_0_0__0__Impl12460);\n rule__XMemberFeatureCall__Group_1_0_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_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 }", "title": "" }, { "docid": "f09bf2605f539530104d72043f24ba70", "score": "0.8028948", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5956:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5957:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5957:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5958:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5959:1: ( rule__XMemberFeatureCall__Group_1_0_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5959:2: rule__XMemberFeatureCall__Group_1_0_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0_in_rule__XMemberFeatureCall__Group_1_0__0__Impl12342);\n rule__XMemberFeatureCall__Group_1_0_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_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 }", "title": "" }, { "docid": "fd06cc9a6df145778b6a74d1a1db415e", "score": "0.8021756", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6174:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6175:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6175:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6176:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6177:1: ( rule__XMemberFeatureCall__Group_1_1_0__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6177:2: rule__XMemberFeatureCall__Group_1_1_0__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0_in_rule__XMemberFeatureCall__Group_1_1__0__Impl12769);\n rule__XMemberFeatureCall__Group_1_1_0__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_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 }", "title": "" }, { "docid": "561e7590b91eba458ba05b1ac813f792", "score": "0.80177456", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8464:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8465:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__117363);\n rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "0a61cec6a47f1b6ba7aae7b18816d3f7", "score": "0.80111533", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8525:1: ( rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8526:2: rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__117484);\n rule__XMemberFeatureCall__Group_1_1_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2_in_rule__XMemberFeatureCall__Group_1_1_3__117487);\n rule__XMemberFeatureCall__Group_1_1_3__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cee3a63d70a93a04df5d94e317145fc2", "score": "0.8002608", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6005:1: ( rule__XMemberFeatureCall__Group_1_0_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6006:2: rule__XMemberFeatureCall__Group_1_0_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0__012433);\n rule__XMemberFeatureCall__Group_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a3bcdb2cf76a269b620c65efa215b9a7", "score": "0.79797804", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6316:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6317:2: rule__XMemberFeatureCall__Group_1_1_0__0__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0__013049);\n rule__XMemberFeatureCall__Group_1_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "25ca1df2586bd7b4786e8fcb1947dede", "score": "0.7968236", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6481:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6482:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6482:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6483:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6484:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )*\n loop51:\n do {\n int alt51=2;\n int LA51_0 = input.LA(1);\n\n if ( (LA51_0==48) ) {\n alt51=1;\n }\n\n\n switch (alt51) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6484:2: rule__XMemberFeatureCall__Group_1_1_1_2__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0_in_rule__XMemberFeatureCall__Group_1_1_1__2__Impl13382);\n \t rule__XMemberFeatureCall__Group_1_1_1_2__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop51;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); \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 }", "title": "" }, { "docid": "99d5b09d770f22c2852e55d32c8fdbae", "score": "0.7959025", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6733:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6734:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6734:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6735:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6736:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )*\n loop53:\n do {\n int alt53=2;\n int LA53_0 = input.LA(1);\n\n if ( (LA53_0==48) ) {\n alt53=1;\n }\n\n\n switch (alt53) {\n \tcase 1 :\n \t // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6736:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl13876);\n \t rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop53;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); \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 }", "title": "" }, { "docid": "1ece3b4e944a2fb6bb3b0a0668cc9104", "score": "0.79544747", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8088:1: ( rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8089:2: rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1__116620);\n rule__XMemberFeatureCall__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2_in_rule__XMemberFeatureCall__Group_1_1__116623);\n rule__XMemberFeatureCall__Group_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ce507696d18892b4f963364b945126f4", "score": "0.794214", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6126:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6127:2: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__312675);\n rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "5fbc9d077e3be631717865a1d461d175", "score": "0.79406637", "text": "public final void rule__XMemberFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7809:1: ( rule__XMemberFeatureCall__Group__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:7810:2: rule__XMemberFeatureCall__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1__Impl_in_rule__XMemberFeatureCall__Group__116071);\n rule__XMemberFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "25799e330b6bafff7cf2cbd376ed7c5b", "score": "0.793774", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6203:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6204:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6204:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6205:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6206:1: ( rule__XMemberFeatureCall__Group_1_1_1__0 )?\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==22) ) {\n alt48=1;\n }\n switch (alt48) {\n case 1 :\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6206:2: rule__XMemberFeatureCall__Group_1_1_1__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0_in_rule__XMemberFeatureCall__Group_1_1__1__Impl12829);\n rule__XMemberFeatureCall__Group_1_1_1__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); \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 }", "title": "" }, { "docid": "82e66db158d40744e8f7c1f4ca690f74", "score": "0.79238176", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6358:1: ( ( () ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6359:1: ( () )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6359:1: ( () )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6360:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6361:1: ()\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6363:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fad0e04cf6a648d74978955a98c32602", "score": "0.79156846", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6078:1: ( ( '.' ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6079:1: ( '.' )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6079:1: ( '.' )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6080:1: '.'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1()); \n }\n match(input,36,FOLLOW_36_in_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl12584); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1()); \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 }", "title": "" }, { "docid": "669a9ce1ae5b0adc9ed45f2b1ac9ed7a", "score": "0.7914597", "text": "public final void ruleXMemberFeatureCall() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1034:2: ( ( ( rule__XMemberFeatureCall__Group__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1035:1: ( ( rule__XMemberFeatureCall__Group__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1035:1: ( ( rule__XMemberFeatureCall__Group__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1036:1: ( rule__XMemberFeatureCall__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1037:1: ( rule__XMemberFeatureCall__Group__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1037:2: rule__XMemberFeatureCall__Group__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__0_in_ruleXMemberFeatureCall2147);\n rule__XMemberFeatureCall__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup()); \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 }", "title": "" }, { "docid": "58a3e0de14ea65c05b14de1cd7e0080e", "score": "0.7912039", "text": "public final void rule__XMemberFeatureCall__Group_1_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8146:1: ( rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8147:2: rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3__Impl_in_rule__XMemberFeatureCall__Group_1_1__316741);\n rule__XMemberFeatureCall__Group_1_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__4_in_rule__XMemberFeatureCall__Group_1_1__316744);\n rule__XMemberFeatureCall__Group_1_1__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "7224a91ea00e186e900e5a9201251ef3", "score": "0.7909402", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6097:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6098:2: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__212615);\n rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__3_in_rule__XMemberFeatureCall__Group_1_0_0_0__212618);\n rule__XMemberFeatureCall__Group_1_0_0_0__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "b83fb093ee531088e314a399bc64aca9", "score": "0.7907876", "text": "public final void rule__XMemberFeatureCall__Group_1_1__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8175:1: ( rule__XMemberFeatureCall__Group_1_1__4__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8176:2: rule__XMemberFeatureCall__Group_1_1__4__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__4__Impl_in_rule__XMemberFeatureCall__Group_1_1__416802);\n rule__XMemberFeatureCall__Group_1_1__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "18bc1e91f70eb02b641d5717ded8598e", "score": "0.7904869", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8366:1: ( rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8367:2: rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__217173);\n rule__XMemberFeatureCall__Group_1_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3_in_rule__XMemberFeatureCall__Group_1_1_1__217176);\n rule__XMemberFeatureCall__Group_1_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "9c1ad4444745710a0b28a2f7f2299ef9", "score": "0.79020154", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6536:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6537:2: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__013480);\n rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1_in_rule__XMemberFeatureCall__Group_1_1_1_2__013483);\n rule__XMemberFeatureCall__Group_1_1_1_2__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f9bddff529790bd480548e0c492f9849", "score": "0.7893811", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6066:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6067:2: rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__112553);\n rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__2_in_rule__XMemberFeatureCall__Group_1_0_0_0__112556);\n rule__XMemberFeatureCall__Group_1_0_0_0__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "057a69b35cc37baf4a1318be329df052", "score": "0.7889316", "text": "public final void rule__XMemberFeatureCall__Group_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5944:1: ( rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5945:2: rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0__012312);\n rule__XMemberFeatureCall__Group_1_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1_in_rule__XMemberFeatureCall__Group_1_0__012315);\n rule__XMemberFeatureCall__Group_1_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "b4b6f7726eeb128ca9efe6818d1f1c9b", "score": "0.78892547", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6346:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6347:2: rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__013108);\n rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1_in_rule__XMemberFeatureCall__Group_1_1_0_0__013111);\n rule__XMemberFeatureCall__Group_1_1_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f4bac067dbc2aa279e1a27ea93244866", "score": "0.78860724", "text": "public final void rule__XMemberFeatureCall__Group_1_0_0_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6035:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6036:2: rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl_in_rule__XMemberFeatureCall__Group_1_0_0_0__012492);\n rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0_0_0__1_in_rule__XMemberFeatureCall__Group_1_0_0_0__012495);\n rule__XMemberFeatureCall__Group_1_0_0_0__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "020d4c6b0f528d6a2c5022552f473a83", "score": "0.78755486", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6377:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6378:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_0_0__113169);\n rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "5fc8f9f51606d84df2fd643940bc60c7", "score": "0.7861702", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6722:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6723:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__113849);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "002f31e8cbce020c1564dc413ec37a18", "score": "0.78545463", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6785:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6786:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__113973);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "35da5ca6e395a7f030c794ee6c5c0f25", "score": "0.78538007", "text": "public final void rule__XMemberFeatureCall__Group_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8117:1: ( rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8118:2: rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1__216681);\n rule__XMemberFeatureCall__Group_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3_in_rule__XMemberFeatureCall__Group_1_1__216684);\n rule__XMemberFeatureCall__Group_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cfcab2fdf1c5b018107a8518e5a92951", "score": "0.78268963", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6754:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6755:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__013911);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__013914);\n rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "a3608f1e587d478a6b2671fe2a22de35", "score": "0.78227675", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6693:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6694:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__013789);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_3_1_1__013792);\n rule__XMemberFeatureCall__Group_1_1_3_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "9d99a6660d6bc3e568737f61b81f2680", "score": "0.7814732", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6657:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6658:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__213724);\n rule__XMemberFeatureCall__Group_1_1_3__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "fd5ef8a6f38407fece277123b0e8a8ea", "score": "0.7807391", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6599:1: ( rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6600:2: rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__013603);\n rule__XMemberFeatureCall__Group_1_1_3__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__1_in_rule__XMemberFeatureCall__Group_1_1_3__013606);\n rule__XMemberFeatureCall__Group_1_1_3__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "6b64eab3536c457d1326a5477b08cc19", "score": "0.78023875", "text": "public final void rule__XMemberFeatureCall__Group_1_1__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6261:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6262:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6262:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6263:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6264:1: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?\n int alt49=2;\n alt49 = dfa49.predict(input);\n switch (alt49) {\n case 1 :\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6264:2: rule__XMemberFeatureCall__Group_1_1_3__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__0_in_rule__XMemberFeatureCall__Group_1_1__3__Impl12950);\n rule__XMemberFeatureCall__Group_1_1_3__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); \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 }", "title": "" }, { "docid": "c2a719596e043d17a100a74076eca04b", "score": "0.7800054", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6409:1: ( rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6410:2: rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__013230);\n rule__XMemberFeatureCall__Group_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__1_in_rule__XMemberFeatureCall__Group_1_1_1__013233);\n rule__XMemberFeatureCall__Group_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ae6203384f58820dca60be31028a4412", "score": "0.77971935", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6567:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6568:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1_2__113542);\n rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3f176eee0156da0a5c9a61b94d4a5914", "score": "0.7793461", "text": "public final void rule__XMemberFeatureCall__Group_1_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5973:1: ( rule__XMemberFeatureCall__Group_1_0__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5974:2: rule__XMemberFeatureCall__Group_1_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_0__1__Impl_in_rule__XMemberFeatureCall__Group_1_0__112372);\n rule__XMemberFeatureCall__Group_1_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "55287ac9fcec43f0280ed5195ad0905b", "score": "0.77915466", "text": "public final void rule__XMemberFeatureCall__Group_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6162:1: ( rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6163:2: rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__0__Impl_in_rule__XMemberFeatureCall__Group_1_1__012739);\n rule__XMemberFeatureCall__Group_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1_in_rule__XMemberFeatureCall__Group_1_1__012742);\n rule__XMemberFeatureCall__Group_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "6114ddc058657a057f315805bdf8ccc3", "score": "0.77888936", "text": "public final void rule__XMemberFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5883:1: ( rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5884:2: rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__0__Impl_in_rule__XMemberFeatureCall__Group__012191);\n rule__XMemberFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1_in_rule__XMemberFeatureCall__Group__012194);\n rule__XMemberFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "df0d2cca61e230a47e2fd864f688af6d", "score": "0.774904", "text": "public final void rule__XFeatureCall__Group_4_1_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12657:1: ( rule__XFeatureCall__Group_4_1_1_1__0__Impl rule__XFeatureCall__Group_4_1_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12658:2: rule__XFeatureCall__Group_4_1_1_1__0__Impl rule__XFeatureCall__Group_4_1_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1_1__0__Impl_in_rule__XFeatureCall__Group_4_1_1_1__025614);\n rule__XFeatureCall__Group_4_1_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1_1__1_in_rule__XFeatureCall__Group_4_1_1_1__025617);\n rule__XFeatureCall__Group_4_1_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "c3896853030694999f108866af24c301", "score": "0.774539", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6498:1: ( rule__XMemberFeatureCall__Group_1_1_1__3__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6499:2: rule__XMemberFeatureCall__Group_1_1_1__3__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__313413);\n rule__XMemberFeatureCall__Group_1_1_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "71c315612ff1cd983d6c7b027a0449b8", "score": "0.77180237", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6440:1: ( rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6441:2: rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__113292);\n rule__XMemberFeatureCall__Group_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2_in_rule__XMemberFeatureCall__Group_1_1_1__113295);\n rule__XMemberFeatureCall__Group_1_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "235a7b7b128a032fa784e2e84c5217cc", "score": "0.77165", "text": "public final void rule__XFeatureCall__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12125:1: ( rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12126:2: rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0__Impl_in_rule__XFeatureCall__Group__024559);\n rule__XFeatureCall__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1_in_rule__XFeatureCall__Group__024562);\n rule__XFeatureCall__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "e3e0a817042099293ac993eddc152fad", "score": "0.77156574", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8565:1: ( ( ')' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8566:1: ( ')' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8566:1: ( ')' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8567:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); \n }\n match(input,52,FOLLOW_52_in_rule__XMemberFeatureCall__Group_1_1_3__2__Impl17573); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); \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 }", "title": "" }, { "docid": "43beda5db5f36010653a764db52e508e", "score": "0.7708763", "text": "public final void rule__XFeatureCall__Group_4_1_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12596:1: ( rule__XFeatureCall__Group_4_1_1__0__Impl rule__XFeatureCall__Group_4_1_1__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12597:2: rule__XFeatureCall__Group_4_1_1__0__Impl rule__XFeatureCall__Group_4_1_1__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1__0__Impl_in_rule__XFeatureCall__Group_4_1_1__025492);\n rule__XFeatureCall__Group_4_1_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1__1_in_rule__XFeatureCall__Group_4_1_1__025495);\n rule__XFeatureCall__Group_4_1_1__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "e254129e40de944d67b38839d7a0dfa1", "score": "0.7686407", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8318:1: ( ( '<' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8319:1: ( '<' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8319:1: ( '<' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8320:1: '<'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); \n }\n match(input,23,FOLLOW_23_in_rule__XMemberFeatureCall__Group_1_1_1__0__Impl17082); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_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 }", "title": "" }, { "docid": "2c12b63fedef3d3bb7a8d9255e6546c3", "score": "0.76849365", "text": "public final void rule__XMemberFeatureCall__Group_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6191:1: ( rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6192:2: rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__1__Impl_in_rule__XMemberFeatureCall__Group_1_1__112799);\n rule__XMemberFeatureCall__Group_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2_in_rule__XMemberFeatureCall__Group_1_1__112802);\n rule__XMemberFeatureCall__Group_1_1__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "d996c5cbd4aaa0ac88a5297f5cc810af", "score": "0.7678459", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6469:1: ( rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6470:2: rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1_1__213352);\n rule__XMemberFeatureCall__Group_1_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_1__3_in_rule__XMemberFeatureCall__Group_1_1_1__213355);\n rule__XMemberFeatureCall__Group_1_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3863373edfc182a1d1e8ef2c284bed46", "score": "0.7675044", "text": "public final void ruleXMemberFeatureCall() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:726:2: ( ( ( rule__XMemberFeatureCall__Group__0 ) ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:727:1: ( ( rule__XMemberFeatureCall__Group__0 ) )\n {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:727:1: ( ( rule__XMemberFeatureCall__Group__0 ) )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:728:1: ( rule__XMemberFeatureCall__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGroup()); \n }\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:729:1: ( rule__XMemberFeatureCall__Group__0 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:729:2: rule__XMemberFeatureCall__Group__0\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__0_in_ruleXMemberFeatureCall1487);\n rule__XMemberFeatureCall__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGroup()); \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 }", "title": "" }, { "docid": "c19d7022631dda86a51f1d14138325d4", "score": "0.76700664", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6628:1: ( rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6629:2: rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__1__Impl_in_rule__XMemberFeatureCall__Group_1_1_3__113663);\n rule__XMemberFeatureCall__Group_1_1_3__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1_3__2_in_rule__XMemberFeatureCall__Group_1_1_3__113666);\n rule__XMemberFeatureCall__Group_1_1_3__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "d4941ca439dbd6337c72de2a9eaa2cf8", "score": "0.7669838", "text": "public final void rule__XFeatureCall__Group_4_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12636:1: ( ( ( rule__XFeatureCall__Group_4_1_1_1__0 )* ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12637:1: ( ( rule__XFeatureCall__Group_4_1_1_1__0 )* )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12637:1: ( ( rule__XFeatureCall__Group_4_1_1_1__0 )* )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12638:1: ( rule__XFeatureCall__Group_4_1_1_1__0 )*\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_4_1_1_1()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12639:1: ( rule__XFeatureCall__Group_4_1_1_1__0 )*\n loop90:\n do {\n int alt90=2;\n int LA90_0 = input.LA(1);\n\n if ( (LA90_0==53) ) {\n alt90=1;\n }\n\n\n switch (alt90) {\n \tcase 1 :\n \t // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12639:2: rule__XFeatureCall__Group_4_1_1_1__0\n \t {\n \t pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1_1__0_in_rule__XFeatureCall__Group_4_1_1__1__Impl25579);\n \t rule__XFeatureCall__Group_4_1_1_1__0();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop90;\n }\n } while (true);\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_4_1_1_1()); \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 }", "title": "" }, { "docid": "f68ed1693f2311d778d99923a0eab428", "score": "0.7666143", "text": "public final void rule__XFeatureCall__Group_4_1_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12688:1: ( rule__XFeatureCall__Group_4_1_1_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12689:2: rule__XFeatureCall__Group_4_1_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1_1__1__Impl_in_rule__XFeatureCall__Group_4_1_1_1__125676);\n rule__XFeatureCall__Group_4_1_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "8f5e4802e1449c01664cf3f2fe956df7", "score": "0.76478297", "text": "public final void rule__XMemberFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5912:1: ( rule__XMemberFeatureCall__Group__1__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:5913:2: rule__XMemberFeatureCall__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group__1__Impl_in_rule__XMemberFeatureCall__Group__112250);\n rule__XMemberFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "cf931280ff0afe1a4f91661b225dd518", "score": "0.7631852", "text": "public final void rule__XMemberFeatureCall__Group_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6220:1: ( rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6221:2: rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__2__Impl_in_rule__XMemberFeatureCall__Group_1_1__212860);\n rule__XMemberFeatureCall__Group_1_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3_in_rule__XMemberFeatureCall__Group_1_1__212863);\n rule__XMemberFeatureCall__Group_1_1__3();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "bc06e1aa5c559ceca2b81df34e64c76e", "score": "0.7620391", "text": "public final void rule__XMemberFeatureCall__Group_1_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6249:1: ( rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4 )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6250:2: rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__3__Impl_in_rule__XMemberFeatureCall__Group_1_1__312920);\n rule__XMemberFeatureCall__Group_1_1__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__4_in_rule__XMemberFeatureCall__Group_1_1__312923);\n rule__XMemberFeatureCall__Group_1_1__4();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "911263d4c9d90df3c92738ee996a66e9", "score": "0.76173526", "text": "public final void rule__XFeatureCall__Group_4_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12625:1: ( rule__XFeatureCall__Group_4_1_1__1__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12626:2: rule__XFeatureCall__Group_4_1_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4_1_1__1__Impl_in_rule__XFeatureCall__Group_4_1_1__125552);\n rule__XFeatureCall__Group_4_1_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "341050052adf97185103f2151319b90f", "score": "0.7602027", "text": "public final void rule__XMemberFeatureCall__Group_1_1__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6278:1: ( rule__XMemberFeatureCall__Group_1_1__4__Impl )\n // ../org.xtext.example.helloxbase.ui/src-gen/org/xtext/example/helloxbase/ui/contentassist/antlr/internal/InternalHelloXbase.g:6279:2: rule__XMemberFeatureCall__Group_1_1__4__Impl\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Group_1_1__4__Impl_in_rule__XMemberFeatureCall__Group_1_1__412981);\n rule__XMemberFeatureCall__Group_1_1__4__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "3334977c4d50673870a0305b84506dbd", "score": "0.756891", "text": "public final void rule__XFeatureCall__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12137:1: ( ( () ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12138:1: ( () )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12138:1: ( () )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12139:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12140:1: ()\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12142:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d2e6754718fab8eb2ab74c6ab8628666", "score": "0.75400996", "text": "public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8663:1: ( ( ',' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8664:1: ( ',' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8664:1: ( ',' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8665:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); \n }\n match(input,53,FOLLOW_53_in_rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl17763); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_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 }", "title": "" }, { "docid": "6270b1d7c5a179a6dcd3a6da86408121", "score": "0.7528581", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8445:1: ( ( ',' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8446:1: ( ',' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8446:1: ( ',' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8447:1: ','\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); \n }\n match(input,53,FOLLOW_53_in_rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl17332); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_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 }", "title": "" }, { "docid": "7b9c65bbf4580caac2456421eca5d2cd", "score": "0.74921244", "text": "public final void rule__XFeatureCall__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12312:1: ( rule__XFeatureCall__Group_2__0__Impl rule__XFeatureCall__Group_2__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12313:2: rule__XFeatureCall__Group_2__0__Impl rule__XFeatureCall__Group_2__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__0__Impl_in_rule__XFeatureCall__Group_2__024933);\n rule__XFeatureCall__Group_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__1_in_rule__XFeatureCall__Group_2__024936);\n rule__XFeatureCall__Group_2__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "ed47d8d10cbf4b03a84774e968b41805", "score": "0.74543375", "text": "public final void rule__XFeatureCall__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12197:1: ( ( ( rule__XFeatureCall__Group_2__0 )? ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12198:1: ( ( rule__XFeatureCall__Group_2__0 )? )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12198:1: ( ( rule__XFeatureCall__Group_2__0 )? )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12199:1: ( rule__XFeatureCall__Group_2__0 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup_2()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12200:1: ( rule__XFeatureCall__Group_2__0 )?\n int alt85=2;\n int LA85_0 = input.LA(1);\n\n if ( (LA85_0==23) ) {\n alt85=1;\n }\n switch (alt85) {\n case 1 :\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12200:2: rule__XFeatureCall__Group_2__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_2__0_in_rule__XFeatureCall__Group__2__Impl24711);\n rule__XFeatureCall__Group_2__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup_2()); \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 }", "title": "" }, { "docid": "b69bd9d794ed419a2e99832369b3edc1", "score": "0.7439757", "text": "public final void rule__XFeatureCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12156:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12157:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__1__Impl_in_rule__XFeatureCall__Group__124620);\n rule__XFeatureCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group__2_in_rule__XFeatureCall__Group__124623);\n rule__XFeatureCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "2fbd8b430d4340a62b8fa9afa676e14d", "score": "0.7421491", "text": "public final void ruleXFeatureCall() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1538:2: ( ( ( rule__XFeatureCall__Group__0 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1539:1: ( ( rule__XFeatureCall__Group__0 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1539:1: ( ( rule__XFeatureCall__Group__0 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1540:1: ( rule__XFeatureCall__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFeatureCallAccess().getGroup()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1541:1: ( rule__XFeatureCall__Group__0 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:1541:2: rule__XFeatureCall__Group__0\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group__0_in_ruleXFeatureCall3227);\n rule__XFeatureCall__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFeatureCallAccess().getGroup()); \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 }", "title": "" }, { "docid": "992bf7ce7e086f94af42c20591586805", "score": "0.7419246", "text": "public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8285:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8286:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8286:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8287:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \n }\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8288:1: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8288:2: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1\n {\n pushFollow(FOLLOW_rule__XMemberFeatureCall__Alternatives_1_1_0_0_1_in_rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl17017);\n rule__XMemberFeatureCall__Alternatives_1_1_0_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); \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 }", "title": "" }, { "docid": "f59a3b921e0a3e92805bfd426a37c846", "score": "0.74155205", "text": "public final void rule__XMemberFeatureCall__Group_1_1_1__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8406:1: ( ( '>' ) )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8407:1: ( '>' )\n {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8407:1: ( '>' )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:8408:1: '>'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); \n }\n match(input,22,FOLLOW_22_in_rule__XMemberFeatureCall__Group_1_1_1__3__Impl17262); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); \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 }", "title": "" }, { "docid": "0c5e99206b698d820f7d6366e6c8f19f", "score": "0.74022156", "text": "public final void rule__XFeatureCall__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12502:1: ( rule__XFeatureCall__Group_4__0__Impl rule__XFeatureCall__Group_4__1 )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12503:2: rule__XFeatureCall__Group_4__0__Impl rule__XFeatureCall__Group_4__1\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4__0__Impl_in_rule__XFeatureCall__Group_4__025306);\n rule__XFeatureCall__Group_4__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4__1_in_rule__XFeatureCall__Group_4__025309);\n rule__XFeatureCall__Group_4__1();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" }, { "docid": "f58102f1fe4ef22ac34e0e95519d1c1d", "score": "0.7385043", "text": "public final void rule__XFeatureCall__Group_4__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12560:1: ( rule__XFeatureCall__Group_4__2__Impl )\n // ../org.xtext.httprouting.ui/src-gen/org/xtext/httprouting/ui/contentassist/antlr/internal/InternalRoute.g:12561:2: rule__XFeatureCall__Group_4__2__Impl\n {\n pushFollow(FOLLOW_rule__XFeatureCall__Group_4__2__Impl_in_rule__XFeatureCall__Group_4__225427);\n rule__XFeatureCall__Group_4__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\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 }", "title": "" } ]
21c7cccf06084b4a7e2f3d672bd2d044
Should insert an array of Author into the database.
[ { "docid": "ed5bcede5459f3793a7f7ff0ad1ae64b", "score": "0.7780222", "text": "public int insertAuthor(Author[] authors);", "title": "" } ]
[ { "docid": "5f842dc60895cd894a75952eda5f9b76", "score": "0.77056307", "text": "public int insertAuthor_of(Author_of[] author_ofs);", "title": "" }, { "docid": "b8cadee61991fc31b104640460f1cc27", "score": "0.68980384", "text": "void insertNewPublisher(String[] publisher) throws SQLException{\n String sqlStr = \"INSERT INTO Publishers (publisherName, publisherAddress, publisherPhone, publisherEmail)\"\n + \"VALUES ('\" + publisher[0] + \"', '\" + publisher[1] + \"', '\" + publisher[2] + \"', '\" + publisher[3] + \"')\";\n st.executeUpdate(sqlStr);\n System.out.println(\"New publisher added.\");\n }", "title": "" }, { "docid": "4c1debab3a938059af12bce3552439d0", "score": "0.6760031", "text": "private boolean insertAuthors(int id, ArrayList<String> authors) throws DLException{\n for(String author : authors){\n \n //get the id of the faculty author\n String[] splitName = author.split(\" \");\n String query = \"SELECT id FROM faculty WHERE fName = ? AND lName = ?;\";\n ArrayList<ArrayList<String>> facultyResult = db.getData(query, getParamArrayList(splitName[0],splitName[1]), false);\n \n //if author cannot be found\n if(facultyResult == null || facultyResult.size() < 1){\n return false;\n }\n //if author found, insert record into authorship\n else{\n String sql = \"INSERT INTO authorship (facultyId, paperId) VALUES (?,?)\";\n if(!db.setData(sql, getParamArrayList(facultyResult.get(0).get(0), \"\"+id))){\n return false;\n }\n } \n }\n return true;\n }", "title": "" }, { "docid": "861add8e5996e9442d9a08dc40955ecd", "score": "0.67016727", "text": "java.util.List<Integer> insert(java.util.Collection<BookAuthor> bookAuthorList);", "title": "" }, { "docid": "8b8e7be102fb5a24ceba7a3a4c723993", "score": "0.663014", "text": "int insert(Authorities record);", "title": "" }, { "docid": "36faf4eb3c252744dfb4c09bf6f508f9", "score": "0.66115534", "text": "public int insertBook(Book[] books);", "title": "" }, { "docid": "ef5fbda98faef8b1740f2ac839e62b54", "score": "0.6211729", "text": "@Insert\n void insertAll(User[] users);", "title": "" }, { "docid": "4665c17520d09098b63fe8598f969f78", "score": "0.60578674", "text": "java.lang.Integer insert(BookAuthor bookAuthor);", "title": "" }, { "docid": "953d581abdcfb9e23006f63c45d37c9b", "score": "0.59913146", "text": "Blog insert(Blog blog);", "title": "" }, { "docid": "3e5ebff26019cfd44df680abdbe2c066", "score": "0.5788324", "text": "public void setAuthors(ArrayList<Author> authors){ \n \tthis.authors = authors;\n }", "title": "" }, { "docid": "35f661f8517cec57592b111d28cc9d92", "score": "0.57830745", "text": "@Override\r\n\tpublic int insert(CompanyWithBLOBs ass) {\n\t\treturn companyMapper.insert(ass) ;\r\n\t}", "title": "" }, { "docid": "749274927a998f0be4e27d69009aa6a2", "score": "0.57431173", "text": "public void insertSponsors(List<Sponsor> sponsors) ;", "title": "" }, { "docid": "9aa50aa6a5fff8dcf9d31daee5a6277f", "score": "0.57036453", "text": "int bacthInsert(@Param(\"infoes\") List<UserTagKey> infoes);", "title": "" }, { "docid": "2e341b1a4c7c98293a8a2c6a534db02a", "score": "0.57009596", "text": "@Insert\n void insertAll(Address... address);", "title": "" }, { "docid": "64d5eb328a7b312dc8fb98942c346bb1", "score": "0.5691466", "text": "public static AuthorBook[] addAuthor (AuthorBook[] author, Scanner in) {\n\n int index;\n String stringTemp;\n String tempString;\n boolean boolTemp = true;\n AuthorBook testAuthor = new AuthorBook();\n Books bookTemp = new Books();\n\n System.out.println(\"First name of the author: \");\n testAuthor.setAuthorFirstName(in.next());\n System.out.println(\"Last name of the author: \");\n testAuthor.setAuthorLastName(in.next());\n\n index = authorSearch( author, testAuthor);\n\n do {\n System.out.println(\"State name of the book: \");\n stringTemp = in.next().trim();\n\n System.out.println(\"State number of pages in the book: \");\n\n tempString = in.next();\n bookTemp.setNumberOfPages(tempString);\n\n\n\n bookTemp.setBookName(stringTemp);\n\n boolTemp = bookSearch(author, stringTemp);\n\n\n if(boolTemp){\n System.out.println(\"The book already exist.\");\n boolTemp =true;\n }\n\n } while(boolTemp);\n\n author = setAuthorBook(author, testAuthor, bookTemp, index );\n\n\n\n return author;\n }", "title": "" }, { "docid": "78c67029e5a93d441e9da7ea4feb8e72", "score": "0.56894886", "text": "public void insertALL(List<Note> notes);", "title": "" }, { "docid": "0f9394e6b1970e307fff49288a90189f", "score": "0.56309706", "text": "public boolean add(Object[] obj) {\n\t\t\n\t\tString sql = \"insert into article\"+\n\t\t\"(articleTitle,articleContent,articleTime,volunteerId)\"+\n\t\t\"values\"+\n\t\t\"(?,?,?,?)\";\n\t\tDbManager db = new DbManager();\n\t\t\n\t\treturn db.execute(sql, obj);\n\t\n\t}", "title": "" }, { "docid": "6fdae0642b2be198da705e9249a66a8a", "score": "0.56279993", "text": "int insert(BookCategories record);", "title": "" }, { "docid": "775e997f9bd4051fabbc6b74b2ee690e", "score": "0.56224144", "text": "int insert(ZBlogAuthority record);", "title": "" }, { "docid": "062c428b869bd193ff6a7ed3767490b6", "score": "0.5609419", "text": "void insertNewBook(String[] stringAttrs, int[] intAttrs) throws SQLException{//title, group, publisher;year, pages;\n String sql = \"INSERT INTO Books (BookTitle, PublisherName, yearPublished, GroupName,numberPages)\"\n + \"VALUES ('\" + stringAttrs[0] + \"', '\" + stringAttrs[2] + \"',\" + intAttrs[0] + \", '\" + stringAttrs[1] + \"', \"+ intAttrs[1] +\") \";\n st.executeUpdate(sql);\n System.out.println(\"New book has been inserted\");\n }", "title": "" }, { "docid": "bd74755960f1b8e0b47ba19862d26e6e", "score": "0.5601522", "text": "<T> void save(T[] entities);", "title": "" }, { "docid": "51ebcbdff6e07ecae405a07a114cc64b", "score": "0.55945", "text": "private void addAuthor(String parameters) throws SyntaxException, SemanticsException {\n String[] splitParameters = parameters.split(\",\");\n HelperMethods.checkArrayLength(splitParameters, 2, 2 + ERR_COMMA_EXPECTED);\n if (!HelperMethods.isFromAlphabet(splitParameters[0]) || !HelperMethods.isFromAlphabet(splitParameters[1])) {\n throw new SemanticsException(\"first name and last name \" + ERR_NOT_LETTER);\n }\n Author author = new Author(splitParameters[0], splitParameters[1]);\n literatureManager.getAuthorList().addSorted(author);\n HelperMethods.confirmSuccess();\n }", "title": "" }, { "docid": "b3ba9a6306d76912011381881f0c4029", "score": "0.5572852", "text": "public void putList(String[] authorList) {\n if (authorList != null) { //null check\n for (String author : authorList) { //put each author in as key\n int len = author.split(\"\\\\s+\").length;\n if (len <= 5 && len > 1) { //cut authors with names of 1 or +5 words\n for (int i = 0; i < authorList.length - 1; i++) { // coworkers as vals\n if (authorList[i] == author) { // if index on the author\n continue;\n } else {\n this.put(author, authorList[i]);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "179e17e1b886679cdd0916636dfe5208", "score": "0.5565775", "text": "@Override\n\tpublic void insert(Vendeur[] obj) throws MyException {\n\t\t\n\t}", "title": "" }, { "docid": "cb6b20bab1d2f305761c9f450a7d9670", "score": "0.55386895", "text": "public AuthorOracle(){\n books = new ArrayList<>();\n }", "title": "" }, { "docid": "f71f29daea9c42e17471b41b65d0de86", "score": "0.55332243", "text": "int insert(Authority record);", "title": "" }, { "docid": "3522f20c7b8533ff0438af3d50c2e57b", "score": "0.553223", "text": "public void insertAuthor(String authorName, int ID) throws SQLException { //Inserts a new Author into the table\n Statement stmt = connection.createStatement();\n stmt.executeUpdate(\"INSERT INTO Author (AuthorName, IDNum) VALUES ('\" + authorName + \"', \" + ID + \")\");\n }", "title": "" }, { "docid": "e66c2ec6a17fff3184e8e75995dbfff9", "score": "0.55287045", "text": "public void insertDocuments(ArrayList<Document> al) {\n\t\tif (al.size() > 0) {\n\t\t\tString query = \"INSERT INTO DOCUMENTS(ID, Title, Text, Coder, Author, Source, Section, Notes, Type, Date) VALUES \";\n\t\t\tfor (int i = 0; i < al.size(); i++) {\n\t\t\t\tquery = query + \"(\" + al.get(i).getId() + \", '\" + al.get(i).getTitle().replaceAll(\"'\", \"''\") + \"', '\" \n\t\t\t\t\t\t+ al.get(i).getText().replaceAll(\"'\", \"''\") + \"', \" + al.get(i).getCoder() + \", '\" \n\t\t\t\t\t\t+ al.get(i).getAuthor().replaceAll(\"'\", \"''\") + \"', '\" + al.get(i).getSource().replaceAll(\"'\", \"''\") + \"', '\" \n\t\t\t\t\t\t+ al.get(i).getSection().replaceAll(\"'\", \"''\") + \"', '\" + al.get(i).getNotes().replaceAll(\"'\", \"''\") + \"', '\" \n\t\t\t\t\t\t+ al.get(i).getType().replaceAll(\"'\", \"''\") + \"', \" + al.get(i).getDate().getTime() + \")\";\n\t\t\t\tif (i < al.size() - 1) {\n\t\t\t\t\tquery = query + \", \";\n\t\t\t\t}\n\t\t\t}\n\t\t\texecuteStatement(query);\n\t\t}\n\t}", "title": "" }, { "docid": "f860caf237dc0cbffb7d8148314bb293", "score": "0.5516308", "text": "int insert(AssetList record);", "title": "" }, { "docid": "ae2ebda8e2645d0de85e47e0807347e7", "score": "0.5506279", "text": "public static AuthorBook[] addAuthors(AuthorBook [] authorBook, AuthorBook author){\n\n if(( authorBook != null)){\n\n if(authorBook == null){\n\n authorBook = new AuthorBook[0];\n\n }\n\n authorBook = Arrays.copyOf(authorBook, authorBook.length +1);\n authorBook[authorBook.length-1] = author;\n\n }\n return authorBook;\n }", "title": "" }, { "docid": "cc6271fe852fbedd053adab5dd29452e", "score": "0.5501686", "text": "int insert(IntegralBookHis record);", "title": "" }, { "docid": "3e5ff09d3f88c9304d3411ed17df6ab0", "score": "0.54978544", "text": "int insert(Jiraperms record);", "title": "" }, { "docid": "ac208b6757a3e4fbf757801844ce3618", "score": "0.5493929", "text": "protected abstract void doInsert();", "title": "" }, { "docid": "d5dd6f4989af57b6168d263fc3606bfc", "score": "0.54911816", "text": "public void insertJournal(Journal journal , int year);", "title": "" }, { "docid": "4f16abbee21db1f953e04ed0bbc6e461", "score": "0.5451634", "text": "void insertBlock(T[] records) {\r\n /*\r\n Implementation hidden, contact Author\r\n */\r\n }", "title": "" }, { "docid": "81bb03d7d6b84412a9d1b6ec30cd09b5", "score": "0.5447168", "text": "int insert(EnfordUser record);", "title": "" }, { "docid": "593e5e3e0801759a39b63e7821aa3ca0", "score": "0.54381424", "text": "public void setAuthorCollection(Collection<Author> authorCollection) {\r\n this.authorCollection = authorCollection;\r\n }", "title": "" }, { "docid": "8eefb93d151ce3721287a4263d566cfa", "score": "0.54352176", "text": "int insertSelective(ZBlogAuthority record);", "title": "" }, { "docid": "d97b3080423a00dab0d93e377bd5904f", "score": "0.5429281", "text": "@Override\n // method to insert a new entry\n public void insertion(List<Entry>[] listArray, Entry e) {\n if (!Character.isUpperCase(e.getSurname().charAt(0))) {\n throw new InputMismatchException(\"The first letter of the surname has to be capital\");\n }\n // get the first letter of the surname\n char firstLetter = e.getSurname().charAt(0);\n /* the index will hold a value of the Integer value of the first letter of the surname (ASCII code) minus 65 (ASCII code of A) to specify\n the correct linked list (if first letter is A, index will be 0, if B, index will be 1, etc.) */\n int index = ((int) firstLetter) - 65;\n // if there are no elements in the list add the first element\n if (listArray[index].isEmpty()) {\n listArray[index].add(e);\n // when the entry is inserted return\n return;\n }\n else {\n // initialise iterator for the list of entries\n ListIterator<Entry> iterator = listArray[index].listIterator();\n // while there are elements in the list\n while (iterator.hasNext()) {\n // find the place where the entry has to be inserted\n if (iterator.next().getSurname().compareTo(e.getSurname()) > 0) {\n // move iterator back to get to the right place to insert the new entry\n iterator.previous();\n iterator.add(e);\n // when the entry is inserted return\n return;\n }\t\t\t\n }\n // if the new entry has the highest value alphabetically insert it at the end of the list\n if (!iterator.hasNext()) {\n iterator.add(e);\n }\n }\n }", "title": "" }, { "docid": "beec3e0f0539070061aae15d30422fab", "score": "0.5420599", "text": "@Insert\n void insertMenu(Menudb... menudbs);", "title": "" }, { "docid": "83581f1cf010d6a6aecb3d9076677bd6", "score": "0.54142934", "text": "@Transactional\n\tvoid create(int id, int authorId, String title);", "title": "" }, { "docid": "187e06baf968fa439252122767cd93b6", "score": "0.54018956", "text": "@Transactional\n public void addBookToAuthor() {\n Author proxy = authorRepository.getOne(1L);\n\n Book book = new Book();\n book.setIsbn(\"001-MJ\");\n book.setTitle(\"The Canterbury Anthology\");\n book.setAuthor(proxy);\n\n bookRepository.save(book);\n }", "title": "" }, { "docid": "c7b021a8b11fc011917c4b72f67c6581", "score": "0.5389825", "text": "public void inserir(Book registro) {\n\t\t\r\n\t}", "title": "" }, { "docid": "de0fec43869d5b2443ee863e779a6636", "score": "0.538283", "text": "int insert(YpUserCollection record);", "title": "" }, { "docid": "41e562d544f19fca9e347efae7c434c4", "score": "0.53795916", "text": "int insert(ArticleCategory record);", "title": "" }, { "docid": "87655269f72ca9a7c68d0fd2907861b8", "score": "0.5370166", "text": "public void insertStudents(List<Student> students){\n for(Student stu : students){\n studentContract.insert(stu);\n }\n }", "title": "" }, { "docid": "6479dbd6b23d8007e0782cd6c94d3f61", "score": "0.53645146", "text": "void insert(Advert record);", "title": "" }, { "docid": "c02880016537e697e6331102ef0519fa", "score": "0.53321403", "text": "java.util.List<Integer> update(java.util.Collection<BookAuthor> bookAuthorList);", "title": "" }, { "docid": "19e857a656bcd1e218cd25e44f3f1c4a", "score": "0.53240937", "text": "int insert(Ambry record);", "title": "" }, { "docid": "113d9dcffec0e8d11974fbd9eb5c7e3f", "score": "0.53221047", "text": "public int insertPublisher(Publisher[] publishers);", "title": "" }, { "docid": "209af14ec8418f3fb53daa852c597c92", "score": "0.53179705", "text": "@Override\r\n public boolean allowedToInsert() {\r\n return true;\r\n }", "title": "" }, { "docid": "209af14ec8418f3fb53daa852c597c92", "score": "0.53179705", "text": "@Override\r\n public boolean allowedToInsert() {\r\n return true;\r\n }", "title": "" }, { "docid": "29fbf20f0b24c4d47abe10ba5525d2f6", "score": "0.5315668", "text": "int insert(BatchStudentTracker record);", "title": "" }, { "docid": "d6e794acfdacb78abcf0172d19064d16", "score": "0.53100187", "text": "public void addAuthor(Author author) {\n\t authors[numAuthors] = author;\n\t ++numAuthors;\n\t }", "title": "" }, { "docid": "e06ba073820f2ea1d623b0359078ab16", "score": "0.53095734", "text": "int insert(Magazine record);", "title": "" }, { "docid": "1d1f2345565538ec04453e0ca87c844a", "score": "0.5304071", "text": "int insert(AuthUsers record);", "title": "" }, { "docid": "7c5ac46ceb2ad6076cc7fdfa573797b3", "score": "0.53026074", "text": "@Override\r\n public boolean insertArtist(Artist artist)\r\n {\r\n try\r\n {\r\n String query= \"insert into artist(artist_id,artist_name,genre_id) values(?,?,?)\";\r\n PreparedStatement preparedStatement=connection.prepareStatement(query);\r\n preparedStatement.setString(1,artist.getArtistId());\r\n preparedStatement.setString(2,artist.getArtistName());\r\n preparedStatement.setString(3,artist.getGenreId());\r\n\r\n int count=preparedStatement.executeUpdate();\r\n\r\n if(count>0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch(SQLException ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n catch(Exception ex)\r\n {\r\n ex.printStackTrace();\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "1c5a63a17e814f35a222ce8b0b9de2d7", "score": "0.52983004", "text": "int insert(BookCategory record);", "title": "" }, { "docid": "b09ddc4db360ce73cd1e517d91b3e2a2", "score": "0.5297784", "text": "private void setDeveloperInser()\r\n {\r\n \tString[] firstName = new String[]{\"John\", \"Thomas\", \"Samuel\", \"Chris\", \"Daniel\", \"Joey\", \"David\", \"Joshua\", \"Michael\", \"John\"};\r\n \r\n Random random = new Random();\r\n \r\n try\r\n {\r\n \r\n \r\n for(int i = 0;i<50;i++)\r\n {\r\n stat = conn.createStatement();\r\n int randomNumber = random.nextInt(firstName.length);\t\r\n String timestamp = String.valueOf(System.currentTimeMillis());\r\n \r\n\t\t\tString query = \"INSERT INTO people \" +\r\n\t\t\t\" (first_name,last_name,gender,born,phone,email,town,street,street_number) \" +\r\n\t\t\t\"VALUES \" +\r\n\t\t\t\"('\"+firstName[randomNumber].toString()+\"', 'Cognome', 'm', '\"+timestamp+\"', '\"+random.nextInt()+\"', 'test@test.it', 'Citta', 'Indirizzo', '\"+random.nextInt()+\"');\";\r\n\t\t\t\r\n\t\t\tstat.executeUpdate(query);\r\n\t\t\tstat.close();\r\n }\r\n\r\n \r\n }\r\n catch(SQLException e){ e.getErrorCode(); }\r\n }", "title": "" }, { "docid": "29ad2591468303520247687a7b261031", "score": "0.529576", "text": "public void inserir()\n\t{\n\n\t}", "title": "" }, { "docid": "afa7ea32f85690f88ea448e93b857181", "score": "0.5294393", "text": "int insert(Blogdiscuss record);", "title": "" }, { "docid": "bd2a67e4be47db55a898ae375d21869b", "score": "0.5274844", "text": "int insert(UserArticleCollectKey record);", "title": "" }, { "docid": "05feee209444944a83941faf4e1ef8c2", "score": "0.52677846", "text": "int insert(AllUserDO record);", "title": "" }, { "docid": "399c97d0a1f88a0e9ec49b25e40d207c", "score": "0.5263468", "text": "private static AuthorBook [] setAuthorBook(AuthorBook [] author, AuthorBook testAuthor, Books testBook, int index){\n\n AuthorBook [] authorTemp = Arrays.copyOf(author, author.length);\n\n if(index == -1){\n\n authorTemp = addAuthors(author, testAuthor);\n\n authorTemp[authorTemp.length -1].setAuthorFirstName(testAuthor.getAuthorFirstName());\n authorTemp[authorTemp.length -1].setAuthorLastName(testAuthor.getAuthorLastName());\n authorTemp[authorTemp.length -1].addBook(testBook);\n\n return authorTemp;\n\n }else {\n\n authorTemp[index].addBook(testBook);\n\n }\n return authorTemp;\n }", "title": "" }, { "docid": "f5f9c81554f2bdd30826312432f9eb0a", "score": "0.52469", "text": "int insert(Course record);", "title": "" }, { "docid": "15bf3ad9a5613fc8146984aec154249c", "score": "0.52435553", "text": "public abstract void insertBatch();", "title": "" }, { "docid": "b00e85434a46db4810a96659f36fc50c", "score": "0.5239458", "text": "public boolean insert(Collection<T> newEntities)\n/* */ {\n/* 162 */ for (T entity : newEntities)\n/* */ {\n/* 164 */ if (!insert(entity))\n/* */ {\n/* 166 */ return false;\n/* */ }\n/* */ }\n/* */ \n/* 170 */ return true;\n/* */ }", "title": "" }, { "docid": "9387e4ee000bdb6a13365b1f3ac0f514", "score": "0.5237996", "text": "int insert(SourseAndCourse record);", "title": "" }, { "docid": "31f609c797bbf5a13923ab5cc9c7666e", "score": "0.52328783", "text": "int insertSelective(Authority record);", "title": "" }, { "docid": "c00228b5f1a62dad415dc7bc6139ef15", "score": "0.5231132", "text": "@Override\n\tpublic void insert(INSERT insert) {\n\n\t}", "title": "" }, { "docid": "8ba3ab6f673f6039963069d2868f8842", "score": "0.5222617", "text": "int insert(School record);", "title": "" }, { "docid": "0964ddc8ae522b56b5a4268f7c94dc07", "score": "0.5221546", "text": "public void insert() {\n\n\t}", "title": "" }, { "docid": "0ea8355d58c78306aa427430fef8925a", "score": "0.5220176", "text": "public static DB<Option<Integer>> insertMany(Iterable<String> descriptions)\n {\n return new BatchUpdateOp<>(\n //SQL\n \"INSERT INTO STUFF(DESCRIPTION) VALUES(?)\",\n //given the current element of the iterable, return a binder which sets the parameters for that element\n // if you extracted the binder from the previous operations in a field named SET_DESCRIPTION, code becomes\n // description -> SET_DESCRIPTION\n description -> ps -> ps.setString(1, description),\n //the iterables to insert\n descriptions\n );\n }", "title": "" }, { "docid": "708b773aef66c03c55b73f0f15f2eb1a", "score": "0.5211574", "text": "int insertSelective(BookCategories record);", "title": "" }, { "docid": "49f2ec9e8f1c4b56ba627e8368a7aa04", "score": "0.5210493", "text": "int insert(LitemallApplicantBank record);", "title": "" }, { "docid": "bcd71f80294d0cd0ab222fe4a658d27b", "score": "0.5210216", "text": "@Test\n\tpublic void testSetInsertMultiElements(){\n\t\tSetMain setMain = new SetMain();\n\t\tfor(int i=0; i < 10; i++){\n\t\t\tsetMain.insert(i);\n\t\t}\n\t\tassertEquals(10, setMain.size());\n\t}", "title": "" }, { "docid": "7e6ba306e0e6e8c9b790474560eed7a3", "score": "0.5203907", "text": "int insert(Person record);", "title": "" }, { "docid": "64101a861a391e5403eee88d0821515f", "score": "0.5203785", "text": "int insert(Intro record);", "title": "" }, { "docid": "e1c96e0921263ca31d90936c51921544", "score": "0.5202276", "text": "int insert(Users record);", "title": "" }, { "docid": "e1c96e0921263ca31d90936c51921544", "score": "0.5202276", "text": "int insert(Users record);", "title": "" }, { "docid": "e1c96e0921263ca31d90936c51921544", "score": "0.5202276", "text": "int insert(Users record);", "title": "" }, { "docid": "f81f21bca5a210eb9579a975a17e49ee", "score": "0.51924366", "text": "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n ConductorEntity entity = factory.manufacturePojo(ConductorEntity.class);\r\n\r\n entMan.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "title": "" }, { "docid": "e6179f92d035323d9a88b0ce8afb86bb", "score": "0.5190757", "text": "void insert(T record) {\r\n /*\r\n Implementation hidden, contact Author\r\n */\r\n }", "title": "" }, { "docid": "9c33da6569bdaea54c5040cde52f82a6", "score": "0.5189824", "text": "public void insert(Book b) throws Exception {\n \n Boolean inserted = false;\n int i = 0;\n\n while(inserted== false && i < this.dim){\n if(this.arr_books[i] == null){\n this.arr_books[i] = b;\n inserted = true;\n }\n i+=1;\n }\n\n if(inserted == false){\n throw new Exception();\n }\n this.dim++;\n }", "title": "" }, { "docid": "8597b1c8492c63010a1ccbc1537fee93", "score": "0.5184329", "text": "void insertBatch(List<NursingSubtype> recordLst);", "title": "" }, { "docid": "86bb1ca7792640c240a0431aa7b2eb12", "score": "0.5181018", "text": "int insert(BaseinfoCompany record);", "title": "" }, { "docid": "ab9addd04922443b876cf5878f9d9e9b", "score": "0.5175211", "text": "int insert(ToyAdmin record);", "title": "" }, { "docid": "b82315f90b2ebb3a4f855422720ff737", "score": "0.51725984", "text": "public void save(Book b){\n\t\tsession=factory.openSession();\n\t\tTransaction t=session.beginTransaction();\n\t\tsession.update(b);\n\t\tint b_id=b.getId(); \n\t\tsession.createSQLQuery(\"delete from authors where b_id=\"+b_id).executeUpdate();\n\t\tString authorList []=b.getAuthors().split(\",\");\n\t\tfor(int k=0;k<authorList.length;k++)\n\t\t{\n\t\t\tString author=authorList[k];\n\t\t\tAuthor a=new Author(b_id,author);\n\t\t\tsession.save(a);\n\t\t}\n\t\t\n\t\tt.commit();\n\t\tsession.close();\n\t\treloadBookList();\n\t\t\n\t}", "title": "" }, { "docid": "181e534b10fee0e82ed3773cf229e0ab", "score": "0.51701236", "text": "public void addNewPaper(String authorEmail, String title, String abst, String fileN) {\n\t\t\n\t\tString sqlQuery = \"INSERT INTO `T_Paper` (`A_EmailAddr`, `Title`, `Abstract`, `FileName`) VALUES (?,?,?,?)\";\n \n \n try {\n Class.forName(JDBC_DRIVER);\n Connection conn = DriverManager.getConnection(HOST_DB,USER,PASSWORD);\n \n PreparedStatement preparedInsert = conn.prepareStatement(sqlQuery);\n \n int insertions = 0;\n \n preparedInsert.setString(1, authorEmail);\n preparedInsert.setString(2, title);\n preparedInsert.setString(3, abst);\n preparedInsert.setString(4, fileN);\n \n insertions += preparedInsert.executeUpdate();\n System.out.println(insertions + \" record added into T_Paper\");\n \n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n }\n\t\t\n\t}", "title": "" }, { "docid": "4d8abd9a5931120f704d2eae3766d302", "score": "0.5164826", "text": "int insert(TbBlBlog record);", "title": "" }, { "docid": "5e8cea3691fe2d3843914a28fe7f6ffb", "score": "0.5160167", "text": "public static void insert(String[] goodinfo) {\n\n String sql = \"INSERT INTO csv (A,B,C,D,E,F,G,H,I,J) VALUES (?,?,?,?,?,?,?,?,?,?)\";\n try{\n PreparedStatement pstmt = conn.prepareStatement(sql);\n pstmt.setString(1, goodinfo[0]);\n pstmt.setString(2, goodinfo[1]);\n pstmt.setString(3, goodinfo[2]);\n pstmt.setString(4, goodinfo[3]);\n pstmt.setString(5, goodinfo[4]);\n pstmt.setString(6, goodinfo[5]);\n pstmt.setString(7, goodinfo[6]);\n pstmt.setString(8, goodinfo[7]);\n pstmt.setString(9, goodinfo[8]);\n pstmt.setString(10,goodinfo[9]);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "9b4ed6e6da683470c9d7f83b1d356f29", "score": "0.5152341", "text": "@Override\n\t\t\tpublic <S extends User> List<S> insert(Iterable<S> entities) {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "83884fb091f3ed750bb25785ce0980ba", "score": "0.5152128", "text": "public void insertPostsToDB() {\n db = getWritableDatabase();\n for (int i = 0; i < Variables.dataPostModels.size(); i++) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(PostsTable.InnerTable.ID_POST, Variables.dataPostModels.get(i).getId_post());\n contentValues.put(PostsTable.InnerTable.DATE_GMT, Variables.dataPostModels.get(i).getDate_gmt());\n contentValues.put(PostsTable.InnerTable.TITLE, Variables.dataPostModels.get(i).getTitle());\n contentValues.put(PostsTable.InnerTable.CONTENT, Variables.dataPostModels.get(i).getContent());\n db.insert(PostsTable.InnerTable.TABLE_NAME, null, contentValues);\n }\n }", "title": "" }, { "docid": "8566010ce1186f7cdc06ba59000ba167", "score": "0.5149669", "text": "int insert(JsEbook record);", "title": "" }, { "docid": "12f717af64ce02cbf170f11c2df0df19", "score": "0.51442295", "text": "int insert(PmsAlbum record);", "title": "" }, { "docid": "ac0187ccdca8a1947c035fa395a11602", "score": "0.5135175", "text": "public void bulkInsertCurrencyCodeByCountryCode(ArrayList<CurenncyByCountryCode> curenncyByCountryCodeArray){\n try {\n deleteCurrencyCodeByCountryCode();\n ContentValues[] ipInfoObjectArr = new ContentValues[curenncyByCountryCodeArray.size()];\n ;\n for (int i = 0; i < curenncyByCountryCodeArray.size(); i++) {\n ContentValues values = new ContentValues();\n values.put(DataBaseHelperContract.RatesCodeByCountryCode.DATABASE_TABLE_RATES_CODE_BY_COUNTRY_CODE_CODE_COLUMN, curenncyByCountryCodeArray.get(i).getCode());\n values.put(DataBaseHelperContract.RatesCodeByCountryCode.DATABASE_TABLE_RATES_CODE_BY_COUNTRY_CODE_NAME_COLUMN, curenncyByCountryCodeArray.get(i).getName());\n ipInfoObjectArr[i] = values;\n }\n context.getContentResolver().bulkInsert(DataBaseHelperContract.RatesCodeByCountryCode.CONTENT_URI, ipInfoObjectArr);\n }catch (NullPointerException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3520baef688f8b88edf6847f36a86792", "score": "0.51347095", "text": "public static void main(String[] args) {\n\t\tAuthorDaoImpl autDao = new AuthorDaoImpl();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter author Id :\");\r\n\t\tint aid = sc.nextInt();\r\n\t\tSystem.out.println(\"Enter First name :\");\r\n\t\tString fnm = sc.next();\r\n\t\tSystem.out.println(\"Enter Middle name :\");\r\n\t\tString mnm = sc.next();\r\n\t\tSystem.out.println(\"Enter Last name :\");\r\n\t\tString lnm = sc.next();\r\n\t\tSystem.out.println(\"Enter Mobile no :\");\r\n\t\tString phn = sc.next();\r\n\r\n\t\tAuthor at = new Author();\r\n\t\tat.setAuthorId(aid);\r\n\t\tat.setFirstName(fnm);\r\n\t\tat.setMiddleName(mnm);\r\n\t\tat.setLastName(lnm);\r\n\t\tat.setPhoneNo(phn);\r\n\t\tAuthor aut = autDao.addAuthor(at);\r\n\t\tSystem.out.println(\"Data Inserted in the table\"+aut);\r\n\t\tSystem.out.println(\"Retrieve Author based on AuthorId\");\r\n\t\tList<Author> author = autDao.getAuthorById(108);\r\n\t\tSystem.out.println(author);\r\n\t\tSystem.out.println(\"Retrieve all data and display\");\r\n\t\tList<Author> atList = autDao.getAllAuthors();\r\n\t\tIterator<Author> it = atList.iterator();\r\n\t\tSystem.out.println(\"RollNo\\tFirstName\\tMiddleName\\tLastName\\tPhoneNo\");\r\n\t\tSystem.out.println(\"-------------------\");\r\n\t\twhile(it.hasNext()){\r\n\t\t\tAuthor tempAut = it.next();\r\n\t\t\tSystem.out.println(tempAut.getAuthorId()+\"\\t\\t\"+tempAut.getFirstName()+\"\\t\\t\"+tempAut.getMiddleName()+\"\\t\\t\"+tempAut.getLastName()+\"\\t\\t\"+tempAut.getPhoneNo());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Deleted record 2\");\r\n\t\tSystem.out.println(\"Record deleted for :\"+autDao.deleteAuthor(2));\r\n\t\t\r\n\t\tSystem.out.println(\"Update Name\");\r\n\t\tAuthor at3 = autDao.updateAuthorName(111, \"Panga\", \"Swetha\", \"Reddy\", \"8121147388\");\r\n\t\tSystem.out.println(\"Updated : \"+at3);\r\n\t\t\r\n\t\tSystem.out.println(\"get author by Id\");\r\n\t\tList <Author> at4 = autDao.getAuthorById(111);\r\n\t\tSystem.out.println(at4);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "252b9ee7eab8189fe48b4bf94a2fd2d9", "score": "0.5130715", "text": "int insert(Diaodu record);", "title": "" }, { "docid": "36c9f7e2e380dadb2e85e9479cb9c91c", "score": "0.51303035", "text": "int insert(Legal record);", "title": "" }, { "docid": "539e735aabb4f2800c30395c6d82e96e", "score": "0.51294035", "text": "com.conferma.cpapi.ArrayOfIdentifier addNewIdentifiers();", "title": "" } ]
39265ba04b0c117eae72faf3ff494184
Test a service scope lock with wait on several services where a proper release is performed.
[ { "docid": "05d44264e8595fcc1e4317ebd7a3379e", "score": "0.67538303", "text": "@Test\n public void testComplexWaitForLock() throws Exception {\n cn = new ZkCloudname.Builder().setConnectString(\"localhost:\" + zkport).build().connect();\n\n final CloudnameLock.Scope scope = CloudnameLock.Scope.SERVICE;\n final String lockName = \"testComplexWaitForLock\";\n final int NUM_JOBS = 100;\n\n // Have some time to simulate work on each thread to assure no services performs work at the same time.\n final int WORKLOAD_MS = 5;\n\n // Timeouts well above needed, but low enough to not hog time on build servers.\n final int LOCK_TIMEOUT_MS = 60000; // 1 min\n final int TEST_TIMEOUT_MS = 120000; // 2 min\n\n final List<CloudnameLock> lockList = new ArrayList<CloudnameLock>();\n\n for (int i = 0; i <NUM_JOBS; i++) {\n final Coordinate coordinate = Coordinate.parse(i + \".service.user.cell\");\n try {\n cn.createCoordinate(coordinate);\n } catch (CoordinateException e) {\n fail(e.toString());\n }\n final ServiceHandle serviceHandle = cn.claim(coordinate);\n lockList.add(serviceHandle.getCloudnameLock(scope, lockName));\n }\n\n final CountDownLatch released = new CountDownLatch(NUM_JOBS - 1);\n final CountDownLatch threadReadyLatch = new CountDownLatch(NUM_JOBS - 1);\n\n // Lock the first service lock\n lockList.get(0).tryLock();\n\n final Work work = new Work(WORKLOAD_MS);\n\n for (int i = 1; i < NUM_JOBS; i++) {\n final int num = i;\n final Thread thread = new Thread() {\n @Override\n public void run() {\n threadReadyLatch.countDown();\n lockList.get(num).tryLock(LOCK_TIMEOUT_MS);\n work.doWork();\n lockList.get(num).release();\n released.countDown();\n }\n };\n thread.start();\n }\n\n assertTrue(\n \"Threads were not ready. Remaining threads that did not start: \" + threadReadyLatch.getCount() + \".\",\n threadReadyLatch.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS));\n\n // Release first lock and wait for the mountain to fall...\n lockList.get(0).release();\n\n assertTrue(\n \"Not all jobs completed. Remaining jobs: \" + released.getCount() + \".\",\n released.await(TEST_TIMEOUT_MS, TimeUnit.MILLISECONDS));\n\n }", "title": "" } ]
[ { "docid": "77ca99e9817132588f0b2acafc16f9c1", "score": "0.71977985", "text": "@Test\n public void testWaitForLockWithProperRelease() throws Exception {\n cn = new ZkCloudname.Builder().setConnectString(\"localhost:\" + zkport).build().connect();\n\n final Coordinate coordinate1 = Coordinate.parse(\"1.service.user.cell\");\n final Coordinate coordinate2 = Coordinate.parse(\"2.service.user.cell\");\n final CloudnameLock.Scope scope = CloudnameLock.Scope.SERVICE;\n final String lockName = \"testWaitForLockWithProperRelease\";\n\n try {\n cn.createCoordinate(coordinate1);\n cn.createCoordinate(coordinate2);\n } catch (CoordinateException e) {\n fail(e.toString());\n }\n\n final ServiceHandle serviceHandle1 = cn.claim(coordinate1);\n final ServiceHandle serviceHandle2 = cn.claim(coordinate2);\n\n final CloudnameLock lock1 = serviceHandle1.getCloudnameLock(scope, lockName);\n final CloudnameLock lock2 = serviceHandle2.getCloudnameLock(scope, lockName);\n\n final CountDownLatch latch = new CountDownLatch(1);\n\n // Attempt to lock\n assertTrue(\"Unable to lock.\", lock1.tryLock());\n\n Thread thread = new Thread() {\n @Override\n public void run() {\n if (lock2.tryLock(5000))\n latch.countDown();\n }\n };\n thread.start();\n\n // Release lock.\n lock1.release();\n\n assertTrue(latch.await(6000, TimeUnit.MILLISECONDS));\n }", "title": "" }, { "docid": "f48510c4c6b08a37bfcea6492e430cd8", "score": "0.68912154", "text": "@Test\n public void testLockAndRelease() throws Exception {\n cn = new ZkCloudname.Builder().setConnectString(\"localhost:\" + zkport).build().connect();\n\n final Coordinate coordinate1 = Coordinate.parse(\"1.service.user.cell\");\n final Coordinate coordinate2 = Coordinate.parse(\"2.service.user.cell\");\n final String lockName = \"testLockAndRelease\";\n\n try {\n cn.createCoordinate(coordinate1);\n cn.createCoordinate(coordinate2);\n } catch (CoordinateException e) {\n fail(e.toString());\n }\n\n final ServiceHandle serviceHandle = cn.claim(coordinate1);\n final ServiceHandle serviceHandle2 = cn.claim(coordinate2);\n\n // Service scope locks\n CloudnameLock.Scope scope = CloudnameLock.Scope.SERVICE;\n CloudnameLock lock1 = serviceHandle.getCloudnameLock(scope, lockName);\n CloudnameLock lock2 = serviceHandle2.getCloudnameLock(scope, lockName);\n // Attempt to lock\n assertTrue(\"Unable to lock.\", lock1.tryLock());\n // Check that you can not obtain another lock on the same scope with the same name.\n assertFalse(\"Got lock while a lock is not released.\", lock2.tryLock());\n // Release lock.\n lock1.release();\n // Attempt to aquire lock number two\n assertTrue(\"Did not get lock.\", lock2.tryLock());\n // And the other way around\n assertFalse(\"Got lock while a lock is not released.\", lock1.tryLock());\n // Clean up\n lock2.release();\n\n // User scope locks\n scope = CloudnameLock.Scope.USER;\n lock1 = serviceHandle.getCloudnameLock(scope, lockName);\n lock2 = serviceHandle2.getCloudnameLock(scope, lockName);\n assertTrue(\"Unable to lock.\", lock1.tryLock());\n assertFalse(\"Got lock while a lock is not released.\", lock2.tryLock());\n lock1.release();\n assertTrue(\"Did not get lock.\", lock2.tryLock());\n assertFalse(\"Got lock while a lock is not released.\", lock1.tryLock());\n lock2.release();\n\n // Cell scope locks\n scope = CloudnameLock.Scope.CELL;\n lock1 = serviceHandle.getCloudnameLock(scope, lockName);\n lock2 = serviceHandle2.getCloudnameLock(scope, lockName);\n assertTrue(\"Unable to lock.\", lock1.tryLock());\n assertFalse(\"Got lock while a lock is not released.\", lock2.tryLock());\n lock1.release();\n assertTrue(\"Did not get lock.\", lock2.tryLock());\n assertFalse(\"Got lock while a lock is not released.\", lock1.tryLock());\n lock2.release();\n }", "title": "" }, { "docid": "ff639a9659d8b660e27cd0d7a09cc7b2", "score": "0.6442733", "text": "@Test\n public void testInternalLockAbuse() throws Exception {\n cn = new ZkCloudname.Builder().setConnectString(\"localhost:\" + zkport).build().connect();\n\n final Coordinate coordinate1 = Coordinate.parse(\"1.service.user.cell\");\n final CloudnameLock.Scope scope = CloudnameLock.Scope.SERVICE;\n final String lockName = \"ServiceLockTest1\";\n\n try {\n cn.createCoordinate(coordinate1);\n } catch (CoordinateException e) {\n fail(e.toString());\n }\n\n final ServiceHandle serviceHandle1 = cn.claim(coordinate1);\n\n final CloudnameLock lock1 = serviceHandle1.getCloudnameLock(scope, lockName);\n // Attempt to lock\n assertTrue(\"Unable to lock.\", lock1.tryLock());\n // Check that you can not lock twice with the same CloudnameLock object.\n assertFalse(\"Got lock while a lock is in place.\", lock1.tryLock());\n // Release lock.\n lock1.release();\n }", "title": "" }, { "docid": "c243129af52f34da33fd932fcf88fcea", "score": "0.57250494", "text": "public interface ControllerLockingService {\n\n /**\n * Gets a distributed lock that works across all nodes in the cluster. \n * It is globally synchronous, meaning at any snapshot in time no two clients think they hold the same lock.\n * The lock should be acquired/released in same thread. If the ower dies, the lock is released automatically\n * \n * @param lockName name of lock\n * @param seconds number seconds to try to wait. 0 = check once only, -1 = check forever\n * @return true if lock is acquired, false otherwise\n */\n public boolean acquireLock(String lockName, long seconds);\n\n /**\n * Releases a distributed lock acquired by {@link #acquireLock(String, long)}\n * \n * @param lockName name of lock\n */\n public boolean releaseLock(String lockName);\n \n /**\n * Gets a persistent lock that works across all nodes in the cluster. \n * It could be acquired in one thread, and released in another thread. The clientName should be same\n * If the owner dies, the lock is still held until explicitly released by {@link #releasePersistentLock(String, String)}\n * If it is acquired twice by same owner, it returns true.\n * \n * @param lockName name of lock\n * @param clientName client name\n * @param seconds number seconds to try to wait. 0 = check once only, -1 = check forever\n * @return true if lock is acquired, false otherwise\n */\n public boolean acquirePersistentLock(String lockName, String clientName, long seconds);\n\n /**\n * Releases a persistent lock acquired by {@link #acquirePersistentLock(String, String, long)}\n * \n * @param lockName name of lock\n * @param clientName client name\n * @return true if lock is released, false otherwise\n */\n public boolean releasePersistentLock(String lockName, String clientName);\n}", "title": "" }, { "docid": "bfb218bc488eb55d62c5e817095cccd9", "score": "0.569122", "text": "@Override public boolean isConsistent(List<TraceLockEntry> seq)\n{\n for (Iterator<SemaphoreCheck> it = to_check.iterator(); it.hasNext(); ) {\n SemaphoreCheck sc = it.next();\n if (do_debug) System.err.println(\"WORK ON \" + sc);\n if (!sc.isConsistent(seq)) it.remove();\n }\n\n return to_check.size() > 0;\n}", "title": "" }, { "docid": "953241f138a5276c5c1f7f1b12ea9252", "score": "0.5686787", "text": "@Test\n public void testAllServiceFunctions()throws InterruptedException\n {\n testAddingService();\n testEditingService(); //allows the same value that was added to be modified\n testDeletingService();\n }", "title": "" }, { "docid": "d094c85619d0ccb4e20b654a8ea12ccd", "score": "0.5624613", "text": "@Test\n public void testSynchronizedLock() throws Exception {\n count = 0;\n int n = 1000000;\n for (int i = 0; i < n; ++i) {\n executorService.execute(new Runnable() {\n @Override\n public void run() {\n lock.lock();\n try {\n ++count;\n } finally {\n lock.unlock();\n }\n }\n });\n }\n Thread.sleep(6008);\n System.out.println(count);\n\n Assert.assertTrue(n == count);\n }", "title": "" }, { "docid": "a62f0c82c3b2b82b08a104c54f916dd5", "score": "0.55890024", "text": "@Test\n public void serviceScopeTest() {\n // TODO: test serviceScope\n }", "title": "" }, { "docid": "edc3373db8bfb86ab3266f70071a0ae6", "score": "0.556685", "text": "@Override\n public void releaseLock() {\n acquireReleaseLocker.setResult(true);\n // wait for lock to be released\n acquireReleaseLocker.await();\n }", "title": "" }, { "docid": "e29f727dac1039db9c453080c11bf909", "score": "0.54837453", "text": "@Test\n void testCloseGrantDeadlock() throws Exception {\n final OneShotLatch closeReachedLatch = new OneShotLatch();\n final OneShotLatch closeContinueLatch = new OneShotLatch();\n final OneShotLatch grantReachedLatch = new OneShotLatch();\n final OneShotLatch grantContinueLatch = new OneShotLatch();\n\n final CompletableFuture<Void> driverCloseTriggered = new CompletableFuture<>();\n\n final AtomicBoolean leadershipGranted = new AtomicBoolean();\n final TestingLeaderElectionDriver.Builder driverBuilder =\n TestingLeaderElectionDriver.newBuilder(leadershipGranted)\n .setCloseConsumer(\n lock -> {\n closeReachedLatch.trigger();\n closeContinueLatch.await();\n try {\n lock.lock();\n driverCloseTriggered.complete(null);\n } finally {\n lock.unlock();\n }\n });\n\n final TestingLeaderElectionDriver.Factory driverFactory =\n new TestingLeaderElectionDriver.Factory(driverBuilder);\n final DefaultLeaderElectionService testInstance =\n new DefaultLeaderElectionService(\n driverFactory, fatalErrorHandlerExtension.getTestingFatalErrorHandler());\n testInstance.startLeaderElectionBackend();\n final TestingLeaderElectionDriver driver = driverFactory.assertAndGetOnlyCreatedDriver();\n\n final Thread closeThread =\n new Thread(\n () -> {\n try {\n testInstance.close();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n },\n \"CloseThread\");\n\n // triggers close that acquires the DefaultLeaderElectionService lock\n closeThread.start();\n closeReachedLatch.await();\n\n final Thread grantThread =\n new Thread(\n () -> {\n try {\n // simulates the grant process being triggered from the HA backend's\n // side where the same lock that is acquired during the driver's\n // process is also acquired while handling a leadership event\n // processing\n driver.getLock().lock();\n grantReachedLatch.trigger();\n grantContinueLatch.awaitQuietly();\n\n // grants leadership\n leadershipGranted.set(true);\n testInstance.isLeader(UUID.randomUUID());\n } finally {\n driver.getLock().unlock();\n }\n },\n \"GrantThread\");\n\n // triggers the service acquiring the leadership and, as a consequence, acquiring the\n // driver's lock\n grantThread.start();\n grantReachedLatch.await();\n\n // continue both processes which shouldn't result in a deadlock\n grantContinueLatch.trigger();\n closeContinueLatch.trigger();\n\n closeThread.join();\n grantThread.join();\n\n FlinkAssertions.assertThatFuture(driverCloseTriggered).eventuallySucceeds();\n }", "title": "" }, { "docid": "087796ebd4a65e9170c7e01acdd0f182", "score": "0.54521", "text": "public static void verifyServices()\n {\n\n System.out.println(\"\\nCount down latch example - verifying from now...\");\n latch = new CountDownLatch(2);\n listOfVerifiers = new ArrayList<>();\n listOfVerifiers.add(new WorkbenchServiceVerifier(\"query-service\", latch));\n listOfVerifiers.add(new WorkbenchServiceVerifier(\"log-service\", latch));\n Executor executor = Executors.newFixedThreadPool(listOfVerifiers.size());\n listOfVerifiers.forEach(sv -> executor.execute(sv));\n\n try\n {\n latch.await();\n }\n catch(InterruptedException ie)\n {\n ie.printStackTrace();\n }\n\n listOfVerifiers.forEach(System.out::println);\n System.out.println(\"Done verifying!\");\n\n }", "title": "" }, { "docid": "b4f34ab456c7aa425d9e52ce66f584be", "score": "0.5423053", "text": "@Test\n public void testTakeBlocksWhenEmpty() {\n final SemaphoreBoundedBuffer<Integer> bb = new SemaphoreBoundedBuffer<Integer>(10);\n final Thread taker = new Thread() {\n @Override\n public void run() {\n try {\n final int unused = bb.take();\n fail(); // if we get here, it's an error\n } catch (final InterruptedException success) {\n }\n }\n };\n try {\n taker.start();\n Thread.sleep(LOCKUP_DETECT_TIMEOUT);\n taker.interrupt();\n /**\n * The timed \"join\" ensures that the test completes even if \"take\" get stuck\n * in some unexpected way.\n */\n taker.join(LOCKUP_DETECT_TIMEOUT);\n assertFalse(taker.isAlive());\n } catch (final Exception unexpected) {\n fail();\n }\n }", "title": "" }, { "docid": "bcbd1835eb8b72edf3b34009b7712746", "score": "0.54166025", "text": "@Override\n protected void bindZookeeperLockFactory() {\n ZookeeperLockFactory lockFactory = mock(ZookeeperLockFactory.class);\n InterProcessSemaphoreMutex lock = mock(\n InterProcessSemaphoreMutex.class);\n when(lockFactory.createShared(anyString())).thenReturn(lock);\n try {\n doReturn(true).when(lock).acquire(anyLong(), any(TimeUnit.class));\n doNothing().when(lock).release();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n bind(ZookeeperLockFactory.class).toInstance(lockFactory);\n }", "title": "" }, { "docid": "e1559a0702f26d0ee483d9831f497008", "score": "0.54072857", "text": "@Override\n protected final boolean tryRelease(int releases) {\n if (Thread.currentThread() != getExclusiveOwnerThread()) {\n throw new IllegalMonitorStateException();\n }\n int c = getState() - releases;\n boolean free = false;\n if (c == 0) {\n String lockValue = setLockValue(getExclusiveOwnerThread());\n for (;;){\n if (lockProvider.del(lockKey, lockValue)) {\n if (threadLocal.get() != null) {\n // interrupt the running thread in thread pool\n threadLocal.get().cancel(true);\n threadLocal.remove();\n }\n break;\n }\n }\n free = true;\n setExclusiveOwnerThread(null);\n }\n setState(c);\n return free;\n }", "title": "" }, { "docid": "5b56e795d4aee2dcc5350944c4cf0c9d", "score": "0.5396168", "text": "@Test\n\tpublic void testPutOnWaitingListTiered() {\n\t\tServiceManager testMgr = new ServiceManager();\n\t\ttestMgr.putOnWaitingList(car1);\n\t\tassertEquals(\"R Gold NC-123 Scott, Michael\\n\", testMgr.printWaitList(\"\"));\n\t}", "title": "" }, { "docid": "b0355be7d3e5fb9dbdf745abfa6b8179", "score": "0.53853464", "text": "@Test\n public void shouldUpgradeExclusiveOnTry() throws Exception\n {\n clientA.acquireShared( NODE, 1l );\n\n // When\n assertTrue( clientA.tryExclusiveLock( NODE, 1l ) );\n\n // Then I should be able to release it\n clientA.releaseExclusive( NODE, 1l );\n }", "title": "" }, { "docid": "120947e3322e2e9255391de9dbf22bc9", "score": "0.537278", "text": "private static void testNonLock() {\n TwinsLockTest sut = new TwinsLockTest();\n\n IntStream.rangeClosed(0, 3).forEach(i -> {\n Thread t = new Thread(() -> {\n sut.doWithoutLock();\n });\n t.start();\n });\n }", "title": "" }, { "docid": "7e9efa2c4ed8ee364cc9b61ef53cd5bd", "score": "0.53726244", "text": "Publisher<UnlockResult> forceRelease(LockId lockId);", "title": "" }, { "docid": "f91730fe3bc9911b73a3fdfe3cde12cd", "score": "0.53700626", "text": "void releaseLock(String key, long delayMills);", "title": "" }, { "docid": "34d87fe7c537efe7b6e4cea0919c540d", "score": "0.53640443", "text": "public void releaseLock() {}", "title": "" }, { "docid": "e9537cd59f19d34fdd128be8b198a39c", "score": "0.5364042", "text": "@Test\n public void testBundleServiceIsolation() throws Exception {\n assertNotNull(\"scope admin should not be null\", scope);\n System.out.println(\"able to get scope admin service\");\n\n bt = new BundleTracker(bundleContext, Bundle.INSTALLED | Bundle.UNINSTALLED | Bundle.ACTIVE, new BundleTrackerCustomizer() {\n\n public synchronized Object addingBundle(Bundle bundle, BundleEvent event) {\n if (event == null) {\n System.out.println(\"ScopeAdminTest - adding Bundle: \" + bundle.getSymbolicName() + \" event: null\");\n } else {\n System.out.println(\"ScopeAdminTest - adding Bundle: \" + bundle.getSymbolicName() + \" event: \" + event.getType());\n addEventCount++;\n }\n return bundle;\n }\n\n public synchronized void modifiedBundle(Bundle bundle, BundleEvent event,\n Object object) {\n if (event == null) {\n System.out.println(\"ScopeAdminTest - modifying Bundle: \" + bundle.getSymbolicName() + \" event: null\");\n } else {\n System.out.println(\"ScopeAdminTest - modifying Bundle: \" + bundle.getSymbolicName() + \" event: \" + event.getType());\n modifyEventCount++;\n }\n \n \n }\n\n public synchronized void removedBundle(Bundle bundle, BundleEvent event,\n Object object) {\n if (event == null) {\n System.out.println(\"ScopeAdminTest - removing Bundle: \" + bundle.getSymbolicName() + \" event: null\");\n } else {\n System.out.println(\"ScopeAdminTest - removing Bundle: \" + bundle.getSymbolicName() + \" event: \" + event.getType());\n removeEventCount++;\n }\n }\n \n });\n bt.open();\n \n ScopeUpdate su = scope.newScopeUpdate();\n \n ScopeUpdate childScopeUpdate = su.newChild(\"scope_test1\");\n su.getChildren().add(childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.framework\", childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.util.tracker\", childScopeUpdate);\n \n // build up installInfo object for the scope\n InstallInfo info1 = new InstallInfo(\"helloIsolation\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\"));\n InstallInfo info2 = new InstallInfo(\"helloIsolationRef\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\"));\n\n List<InstallInfo> bundlesToInstall = childScopeUpdate.getBundlesToInstall();\n bundlesToInstall.add(info1);\n bundlesToInstall.add(info2);\n \n // add bundles to be installed, based on subsystem content\n su.commit();\n \n assertEquals(\"add event count should be 0 since 0 bundles are installed in root scope\", 0, addEventCount);\n assertEquals(\"modify event count should be 0\", 0, modifyEventCount);\n assertEquals(\"remove event count should be 0\", 0, removeEventCount);\n // start all bundles in the scope scope_test1\n Collection<Bundle> bundlesToStart = childScopeUpdate.getScope().getBundles();\n for (Bundle b : bundlesToStart) {\n b.start();\n \n }\n \n assertEquals(\"add event count should be 0 since 0 bundles are installed in root scope\", 0, addEventCount);\n assertEquals(\"modify event count should be 0\", 0, modifyEventCount);\n assertEquals(\"remove event count should be 0\", 0, removeEventCount);\n \n try {\n ServiceReference sr = bundleContext.getServiceReference(HelloIsolation.class.getName());\n fail(\"should not be able to get the sr for HelloIsolation service\");\n } catch (Exception ex) {\n // expected \n } catch (Error er) {\n // expected\n }\n \n // test bundle find hooks\n Bundle[] bundles = bundleContext.getBundles();\n for (Bundle b : bundles) {\n System.out.println(\"Bundle is \" + b.getBundleId() + \": \" + b.getSymbolicName());\n if (b.getSymbolicName().indexOf(\"org.apache.aries.subsystem.example.helloIsolation\") > -1) {\n fail(\"bundles with name starts with org.apache.aries.subsystem.example.helloIsolation should be in a different scope\");\n }\n }\n \n // test bundle service find hook\n //ServiceReference sr = bundleContext.getServiceReference(HelloIsolation.class.getName());\n //assertNull(\"sr should be null\", sr);\n Collection<Scope> children = scope.getChildren();\n assertEquals(1, children.size());\n \n for (Scope child : children) {\n if (child.getName().equals(\"scope_test1\")) {\n Collection<Bundle> buns = child.getBundles();\n assertEquals(2, buns.size());\n assertEquals(0, child.getChildren().size());\n for (Bundle b : buns) {\n assertTrue(b.getSymbolicName().indexOf(\"org.apache.aries.subsystem.example.helloIsolation\") > -1);\n }\n \n }\n }\n \n // install a test bundle in the root scope\n URL url = new URL(\"mvn:org.apache.felix/org.apache.felix.fileinstall/2.0.8\");\n bundleContext.installBundle(\"org.apache.felix.fileinstall-rootScope\", url.openStream());\n assertEquals(\"add event count should be 1 since 1 bundles are installed\", 1, addEventCount);\n assertEquals(\"modify event count should be 0\", 0, modifyEventCount);\n assertEquals(\"remove event count should be 0\", 0, removeEventCount);\n \n \n // remove child scope\n su = scope.newScopeUpdate();\n// Collection<Scope> scopes = su.getToBeRemovedChildren();\n Collection<ScopeUpdate> scopes = su.getChildren();\n childScopeUpdate = scopes.iterator().next();\n \n // obtain child scope admin from service registry\n// String filter = \"ScopeName=scope_test1\";\n// Scope childscope = getOsgiService(Scope.class, filter, DEFAULT_TIMEOUT);\n Scope childScopeAdmin = childScopeUpdate.getScope();\n assertEquals(scope, childScopeAdmin.getParent());\n// scopes.add(childScopeAdmin);\n scopes.remove(childScopeUpdate);\n su.commit();\n \n assertFalse(scope.getChildren().contains(childScopeAdmin));\n su = scope.newScopeUpdate();\n assertFalse(su.getChildren().contains(childScopeUpdate));\n \n// childScopeAdmin = null;\n// try {\n// childScopeAdmin = getOsgiService(Scope.class, filter, DEFAULT_TIMEOUT);\n// } catch (Exception ex) {\n// // ignore\n// }\n// assertNull(\"scope admin service for the scope should be unregistered\", childScopeAdmin);\n \n }", "title": "" }, { "docid": "d488f6e637d6f47057452bcbdf46f785", "score": "0.535436", "text": "@Test\r\n public void testLockingActionDoesNotLockAfterLockRelease() {\n scanner.simulateIBeacon(\"39407f30-f5f8-466e-aff9-25556b57fe6d\", 45, 1);\r\n // Start trigger and scanner\r\n trigger.start();\r\n scanner.startScanning();\r\n // Block test 1500 milliseconds (outside locking time range (1000 milliseconds lock range))\r\n testBlocker.blockTest(2000);\r\n // Send the same message once again\r\n scanner.resetSimulatedBeacons();\r\n scanner.simulateIBeacon(\"39407f30-f5f8-466e-aff9-25556b57fe6d\", 45, 1);\r\n scanner.startScanning();\r\n // Wait a short time\r\n testBlocker.blockTest(500);\r\n // Verify that the action was executed twice!\r\n ArgumentCaptor<RelutionContentAction> argument = ArgumentCaptor.forClass(RelutionContentAction.class);\r\n Mockito.verify(mockListener, Mockito.times(2)).onActionTriggered(argument.capture());\r\n }", "title": "" }, { "docid": "fc8fcf7c9cb82d491b0a20dfb83f7809", "score": "0.5349686", "text": "@Test\n public void testLockWrite() {\n config.lock(LockMode.WRITE);\n sync.verify(Methods.BEGIN_WRITE);\n }", "title": "" }, { "docid": "7905b6015f35f1ed72e8cf29c15c3c63", "score": "0.5349519", "text": "public void someMethod() {\n\n if (lock.tryLock()) {\n try {\n actionIfLockIsFree();\n } catch (Exception e) {}\n finally {\n lock.unlock();\n }\n } else {\n actionIfLockIsBusy();\n }\n\n\n }", "title": "" }, { "docid": "105385fb351bed8378ecb3a161b44f54", "score": "0.53475094", "text": "@Test\n void testOnRevokeCallWhileClosingService() throws Exception {\n final AtomicBoolean leadershipGranted = new AtomicBoolean();\n final TestingLeaderElectionDriver.Builder driverBuilder =\n TestingLeaderElectionDriver.newBuilder(leadershipGranted);\n\n final TestingLeaderElectionDriver.Factory driverFactory =\n new TestingLeaderElectionDriver.Factory(driverBuilder);\n try (final DefaultLeaderElectionService testInstance =\n new DefaultLeaderElectionService(\n driverFactory, fatalErrorHandlerExtension.getTestingFatalErrorHandler())) {\n driverBuilder.setCloseConsumer(lock -> testInstance.onRevokeLeadership());\n testInstance.startLeaderElectionBackend();\n\n leadershipGranted.set(true);\n testInstance.isLeader(UUID.randomUUID());\n\n final LeaderElection leaderElection =\n testInstance.createLeaderElection(createRandomContenderID());\n final TestingContender contender =\n new TestingContender(\"unused-address\", leaderElection);\n contender.startLeaderElection();\n\n contender.waitForLeader();\n\n leaderElection.close();\n\n contender.throwErrorIfPresent();\n }\n }", "title": "" }, { "docid": "3eb1fe51b317502370dba9107a580819", "score": "0.5345272", "text": "@Override\r\n public void run() {\r\n\r\n for (int i = 0; i < 100; i++) {\r\n\r\n //Mutual Exclusion:\r\n //Only one thread can own a Lock object at a time (Lock <- interface)\r\n //restricting one thread at a time to the shared resource\r\n try{\r\n test1.lock();\r\n counter++;\r\n //Release Lock object, so another thread can enter\r\n test1.unlock();\r\n }\r\n finally {\r\n //test1.unlock();\r\n }\r\n\r\n }\r\n }", "title": "" }, { "docid": "c665a9aad7d5bd5535354961de58778f", "score": "0.5341006", "text": "void fullyLock() {\n putLock.lock();\n takeLock.lock();\n }", "title": "" }, { "docid": "10c5fea3077c021cb70ef66bca4b0582", "score": "0.533261", "text": "@Test\n\tpublic void testGetWaitingItem() {\n\t\tServiceManager testMgr = new ServiceManager();\n\t\ttestMgr.putOnWaitingList(car1);\n\t\ttestMgr.putOnWaitingList(car2);\n\t\ttestMgr.putOnWaitingList(car3);\n\t\tassertEquals(car3, testMgr.getWaitingItem(\"\", 0));\n\t\tassertEquals(car1, testMgr.getWaitingItem(\"\", 1));\n\t\tassertEquals(car2, testMgr.getWaitingItem(\"\", 2));\n\t}", "title": "" }, { "docid": "4be7463e8bf65f4f774bebe4de85d31a", "score": "0.5316783", "text": "@Ignore // intermittent failures when executed on CI\n @Test\n public void testRead() throws Exception {\n\n ExecutorService executeService = Executors.newFixedThreadPool(2);\n ReaderWriterLock lock = new ReaderWriterLock();\n\n Reader reader1 = spy(new Reader(\"Reader 1\", lock.readLock()));\n Reader reader2 = spy(new Reader(\"Reader 2\", lock.readLock()));\n\n executeService.submit(reader1);\n executeService.submit(reader2);\n\n // Read operation will hold the read lock 100 milliseconds, so here we guarantee that each\n // readers can read in 99 milliseconds to prove that multiple read can perform in the same time.\n verify(reader1, timeout(99).atLeastOnce()).read();\n verify(reader2, timeout(99).atLeastOnce()).read();\n\n executeService.shutdown();\n try {\n executeService.awaitTermination(10, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n System.out.println(\"Error waiting for ExecutorService shutdown\");\n }\n }", "title": "" }, { "docid": "0a1769f95b1d95ee8a11c39d04b3eaf1", "score": "0.52882046", "text": "@Test\n public void shouldTrySharedLock() throws Exception\n {\n assertTrue( clientA.trySharedLock( NODE, 1l ) );\n\n // Then other clients can't have exclusive locks\n assertFalse( clientB.tryExclusiveLock( NODE, 1l ) );\n\n // But they are allowed share locks\n assertTrue( clientB.trySharedLock( NODE, 1l ) );\n }", "title": "" }, { "docid": "0ed228ac0e05514525d01c868d1c6cbe", "score": "0.52872545", "text": "void breakLock();", "title": "" }, { "docid": "04eea736edc191263d14d58b3bc424c9", "score": "0.5281921", "text": "Publisher<LockResult> forceAcquire(LockRequest lockRequest);", "title": "" }, { "docid": "528e9e375fa6c7a17d21b0532b5295af", "score": "0.52804977", "text": "private void acquireLocks(Lock lock1, Lock lock2) {\r\n\t\twhile(true) {\r\n\t\t\t// Acquire locks\r\n\t\t\tboolean gotLock1 = false;\r\n\t\t\tboolean gotLock2 = false;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tgotLock1 = lock1.tryLock(2, TimeUnit.SECONDS);\r\n\t\t\t\tgotLock2 = lock2.tryLock(2, TimeUnit.SECONDS);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tif (gotLock1 && gotLock2) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif(gotLock1) {\r\n\t\t\t\t\tlock1.unlock();\r\n\t\t\t\t}\r\n\t\t\t\tif(gotLock2) {\r\n\t\t\t\t\tlock2.unlock();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8771e96ae28a4f3de6c20dca49eb3d6b", "score": "0.52776927", "text": "@Ignore\n\t@Test\n\tpublic void testManualFindAndHoldWithValidLevelWithMultipleRequests() throws Exception {\n\t\tScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(4);\n\t\tExecuteTicketService callable1 = new ExecuteTicketService(service, 1250, 1, 4, \"test1@tkt.com\");\n\t\tScheduledFuture<Object> future1 = scheduledExecutorService.schedule(callable1, 0, TimeUnit.MILLISECONDS);\n\t\tExecuteTicketService callable2 = new ExecuteTicketService(service, 2000, 1, 4, \"test2@tkt.com\");\n\t\tScheduledFuture<Object> future2 = scheduledExecutorService.schedule(callable2, 0, TimeUnit.MILLISECONDS);\n\t\tExecuteTicketService callable3 = new ExecuteTicketService(service, 1300, 1, 4, \"test3@tkt.com\");\n\t\tScheduledFuture<Object> future3 = scheduledExecutorService.schedule(callable3, 0, TimeUnit.MILLISECONDS);\n\t\tExecuteTicketService callable4 = new ExecuteTicketService(service, 200, 1, 4, \"test4@tkt.com\");\n\t\tScheduledFuture<Object> future4 = scheduledExecutorService.schedule(callable4, 0, TimeUnit.MILLISECONDS);\n\n\t\tSeatHold hold1 = (SeatHold) future1.get();\n\t\tSeatHold hold2 = (SeatHold) future2.get();\n\t\tSeatHold hold3 = (SeatHold) future3.get();\n\t\tSeatHold hold4 = (SeatHold) future4.get();\n\n\t\tassertNotNull(hold1.getHoldId());\n\t\tassertNotNull(hold2.getHoldId());\n\t\tassertNotNull(hold3.getHoldId());\n\t\tassertNotNull(hold4.getHoldId());\n\n\t\tassertEquals(1250, hold1.getNbrOfSeats());\n\t\tassertEquals(2000, hold2.getNbrOfSeats());\n\t\tassertEquals(1300, hold3.getNbrOfSeats());\n\t\tassertEquals(200, hold4.getNbrOfSeats());\n\t}", "title": "" }, { "docid": "0d9af30944b880999a3c762cfbbadb94", "score": "0.52710694", "text": "private void freeLocks(List<Lock> locks) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // Simply continue with unlocking\n }\n\n for (Lock lock : locks) {\n lock.unlock();\n }\n }", "title": "" }, { "docid": "aec7767792a15224feb953a75fbcf78e", "score": "0.5235253", "text": "public boolean waitUntilReleaseReady(final String lockId, final ProcessOperationLockReleaseStrategy releaseStrategy) {\n ProcessOperationLock lock = new ProcessOperationLock();\n locks.put(lockId, lock);\n lock.lock();\n try {\n return lock.awaitDefaultTime(releaseStrategy);\n } finally {\n lock.unlock();\n locks.remove(lockId);\n }\n }", "title": "" }, { "docid": "771b1c71a14daf465c204faad07b293c", "score": "0.52017385", "text": "public abstract boolean tryLock(final long wait_time, final TimeUnit unit, final long lease_time) throws InterruptedException;", "title": "" }, { "docid": "c3929c8fb22aad63432e28e2342f222a", "score": "0.51783884", "text": "public void releaseLocks() throws RemoteException {\n\t\tincrementclock();\n\t\tCS_BUSY = false;\n\t\tWANTS_TO_ENTER_CS = false;\n\t}", "title": "" }, { "docid": "e310734296e87dfe4602ae91f8824703", "score": "0.5165191", "text": "private void unlockCompletely(ReentrantLock lockToUnlock) {\n int counter = lockToUnlock.getHoldCount();\n\n for (int i = 0; i < counter; i++) {\n lockToUnlock.unlock();\n }\n }", "title": "" }, { "docid": "32c1f7e8aa0da14100c17501f1ea7f5c", "score": "0.515156", "text": "public abstract boolean tryLock(final TimeUnit unit, final long lease_time);", "title": "" }, { "docid": "9726948d71d9116686d08f3bedbd688d", "score": "0.51483154", "text": "@Test\n\tpublic void whenLockBreakCalledThenLockStatusShouldLock() throws Exception {\n\t\tgivenMockClient();\n\t\t// Given the user can access the controller\n\t\tgivenLift();\n\t\t// When the lockBreaks called\n\t\tcontroller.lockBreaks();\n\t\t// Then the status should be lock\n\t\tassertEquals(ElevatorController.LOCK_BREAK, controller.getLockStatus());\n\t}", "title": "" }, { "docid": "11da137015d9537e750e78db79961f2a", "score": "0.51482475", "text": "public interface Lock {\n\n /**\n * Locks the provided key for specified period of time.\n *\n * @param key the key to be used for lock\n * @param retryCount the number of retries that need to be performed while lock is being obtained.\n * @throws IllegalStateException is thrown in case lock cannot be gained\n */\n void lock(String key, int retryCount);\n\n /**\n * Releases last lock.\n *\n * @param key for release\n */\n void releaseLock(String key);\n\n /**\n * Releases last lock after the specified delay of time in mills\n *\n * @param key for release\n * @param delayMills delay of time\n */\n void releaseLock(String key, long delayMills);\n}", "title": "" }, { "docid": "61ba92ba231cdfff2ee81ec5a4695b05", "score": "0.51379174", "text": "@Test\n @Ignore\n public void testScopeAffinity() throws Exception {\n // install helloIsolation 0.3 in scope_test1\n Scope scope1 = createScope(scope, \"scope_test1\", \n \"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\",\n \"0.3\");\n \n // install helloIsolation 2.0 in scope_test2\n Scope scope2 = createScope(scope, \"scope_test2\", \n \"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\",\n \"2.0\");\n \n // install helloIsolationRef 2.0 in scope_test3\n ScopeUpdate su = scope.newScopeUpdate();\n \n ScopeUpdate childScopeUpdate = su.newChild(\"scope_test3\");\n su.getChildren().add(childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.framework\", childScopeUpdate);\n Scope scope3 = childScopeUpdate.getScope();\n \n Map<String, List<SharePolicy>> sharePolicies = childScopeUpdate.getSharePolicies(SharePolicy.TYPE_IMPORT);\n /*final Filter filter1 = FrameworkUtil.createFilter(\n \"(&\" + \n \"(osgi.package=org.apache.aries.subsystem.example.helloIsolation)\" +\n \"(bundle-symbolic-name=org.apache.aries.subsystem.example.helloIsolation)\" + \n \"(bundle-version<=1.1)\" + \n \")\");*/\n final Filter filter1 = FrameworkUtil.createFilter(\n \"(&\" + \n \"(osgi.wiring.package=org.apache.aries.subsystem.example.helloIsolation)\" +\n //\"(scopeName=scope_test1)\" + \n \")\");\n final Filter filter2 = FrameworkUtil.createFilter(\n \"(&\" + \n \"(scope.share.service=org.apache.aries.subsystem.example.helloIsolation.HelloIsolation)\" +\n \")\");\n List<SharePolicy> packagePolicies = sharePolicies.get(BundleRevision.PACKAGE_NAMESPACE);\n if (packagePolicies == null) {\n packagePolicies = new ArrayList<SharePolicy>();\n sharePolicies.put(BundleRevision.PACKAGE_NAMESPACE,packagePolicies);\n }\n packagePolicies.add(new SharePolicy(SharePolicy.TYPE_IMPORT, BundleRevision.PACKAGE_NAMESPACE, filter1));\n List<SharePolicy> servicePolicies = sharePolicies.get(\"scope.share.service\");\n if (servicePolicies == null) {\n servicePolicies = new ArrayList<SharePolicy>();\n sharePolicies.put(\"scope.share.service\", servicePolicies);\n }\n servicePolicies.add(new SharePolicy(SharePolicy.TYPE_IMPORT, \"scope.share.service\", filter2));\n\n\n // build up installInfo object for the scope\n InstallInfo info2 = new InstallInfo(\"helloIsolationRef\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\"));\n\n List<InstallInfo> bundlesToInstall = childScopeUpdate.getBundlesToInstall();\n bundlesToInstall.add(info2);\n \n // add bundles to be installed, based on subsystem content\n su.commit();\n \n // start all bundles in the scope scope_test3\n Collection<Bundle> bundlesToStart = childScopeUpdate.getScope().getBundles();\n for (Bundle b : bundlesToStart) {\n try {\n b.start();\n } catch (Exception ex) {\n \tex.printStackTrace();\n fail(\"should be able to start helloIsolationRef in scope_test1\");\n }\n \n }\n \n /* // install helloIsolationRef in root scope\n URL url1 = new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\");\n Bundle helloIsolationRef = bundleContext.installBundle(\"helloIsolationRef1-rootScope\", url1.openStream());\n \n try {\n helloIsolationRef.start();\n } catch (Exception ex) {\n fail(\"should be able to start helloIsolationRef\");\n }*/\n \n // remove child scope - cleanup\n su = scope.newScopeUpdate();\n Collection<ScopeUpdate> scopes = su.getChildren();\n scopes.clear();\n// scopes.add(scope1);\n// scopes.add(scope2);\n// scopes.add(scope3);\n su.commit();\n assertTrue(scope.getChildren().isEmpty());\n assertTrue(scope.newScopeUpdate().getChildren().isEmpty());\n }", "title": "" }, { "docid": "d0293df26f87a42d3df774c53bef0837", "score": "0.51296633", "text": "boolean tryLock(String token);", "title": "" }, { "docid": "dd85266d96b5899ad9ea17d54de25726", "score": "0.5119792", "text": "public void lockRelease(String message) {\r\n synchronized (lock) {\r\n numLockRelease -= 1;\r\n if (numLockRelease <= 0) {\r\n //#debug\r\n toDLog().pTest(message, null, TestCaseBentley.class, \"lockRelease\", ITechLvl.LVL_04_FINER, true);\r\n lock.notifyAll();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fd85947c17a5c16bd128bc1d6635460f", "score": "0.51165324", "text": "public synchronized void service()\n {\n }", "title": "" }, { "docid": "a519f92a7dc61d62e0c3995be93d39fc", "score": "0.50981975", "text": "public void run() {\n try {\n boolean acquired = masterLease.acquire(1, TimeUnit.SECONDS);\n if (acquired) {\n System.out.println(\"MASTER: I am master!\");\n double rand = ThreadLocalRandom.current().nextDouble();\n\n // 10% of the time re-assignments to happen\n if (rand < reassign_probability) {\n System.out.println(\"Trying to reassign shards\");\n // since revocation is co-operative and is happening in\n // distributed setting, we need to wait for all the holders\n // to release the guard read lock. For analytics service this\n // can take several minutes.\n\n boolean guardWriteAcquired = false;\n while (!guardWriteAcquired) {\n // revoke the guard leases from all the shard. This is called inside\n // the loop to account for readers coming up after the first attempt\n // of revocation is complete. Revocation handlers should be able\n // to handle duplicate revocation requests.\n // TODO: What is the time between release() on the read lock\n // and the node disappearing from the participant's list.\n Collection<String> participants = guardLease.readLock().getParticipantNodes();\n System.out.println(\"Number of read lockers: \" + participants.size());\n\n for (String node : participants) {\n Revoker.attemptRevoke(client, node);\n }\n guardWriteAcquired = guardLease.writeLock().acquire(10, TimeUnit.SECONDS);\n }\n System.out.println(\"Write lock acquired!\");\n // do reassignment for the service instances\n Collection<String> serviceNames = this.serviceDiscovery.queryForNames();\n System.out.println(\"Service names = \" + serviceNames);\n Collection<ServiceInstance<InstanceDetails>> instances =\n this.serviceDiscovery.queryForInstances(AnalyticsService.SERVICE_NAME);\n System.out.println(\"Instances = \" + instances);\n\n System.out.println(\"Shard re-assignment done!\");\n guardLease.writeLock().release();\n System.out.println(\"Write lock released!\");\n } else {\n System.out.println(\"Nothing to do\");\n }\n } else {\n System.out.println(\"I am not master\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "72c121502f4fda487e1e67661aa7ff29", "score": "0.5092533", "text": "@Test\n public void multipleShareTest3() {\n steps = new Schedule.Step[]{\n\n new Schedule.Step(tid0, pid1, Schedule.Action.SHARED), // t0 requests shared\n new Schedule.Step(tid0, pid1, Schedule.Action.ACQUIRED),\n new Schedule.Step(tid1, pid1, Schedule.Action.SHARED), // t0 requests shared\n new Schedule.Step(tid1, pid1, Schedule.Action.ACQUIRED),\n new Schedule.Step(tid2, pid1, Schedule.Action.EXCLUSIVE), // t2 waiting for exclusive\n new Schedule.Step(tid0, pid1, Schedule.Action.EXCLUSIVE), // t0 requests upgrade, can not acquire lock before T1 releases\n new Schedule.Step(tid1, pid1, Schedule.Action.UNLOCK),\n new Schedule.Step(tid0, pid1, Schedule.Action.ACQUIRED), // t0 gets exclusive ahead of t2, cutting the line\n new Schedule.Step(tid0, pid1, Schedule.Action.UNLOCK),\n new Schedule.Step(tid2, pid1, Schedule.Action.ACQUIRED) // now t2 can get exclusive\n };\n executeSchedule();\n }", "title": "" }, { "docid": "0169d9dd7f34fc58d8386e8e33fa534a", "score": "0.5091548", "text": "@Test\n public void shouldTryUpgradeSharedToExclusive() throws Exception\n {\n assertTrue( clientA.trySharedLock( NODE, 1l ) );\n\n // Then I can upgrade it to exclusive\n assertTrue( clientA.tryExclusiveLock( NODE, 1l ) );\n\n // And other clients are denied it\n assertFalse( clientB.trySharedLock( NODE, 1l ) );\n }", "title": "" }, { "docid": "7621db2197eb07fd7fdf9e4ad83b9ab6", "score": "0.50783086", "text": "@Test\n @Ignore\n public void testPackageSharingFromTestScope() throws Exception {\n // make sure we are using a framework that provides composite admin service\n assertNotNull(\"scope admin should not be null\", scope);\n System.out.println(\"able to get scope admin service\");\n\n ScopeUpdate su = scope.newScopeUpdate();\n \n ScopeUpdate childScopeUpdate = su.newChild(\"scope_test1\");\n su.getChildren().add(childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.framework\", childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.util.tracker\", childScopeUpdate);\n Map<String, List<SharePolicy>> sharePolicies = childScopeUpdate.getSharePolicies(SharePolicy.TYPE_EXPORT);\n final Filter filter1 = FrameworkUtil.createFilter(\n \"(&\" + \n \"(osgi.wiring.package=org.apache.aries.subsystem.example.helloIsolation)\" +\n \")\");\n final Filter filter2 = FrameworkUtil.createFilter(\n \"(&\" + \n \"(scope.share.service=org.apache.aries.subsystem.example.helloIsolation.HelloIsolation)\" +\n \")\");\n List<SharePolicy> packagePolicies = sharePolicies.get(BundleRevision.PACKAGE_NAMESPACE);\n if (packagePolicies == null) {\n packagePolicies = new ArrayList<SharePolicy>();\n sharePolicies.put(BundleRevision.PACKAGE_NAMESPACE, packagePolicies);\n }\n packagePolicies.add(new SharePolicy(SharePolicy.TYPE_EXPORT, BundleRevision.PACKAGE_NAMESPACE, filter1));\n List<SharePolicy> servicePolicies = sharePolicies.get(\"scope.share.service\");\n if (servicePolicies == null) {\n servicePolicies = new ArrayList<SharePolicy>();\n sharePolicies.put(\"scope.share.service\", servicePolicies);\n }\n servicePolicies.add(new SharePolicy(SharePolicy.TYPE_EXPORT, \"scope.share.service\", filter2));\n\n\n // build up installInfo object for the scope\n InstallInfo info1 = new InstallInfo(\"helloIsolation\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\"));\n InstallInfo info2 = new InstallInfo(\"helloIsolationRef\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\"));\n\n List<InstallInfo> bundlesToInstall = childScopeUpdate.getBundlesToInstall();\n bundlesToInstall.add(info1);\n bundlesToInstall.add(info2);\n \n // add bundles to be installed, based on subsystem content\n su.commit();\n \n // start all bundles in the scope scope_test1\n Collection<Bundle> bundlesToStart = childScopeUpdate.getScope().getBundles();\n for (Bundle b : bundlesToStart) {\n b.start();\n \n }\n \n // install helloIsolationRef1 bundle in the root scope\n URL url1 = new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\");\n Bundle helloIsolationRef = bundleContext.installBundle(\"helloIsolationRef1-rootScope\", url1.openStream());\n \n try {\n helloIsolationRef.start();\n } catch (Exception ex) {\n fail(\"should be able to start helloIsolationRef by import packages from scope_test1\");\n }\n \n // remove helloIsolationRef\n helloIsolationRef.uninstall();\n // remove child scope\n su = scope.newScopeUpdate();\n Collection<ScopeUpdate> scopes = su.getChildren();\n childScopeUpdate = scopes.iterator().next();\n // obtain child scope admin from service registry\n// String filter = \"ScopeName=scope_test1\";\n Scope childScopeAdmin = childScopeUpdate.getScope();\n assertEquals(scope, childScopeAdmin.getParent());\n scopes.remove(childScopeUpdate);\n su.commit();\n \n assertFalse(scope.getChildren().contains(childScopeAdmin));\n su = scope.newScopeUpdate();\n assertFalse(su.getChildren().contains(childScopeUpdate));\n \n// childScopeAdmin = null;\n// try {\n// childScopeAdmin = getOsgiService(Scope.class, filter, DEFAULT_TIMEOUT);\n// } catch (Exception ex) {\n// // ignore\n// }\n// assertNull(\"scope admin service for the scope should be unregistered\", childScopeAdmin);\n \n }", "title": "" }, { "docid": "c1a7320238cbf758f015fb9e5c4d4f03", "score": "0.5074414", "text": "@Test\n public void testLockRead() {\n config.lock(LockMode.READ);\n sync.verify(Methods.BEGIN_READ);\n }", "title": "" }, { "docid": "4b1f94383fb14f51772e01556775a02c", "score": "0.5071144", "text": "public void waitForService(final int identifier);", "title": "" }, { "docid": "eefc3b4059a5be76f16785f4b1a8bf40", "score": "0.5051432", "text": "private void releaseAllLocksAndResetStatus() {\n resetCompactionCandidateStatusForAllSourceFiles();\n for (int i = 0; i < selectedTsFileResourceList.size(); ++i) {\n TsFileResource resource = selectedTsFileResourceList.get(i);\n if (isHoldingReadLock[i]) {\n resource.readUnlock();\n }\n if (isHoldingWriteLock[i]) {\n resource.writeUnlock();\n }\n }\n }", "title": "" }, { "docid": "12bdc6a241ac6d6c93898ab1011c819e", "score": "0.504307", "text": "public void releaseShareLock();", "title": "" }, { "docid": "b8fe97da4e713045bd3027b2e48b87a3", "score": "0.504061", "text": "@GuardedBy(\"sLock\")\n private void waitForSharedRelrosLocked() {\n if (DEBUG) Log.i(TAG, \"waitForSharedRelros called\");\n\n // Return immediately if shared RELROs are already available.\n if (mSharedRelros != null) return;\n\n // Wait until notified by useSharedRelros() that shared RELROs have arrived.\n long startTime = DEBUG ? SystemClock.uptimeMillis() : 0;\n while (mSharedRelros == null) {\n try {\n sLock.wait();\n } catch (InterruptedException e) {\n // Continue waiting even if we were just interrupted.\n }\n }\n\n if (DEBUG) {\n Log.i(TAG, \"Time to wait for shared RELRO: %d ms\",\n SystemClock.uptimeMillis() - startTime);\n }\n }", "title": "" }, { "docid": "0053a3dfec177d8aa9c868fe4c4393b6", "score": "0.50357413", "text": "private void waitServiceStateNotified() {\n long l = SystemClock.elapsedRealtime();\n while (SystemClock.elapsedRealtime() < 3000 + l) {\n synchronized (this) {\n try {\n this.wait(1);\n }\n catch (InterruptedException var3_2) {\n DmcLog.e(\"DmcUtils\", \"sleep was interrupted\");\n }\n if (this.mServiceState == null) continue;\n }\n }\n }", "title": "" }, { "docid": "2075a14637cd0c177e66bc1dfd1f3a42", "score": "0.50258034", "text": "@Test\n public void fileLockTest() {\n\n }", "title": "" }, { "docid": "c4dcae5336399a11e7cded55c2519080", "score": "0.5014251", "text": "@Test\n public void pollingFrequencyTest() {\n Service testServiceOne = new Service(\"Test-service-one\", \"127.0.0.1\", 8080, 0, 0, true);\n Caller testCallerOne = new Caller(\"Caller-one\", 0);\n Registry testRegistryOne = new Registry(\"Test-registry-one\", testCallerOne, testServiceOne, 9000);\n ServiceRegister.getInstance().registerService(testRegistryOne);\n\n for (int i = 0; i < 10; i++) {\n if (Monitor.checkPollingTime(testRegistryOne.getName())) { \n testRegistryOne.setLastPollingTime(System.currentTimeMillis());\n testRegistryOne.getService().setLastPollingTime(System.currentTimeMillis());\n Runnable r = new ServiceStateChecker(testRegistryOne.getName());\n new Thread(r).start();\n //Since the polling frequency is 10 seconds, during 10 iteration it should be only \n //first time allows to poll the service.\n Assert.assertTrue(i==0);\n }\n }\n //After test complete, clear the service register.\n ServiceRegister.getInstance().reset();\n }", "title": "" }, { "docid": "e1b48476f05dbbe6b6ab6295e3ae96a1", "score": "0.5010623", "text": "@Test\n public void shouldTryExclusiveLock() throws Exception\n {\n assertTrue( clientA.tryExclusiveLock( NODE, 1l ) );\n\n // Then other clients can't have exclusive locks\n assertFalse( clientB.tryExclusiveLock( NODE, 1l ) );\n\n // Nor can they have share locks\n assertFalse( clientB.trySharedLock( NODE, 1l ) );\n }", "title": "" }, { "docid": "be0a67bfdb041b8fd0b0c954957dcf62", "score": "0.5001747", "text": "public boolean holdsLock(TransactionId tid, PageId p) {\n // some code goes here\n // not necessary for proj1\n return false;\n }", "title": "" }, { "docid": "1de9fea1fa168b17bb03774f85289b30", "score": "0.4999086", "text": "@DISPID(10) //= 0xa. The runtime will prefer the VTID if present\n @VTID(14)\n void locked(\n boolean locked);", "title": "" }, { "docid": "25cb3d4fe56aeb13450ae6783205113b", "score": "0.49949965", "text": "protected boolean tryRelease(int releases) {\n assert releases == 1; // Otherwise unused\n if (getState() == 0) throw new IllegalMonitorStateException();\n setExclusiveOwnerThread(null);\n setState(0);\n return true;\n }", "title": "" }, { "docid": "dc216fd52d64300fef07f5cfde8ae73b", "score": "0.49945405", "text": "@Test\n\tpublic void whenUnlockBreakCalledThenLockStatusShouldUnlock() throws Exception {\n\t\tgivenMockClient();\n\t\t// Given the user can access the controller\n\t\tgivenLift();\n\t\t// When the unlockBreaks called\n\t\tcontroller.unlockBreaks();\n\t\t// Then the status should be lock\n\t\tassertEquals(ElevatorController.UNLOCK_BREAK, controller.getLockStatus());\n\t}", "title": "" }, { "docid": "da8ad2bdcda9529f0964cdd58ae60c22", "score": "0.49759093", "text": "public void misturarTiposDeLocks() {\n Runnable runnable1 = () -> {\n log(\"Iniciando Runnable 01.\");\n\n String novaDescricao = \"Descrição detalhada. CTM: \" + System.currentTimeMillis();\n\n EntityManager entityManager1 = entityManagerFactory.createEntityManager();\n entityManager1.getTransaction().begin();\n\n log(\"Runnable 01 vai carregar o produto 1.\");\n Produto produto = entityManager1.find(\n Produto.class, 1, LockModeType.PESSIMISTIC_READ);\n\n log(\"Runnable 01 vai alterar o produto.\");\n produto.setDescricao(novaDescricao);\n\n log(\"Runnable 01 vai esperar por 3 segundo(s).\");\n esperar(3);\n\n log(\"Runnable 01 vai confirmar a transação.\");\n entityManager1.getTransaction().commit();\n entityManager1.close();\n\n log(\"Encerrando Runnable 01.\");\n };\n\n Runnable runnable2 = () -> {\n log(\"Iniciando Runnable 02.\");\n\n String novaDescricao = \"Descrição massa! CTM: \" + System.currentTimeMillis();\n\n EntityManager entityManager2 = entityManagerFactory.createEntityManager();\n entityManager2.getTransaction().begin();\n\n log(\"Runnable 02 vai carregar o produto 2.\");\n Produto produto = entityManager2.find(\n Produto.class, 1, LockModeType.PESSIMISTIC_WRITE);\n\n log(\"Runnable 02 vai alterar o produto.\");\n produto.setDescricao(novaDescricao);\n\n log(\"Runnable 02 vai esperar por 1 segundo(s).\");\n esperar(1);\n\n log(\"Runnable 02 vai confirmar a transação.\");\n entityManager2.getTransaction().commit();\n entityManager2.close();\n\n log(\"Encerrando Runnable 02.\");\n };\n\n Thread thread1 = new Thread(runnable1);\n Thread thread2 = new Thread(runnable2);\n\n thread1.start();\n\n esperar(1);\n thread2.start();\n\n try {\n thread1.join();\n thread2.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n EntityManager entityManager3 = entityManagerFactory.createEntityManager();\n Produto produto = entityManager3.find(Produto.class, 1);\n entityManager3.close();\n\n Assert.assertTrue(produto.getDescricao().startsWith(\"Descrição detalhada.\"));\n\n log(\"Encerrando método de teste.\");\n }", "title": "" }, { "docid": "b96a1a216f32cfb3ac5d2dc193dc39e1", "score": "0.49601695", "text": "private static void testStampledLockTryConvertToWriteLock() {\n System.out.println(\"\\ntestStampledLockTryConvertToWriteLock\\n\");\n StampedLock lock = new StampedLock();\n ExecutorService executor = Executors.newFixedThreadPool(24);\n Counter counter = new Counter();\n\n IntStream.range(0, 100000).forEach(i -> executor.submit(() -> {\n counter.incrementByConvertToWriteLock(lock);\n }));\n ExecutorUtil.shutdownGracefully(executor, 60);\n System.out.println(\"Counter result is \" + counter.getCount());\n assertEquals(100000, counter.getCount());\n }", "title": "" }, { "docid": "aa6cb0350ac683610b0c4c31a0b31425", "score": "0.4958974", "text": "@Test\n public void wsBlkMonitorTest() throws Exception {\n Block lastBlk = iconService.getLastBlock().execute();\n BigInteger reqBlkHeight = lastBlk.getHeight().add(BigInteger.TEN);\n Monitor<BlockNotification> bm = iconService.monitorBlocks(reqBlkHeight);\n List<BlockNotification> notiList = new LinkedList<>();\n final int testBlkNum = 10;\n bm.start(new Monitor.Listener<BlockNotification>() {\n boolean complete = false;\n boolean stop = false;\n\n @Override\n public void onStart() {\n synchronized (condVar) {\n assertFalse(stop);\n }\n }\n\n @Override\n public void onEvent(BlockNotification event) {\n synchronized (condVar) {\n assertFalse(stop);\n if(!complete) {\n LOG.info(\"received block \" + event.getHeight());\n notiList.add(event);\n if(notiList.size() == testBlkNum) {\n complete = true;\n condVar.notify();\n }\n }\n }\n }\n\n @Override\n public void onError(long code) {\n throw new RuntimeException(\"onError code : \" + code);\n }\n\n @Override\n public void onClose() {\n synchronized (condVar) {\n assertFalse(stop);\n stop = true;\n notiList.clear();\n condVar.notify();\n }\n }\n });\n\n BlockNotification noti = null;\n synchronized (condVar) {\n condVar.wait(3000 * testBlkNum);\n assertEquals(testBlkNum, notiList.size());\n }\n for(int i = 0; i < testBlkNum; i++) {\n noti = notiList.get(i);\n assertNotNull(noti);\n LOG.infoEntering(\"check received block \" + noti.getHeight());\n // check the order og the received blocks\n int cmp = noti.getHeight().compareTo(reqBlkHeight.add(BigInteger.valueOf(i)));\n assertEquals(0, cmp);\n Block blk = iconService.getBlock(noti.getHash()).execute();\n cmp = blk.getHeight().compareTo(noti.getHeight());\n assertEquals(0, cmp);\n LOG.infoExiting();\n }\n\n LOG.infoEntering(\"stop\");\n bm.stop();\n synchronized (condVar) {\n condVar.wait(3000);\n assertEquals(0, notiList.size());\n }\n LOG.infoExiting();\n }", "title": "" }, { "docid": "8802e7c8a1d887f102080bde11a270fc", "score": "0.49577892", "text": "@Test\n public void testConcurrentInvalidation() throws InterruptedException\n {\n long startVersion = tmd.getRingVersion();\n\n ExecutorService pool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors() + 1);\n \n int invalidations = 1024;\n \n for (int i = 0; i < invalidations; i++)\n pool.execute(() -> tmd.invalidateCachedRings());\n\n pool.shutdown();\n \n assertTrue(pool.awaitTermination(30, TimeUnit.SECONDS));\n assertEquals(invalidations + startVersion, tmd.getRingVersion());\n }", "title": "" }, { "docid": "7f22faa07ff4eeaa72b8457e0cb43568", "score": "0.49515674", "text": "private void releasePlock(int ps) {\n\t\tplock = ps;\n\t\tsynchronized (this) {\n\t\t\tnotifyAll();\n\t\t}\n\t}", "title": "" }, { "docid": "894c9f811adef544788597778b8f6619", "score": "0.49281418", "text": "Publisher<LockResult> acquire(LockRequest lockRequest);", "title": "" }, { "docid": "8d20f39e307f2acc39ec52bce4a7ab3c", "score": "0.49240202", "text": "public void acquireShareLock();", "title": "" }, { "docid": "194cbf7fb61137beead08db36523b3b2", "score": "0.49182782", "text": "@Test\n public void multipleShareTest2() {\n steps = new Schedule.Step[]{\n new Schedule.Step(tid0, pid3, Schedule.Action.SHARED), // t1 requests shared\n new Schedule.Step(tid0, pid3, Schedule.Action.ACQUIRED),\n new Schedule.Step(tid1, pid3, Schedule.Action.EXCLUSIVE), // t2 waiting for exclusive\n new Schedule.Step(tid2, pid3, Schedule.Action.SHARED), // t3 requests shared\n new Schedule.Step(tid0, pid3, Schedule.Action.UNLOCK),\n new Schedule.Step(tid1, pid3, Schedule.Action.ACQUIRED),\n new Schedule.Step(tid1, pid3, Schedule.Action.UNLOCK),\n new Schedule.Step(tid2, pid3, Schedule.Action.ACQUIRED)\n };\n executeSchedule();\n }", "title": "" }, { "docid": "f31c4a97d70d0aca5b67c0f949e76cbb", "score": "0.49147263", "text": "public void waitForService(final String identifier);", "title": "" }, { "docid": "bc437ddcdfb2229224dc15d218345c1e", "score": "0.49036622", "text": "void checkIn(ServiceHandle<S> handle) throws Exception;", "title": "" }, { "docid": "2fd7726dca1b6e88397e0704a140956b", "score": "0.49018088", "text": "Publisher<UnlockResult> forceReleaseAll();", "title": "" }, { "docid": "9884e0ff4b0292ab35ddcabfcfb4a6b9", "score": "0.48767683", "text": "@Test\n public void testUnlockWrite() {\n config.unlock(LockMode.WRITE);\n sync.verify(Methods.END_WRITE);\n }", "title": "" }, { "docid": "4572f481141a91b9899a92db95725bc0", "score": "0.4873597", "text": "@Override\n public void resetLocks()\n {\n \n }", "title": "" }, { "docid": "ae4d5943d3d631f011cfc30eeddf0fd1", "score": "0.48730972", "text": "@Test\n public void testUnlockRead() {\n config.unlock(LockMode.READ);\n sync.verify(Methods.END_READ);\n }", "title": "" }, { "docid": "ef52c4efc3a81fb5d1cd2600ac00437c", "score": "0.4853127", "text": "static void testMultiSynchronization(String host){\n Thread b = new Thread(new BuyThread(\"SynchBook2\", 20, 1, 0, host));\n b.start();\n //Try to sell 1 copy of synchbook 10 times, with a 0 second wait between each time.\n Thread c = new Thread(new SellThread(\"SynchBook2\", 1, 10, 0, host));\n c.start();\n try{\n b.join();\n c.join();\n } catch(InterruptedException e){\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "41165ac54b8230fb4c1488f6ed6c853c", "score": "0.48514825", "text": "void fullyUnlock() {\n takeLock.unlock();\n putLock.unlock();\n }", "title": "" }, { "docid": "e55b3c3bde7b640fe77a0cad25e3f7b6", "score": "0.48488513", "text": "@Test\n\tpublic void testRemove() {\n\t\tServiceManager testMgr = new ServiceManager();\n\t\ttestMgr.putOnWaitingList(car1);\n\t\ttestMgr.putOnWaitingList(car2);\n\t\ttestMgr.putOnWaitingList(car3);\n\t\tassertEquals(car1, testMgr.remove(\"\", 1));\n\t\tassertEquals(car3, testMgr.remove(\"\", 0));\n\t\t\n\t\tServiceManager testMgr2 = new ServiceManager();\n\t\ttestMgr2.putOnWaitingList(car1);\n\t\ttestMgr2.putOnWaitingList(car2);\n\t\ttestMgr2.putOnWaitingList(car3);\n\t\ttestMgr2.putOnWaitingList(car4);\n\t\ttestMgr2.putOnWaitingList(car5);\n\t\ttestMgr2.putOnWaitingList(hev1);\n\t\ttestMgr2.putOnWaitingList(hev2);\n\t\ttestMgr2.putOnWaitingList(hev3);\n\t\ttestMgr2.putOnWaitingList(car6);\n\t\ttestMgr2.putOnWaitingList(hev4);\n\t\tassertEquals(car5, testMgr2.remove(\"sc\", 0));\n\t\ttestMgr2.remove(\"sc\", 1);\n\t}", "title": "" }, { "docid": "52d23c99a7f3af70fa87a3af8f2a5f2b", "score": "0.4848353", "text": "@Test\n public void multipleShareTest4() {\n steps = new Schedule.Step[]{\n new Schedule.Step(tid0, pid1, Schedule.Action.EXCLUSIVE), // t0 requests exclusive\n new Schedule.Step(tid0, pid1, Schedule.Action.ACQUIRED),\n new Schedule.Step(tid1, pid1, Schedule.Action.SHARED), // t1 requests shared\n new Schedule.Step(tid2, pid1, Schedule.Action.SHARED), // t2 requests shared\n new Schedule.Step(tid3, pid1, Schedule.Action.SHARED), // t3 requests shared\n new Schedule.Step(tid0, pid1, Schedule.Action.UNLOCK),\n new Schedule.AcquiredStep(tid1, pid1),\n new Schedule.AcquiredStep(tid2, pid1,5 ),\n new Schedule.AcquiredStep(tid3, pid1,5 )\n };\n executeSchedule();\n }", "title": "" }, { "docid": "473f7d5a090bf95d62ff6af2bff9da03", "score": "0.48475033", "text": "@Test\n public void checkRegisterContractOnTemporaryOffedNetwork() throws Exception {\n for (int i = 0; i < NODES/2; i++) {\n networks_s.get(NODES-i-1).setUDPAdapterTestMode(DatagramAdapter.TestModes.LOST_PACKETS);\n networks_s.get(NODES-i-1).setUDPAdapterLostPacketsPercentInTestMode(100);\n }\n\n AsyncEvent ae = new AsyncEvent();\n\n Contract contract = Contract.fromDslFile(ROOT_PATH + \"coin100.yml\");\n contract.addSignerKeyFromFile(ROOT_PATH +\"_xer0yfe2nn1xthc.private.unikey\");\n contract.addSignerKeyFromFile(Config.uKeyPath);\n contract.seal();\n\n addDetailsToAllLedgers(contract);\n\n contract.check();\n contract.traceErrors();\n assertTrue(contract.isOk());\n\n node.registerItem(contract);\n\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n\n System.out.println(\"-----------nodes state--------------\");\n\n boolean all_is_approved = true;\n for (Node n : nodesMap_s.values()) {\n ItemResult r = n.checkItem(contract.getId());\n System.out.println(\"Node: \" + n.toString() + \" state: \" + r.state);\n if(r.state != ItemState.APPROVED) {\n all_is_approved = false;\n }\n }\n assertEquals(all_is_approved, false);\n }\n }, 0, 1000);\n\n // wait and now switch on full network\n try {\n ae.await(5000);\n } catch (TimeoutException e) {\n timer.cancel();\n System.out.println(\"switching on network\");\n for (TestLocalNetwork ln : networks_s) {\n ln.setUDPAdapterTestMode(DatagramAdapter.TestModes.NONE);\n }\n }\n\n Timer timer2 = new Timer();\n timer2.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n\n System.out.println(\"-----------nodes state--------------\");\n\n Object lock = new Object();\n synchronized (lock) {\n int num_approved = 0;\n for (Node n : nodesMap_s.values()) {\n ItemResult r = n.checkItem(contract.getId());\n\n if (r.state == ItemState.APPROVED) {\n num_approved++;\n }\n System.out.println(\"Node: \" + n.toString() + \" state: \" + r.state);\n }\n\n if (num_approved == NODES) {\n System.out.println(\"All approved: \" + num_approved);\n ae.fire();\n }\n }\n }\n }, 0, 1000);\n\n try {\n ae.await(5000);\n } catch (TimeoutException e) {\n System.out.println(\"time is up\");\n }\n\n timer2.cancel();\n\n boolean all_is_approved = true;\n for (Node n : nodesMap_s.values()) {\n ItemResult r = n.waitItem(contract.getId(), 13000);\n if(r.state != ItemState.APPROVED) {\n all_is_approved = false;\n }\n }\n\n assertEquals(all_is_approved, true);\n\n\n }", "title": "" }, { "docid": "bf9717bbca7f51e6f75359ca1734d23c", "score": "0.4836273", "text": "@Before\n public void beforeTest () throws InterruptedException\n {\n Assume.assumeNotNull (properties);\n\n serviceBuffer = new StringBuffer ();\n serviceThread = new Thread ( () -> {\n serviceLock.lock ();\n try (final ServerSocket serverSocket = new ServerSocket (servicePort))\n {\n LOGGER.info (\"opening service on port \" + servicePort);\n serviceReady.signalAll ();\n serviceConnected.await ();\n LOGGER.info (\"waiting for connection\");\n try (InputStream inputStream = serverSocket.accept ().getInputStream ())\n {\n serviceConnectAccepted.signalAll ();\n LOGGER.info (\"connected, now wait for write\");\n serviceWrittenTo.await ();\n LOGGER.info (\"accepted connection, now read data\");\n final String data = StreamHelper.getAllBytesAsString (inputStream, StandardCharsets.UTF_8);\n LOGGER.info (\"read \" + data);\n serviceBuffer.append (data);\n serviceBufferReady.signalAll ();\n }\n }\n catch (final Exception e)\n {\n LOGGER.error (\"failed to open service on port \" + servicePort + \": \", e);\n }\n finally\n {\n serviceLock.unlock ();\n LOGGER.info (\"closing down service on port \" + servicePort);\n }\n });\n LOGGER.info (\"starting service\");\n serviceThread.start ();\n\n serviceLock.lock ();\n try\n {\n LOGGER.info (\"wait for serviceReady\");\n serviceReady.await (); // wait for service to open socket\n LOGGER.info (\"service is ready now!\");\n }\n finally\n {\n serviceLock.unlock ();\n }\n }", "title": "" }, { "docid": "bcf7932368d108e6b98e7270b84d7184", "score": "0.48321685", "text": "private void waitToUnlock(ISession session, IMachine machine) {\n session.unlockMachine();\n SessionState sessionState = machine.getSessionState();\n while (!SessionState.Unlocked.equals(sessionState)) {\n sessionState = machine.getSessionState();\n try {\n System.out.println(\"Waiting for session unlock...[\" + sessionState.name() + \"][\" + machine.getName() + \"]\");\n Thread.sleep(1000L);\n } catch (InterruptedException e) {\n System.err.println(\"Interrupted while waiting for session to be unlocked\");\n }\n }\n }", "title": "" }, { "docid": "262b26e5ae6da7c84822ca351cb34914", "score": "0.48292506", "text": "@Test\n public void removesLockOnUpdateDisposition() {\n // Arrange\n final String linkName = \"my-link-name\";\n final String sessionId = \"test-session-id\";\n final OffsetDateTime sessionLockedUntil = OffsetDateTime.now().plus(Duration.ofSeconds(30));\n final OffsetDateTime messageLockedUntil = sessionLockedUntil.plusSeconds(-1);\n\n final String lockToken = \"a-lock-token\";\n final Message message = mock(Message.class);\n final ServiceBusReceivedMessage receivedMessage = mock(ServiceBusReceivedMessage.class);\n\n when(messageSerializer.deserialize(message, ServiceBusReceivedMessage.class)).thenReturn(receivedMessage);\n\n when(receivedMessage.getSessionId()).thenReturn(sessionId);\n when(receivedMessage.getLockToken()).thenReturn(lockToken);\n when(receivedMessage.getLockedUntil()).thenReturn(messageLockedUntil);\n\n when(amqpReceiveLink.getLinkName()).thenReturn(linkName);\n when(amqpReceiveLink.getSessionId()).thenReturn(Mono.just(sessionId));\n when(amqpReceiveLink.getSessionLockedUntil())\n .thenAnswer(invocation -> Mono.defer(() -> Mono.just(sessionLockedUntil)));\n\n when(amqpReceiveLink.updateDisposition(lockToken, Accepted.getInstance())).thenReturn(Mono.empty());\n\n when(amqpReceiveLink.closeAsync()).thenReturn(Mono.empty());\n\n final AmqpRetryOptions retryOptions = new AmqpRetryOptions();\n final Scheduler scheduler = Schedulers.boundedElastic();\n final Duration maxSessionRenewalDuration = Duration.ofMinutes(5);\n final ServiceBusSessionReceiver sessionReceiver = new ServiceBusSessionReceiver(sessionId, amqpReceiveLink,\n messageSerializer, retryOptions, 1, scheduler,\n unused -> renewSessionLock(Duration.ofMinutes(1)), maxSessionRenewalDuration, NO_SESSION_IDLE_TIMEOUT);\n\n // Act & Assert\n try {\n StepVerifier.create(sessionReceiver.receive())\n .then(() -> {\n assertFalse(sessionReceiver.containsLockToken(lockToken));\n\n messagePublisher.next(message);\n })\n .assertNext(actual -> {\n assertEquals(receivedMessage, actual.getMessage());\n assertEquals(sessionId, actual.getSessionId());\n assertEquals(messageLockedUntil, actual.getMessage().getLockedUntil());\n })\n .thenCancel()\n .verify(Duration.ofSeconds(2));\n\n assertTrue(sessionReceiver.containsLockToken(lockToken));\n\n StepVerifier.create(sessionReceiver.updateDisposition(lockToken, Accepted.getInstance()))\n .expectComplete()\n .verify(Duration.ofSeconds(2));\n\n assertFalse(sessionReceiver.containsLockToken(lockToken));\n } finally {\n sessionReceiver.close();\n }\n }", "title": "" }, { "docid": "67326488598b0265f1dbdfd80aa35b39", "score": "0.4828809", "text": "public interface MockSecKillService {\n\n public boolean buy(int goodsid,int num);\n\n}", "title": "" }, { "docid": "793a18ad6616bd4c6df48718e931c973", "score": "0.48228735", "text": "@Test\n void test_cannotAcquireLock() {\n acquireLock();\n enqueueMapreduceOnly();\n assertThat(fakeResponse.getPayload()).isEqualTo(\"Can't acquire lock; aborting.\");\n }", "title": "" }, { "docid": "9865b99abde01e25c1b8e1d2af358f9f", "score": "0.48143935", "text": "public void unlock() {\n semaphore.release();\n }", "title": "" }, { "docid": "20949d135d73730e320b5c69e33bc0e7", "score": "0.4812231", "text": "public boolean acquireLock(String lockName, long timeout, TimeUnit unit);", "title": "" }, { "docid": "8e0b2ab6a62f05566d329f2928f2d5bf", "score": "0.48115882", "text": "@Test\n public void testMonitorResponse2ShutdownNow() throws InterruptedException {\n WaitForStartupApplication.launchAndWait(WaitForStartupApplication.class);\n\n WaitForStartupApplication application = Application.getInstance(WaitForStartupApplication.class);\n ApplicationContext context = application.getContext();\n TaskService taskService = context.getTaskService();\n TaskMonitor taskMonitor = context.getTaskMonitor();\n\n // TaskService and TaskMonitor fire their property listeners in the EDL thread \n // so use our own listener to know when the EDL has dispatched all of these events.\n final CountDownLatch incompleteExecutes = new CountDownLatch(10);\n final PropertyChangeListener taskFullyQueuedListener = new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n List<Task> oldTasks = (List<Task>) evt.getOldValue();\n List<Task> newTasks = (List<Task>) evt.getNewValue();\n\n int newPendingExecution = newTasks.size() - oldTasks.size();\n\n while (newPendingExecution-- > 0) {\n incompleteExecutes.countDown();\n }\n }\n };\n\n taskMonitor.addPropertyChangeListener(\"tasks\", taskFullyQueuedListener);\n\n // Queue up all of the tasks that are to be executed\n final CountDownLatch readySignal = new CountDownLatch(1);\n for (long i = 0, l = incompleteExecutes.getCount(); i < l; i++) {\n taskService.execute(new WaitingTask(application, readySignal, timePerTask));\n }\n\n // Wait for TaskMonitor to report all of the task execute calls\n // NOTE: None of these tasks may actually run because they are all waiting\n // for startSignal to count down.\n incompleteExecutes.await();\n\n taskService.shutdownNow();\n \n // The shutdown will generate a number of events which must complete before continuing.\n Thread.sleep(1000);\n\n assertEquals(\"taskMonitor.getTasks().size() == 0\", 0, taskMonitor.getTasks().size());\n }", "title": "" }, { "docid": "9e0001502b80e8560b3914535d75d033", "score": "0.4808685", "text": "public void releaseService(String notes, String allocated) throws InterruptedException, Exception\r\n\t{\r\n\t\tgetWait().until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"//*[@title='Add Release']\")));\r\n\t\tgetxpath(\"//*[@title='Add Release']\").click();\r\n\t\tgetWait().until(ExpectedConditions.visibilityOfElementLocated(By.id(\"releasesTypeID\")));\r\n\t\tgetid(\"releasesTypeID\").click();\r\n\t\tgetxpath(\"//*[@id='releasesTypeID']/option[6]\").click();\r\n\t\tThread.sleep(3000);\r\n\t\tgetid(\"NoteID\").sendKeys(notes);\r\n\t\tgetid(\"AllocatedID\").sendKeys(allocated);\r\n\t\tThread.sleep(2000);\r\n\t\tgetxpath(\"//*[@id='openReleaseDigForm']/table[2]/tbody/tr/td[4]/input\").click();\r\n\t\tThread.sleep(6000);\r\n\t\tJavascriptExecutor jse = (JavascriptExecutor)driver;\r\n\t\tjse.executeScript(\"arguments[0].scrollIntoView();\",getid(\"SavePOReleaseID\"));\r\n\t\tgetid(\"SavePOReleaseID\").click();\r\n\t\tjse.executeScript(\"arguments[0].scrollIntoView();\",getid(\"promisedID\"));\r\n\t\tgetid(\"promisedID\").click();\r\n\t\tgetlinktext(\"19\").click();\r\n\t\tThread.sleep(3000);\r\n\t\tgetWait().until(ExpectedConditions.elementToBeClickable(By.id(\"SavePOReleaseID\")));\r\n\t\tjse.executeScript(\"arguments[0].scrollIntoView();\",getid(\"SavePOReleaseID\"));\r\n\t\tgetid(\"SavePOReleaseID\").click();\r\n\t\tThread.sleep(6000);\r\n\t}", "title": "" }, { "docid": "45486bd0e8fc232477f422963432ffbf", "score": "0.48083642", "text": "@Test\n public void notReleaseFileLock() throws IOException {\n RandomAccessFile randomAccessFile = new RandomAccessFile(\"D:\\\\test.txt\", \"rw\");\n\n FileChannel fileChannel = randomAccessFile.getChannel();\n\n FileLock lock = fileChannel.lock();\n\n System.out.println(lock.isShared());\n\n while(true) {\n //loop forever, don't release the file lock\n }\n }", "title": "" }, { "docid": "84205828ce4b03070a38cc24447bc359", "score": "0.4804295", "text": "@Test\n\tpublic void testFillServiceBays() {\n\t\tServiceManager testMgr = new ServiceManager();\n\t\ttestMgr.putOnWaitingList(car1);\n\t\ttestMgr.putOnWaitingList(car2);\n\t\ttestMgr.putOnWaitingList(car3);\n\t\ttestMgr.putOnWaitingList(car4);\n\t\ttestMgr.putOnWaitingList(car5);\n\t\ttestMgr.putOnWaitingList(hev1);\n\t\ttestMgr.putOnWaitingList(hev2);\n\t\ttestMgr.putOnWaitingList(hev3);\n\t\ttestMgr.putOnWaitingList(car6);\n\t\ttestMgr.putOnWaitingList(hev4);\n\t\ttestMgr.fillServiceBays();\n\t\tassertEquals(\"108: LA-10293 Malone, Kevin\\n\" + \"106: VA-3301 Schrute, Dwight\\n\"\n\t\t\t\t+ \"105: MI-19002 Levinson, Jan\\n\" + \"103: NC-123 Scott, Michael\\n\" + \"102: IA-3901 Bratton, Creed\\n\"\n\t\t\t\t+ \"E01: DC-10098 Beasley, Pamela\\n\" + \"E04: NC-9910 Kapoor, Kelly\\n\"\n\t\t\t\t+ \"E07: VA-8991 Bernard, Andrew\\n\", testMgr.printServiceBays());\n\t\tassertEquals(\"R None OK-39820 Kinsey, Angela\\n\" + \"E None PA-12891 Vance, Bob\\n\", testMgr.printWaitList(\"\"));\n\t\tassertEquals(car3, testMgr.releaseFromService(0));\n\t\ttestMgr.addNewBay();\n\t\t\n\t\tServiceManager testMgr2 = new ServiceManager();\n\t\ttestMgr2.putOnWaitingList(car1);\n\t\ttestMgr2.putOnWaitingList(car2);\n\t\ttestMgr2.putOnWaitingList(car3);\n\t\ttestMgr2.putOnWaitingList(car4);\n\t\ttestMgr2.fillServiceBays();\n\t\tassertEquals(\"\", testMgr2.printWaitList(\"\"));\n\t}", "title": "" }, { "docid": "092c6854d49f3969d98d8f95de07bec9", "score": "0.47960567", "text": "@Test\n @Ignore\n public void testPackageIsolation() throws Exception {\n assertNotNull(\"scope admin should not be null\", scope);\n System.out.println(\"able to get scope admin service\");\n\n ScopeUpdate su = scope.newScopeUpdate();\n \n ScopeUpdate childScopeUpdate = su.newChild(\"scope_test1\");\n su.getChildren().add(childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.framework\", childScopeUpdate);\n addPackageImportPolicy(\"org.osgi.util.tracker\", childScopeUpdate);\n // build up installInfo object for the scope\n InstallInfo info1 = new InstallInfo(\"helloIsolation\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\"));\n InstallInfo info2 = new InstallInfo(\"helloIsolationRef\", new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\"));\n\n List<InstallInfo> bundlesToInstall = childScopeUpdate.getBundlesToInstall();\n bundlesToInstall.add(info1);\n bundlesToInstall.add(info2);\n \n // add bundles to be installed, based on subsystem content\n su.commit();\n \n // start all bundles in the scope scope_test1\n Collection<Bundle> bundlesToStart = childScopeUpdate.getScope().getBundles();\n for (Bundle b : bundlesToStart) {\n b.start();\n \n }\n \n // install helloIsolationRef1 bundle in the root scope\n URL url1 = new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolationRef/0.1-SNAPSHOT\");\n Bundle helloIsolationRef = bundleContext.installBundle(\"helloIsolationRef1-rootScope\", url1.openStream());\n \n try {\n helloIsolationRef.start();\n fail(\"should not be able to start helloIsolationRef since missing import packages\");\n } catch (Exception ex) {\n // expect resolving error\n }\n \n URL url2 = new URL(\"mvn:org.apache.aries.subsystem/org.apache.aries.subsystem.example.helloIsolation/0.1-SNAPSHOT\");\n Bundle helloIsolation = bundleContext.installBundle(\"helloIsolation1-rootScope\", url2.openStream());\n \n helloIsolation.start();\n \n // should be able to start the bundle now.\n helloIsolationRef.start();\n \n // remove helloIsolationRef & helloIsolation\n helloIsolationRef.uninstall();\n helloIsolation.uninstall();\n \n // remove child scope\n su = scope.newScopeUpdate();\n// Collection<Scope> scopes = su.getToBeRemovedChildren();\n Collection<ScopeUpdate> scopes = su.getChildren();\n childScopeUpdate = scopes.iterator().next();\n // obtain child scope admin from service registry\n// String filter = \"ScopeName=scope_test1\";\n// Scope childScopeAdmin = getOsgiService(Scope.class, filter, DEFAULT_TIMEOUT);\n Scope childScopeAdmin = childScopeUpdate.getScope();\n assertEquals(scope, childScopeAdmin.getParent());\n// scopes.add(childScopeAdmin);\n scopes.remove(childScopeUpdate);\n su.commit();\n \n assertFalse(scope.getChildren().contains(childScopeAdmin));\n su = scope.newScopeUpdate();\n assertFalse(su.getChildren().contains(childScopeUpdate));\n \n// childScopeAdmin = null;\n// try {\n// childScopeAdmin = getOsgiService(Scope.class, filter, DEFAULT_TIMEOUT);\n// } catch (Exception ex) {\n// // ignore\n// }\n// assertNull(\"scope admin service for the scope should be unregistered\", childScopeAdmin);\n \n }", "title": "" }, { "docid": "81537fb01a5c5f8c84bef0c444148f9f", "score": "0.4794396", "text": "public interface DistributeLockApi {\n\n /**\n * get distribute lock for concurrency\n * @throws Throwable Exceptions or Errors when lock\n * */\n void lock() throws Throwable;\n\n /**\n * release the distribute lock so that others can get the lock\n * @throws Throwable Exceptions or Errors when unlock\n * */\n void unlock() throws Throwable;\n\n /**\n * release the instance resource\n * */\n void shutdown();\n}", "title": "" }, { "docid": "bb166ff6841ffb7f2cec20f943f5b7ed", "score": "0.47938815", "text": "public boolean acquireLock(String lockName, long seconds);", "title": "" }, { "docid": "d961f68f32ab26aa9b3b43e8dc4cdd47", "score": "0.4790771", "text": "@UnsupportedAppUsage\n public void release() {\n if (DEBUG) Log.v(TAG, \"release() : \" + this, new RuntimeException(\"here\"));\n checkService();\n synchronized (mToken) {\n releaseLocked();\n }\n }", "title": "" }, { "docid": "e9b28f3a9e41e0c6cbb9a71a3377a7fa", "score": "0.4790379", "text": "@Component\npublic interface Synchronizer<T extends Comparable<T>> {\n void withLock(T one, T second, Runnable action);\n}", "title": "" }, { "docid": "24dd0499bf4f77a331a561d9dec53038", "score": "0.47848418", "text": "@Test\n public void getInstance() throws InterruptedException{\n getInstanceWaiter waiter = new getInstanceWaiter();\n Thread waiterThread = new Thread(waiter);\n waiterThread.start();\n while (!waiter.isWaiting()){\n Thread.sleep(100);\n }\n getInstanceAdder adder = new getInstanceAdder();\n Thread adderThread = new Thread(adder);\n adderThread.start();\n adderThread.join();\n waiterThread.join();\n assertEquals(adder.getCount(), waiter.getCount());\n }", "title": "" }, { "docid": "c20968056bcc1b06c907493ee09d15e6", "score": "0.47824565", "text": "private void releaseSession(Session session) {\n // Remove all instances of the session from the lock queue.\n queue.removeIf(lock -> lock.session.equals(session.sessionId()));\n\n // If the removed session is the current holder of the lock, nullify the lock and attempt to grant it\n // to the next waiter in the queue.\n if (lock != null && lock.session.equals(session.sessionId())) {\n lock = queue.poll();\n while (lock != null) {\n // If the waiter has a lock timer, cancel the timer.\n Scheduled timer = timers.remove(lock.index);\n if (timer != null) {\n timer.cancel();\n }\n\n // Notify the client that it has acquired the lock.\n Session lockSession = getSession(lock.session);\n if (lockSession != null && lockSession.getState().active()) {\n getSession(lock.session).accept(service -> service.locked(lock.id, lock.index));\n break;\n }\n lock = queue.poll();\n }\n }\n }", "title": "" } ]
7182fca4c889dbe1fbd8bd9f0558c717
do nothin, as the placeholder will be replaced with a real element
[ { "docid": "a4cdc9247c4a2115d95f8a6e2db91f9e", "score": "0.0", "text": "public void recordResult(StudyResultLogger logger) {\n\n\t}", "title": "" } ]
[ { "docid": "594e9ec1c1efb43ea1bb93073b51f5d5", "score": "0.69657934", "text": "public void setPlaceHolder(String placeholder) {\n setAtributo(ATR_PLACEHOLDER, placeholder);\n }", "title": "" }, { "docid": "1be22657c17c53cc2f4ab2566f4fa10f", "score": "0.69243616", "text": "public void setPlaceHolder(String placeholder){\r\n placeholder_comp = new JunkTextField.Placeholder(placeholder, this);\r\n placeholder_comp.setForeground(Color.BLACK);\r\n placeholder_comp.changeAlpha(0.5f);\r\n placeholder_comp.initFontStyle(Font.PLAIN);\r\n }", "title": "" }, { "docid": "5ce9b68a78d3ad4e9bbdd6c6179d86da", "score": "0.69053173", "text": "private void resetPlaceholder() {\r\n placeholderActive = true;\r\n setForeground(PLACEHOLDER_TEXT_COLOR);\r\n setText(placeholder);\r\n }", "title": "" }, { "docid": "6a17414126c3b75fee761d7671843930", "score": "0.6890849", "text": "void setPlaceholder(String placeholder);", "title": "" }, { "docid": "3661ae3bc40bbc052e7ead8b8063da4d", "score": "0.68855983", "text": "private static void placeholder(){\n renderTemplate(\"Info/placeholder.html\");\n }", "title": "" }, { "docid": "becbcf50153d519497fe5668c0800130", "score": "0.6683628", "text": "public void setPlaceholder(String value) {\n getPolymerElement().setPlaceholder(value);\n }", "title": "" }, { "docid": "e326a87d27ba3143eb3d63bec5ac6b67", "score": "0.6680334", "text": "public void setPlaceholder(String placeholder) {\r\n this.placeholder = placeholder;\r\n if (placeholderActive) {\r\n setText(placeholder);\r\n }\r\n }", "title": "" }, { "docid": "b19cac6eb9b22e9fd5074e74cc2e3e11", "score": "0.65764505", "text": "@Override\n protected void setupPlaceholder(@Nullable PlaceholderView placeholder)\n {\n }", "title": "" }, { "docid": "556817787244bfd82dfe7863d0ccb20d", "score": "0.631159", "text": "public String getPlaceholder() {\n return getElement().getProperty(\"placeholder\", \"Edit your content here...\");\n }", "title": "" }, { "docid": "1cdc40ab57445c80f8a823cbff0de38e", "score": "0.6291094", "text": "String getPlaceholder();", "title": "" }, { "docid": "e516ab5adb1a116d014a4d6f3145c4dd", "score": "0.62791544", "text": "private void placeholder() {\n \n PlaceHolder name= new PlaceHolder(username,\"Enter your name \");\n PlaceHolder add= new PlaceHolder(address,\"Enter your address \");\n PlaceHolder cont= new PlaceHolder(contact,\"Enter your mobile no.\");\n PlaceHolder em= new PlaceHolder(email,\"Enter your email\");\n Font fo=new Font(\"Calibri\",1, 24);\n username.setFont(fo);\n address.setFont(fo);\n contact.setFont(fo);\n email.setFont(fo);\n \n \n \n \n \n \n }", "title": "" }, { "docid": "a16e056395ca1030b10b31cde374585b", "score": "0.6248579", "text": "public String getPlaceHolder() {\n String placeholder = super.getValorAtributo(ATR_PLACEHOLDER);\n return placeholder;\n }", "title": "" }, { "docid": "6bf0302fdaf42b8d51c45df0d8d3c202", "score": "0.61947864", "text": "public String getPlaceholder() {\n return placeholder;\n }", "title": "" }, { "docid": "0ec9faa32cd7a62eada055df0c6036cf", "score": "0.6177086", "text": "public void setPlaceHolder(String placeHolder) {\n this.placeHolder = placeHolder;\n }", "title": "" }, { "docid": "fac9899d52ccde23a5a968e20ef8d7aa", "score": "0.61087954", "text": "public Builder clearPlaceholder() {\n if (valueCase_ == 9) {\n valueCase_ = 0;\n value_ = null;\n onChanged();\n }\n return this;\n }", "title": "" }, { "docid": "d40b56d5165774ca05f43c17f4e60c07", "score": "0.5990694", "text": "public String getPlaceholder() {\n return getPolymerElement().getPlaceholder();\n }", "title": "" }, { "docid": "8912215d0e5a493d3a2714a645a539b0", "score": "0.5862125", "text": "public Builder setPlaceholder(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n valueCase_ = 9;\n value_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "da95a56f8d4dae996c51940d493a5e27", "score": "0.58188534", "text": "public void setPlaceholderId(byte id){\n placeholderId = id;\n }", "title": "" }, { "docid": "71db95fff779ff79ce765125d14b5802", "score": "0.5739136", "text": "void setPlaceholderText(boolean isEmpty) {\n placeholderText\n .setValue(isEmpty ? \"\" : \"No visits yet \" + new String(Character.toChars(0x1F60A)));\n }", "title": "" }, { "docid": "42a307945456488126b928c7243c5402", "score": "0.5711616", "text": "private JPanel placeholderPanel()\r\n {\r\n JPanel placeholderpanel = new JPanel();\r\n placeholderpanel.setLayout(new GridLayout(1,1));\r\n \r\n JLabel label = new JLabel(\"No Data Loaded!\");\r\n label.setHorizontalAlignment(JLabel.CENTER);\r\n \r\n placeholderpanel.add(label);\r\n \r\n return placeholderpanel;\r\n }", "title": "" }, { "docid": "7d0b68bc9bcf2c6fd0f17e3042f0704b", "score": "0.56056666", "text": "public String getPlaceHolder() {\n return placeHolder;\n }", "title": "" }, { "docid": "f9907c48e017896debf82c15b722442c", "score": "0.55825245", "text": "public void setPlaceholderImage(String value) {\n getPolymerElement().setPlaceholderImage(value);\n }", "title": "" }, { "docid": "9cf3918f21dd1098543ae7c25cf74ddb", "score": "0.55634147", "text": "public String getPlaceholder() {\n return \"?\" + getCastExpression();\n }", "title": "" }, { "docid": "c0e3290d5f6f1a3e435f89b79b72a938", "score": "0.5488509", "text": "public T getPlaceholderItem() {\n return placeholderItem;\n }", "title": "" }, { "docid": "2219c0f7da4b00012f53ab973b3ebe9d", "score": "0.5467171", "text": "@Override\n public Drawable placeholder (Context ctx, String tag) {\n if (DrawerImageLoader.Tags.PROFILE.name ().equals (tag)) {\n return DrawerUIUtils.getPlaceHolder (ctx);\n } else if (DrawerImageLoader.Tags.ACCOUNT_HEADER.name ().equals (tag)) {\n return new IconicsDrawable (ctx).iconText (\" \").backgroundColorRes (com.mikepenz.materialdrawer.R.color.colorPrimary).sizeDp (56);\n } else if (\"customUrlItem\".equals (tag)) {\n return new IconicsDrawable (ctx).iconText (\" \").backgroundColorRes (R.color.md_white_1000);\n }\n \n //we use the default one for\n //DrawerImageLoader.Tags.PROFILE_DRAWER_ITEM.name()\n \n return super.placeholder (ctx, tag);\n }", "title": "" }, { "docid": "fa15b989249a09d27471e982e987280c", "score": "0.54632014", "text": "@Override\n public Drawable placeholder(Context ctx, String tag) {\n if (DrawerImageLoader.Tags.PROFILE.name().equals(tag)) {\n return DrawerUIUtils.getPlaceHolder(ctx);\n } else if (DrawerImageLoader.Tags.ACCOUNT_HEADER.name().equals(tag)) {\n return new IconicsDrawable(ctx).iconText(\" \").backgroundColorRes(com.mikepenz.materialdrawer.R.color.primary).sizeDp(56);\n } else if (\"customUrlItem\".equals(tag)) {\n return new IconicsDrawable(ctx).iconText(\" \").backgroundColorRes(R.color.md_red_500).sizeDp(56);\n }\n\n //we use the default one for\n //DrawerImageLoader.Tags.PROFILE_DRAWER_ITEM.name()\n\n return super.placeholder(ctx, tag);\n }", "title": "" }, { "docid": "3f25d43efb8a17df276296c062c59fb7", "score": "0.5448211", "text": "public LiveData<String> getPlaceholderText() {\n return placeholderText;\n }", "title": "" }, { "docid": "5a3c18eb5fa4da00e7e357ddd38c4d8f", "score": "0.5414117", "text": "@Override\n\tpublic Object elementoActual() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fb808af57fff2f9c1b40903a64458d72", "score": "0.5398243", "text": "public static String getPlaceholderAttributeValue(WebElement ele) {\n\t\treturn ele.getAttribute(\"placeholder\");\n\t}", "title": "" }, { "docid": "381c6271e2ba6e047bdc51ba74343c8c", "score": "0.53908426", "text": "public static void contact() {\n placeholder();\n }", "title": "" }, { "docid": "c516d85bd89d414ee165a8cfeaf459c6", "score": "0.5305223", "text": "public void setPlaceholderText( String placeholderText ) {\n\t\tputClientProperty( PLACEHOLDER_TEXT, placeholderText );\n\t}", "title": "" }, { "docid": "9be9c7dd95788c5caf962d18c8d68994", "score": "0.52861875", "text": "private void drawPlaceHolder(GLESCanvas canvas, Rect r) {\n canvas.fillRect(r.left, r.top, r.width(), r.height(), mPlaceholderColor);\n }", "title": "" }, { "docid": "7fc8ba9c5c0c89d29cdf0c9485f4940f", "score": "0.52808076", "text": "@Override\n protected String getText() {\n return null;\n }", "title": "" }, { "docid": "17db6b1ce06a053fd015db49a6459941", "score": "0.5236672", "text": "public String getPlaceholderText() {\n\t\treturn (String) getClientProperty( PLACEHOLDER_TEXT );\n\t}", "title": "" }, { "docid": "d2d2ecf344415c0b17af3e151ccf36b7", "score": "0.5226511", "text": "@Override\n public List<Placeholder> getPlaceholders(@NotNull SceneComponent component, @NotNull List<SceneComponent> draggedComponents) {\n return Collections.emptyList();\n }", "title": "" }, { "docid": "86b5b6ba2be57c2296335aaa86e6621d", "score": "0.5226353", "text": "@Override\n public Editable replace(int st, int en, CharSequence text) {\n return null;\n }", "title": "" }, { "docid": "39cf44bf5778a25fd6343665adbd7a5b", "score": "0.5220431", "text": "public void setWidgetsNull()\n {\n\n tvCity.setText(\"\");\n tvAtmosphere.setText(\"\");\n tvAtmosphereDesc.setText(\"\");\n tvCloudsPercent.setText(\"\");\n tvHumidity.setText(\"\");\n tvHumidityText.setText(\"\");\n tvMaxTempValue.setText(\"\");\n tvMinTempValue.setText(\"\");\n tvTemp.setText(\"\");\n tvCloudsText.setText(\"\");\n div.setVisibility(View.INVISIBLE);\n div1.setVisibility(View.INVISIBLE);\n\n }", "title": "" }, { "docid": "f10cc202e7a920e86dfb95aa4f47161b", "score": "0.52088386", "text": "@Override\n\tpublic Object replace(Object arg0, Object arg1) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c3078601ed7e0bc57116c376a5dd607c", "score": "0.51885617", "text": "private void blank() {\n txt_nama.requestFocus();\n txt_id.setText(null);\n txt_nim.setText(null);\n txt_nama.setText(null);\n txt_kelas.setText(null);\n txt_telp.setText(null);\n txt_email.setText(null);\n txt_instagram.setText(null);\n txt_facebook.setText(null);\n }", "title": "" }, { "docid": "7422196e7fbb7da4a3ad235c5b931177", "score": "0.5180916", "text": "public int getPlaceholderId(){\n return placeholderId;\n }", "title": "" }, { "docid": "00e9f64e17ff226911f72055a93cd773", "score": "0.51656747", "text": "public void replace() {\n btReplace().push();\n }", "title": "" }, { "docid": "00e9f64e17ff226911f72055a93cd773", "score": "0.51656747", "text": "public void replace() {\n btReplace().push();\n }", "title": "" }, { "docid": "b2121f9ad9744bbe486882a2e999ac01", "score": "0.51519215", "text": "BufferedImage getPlaceholder(String sourceId, TCoordinate coord);", "title": "" }, { "docid": "d209de0003ca7f662748e79ca20e0e0f", "score": "0.51454794", "text": "public String getPlaceholderImage() {\n return getPolymerElement().getPlaceholderImage();\n }", "title": "" }, { "docid": "e325b529c294947e611dc543de04d727", "score": "0.51379466", "text": "public void enterData(String id, String placeholder, String data) {\n WebElement element = driver.findElement(By.xpath(\"//input[@id='\" + id + \"'][@placeholder='\" + placeholder + \"']\"));\n element.clear();\n element.sendKeys(data);\n }", "title": "" }, { "docid": "73bed5204d8defd6a831381c17f166d2", "score": "0.5122714", "text": "@Override\n public String template() {\n return null;\n }", "title": "" }, { "docid": "8fbe9d14bd3d346f4c8d2a90633a3731", "score": "0.5119827", "text": "protected void createOrChange(Element element, String name, String value) {\n Element child = element.getChild(name);\n if (child == null) {\n child = new Element(name);\n element.addContent(child);\n }\n child.setText(value);\n }", "title": "" }, { "docid": "b05f456e9d5fd78721706b3efb46b656", "score": "0.5113445", "text": "private void addEmptyFillingLabel(Composite comp) {\n\t\tfinal Label lblEmpty = new Label(comp, SWT.NONE);\n\t\tGridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.CENTER).applyTo(lblEmpty);\n\t}", "title": "" }, { "docid": "ff757535c01e881fe407df9bb2bc5a82", "score": "0.51084995", "text": "NotedElement createNotedElement();", "title": "" }, { "docid": "b582433d384a46f3a45cbbe8c25cf30d", "score": "0.51061213", "text": "@Override\r\n\tpublic Rasse createNewElement() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e64c00d166f3df1d9a27cad6fb7ec0b5", "score": "0.5054002", "text": "public void elementNotPresent() {\n\t\tif (ifElementPresent()) {\n\t\t\tthrow new RuntimeException(\"Element \" + using + \" is present in screen\");\n\t\t}\n\t}", "title": "" }, { "docid": "1dfb02e3a284978145ddc10164fb0be8", "score": "0.5043699", "text": "@Test(timeout = 4000)\n public void test118() throws Throwable {\n Form form0 = new Form((String) null);\n // Undeclared exception!\n try { \n form0.placeholder((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "d24dd83ed37228122852aa54df2e0205", "score": "0.50398594", "text": "public List<Placeholder> registerPlaceholders();", "title": "" }, { "docid": "96122010368e2e46923a17a483a65664", "score": "0.5036253", "text": "private void limpiar() {\n txtNodo.setText(\"\");\n }", "title": "" }, { "docid": "05b49de6ceef48dff236afa0dfbe5ef6", "score": "0.50288457", "text": "void fillText(WebElement el, String text) {\n\t\twaitUntilElementIsVisible(el);\n\t\thighlightElement(el, \"green\");\n\t\tel.clear();\n\t\tel.sendKeys(text);\n\t}", "title": "" }, { "docid": "02eb4698b5407ee83e8b796da072af99", "score": "0.50197214", "text": "public void showStaticPlaceholder() {\n setLoadState(LOAD_STATE_FAILED);\n }", "title": "" }, { "docid": "4c6175b8f8337654e415e1cdbddc362b", "score": "0.50072", "text": "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(first) {\n\t\t\t\t\tinputField.setText(\"\");\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "15663fc559d6ea7d56fb43418bf37cfc", "score": "0.5003888", "text": "public void onClear() {\n\t\tsetText(\"\");\n\t\taddDummyLabel();\n\t}", "title": "" }, { "docid": "98a574a1305a7d8fc57b3a5efa4628fb", "score": "0.4991969", "text": "private void initEmpty() {\n thumbnailView.setImage(null);\n centerLabel.setText(null);\n bottomRightLabel.setText(null);\n tagView.setImage(null);\n }", "title": "" }, { "docid": "be9f1a6ff1adaa097b8f773f0e71c9a4", "score": "0.4991663", "text": "private void blank() {\n txt_name.requestFocus();\n txt_id.setText(null);\n txt_name.setText(null);\n txt_address.setText(null);\n }", "title": "" }, { "docid": "9bb476cdd159d9ddf63ffe41f74583f9", "score": "0.49866527", "text": "@Test(timeout = 4000)\n public void test063() throws Throwable {\n Form form0 = new Form(\"\");\n // Undeclared exception!\n try { \n form0.placeholder(\"\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "e7c128b36cac650dc07fe8e86170657c", "score": "0.49781176", "text": "protected abstract void replace();", "title": "" }, { "docid": "1d529e527cd5ed2723439fc66decd57c", "score": "0.49647537", "text": "public void setPlaceHolderColor(Color col){\r\n placeholder_comp.setForeground(col);\r\n }", "title": "" }, { "docid": "d33b02c6ff86ac54591cdcd80acbdf7b", "score": "0.49616286", "text": "@Override\n public void run() {\n input.setText(\"\");\n }", "title": "" }, { "docid": "d921693ab1f0df515ec8451be733579e", "score": "0.4954184", "text": "void unsetElementFormDefault();", "title": "" }, { "docid": "c7a1712d772d5d6eb85f62b8f24e612b", "score": "0.49508414", "text": "@Override\n\tprotected Widget toObject(String arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "dc714ff284c0dd6a500a7f7ea7cbab82", "score": "0.492721", "text": "@Override\n public Editable replace(int st, int en, CharSequence source, int start, int end) {\n return null;\n }", "title": "" }, { "docid": "e8d681c32d238bb20022c9b79ebd2908", "score": "0.4923437", "text": "@Override\n public void onElementLoaded(Element elem) {\n String cachedContent = MemoryCacheUtility.cacheElementContent(elem);\n element.setContent(cachedContent);\n element.setId(elem.getId());\n // dico all'adapter di aggiornare le view con i nuovi dati\n adapterElements.refreshFragments();\n }", "title": "" }, { "docid": "68536a6462cd9562e94cae522b8aa91c", "score": "0.49233794", "text": "private void netejaJTextField( JTextField camp_de_text )\n\t{\n\t\tcamp_de_text.setText( \"\" );\n\t}", "title": "" }, { "docid": "364063351c50a152f3841ceda7f68781", "score": "0.49196342", "text": "public void findAndReplace() {\n\t\tnew ReplaceWindow(this);\n\t}", "title": "" }, { "docid": "5472a8554f8364f865add89b6512d8f0", "score": "0.49129537", "text": "public java.lang.String getPlaceholder() {\n java.lang.Object ref = \"\";\n if (valueCase_ == 9) {\n ref = value_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (valueCase_ == 9) {\n value_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "886ed87c103540e63bcbde9cbdbbe632", "score": "0.49088088", "text": "public Block createCollapsePlaceholder() {\n\t\tBlock placeHolder= fAst.newBlock();\n\t\tif (fCollapsedNodes == null) {\n\t\t\tfCollapsedNodes= new HashSet();\n\t\t}\n\t\tfCollapsedNodes.add(placeHolder);\n\t\treturn placeHolder;\n\t}", "title": "" }, { "docid": "79a55362ff6d05604ef418a80dfb032d", "score": "0.49027735", "text": "@Override\n public boolean instantSubstitution(JTextComponent jTextComponent) {\n return false;\n }", "title": "" }, { "docid": "5f69cd06b7664bc59a6529130cf249e4", "score": "0.48659274", "text": "public void replaceRandomNode()\n\t{\n\t\treplaceNode(0,0,0);\n\t}", "title": "" }, { "docid": "db420224a8bb674878d52e76545a909a", "score": "0.48619065", "text": "void autocompleteValueBlank();", "title": "" }, { "docid": "a260357a2286a6ff8232c1a1e93cd154", "score": "0.48570934", "text": "public PlaceholderTextArea(final String placeholder, int rows, int columns) {\r\n setRows(rows);\r\n setColumns(columns);\r\n setPlaceholder(placeholder);\r\n placeholderActive = true;\r\n\r\n setForeground(PLACEHOLDER_TEXT_COLOR);\r\n setText(placeholder);\r\n\r\n addFocusListener(new FocusListener() {\r\n @Override\r\n public void focusGained(FocusEvent e) {\r\n if (placeholderActive) {\r\n setText(\"\");\r\n setForeground(NORMAL_TEXT_COLOR);\r\n placeholderActive = false;\r\n }\r\n }\r\n\r\n @Override\r\n public void focusLost(FocusEvent e) {\r\n if (getText().equals(\"\")) {\r\n placeholderActive = true;\r\n setForeground(PLACEHOLDER_TEXT_COLOR);\r\n setText(placeholder);\r\n } else {\r\n placeholderActive = false;\r\n }\r\n }\r\n });\r\n }", "title": "" }, { "docid": "3545bd195a7aaef530844b2baaf5a649", "score": "0.48552504", "text": "public com.google.protobuf.ByteString\n getPlaceholderBytes() {\n java.lang.Object ref = \"\";\n if (valueCase_ == 9) {\n ref = value_;\n }\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (valueCase_ == 9) {\n value_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "f02b396fddccadbf8761764a1ed4a5f9", "score": "0.48528695", "text": "@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "880c04a18412ece63e0926fd1a9fb0a3", "score": "0.4851276", "text": "public StaticListItemsEditor(WebElement container)\n {\n this.container = container;\n\n By xpath = By.xpath(\".//*[@class = 'xHint' and . = 'ID']/following-sibling::input[@type = 'text']\");\n valueInput = getUtil().findElementWithoutWaiting(getDriver(), container, xpath);\n\n xpath = By.xpath(\".//*[@class = 'xHint' and . = 'Value']/following-sibling::input[@type = 'text']\");\n labelInput = getUtil().findElementWithoutWaiting(getDriver(), container, xpath);\n\n addButton = getUtil().findElementWithoutWaiting(getDriver(), container, By.className(\"add\"));\n }", "title": "" }, { "docid": "0727cc377f2833c79d3c74e22f9957df", "score": "0.48410395", "text": "public void replaceCurObject(T object){\r\n if(this.curEl != null){\r\n this.curEl.setObject(object);\r\n }\r\n }", "title": "" }, { "docid": "4fda2e75797bffc4fb8513d12cb92752", "score": "0.48385", "text": "private static void clear()\r\n {\r\n currentOperand = currentOperand.replaceAll(i, ht);\r\n RimplexWindow.display.setText(\r\n getDisplayText().substring(0, getDisplayText().length() - currentOperand.length()));\r\n currentOperand = \"\";\r\n }", "title": "" }, { "docid": "101a8dc44ca868a184a2d45c631f1a41", "score": "0.48315653", "text": "@Test \tpublic void Lnki_gt_orig_null_svg() \t{fxt.Lnki_ext_(Xof_ext_.Id_svg).Lnki_type_(Xop_lnki_type.Id_null)\t\t.Lnki_(800, 400).Test_html(800, 400, Bool_.N);}", "title": "" }, { "docid": "f520036fff3267886d71d461843f5aab", "score": "0.48283154", "text": "private void bLimparClick () {\r\n\t\ttfValor1.setText(\"\");\r\n\t\ttfValor2.setText(\"\");\r\n\t}", "title": "" }, { "docid": "036c13031f65505288d4102e9d8f0532", "score": "0.48265412", "text": "@Override\n\tpublic String afterRendered() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c95c1921eca9c9b1d938ffd9340d6f14", "score": "0.4817044", "text": "public java.lang.String getPlaceholder() {\n java.lang.Object ref = \"\";\n if (valueCase_ == 9) {\n ref = value_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (valueCase_ == 9) {\n value_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "f455c13da821cb1841c6baf85dd886c3", "score": "0.48135075", "text": "private void setupNoContent() {\n\t\tmapsPanel.add(noContent, (mapsPanel.getOffsetWidth() - 300)/2, mapsPanel.getOffsetHeight()/2);\n\t\tnoContent.setStyleName(\"noContent\");\n\t\tnoContent.setWidth(\"250px\");\n\t\tnoContent.setVisible(false);\n\t}", "title": "" }, { "docid": "dba6a0b9bd1bd504782696320d3cd5d9", "score": "0.48105094", "text": "@Override\n\tprotected Button createDontKnowButton(Question question) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "942f1130414cd40f3401005f5826325c", "score": "0.4808345", "text": "public void testEditorResetStateOnNullPattern() {\n JXEditorPane editor = new JXEditorPane();\n String text = \"fou four\";\n editor.setText(text);\n // initialize to found state\n int foundIndex = editor.getSearchable().search(\"ou\");\n // sanity\n assertEquals(1, foundIndex);\n // search with null searchString\n int notFoundIndex = editor.getSearchable().search((Pattern) null, foundIndex);\n // sanity: nothing found\n assertEquals(-1, notFoundIndex);\n assertEquals(notFoundIndex, ((DocumentSearchable) editor.getSearchable()).lastFoundIndex);\n }", "title": "" }, { "docid": "af07ed0cb5ff664360d5722ec10c6881", "score": "0.4806658", "text": "@Override\n public String addButton() {\n return null;\n }", "title": "" }, { "docid": "992cc2a891dac43b9f7d5bc9f370c528", "score": "0.48044485", "text": "@Override\r\n\tprotected void fillTemplate() throws Exception {\n\r\n\t}", "title": "" }, { "docid": "402c756a559367338b88d02f550c8a7b", "score": "0.4801877", "text": "public void setNoneLabel(String tmp) {\n this.noneLabel = tmp;\n }", "title": "" }, { "docid": "9b5a6be3aa23b95c91071ea7c4f3cff5", "score": "0.48015967", "text": "private void addEmptyElement() {\r\n\t\tmeasurementsListModel.addElement(emptyElement);\r\n\t\tmeasurementsList.setSelectedValue(emptyElement, true);\r\n\r\n\t}", "title": "" }, { "docid": "655bcb42942bc82c2abe70c79c976e6b", "score": "0.47979274", "text": "@NotNull\n @Generated\n @Selector(\"placeholderForCreatedAssetCollection\")\n public native PHObjectPlaceholder placeholderForCreatedAssetCollection();", "title": "" }, { "docid": "c8dff39f306421443f1b390c37b5e09b", "score": "0.4796336", "text": "public com.google.protobuf.ByteString\n getPlaceholderBytes() {\n java.lang.Object ref = \"\";\n if (valueCase_ == 9) {\n ref = value_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (valueCase_ == 9) {\n value_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "0a9d5d53d2f41fd4985f391271934ae3", "score": "0.47936141", "text": "public void replaceFirstObject(T object){\r\n if(this.firstEl != null){\r\n this.firstEl.setObject(object);\r\n }\r\n }", "title": "" }, { "docid": "f7173645b2a87ababc4483aca96441fe", "score": "0.47891927", "text": "private void empty_field() {\n tf_nis.setText(null);\n tf_nama_anggota.setText(null);\n tf_tempat_lahir.setText(null);\n tf_tanggal_lahir.setDate(null);\n tf_jenis_kelamin.setSelectedItem(\"-\");\n tf_kelas.setText(null);\n tf_no_telp.setText(null);\n tf_alamat.setText(null);\n pencarian.setText(null);\n }", "title": "" }, { "docid": "a63301037a482e9305005a9e0170ad6d", "score": "0.47832006", "text": "public abstract void replaceComponent (IComponent toReplace,\r\n IComponent replaceWith);", "title": "" }, { "docid": "15506514d8179481c0ea97bb1e16b422", "score": "0.47712135", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n }", "title": "" }, { "docid": "775d4ba45b4586b642f8adfb7ef27973", "score": "0.47674814", "text": "@Override\n public void modifyDragImage(Element element) {\n String value = getElement().getPropertyString(\"value\");\n if (value != null) {\n element.setPropertyString(\"value\", value);\n }\n }", "title": "" }, { "docid": "738be98fb72dd10db3e4725154f9f9ac", "score": "0.47658405", "text": "@Override\n public Editable insert(int where, CharSequence text) {\n return null;\n }", "title": "" }, { "docid": "a80a868ff145496abedf7a882d42cd52", "score": "0.47651353", "text": "@Override\n\tprotected String getTexBoxText(HtmlTextBox textBox) {\n\t\treturn null;\n\t}", "title": "" } ]
d660d369271a09b8e463a83201fb8f41
optional .ReadResponse readResponse = 13;
[ { "docid": "2e51ef2cb07532bea225c2f2150abb48", "score": "0.70193493", "text": "routing.Pipe.ReadResponseOrBuilder getReadResponseOrBuilder();", "title": "" } ]
[ { "docid": "269736001422b6577d5b944a09e8cf13", "score": "0.7084517", "text": "public void onResponsePrimaryRead();", "title": "" }, { "docid": "c9c23762e51091c2b54c01dff5c5b235", "score": "0.704344", "text": "routing.Pipe.ReadResponse getReadResponse();", "title": "" }, { "docid": "a299a17fc23eaef4a9b431afab5d10b6", "score": "0.68287545", "text": "public void setReadResponse(String read) {\n setProperty(STORE_RESPONSE, read);\n }", "title": "" }, { "docid": "7f24338f2ae564dc932bd7c814d3e579", "score": "0.67350155", "text": "public boolean hasReadResponse() {\n return payloadCase_ == 13;\n }", "title": "" }, { "docid": "41da5f3852b13f2741e07dde29d8e809", "score": "0.6693883", "text": "public boolean hasReadResponse() {\n return payloadCase_ == 13;\n }", "title": "" }, { "docid": "50e5431564c9df116d31f81df98e9bb3", "score": "0.6631014", "text": "boolean hasReadResponse();", "title": "" }, { "docid": "f51217fbce9ab78f5bcb529b55180b7b", "score": "0.6628234", "text": "public void onResponseControlRead();", "title": "" }, { "docid": "8550c09a1e9efd7d82e0942e9b82600f", "score": "0.6496287", "text": "private void readResponse() throws IOException {\n\t\tString isAvaliable = \"unavailable\"; //maximum possible size/value\n\t\tbyte[] isAvaliableBytes = new byte[isAvaliable.getBytes().length]; //create max required size byte array\n\t\tDatagramPacket isAvaliablePacket = new DatagramPacket(isAvaliableBytes, isAvaliableBytes.length);\n\t\tcontact.receive(isAvaliablePacket);\n\t\tisAvaliable = new String(isAvaliableBytes); //reviceve response\n\t\tisAvaliable = isAvaliable.trim();\n\t\tSystem.out.println(\" : readResponse : \" + isAvaliable + \"\\n\");\n\n\t\tif(isAvaliable.compareTo(\"available\") == 0)\n\t\t\tgetFile();\n\t\treturn;\n\t}", "title": "" }, { "docid": "7352f91dc021f371de0fd2772c066458", "score": "0.6343213", "text": "public routing.Pipe.ReadResponseOrBuilder getReadResponseOrBuilder() {\n if (payloadCase_ == 13) {\n return (routing.Pipe.ReadResponse) payload_;\n }\n return routing.Pipe.ReadResponse.getDefaultInstance();\n }", "title": "" }, { "docid": "f7c19741422b10a7f8580c1897d231ba", "score": "0.6327753", "text": "public routing.Pipe.ReadResponse getReadResponse() {\n if (readResponseBuilder_ == null) {\n if (payloadCase_ == 13) {\n return (routing.Pipe.ReadResponse) payload_;\n }\n return routing.Pipe.ReadResponse.getDefaultInstance();\n } else {\n if (payloadCase_ == 13) {\n return readResponseBuilder_.getMessage();\n }\n return routing.Pipe.ReadResponse.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "fe68c3eb5680673439e0140100469a35", "score": "0.6299277", "text": "public routing.Pipe.ReadResponse getReadResponse() {\n if (payloadCase_ == 13) {\n return (routing.Pipe.ReadResponse) payload_;\n }\n return routing.Pipe.ReadResponse.getDefaultInstance();\n }", "title": "" }, { "docid": "df7b2945628c0a07725f6d676585b98e", "score": "0.62781817", "text": "public void read() {\n\n }", "title": "" }, { "docid": "e22a4ec59c9adbf6190ed1ba399b137e", "score": "0.62112856", "text": "public routing.Pipe.ReadResponseOrBuilder getReadResponseOrBuilder() {\n if ((payloadCase_ == 13) && (readResponseBuilder_ != null)) {\n return readResponseBuilder_.getMessageOrBuilder();\n } else {\n if (payloadCase_ == 13) {\n return (routing.Pipe.ReadResponse) payload_;\n }\n return routing.Pipe.ReadResponse.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "f5bebb0fa9fc4cc72027222e6ac03880", "score": "0.61630625", "text": "private InternalReadLocalResponse() {\n initFields();\n }", "title": "" }, { "docid": "4546a22d958ecbb4742af00168352080", "score": "0.61416817", "text": "public void read(){\n\t}", "title": "" }, { "docid": "997459bd3357948b4ae87a6ea7262deb", "score": "0.61374545", "text": "@Override\n\tpublic void read() {\n\t\t\n\t}", "title": "" }, { "docid": "997459bd3357948b4ae87a6ea7262deb", "score": "0.61374545", "text": "@Override\n\tpublic void read() {\n\t\t\n\t}", "title": "" }, { "docid": "f3b94a8580b939bcefb828d54f9881d7", "score": "0.60494334", "text": "@Override\r\n\tpublic void read() {\n\t\t\r\n\t}", "title": "" }, { "docid": "811b010eb37eb7d5c5eda519ba92924e", "score": "0.598105", "text": "public void setReponseBytes(int num);", "title": "" }, { "docid": "8a6c6a9254347062de087f277086f18a", "score": "0.5978719", "text": "public void read ();", "title": "" }, { "docid": "b225f3af37189baaff24d544e0f0cd3d", "score": "0.5968546", "text": "public ReadResponse(byte[] payload) {\r\n super(payload);\r\n }", "title": "" }, { "docid": "c7b8118b0e683785ba5a53cfe42c72f8", "score": "0.5960287", "text": "net.iGap.proto.ProtoResponse.Response getResponse();", "title": "" }, { "docid": "c7b8118b0e683785ba5a53cfe42c72f8", "score": "0.5960287", "text": "net.iGap.proto.ProtoResponse.Response getResponse();", "title": "" }, { "docid": "03d85cad12d7b0b3e4b7b1510ca32081", "score": "0.5928131", "text": "public static void readResponse()\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ask the student for an answer &\n\t\t// record input.\n\t\tSystem.out.print(\"\\nyour answer: \");\n\t\t\tstudentResponse = sc.nextInt();\t\t\n\t\t}", "title": "" }, { "docid": "02c16067cd79b294fad8318c3234a068", "score": "0.5926469", "text": "public abstract int getResponseCode();", "title": "" }, { "docid": "51beff033880f555725c9f4d48218aca", "score": "0.5908508", "text": "public com.sun.mail.iap.ByteArray readResponse(com.sun.mail.iap.ByteArray r15) throws java.io.IOException {\n /*\n r14 = this;\n if (r15 != 0) goto L_0x000e\n com.sun.mail.iap.ByteArray r15 = new com.sun.mail.iap.ByteArray\n r11 = 128(0x80, float:1.794E-43)\n byte[] r11 = new byte[r11]\n r12 = 0\n r13 = 128(0x80, float:1.794E-43)\n r15.<init>(r11, r12, r13)\n L_0x000e:\n byte[] r3 = r15.getBytes()\n r8 = 0\n L_0x0013:\n r2 = 0\n r6 = 0\n r9 = r8\n L_0x0016:\n if (r6 != 0) goto L_0x0021\n java.io.BufferedInputStream r11 = r14.bin\n int r2 = r11.read()\n r11 = -1\n if (r2 != r11) goto L_0x002a\n L_0x0021:\n r11 = -1\n if (r2 != r11) goto L_0x0051\n java.io.IOException r11 = new java.io.IOException\n r11.<init>()\n throw r11\n L_0x002a:\n switch(r2) {\n case 10: goto L_0x0045;\n default: goto L_0x002d;\n }\n L_0x002d:\n int r11 = r3.length\n if (r9 < r11) goto L_0x003e\n int r10 = r3.length\n r11 = 262144(0x40000, float:3.67342E-40)\n if (r10 <= r11) goto L_0x0037\n r10 = 262144(0x40000, float:3.67342E-40)\n L_0x0037:\n r15.grow(r10)\n byte[] r3 = r15.getBytes()\n L_0x003e:\n int r8 = r9 + 1\n byte r11 = (byte) r2\n r3[r9] = r11\n r9 = r8\n goto L_0x0016\n L_0x0045:\n if (r9 <= 0) goto L_0x002d\n int r11 = r9 + -1\n byte r11 = r3[r11]\n r12 = 13\n if (r11 != r12) goto L_0x002d\n r6 = 1\n goto L_0x002d\n L_0x0051:\n r11 = 5\n if (r9 < r11) goto L_0x005c\n int r11 = r9 + -3\n byte r11 = r3[r11]\n r12 = 125(0x7d, float:1.75E-43)\n if (r11 == r12) goto L_0x0060\n L_0x005c:\n r15.setCount(r9)\n return r15\n L_0x0060:\n int r7 = r9 + -4\n L_0x0062:\n if (r7 >= 0) goto L_0x0094\n L_0x0064:\n if (r7 < 0) goto L_0x005c\n r4 = 0\n int r11 = r7 + 1\n int r12 = r9 + -3\n int r4 = com.sun.mail.util.ASCIIUtility.parseInt(r3, r11, r12) // Catch:{ NumberFormatException -> 0x009d }\n if (r4 <= 0) goto L_0x00a5\n int r11 = r3.length\n int r1 = r11 - r9\n int r11 = r4 + 16\n if (r11 <= r1) goto L_0x00a3\n r11 = 256(0x100, float:3.59E-43)\n int r12 = r4 + 16\n int r12 = r12 - r1\n if (r11 <= r12) goto L_0x009f\n r11 = 256(0x100, float:3.59E-43)\n L_0x0081:\n r15.grow(r11)\n byte[] r3 = r15.getBytes()\n r8 = r9\n L_0x0089:\n if (r4 <= 0) goto L_0x0013\n java.io.BufferedInputStream r11 = r14.bin\n int r0 = r11.read(r3, r8, r4)\n int r4 = r4 - r0\n int r8 = r8 + r0\n goto L_0x0089\n L_0x0094:\n byte r11 = r3[r7]\n r12 = 123(0x7b, float:1.72E-43)\n if (r11 == r12) goto L_0x0064\n int r7 = r7 + -1\n goto L_0x0062\n L_0x009d:\n r5 = move-exception\n goto L_0x005c\n L_0x009f:\n int r11 = r4 + 16\n int r11 = r11 - r1\n goto L_0x0081\n L_0x00a3:\n r8 = r9\n goto L_0x0089\n L_0x00a5:\n r8 = r9\n goto L_0x0013\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.sun.mail.iap.ResponseInputStream.readResponse(com.sun.mail.iap.ByteArray):com.sun.mail.iap.ByteArray\");\n }", "title": "" }, { "docid": "8a726274ea8ce14f7b0577d5519bcfb7", "score": "0.58968025", "text": "private readRequest() {\n initFields();\n }", "title": "" }, { "docid": "bd0439bac6cc15e4b333d06a6b15faee", "score": "0.584517", "text": "public Builder setReadResponse(routing.Pipe.ReadResponse value) {\n if (readResponseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n payload_ = value;\n onChanged();\n } else {\n readResponseBuilder_.setMessage(value);\n }\n payloadCase_ = 13;\n return this;\n }", "title": "" }, { "docid": "068f1607c462cdfface1eaa70cabba1b", "score": "0.58446133", "text": "protected abstract String getResponse(int command);", "title": "" }, { "docid": "484b54c447da879d052b7eae8c2fc179", "score": "0.58400005", "text": "private synchronized int _read() throws IOException {\n\t\tint\tbytesAvailable= _readPreflight();\n\n\t\tif(bytesAvailable < 0) {\n\t\t\treturn -1;\n\t\t}\n\t\tbyte value= _buffer[_start];\n\t\t++_start;\n\t\tif(_start >= _buffer.length) {\n\t\t\t_start= 0;\n\t\t}\n\t\t--_size;\n\t\treturn value;\n\t}", "title": "" }, { "docid": "119470e73473adc2de47209f5a118c89", "score": "0.5832894", "text": "void doRead();", "title": "" }, { "docid": "79c836523d17d6c6ba258345074d4a34", "score": "0.5831672", "text": "interface ReadRequest extends IORequest\n{\n\t/**\n\t * Called by the target I/O thread to perform the actual reading operation.\n\t * \n\t * @throws IOException My be thrown by the method to indicate an I/O problem.\n\t */\n\tpublic void read() throws IOException;\n}", "title": "" }, { "docid": "e757fcf12b9a449bc8e5fb2881d870d8", "score": "0.5812889", "text": "public ReadResponse(Command command, byte[] contents) {\r\n super(command, Response.RESPONSEOK, contents);\r\n }", "title": "" }, { "docid": "411c8f231845f04cea3a88b3521d569d", "score": "0.5797191", "text": "private com.google.protobuf.SingleFieldBuilder<\n routing.Pipe.ReadResponse, routing.Pipe.ReadResponse.Builder, routing.Pipe.ReadResponseOrBuilder> \n getReadResponseFieldBuilder() {\n if (readResponseBuilder_ == null) {\n if (!(payloadCase_ == 13)) {\n payload_ = routing.Pipe.ReadResponse.getDefaultInstance();\n }\n readResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n routing.Pipe.ReadResponse, routing.Pipe.ReadResponse.Builder, routing.Pipe.ReadResponseOrBuilder>(\n (routing.Pipe.ReadResponse) payload_,\n getParentForChildren(),\n isClean());\n payload_ = null;\n }\n payloadCase_ = 13;\n return readResponseBuilder_;\n }", "title": "" }, { "docid": "c0b86bef7b1bf8e811e3c3e063595474", "score": "0.5782804", "text": "private GetResponse() {\n initFields();\n }", "title": "" }, { "docid": "6eaaac311be1fe4cc941a792043a4ca0", "score": "0.5779326", "text": "@Override\n public void onResponse(Call call, Response response) throws IOException {\n\n }", "title": "" }, { "docid": "f90911ae7c58ecb4a48f5d077b4a42d4", "score": "0.57679015", "text": "void read();", "title": "" }, { "docid": "84789287b8f5fa1adbac5511f87ed109", "score": "0.57633525", "text": "@Override\n public int read() throws IOException {\n return 0;\n }", "title": "" }, { "docid": "dfc5d27bc0f476ffe977a673ca8be223", "score": "0.57143855", "text": "private ReadReply(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "487c06e002871a3465dc0fea5087eb63", "score": "0.5705279", "text": "public int fetchResponse() {\n bResponse = false;\n return code;\n }", "title": "" }, { "docid": "add4108e9f9be119f6cabc3a85b5a251", "score": "0.5701182", "text": "public Response get() throws IOException;", "title": "" }, { "docid": "8a54c62d577b97de9f14839fe4c6a9c0", "score": "0.5695845", "text": "protected abstract int internalReceiveReply(Reply reply) throws java.io.IOException;", "title": "" }, { "docid": "57bceb78c63ca9a48c5fb76f2db4c5cc", "score": "0.56928706", "text": "public routing.Pipe.ReadResponse.Builder getReadResponseBuilder() {\n return getReadResponseFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "0925d1e27aba0effeb76095069188683", "score": "0.5690623", "text": "void mo24263a(Response response);", "title": "" }, { "docid": "bcc5c5664ec3664e5d454b21fe5aba3b", "score": "0.56846255", "text": "protected abstract void receive(R response);", "title": "" }, { "docid": "611f95bb3ec10ec94bc5e6fcb94918e5", "score": "0.5674501", "text": "public abstract Response getResponse(AbstractSurveyIO io) throws Exception;", "title": "" }, { "docid": "1a66a63865048ef2e6957834d9cd3514", "score": "0.56723523", "text": "@Override\n public void onPositiveResponse() {\n }", "title": "" }, { "docid": "623f4ba4cc941f5cf26635ca513a4a47", "score": "0.5623846", "text": "@Override\n\tpublic int read() throws IOException {\n\t\treturn buffer.read();\n\t}", "title": "" }, { "docid": "8c89a2468086c1f91616e809fe4df7a5", "score": "0.56227446", "text": "rfid.Rfid.BaseReply getBaseInfo();", "title": "" }, { "docid": "8c89a2468086c1f91616e809fe4df7a5", "score": "0.56227446", "text": "rfid.Rfid.BaseReply getBaseInfo();", "title": "" }, { "docid": "8c89a2468086c1f91616e809fe4df7a5", "score": "0.56227446", "text": "rfid.Rfid.BaseReply getBaseInfo();", "title": "" }, { "docid": "8c89a2468086c1f91616e809fe4df7a5", "score": "0.56227446", "text": "rfid.Rfid.BaseReply getBaseInfo();", "title": "" }, { "docid": "8c89a2468086c1f91616e809fe4df7a5", "score": "0.56227446", "text": "rfid.Rfid.BaseReply getBaseInfo();", "title": "" }, { "docid": "480dcf0bf17ba2cb0456600a94e6880e", "score": "0.5621906", "text": "@Override\n\t\t\tpublic int read() throws IOException {\n\t\t\t\treturn bais.read();\n\t\t\t}", "title": "" }, { "docid": "1300d375536b5bb6ff3dcc2595d2d7b8", "score": "0.5613361", "text": "public interface Response {\n\n public String getVersion();\n public String getCode();\n public PrintWriter getWriter();\n\n public void setCode(String code);\n}", "title": "" }, { "docid": "6172ee073e5a33c34eac638943b3c4df", "score": "0.5610783", "text": "long getReadRequestCount();", "title": "" }, { "docid": "d0948964ca59ad37a42a560155a1402c", "score": "0.56080776", "text": "com.google.protobuf.ByteString getResponse(int index);", "title": "" }, { "docid": "0bbe6601160682a0794cc14308968a3d", "score": "0.56060797", "text": "net.iGap.proto.ProtoResponse.ResponseOrBuilder getResponseOrBuilder();", "title": "" }, { "docid": "fc3a1b297809e7f7ff4a15165f0d764f", "score": "0.55989057", "text": "public String getReadResponse() {\n return getPropertyAsString(STORE_RESPONSE);\n }", "title": "" }, { "docid": "1c44610d44693f4efe5fc218bf7b51e5", "score": "0.5592371", "text": "int getResponseCode();", "title": "" }, { "docid": "1c44610d44693f4efe5fc218bf7b51e5", "score": "0.5592371", "text": "int getResponseCode();", "title": "" }, { "docid": "1c44610d44693f4efe5fc218bf7b51e5", "score": "0.5592371", "text": "int getResponseCode();", "title": "" }, { "docid": "1c44610d44693f4efe5fc218bf7b51e5", "score": "0.5592371", "text": "int getResponseCode();", "title": "" }, { "docid": "749e59bc6edac76cb5d25bc92f96557c", "score": "0.5588445", "text": "void receiveResponse(V response);", "title": "" }, { "docid": "0318b6c74f9cb02cd8c85bd07ad970c8", "score": "0.55839103", "text": "protected void processResponse() {\n\t}", "title": "" }, { "docid": "def6dba91fc34330f70a28759d76ef4f", "score": "0.55741936", "text": "private ReadResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "title": "" }, { "docid": "bb60c2a1aa7ffc30a28e37f51e4939e8", "score": "0.55660254", "text": "protected NetResponse() { }", "title": "" }, { "docid": "d2366a882ce29110297bff14562fca5f", "score": "0.5565899", "text": "long getReadNum();", "title": "" }, { "docid": "2371c4d7fc58a200248870d5e576f36a", "score": "0.55594325", "text": "@Override\n public void onResponse(int i) {\n }", "title": "" }, { "docid": "e4eb8e374e847b2d654e9ae28131ecf1", "score": "0.5556067", "text": "@Override\n protected String getResponseMessage() throws IOException {\n return null;\n }", "title": "" }, { "docid": "5fd2a63d19be7f4a25d3f81fbe7f0267", "score": "0.55408746", "text": "private void printlnResponseResult() throws IOException {\n }", "title": "" }, { "docid": "38f0ef68f43d67021ff02d07e8365b67", "score": "0.55250394", "text": "public void setResponse(String response){\n this.response=response;\n }", "title": "" }, { "docid": "8ae62fbad9a7c4f0e3f3832684ca3e72", "score": "0.5519809", "text": "top.itcat.pb_gen.common.Base.BaseResponse getBase();", "title": "" }, { "docid": "8ae62fbad9a7c4f0e3f3832684ca3e72", "score": "0.5519809", "text": "top.itcat.pb_gen.common.Base.BaseResponse getBase();", "title": "" }, { "docid": "8ae62fbad9a7c4f0e3f3832684ca3e72", "score": "0.5519809", "text": "top.itcat.pb_gen.common.Base.BaseResponse getBase();", "title": "" }, { "docid": "8ae62fbad9a7c4f0e3f3832684ca3e72", "score": "0.5519809", "text": "top.itcat.pb_gen.common.Base.BaseResponse getBase();", "title": "" }, { "docid": "da31c92fde82595dcd85823b91f30326", "score": "0.55156904", "text": "@Override\n public void onResponse (String Response) {\n }", "title": "" }, { "docid": "d1425b566de40475ee79f01c8a33fed0", "score": "0.55120015", "text": "@Override\n\tpublic byte[] respond() throws IOException {\n\t\treturn res.constructResponseInBytes();\n\t}", "title": "" }, { "docid": "71db6ad9a330ce48dfc74dd2d2f8e522", "score": "0.54996604", "text": "@Override\n\tpublic void prepare(ResponseBuilder rb) throws IOException {\n\n\t}", "title": "" }, { "docid": "572efaf3dd9524ea0c99b1d04b874c7d", "score": "0.54992527", "text": "public Builder setReadResponse(\n routing.Pipe.ReadResponse.Builder builderForValue) {\n if (readResponseBuilder_ == null) {\n payload_ = builderForValue.build();\n onChanged();\n } else {\n readResponseBuilder_.setMessage(builderForValue.build());\n }\n payloadCase_ = 13;\n return this;\n }", "title": "" }, { "docid": "9c4825a7521d76f7e04c087dd0d7c309", "score": "0.54942125", "text": "void readReady();", "title": "" }, { "docid": "30cd23cf7d7782e85b4d25e9b0fb0c48", "score": "0.5492581", "text": "private void request(int r12, com.tencent.mid.core.PacketInterface r13, com.tencent.mid.api.MidCallback r14) {\n /*\n r11 = this;\n java.lang.String r0 = \"mid\"\n java.lang.String r1 = \"ret_code\"\n com.tencent.mid.util.Logger r2 = logger\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n java.lang.String r4 = \" enter http request, type:\"\n r3.append(r4)\n r3.append(r12)\n java.lang.String r3 = r3.toString()\n r2.mo35700i(r3)\n r2 = 0\n boolean r3 = r11.checkFailedCountLimited() // Catch:{ all -> 0x01f6 }\n if (r3 == 0) goto L_0x0030\n java.lang.String r12 = \"Http request failed too much, please check the network.\"\n com.tencent.mid.util.Logger r13 = logger // Catch:{ all -> 0x01f6 }\n r13.mo35696e(r12) // Catch:{ all -> 0x01f6 }\n if (r14 == 0) goto L_0x002f\n r13 = -10050(0xffffffffffffd8be, float:NaN)\n r14.onFail(r13, r12) // Catch:{ all -> 0x01f6 }\n L_0x002f:\n return\n L_0x0030:\n android.content.Context r3 = applicationContext // Catch:{ all -> 0x01f6 }\n com.tencent.mid.util.ConstantUtil r3 = com.tencent.mid.util.ConstantUtil.getInstance(r3) // Catch:{ all -> 0x01f6 }\n com.tencent.mid.core.HttpConnectClient r4 = new com.tencent.mid.core.HttpConnectClient // Catch:{ all -> 0x01f6 }\n android.content.Context r5 = applicationContext // Catch:{ all -> 0x01f6 }\n java.lang.String r5 = com.tencent.mid.util.Util.getHttpAddr(r5) // Catch:{ all -> 0x01f6 }\n r4.m52860init(r5, r2) // Catch:{ all -> 0x01f6 }\n org.json.JSONObject r2 = new org.json.JSONObject // Catch:{ all -> 0x01f4 }\n r2.<init>() // Catch:{ all -> 0x01f4 }\n r13.encode(r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r13 = \"rty\"\n r2.put(r13, r12) // Catch:{ all -> 0x01f4 }\n int r13 = r11.seq // Catch:{ all -> 0x01f4 }\n java.lang.String r5 = \"seq\"\n if (r13 <= 0) goto L_0x0059\n int r13 = r11.seq // Catch:{ all -> 0x01f4 }\n r2.put(r5, r13) // Catch:{ all -> 0x01f4 }\n L_0x0059:\n org.json.JSONObject r13 = new org.json.JSONObject // Catch:{ all -> 0x01f4 }\n r13.<init>() // Catch:{ all -> 0x01f4 }\n java.lang.String r6 = \"android\"\n r13.put(r6, r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r2 = \"mid_list\"\n android.content.Context r6 = applicationContext // Catch:{ all -> 0x01f4 }\n r7 = 1\n org.json.JSONArray r6 = com.tencent.mid.util.Util.queryMids(r6, r7) // Catch:{ all -> 0x01f4 }\n r13.put(r2, r6) // Catch:{ all -> 0x01f4 }\n java.lang.String r2 = \"mid_list_new\"\n android.content.Context r6 = applicationContext // Catch:{ all -> 0x01f4 }\n r8 = 2\n org.json.JSONArray r6 = com.tencent.mid.util.Util.queryMids(r6, r8) // Catch:{ all -> 0x01f4 }\n r13.put(r2, r6) // Catch:{ all -> 0x01f4 }\n java.lang.String r13 = r13.toString() // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.Logger r2 = logger // Catch:{ all -> 0x01f4 }\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x01f4 }\n r6.<init>() // Catch:{ all -> 0x01f4 }\n java.lang.String r8 = \"jsonBodyStr:\"\n r6.append(r8) // Catch:{ all -> 0x01f4 }\n r6.append(r13) // Catch:{ all -> 0x01f4 }\n java.lang.String r6 = r6.toString() // Catch:{ all -> 0x01f4 }\n r2.mo35700i(r6) // Catch:{ all -> 0x01f4 }\n java.io.ByteArrayOutputStream r2 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x01f4 }\n int r6 = r13.length() // Catch:{ all -> 0x01f4 }\n r2.<init>(r6) // Catch:{ all -> 0x01f4 }\n java.util.zip.GZIPOutputStream r6 = new java.util.zip.GZIPOutputStream // Catch:{ all -> 0x01f4 }\n r6.<init>(r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r8 = \"UTF-8\"\n byte[] r13 = r13.getBytes(r8) // Catch:{ all -> 0x01f4 }\n r6.write(r13) // Catch:{ all -> 0x01f4 }\n r6.close() // Catch:{ all -> 0x01f4 }\n r2.flush() // Catch:{ all -> 0x01f4 }\n byte[] r13 = r2.toByteArray() // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.AESHelper r6 = r11.getAesHelper(r12) // Catch:{ all -> 0x01f4 }\n r2.reset() // Catch:{ all -> 0x01f4 }\n java.io.DataOutputStream r8 = new java.io.DataOutputStream // Catch:{ all -> 0x01f4 }\n r8.<init>(r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r9 = r3.getVerifyMidUrl() // Catch:{ all -> 0x01f4 }\n if (r12 == r7) goto L_0x00cb\n r10 = 3\n if (r12 != r10) goto L_0x010c\n L_0x00cb:\n if (r12 != r7) goto L_0x00d2\n java.lang.String r7 = r3.getRequestMidUrl() // Catch:{ all -> 0x01f4 }\n goto L_0x00d6\n L_0x00d2:\n java.lang.String r7 = r3.getRequestMidNewUrl() // Catch:{ all -> 0x01f4 }\n L_0x00d6:\n r9 = r7\n java.io.ByteArrayOutputStream r7 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x01f4 }\n r10 = 64\n r7.<init>(r10) // Catch:{ all -> 0x01f4 }\n byte[] r10 = r6.getKeyBytes() // Catch:{ all -> 0x01f4 }\n r7.write(r10) // Catch:{ all -> 0x01f4 }\n byte[] r10 = r6.getIvBytes() // Catch:{ all -> 0x01f4 }\n r7.write(r10) // Catch:{ all -> 0x01f4 }\n r7.close() // Catch:{ all -> 0x01f4 }\n byte[] r7 = r7.toByteArray() // Catch:{ all -> 0x01f4 }\n java.lang.String r10 = r3.getRSAPK() // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.RSAHelper.createPublicKey(r10) // Catch:{ all -> 0x01f4 }\n byte[] r7 = com.tencent.mid.util.RSAHelper.encrypt(r7) // Catch:{ all -> 0x01f4 }\n int r3 = r3.getRSAKeyVersion() // Catch:{ all -> 0x01f4 }\n r8.writeShort(r3) // Catch:{ all -> 0x01f4 }\n int r3 = r7.length // Catch:{ all -> 0x01f4 }\n r8.writeShort(r3) // Catch:{ all -> 0x01f4 }\n r8.write(r7) // Catch:{ all -> 0x01f4 }\n L_0x010c:\n byte[] r13 = r6.encrypt(r13) // Catch:{ all -> 0x01f4 }\n r8.write(r13) // Catch:{ all -> 0x01f4 }\n r8.close() // Catch:{ all -> 0x01f4 }\n r2.close() // Catch:{ all -> 0x01f4 }\n byte[] r13 = r2.toByteArray() // Catch:{ all -> 0x01f4 }\n java.lang.String r2 = \"gzip\"\n com.tencent.mid.core.HttpResponseResult r12 = r4.httpPost(r9, r13, r2, r12) // Catch:{ all -> 0x01f4 }\n int r13 = r12.getCode() // Catch:{ all -> 0x01f4 }\n r2 = 200(0xc8, float:2.8E-43)\n if (r13 == r2) goto L_0x0155\n java.lang.StringBuilder r13 = new java.lang.StringBuilder // Catch:{ all -> 0x01f4 }\n r13.<init>() // Catch:{ all -> 0x01f4 }\n java.lang.String r0 = \"response code invalid:\"\n r13.append(r0) // Catch:{ all -> 0x01f4 }\n int r0 = r12.getCode() // Catch:{ all -> 0x01f4 }\n r13.append(r0) // Catch:{ all -> 0x01f4 }\n java.lang.String r13 = r13.toString() // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.Logger r0 = logger // Catch:{ all -> 0x01f4 }\n r0.mo35708w(r13) // Catch:{ all -> 0x01f4 }\n int r12 = r12.getCode() // Catch:{ all -> 0x01f4 }\n r14.onFail(r12, r13) // Catch:{ all -> 0x01f4 }\n r4.shutdown() // Catch:{ all -> 0x0150 }\n goto L_0x0154\n L_0x0150:\n r12 = move-exception\n r12.printStackTrace()\n L_0x0154:\n return\n L_0x0155:\n org.json.JSONObject r12 = r12.getData() // Catch:{ all -> 0x01f4 }\n boolean r13 = r12.has(r1) // Catch:{ all -> 0x01f4 }\n java.lang.String r2 = \"ret_msg\"\n if (r13 != 0) goto L_0x0167\n boolean r13 = r12.has(r2) // Catch:{ all -> 0x01f4 }\n if (r13 == 0) goto L_0x019b\n L_0x0167:\n int r13 = r12.getInt(r1) // Catch:{ all -> 0x01f4 }\n java.lang.String r1 = r12.getString(r2) // Catch:{ all -> 0x01f4 }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x01f4 }\n r2.<init>() // Catch:{ all -> 0x01f4 }\n java.lang.String r3 = \"response code:\"\n r2.append(r3) // Catch:{ all -> 0x01f4 }\n r2.append(r13) // Catch:{ all -> 0x01f4 }\n java.lang.String r3 = \",msg:\"\n r2.append(r3) // Catch:{ all -> 0x01f4 }\n r2.append(r1) // Catch:{ all -> 0x01f4 }\n java.lang.String r1 = r2.toString() // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.Logger r2 = logger // Catch:{ all -> 0x01f4 }\n r2.mo35708w(r1) // Catch:{ all -> 0x01f4 }\n if (r13 == 0) goto L_0x019b\n r14.onFail(r13, r1) // Catch:{ all -> 0x01f4 }\n r4.shutdown() // Catch:{ all -> 0x0196 }\n goto L_0x019a\n L_0x0196:\n r12 = move-exception\n r12.printStackTrace()\n L_0x019a:\n return\n L_0x019b:\n boolean r13 = r12.isNull(r5) // Catch:{ all -> 0x01f4 }\n if (r13 != 0) goto L_0x01a7\n int r13 = r12.getInt(r5) // Catch:{ all -> 0x01f4 }\n r11.seq = r13 // Catch:{ all -> 0x01f4 }\n L_0x01a7:\n boolean r13 = r12.isNull(r0) // Catch:{ all -> 0x01f4 }\n r1 = 0\n r2 = 0\n java.lang.String r5 = \"guid\"\n if (r13 != 0) goto L_0x01c9\n java.lang.String r13 = r12.getString(r0) // Catch:{ all -> 0x01f4 }\n boolean r0 = r12.has(r5) // Catch:{ all -> 0x01f4 }\n if (r0 == 0) goto L_0x01c9\n long r6 = r12.optLong(r5, r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r0 = \"reset\"\n int r0 = r12.optInt(r0, r1) // Catch:{ all -> 0x01f4 }\n updateMidEntity(r13, r6, r0, r14) // Catch:{ all -> 0x01f4 }\n L_0x01c9:\n java.lang.String r13 = \"locW\"\n r0 = -1\n int r13 = r12.optInt(r13, r0) // Catch:{ all -> 0x01f4 }\n if (r13 <= r0) goto L_0x01dd\n android.content.Context r0 = applicationContext // Catch:{ all -> 0x01f4 }\n com.tencent.mid.util.SettingsHelper r0 = com.tencent.mid.util.SettingsHelper.getInstance(r0) // Catch:{ all -> 0x01f4 }\n java.lang.String r6 = \"ten.mid.allowCheckAndRewriteLocal.bool\"\n r0.putInt(r6, r13) // Catch:{ all -> 0x01f4 }\n L_0x01dd:\n java.lang.String r13 = \"mid_new\"\n java.lang.String r13 = r12.optString(r13) // Catch:{ all -> 0x01f4 }\n long r2 = r12.optLong(r5, r2) // Catch:{ all -> 0x01f4 }\n java.lang.String r0 = \"reset_new\"\n int r12 = r12.optInt(r0, r1) // Catch:{ all -> 0x01f4 }\n updateNewVersionMidEntity(r13, r2, r12) // Catch:{ all -> 0x01f4 }\n r4.shutdown() // Catch:{ all -> 0x0219 }\n goto L_0x021d\n L_0x01f4:\n r12 = move-exception\n goto L_0x01f8\n L_0x01f6:\n r12 = move-exception\n r4 = r2\n L_0x01f8:\n r11.incFailedCount() // Catch:{ all -> 0x021e }\n r12.printStackTrace() // Catch:{ all -> 0x021e }\n r13 = -10030(0xffffffffffffd8d2, float:NaN)\n java.lang.String r0 = r12.toString() // Catch:{ all -> 0x021e }\n r14.onFail(r13, r0) // Catch:{ all -> 0x021e }\n com.tencent.mid.util.Logger r13 = logger // Catch:{ all -> 0x021e }\n java.lang.String r14 = r12.toString() // Catch:{ all -> 0x021e }\n r13.mo35708w(r14) // Catch:{ all -> 0x021e }\n r12.printStackTrace() // Catch:{ all -> 0x021e }\n if (r4 == 0) goto L_0x021d\n r4.shutdown() // Catch:{ all -> 0x0219 }\n goto L_0x021d\n L_0x0219:\n r12 = move-exception\n r12.printStackTrace()\n L_0x021d:\n return\n L_0x021e:\n r12 = move-exception\n if (r4 == 0) goto L_0x0229\n r4.shutdown() // Catch:{ all -> 0x0225 }\n goto L_0x0229\n L_0x0225:\n r13 = move-exception\n r13.printStackTrace()\n L_0x0229:\n throw r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mid.core.HttpManager.request(int, com.tencent.mid.core.PacketInterface, com.tencent.mid.api.MidCallback):void\");\n }", "title": "" }, { "docid": "57579400462a313a9b459ab745787656", "score": "0.54906017", "text": "String getResponse();", "title": "" }, { "docid": "57579400462a313a9b459ab745787656", "score": "0.54906017", "text": "String getResponse();", "title": "" }, { "docid": "a6c81aa512dabdfd95c89531127ec4ca", "score": "0.5487731", "text": "@Override\n public void read(ProtocolByteBuf byteBuf) {\n }", "title": "" }, { "docid": "15e063f76aeccf9a38a1a761c95b344d", "score": "0.54839593", "text": "public Builder clearReadResponse() {\n if (readResponseBuilder_ == null) {\n if (payloadCase_ == 13) {\n payloadCase_ = 0;\n payload_ = null;\n onChanged();\n }\n } else {\n if (payloadCase_ == 13) {\n payloadCase_ = 0;\n payload_ = null;\n }\n readResponseBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "4d342351b7136d0966a1d4e94a6ae8f0", "score": "0.5480226", "text": "public String getResponse();", "title": "" }, { "docid": "4d342351b7136d0966a1d4e94a6ae8f0", "score": "0.5480226", "text": "public String getResponse();", "title": "" }, { "docid": "5288448bc4785a97836fa0bfe73bc775", "score": "0.5478929", "text": "byte[] read();", "title": "" }, { "docid": "ba9c6e1a4ddf262d7cdea67c130f7557", "score": "0.5476996", "text": "public void receivedResponse(Response response);", "title": "" }, { "docid": "d2aa50953362522001d8a992e9c2c300", "score": "0.5475503", "text": "private ReadWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "2fa8005d2f0968f5573ce9da9b25b3d9", "score": "0.5470473", "text": "public static GetProofJndiResourceUsedAvailableResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n GetProofJndiResourceUsedAvailableResponse object =\r\n new GetProofJndiResourceUsedAvailableResponse();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix =\"\";\r\n java.lang.String namespaceuri =\"\";\r\n try {\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n \r\n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n if (fullTypeName!=null){\r\n java.lang.String nsPrefix = null;\r\n if (fullTypeName.indexOf(\":\") > -1){\r\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\r\n }\r\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\r\n \r\n if (!\"getProofJndiResourceUsedAvailableResponse\".equals(type)){\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\r\n return (GetProofJndiResourceUsedAvailableResponse)ExtensionMapper.getTypeObject(\r\n nsUri,type,reader);\r\n }\r\n \r\n\r\n }\r\n \r\n\r\n }\r\n\r\n \r\n\r\n \r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n \r\n\r\n \r\n \r\n reader.next();\r\n \r\n \r\n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\r\n \r\n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://tile.axis2.webservice.web.thm.use\",\"return\").equals(reader.getName()) || new javax.xml.namespace.QName(\"\",\"return\").equals(reader.getName()) ){\r\n \r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\r\n if (!\"true\".equals(nillableValue) && !\"1\".equals(nillableValue)){\r\n \r\n\r\n java.lang.String content = reader.getElementText();\r\n \r\n object.set_return(\r\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));\r\n \r\n } else {\r\n \r\n \r\n reader.getElementText(); // throw away text nodes if any.\r\n }\r\n \r\n reader.next();\r\n \r\n } // End of if for expected property start element\r\n \r\n else {\r\n \r\n }\r\n \r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n \r\n if (reader.isStartElement())\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n \r\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\r\n \r\n\r\n\r\n\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }", "title": "" }, { "docid": "73b3de2184434a32a5d10b0276643e76", "score": "0.5458463", "text": "public MaestroResponse() {}", "title": "" }, { "docid": "e0d5dd2244938f547d6b706a5418de83", "score": "0.54583484", "text": "@Override\n public void onResponse(String response) {\n }", "title": "" }, { "docid": "e0d5dd2244938f547d6b706a5418de83", "score": "0.54583484", "text": "@Override\n public void onResponse(String response) {\n }", "title": "" }, { "docid": "e0d5dd2244938f547d6b706a5418de83", "score": "0.54583484", "text": "@Override\n public void onResponse(String response) {\n }", "title": "" }, { "docid": "832e7c47ce530cce10ab2188df71d762", "score": "0.54565346", "text": "public Method getReadMethod() {\r\n return _readMethod;\r\n }", "title": "" }, { "docid": "f9f6d7381c2e1d8ec253dc7e56021f09", "score": "0.54531956", "text": "public int read()\n {\n return (meta == null) ? 0 : meta.read;\n }", "title": "" }, { "docid": "273eedca38350c735d7d002448d68eb8", "score": "0.5448959", "text": "public void setReadTimeout(int readTimeout)\n/* */ {\n/* 71 */ this.readTimeout = readTimeout;\n/* */ }", "title": "" }, { "docid": "dfd6b85de96257ab109a88ba8c60de7e", "score": "0.5446339", "text": "public ModbusRequest readRequest() throws ModbusIOException {\n throw new UnsupportedOperationException();\n }", "title": "" } ]
ddd7eb5982517120293acf6e57dcf7a4
Tests if log4j is available. If not, logs to backup OutputStream (if backup != null).
[ { "docid": "f27c61d501a2f8f8ba59077c117f1f3d", "score": "0.46383184", "text": "private boolean t(int level, Object o, Throwable t) {\n if (log4j) {\n return true;\n } else {\n // LogWrapper doesn't log debug statements if Log4j is not available\n // and DEBUG is false.\n if (backup != null && (DEBUG || level > 0)) {\n String s = \"\"; // log4j allows null\n if (o != null) {\n try {\n s = (String) o;\n }\n catch (ClassCastException cce) {\n s = o.toString();\n }\n }\n int len = s.length() + TIMESTAMP_LENGTH + 9;\n String timestamp = DF.format(new Date());\n StringBuffer buf = new StringBuffer(len);\n buf.append(timestamp);\n if (LEVELS[level].length() == 1) {\n buf.append(LEVELS[level]);\n } else {\n buf.append(' ');\n buf.append(LEVELS[level]);\n buf.append(' ');\n }\n buf.append(s);\n buf.append(LINE_SEPARATOR);\n s = buf.toString();\n byte[] logBytes = s.getBytes();\n try {\n if (t == null) {\n backup.write(logBytes);\n } else {\n synchronized (backup) {\n backup.write(logBytes);\n if (t != null) {\n if (wrappingPrintStream == null) {\n wrappingPrintStream = new PrintStream(backup, false);\n }\n t.printStackTrace(wrappingPrintStream);\n wrappingPrintStream.flush();\n }\n }\n }\n backup.flush(); // J2RE 1.5.0 IBM J9 2.3 Linux x86-32 needs this.\n }\n catch (IOException ioe) {\n throw new RuntimeException(ioe.toString());\n }\n }\n return false;\n }\n }", "title": "" } ]
[ { "docid": "185c0ba5c7f3877981b83f43c21d63f1", "score": "0.62719846", "text": "private static void setupLog4j() {\n\t\tLogger logger = Logger.getRootLogger();\n\t\tif (!logger.getAllAppenders().hasMoreElements()) {\n\t\t\tAppender console = new ConsoleAppender(new SimpleLayout());\n\t\t\tlogger.addAppender(console);\n\t\t\tlogger.setLevel(Level.INFO);\n\t\t}\n\t}", "title": "" }, { "docid": "745285db317cec5fd5faddc1b61d7ad9", "score": "0.56133527", "text": "public static boolean isLog4jLogger(Class<?> clazz) {\n if (clazz == null) {\n return false;\n }\n return isLog4jLogger(clazz.getName());\n }", "title": "" }, { "docid": "dec9e34e07f53ae4e6c2cc1e5f22dc9a", "score": "0.5354335", "text": "public boolean isLoggingEnabled();", "title": "" }, { "docid": "04919df850e9c6f805fbee386755f943", "score": "0.53251684", "text": "@Test\n public void shouldBePossibleToDestroyMockAppender() throws NoSuchFieldException, IllegalAccessException {\n Appender appender = LoggingMockUtil.createMockedLogAppender(ClassWithLogger.class);\n\n LoggingMockUtil.destroyMockedAppender(appender, ClassWithLogger.class);\n\n Appender destroyedAppender = LoggingMockUtil.getLogger(ClassWithLogger.class).getAppender(\"mockAppender\");\n assertThat(destroyedAppender).isNull();\n }", "title": "" }, { "docid": "3b7bf323abfae729af53261f865ce8b4", "score": "0.52539283", "text": "private static boolean slf4JOnClasspath() {\n try {\n Class.forName(\"org.slf4j.Logger\");\n return true;\n } catch (ClassNotFoundException e) {\n return false;\n }\n }", "title": "" }, { "docid": "f653cb4867ff800da015cdd83411f80d", "score": "0.52192503", "text": "private void initLoggingConfiguration() throws Exception {\n // If it is a worker node, just read the configuration from the registry\n if (CarbonUtils.isWorkerNode()) {\n LoggingUtil.loadCustomConfiguration();\n return;\n }\n // checking whether log4j.properies file is changed.\n File confFolder = new File(CarbonUtils.getCarbonConfigDirPath());\n String loggingPropFilePath = confFolder.getAbsolutePath() + File.separator + \"log4j.properties\";\n // URL url = Thread.currentThread().getContextClassLoader().getResource(\"log4j.properties\");\n File log4jFile = new File(loggingPropFilePath);\n if (!log4jFile.isFile()) {\n LoggingUtil.removeAllLoggersAndAppenders();\n LoggingUtil.updateConfigurationProperty(LoggingConstants.LOG4J_FILE_FOUND, \"false\");\n return;\n } else {\n LoggingUtil.updateConfigurationProperty(LoggingConstants.LOG4J_FILE_FOUND, \"true\");\n }\n long currentLastModified = log4jFile.lastModified();\n String lmStr = new RegistryManager().getConfigurationProperty(LoggingConstants.LOG4J_FILE_LAST_MODIFIED);\n long previousLastModified = (lmStr != null) ? Long.parseLong(lmStr) : 0;\n if (previousLastModified != currentLastModified) {\n // log4j.properties file is changed..\n LoggingUtil.updateConfigurationProperty(LoggingConstants.LOG4J_FILE_LAST_MODIFIED, Long.toString(currentLastModified));\n // Remove all the entries in the registry\n LoggingUtil.removeAllLoggersAndAppenders();\n } else {\n LoggingUtil.loadCustomConfiguration();\n }\n }", "title": "" }, { "docid": "e96197b62ca2da1ac7159c1377c1d1c8", "score": "0.5203521", "text": "public static void setBackupLogFile(String f)\n throws IOException {\n if (!log4j) {\n OutputStream out = new FileOutputStream(f, true);\n out = new BufferedOutputStream(out);\n setBackupStream(out);\n }\n }", "title": "" }, { "docid": "056acbe4411b067ad5fa73b97fbe26b7", "score": "0.51904094", "text": "private static void check()\r\n {\r\n if ( instance != null )\r\n return;\r\n make();\r\n instance.open(\"unspecified\", \"unspecified.log\", Level.Info, Level.Info);\r\n Severe(\"Logging was uninitialized, using default settings\");\r\n }", "title": "" }, { "docid": "a6a3c17469dfa049a689656eee539d5c", "score": "0.5152506", "text": "public static boolean isLog4jLogger(String logger) {\n if (logger == null || !IS_LOG4J_LOGGER.get()) {\n return false;\n }\n Logger log = LoggerFactory.getLogger(logger);\n try {\n Class<?> log4jClass = Class.forName(SLF4J_LOG4J_ADAPTER_CLASS);\n return log4jClass.isInstance(log);\n } catch (ClassNotFoundException e) {\n IS_LOG4J_LOGGER.set(false);\n return false;\n }\n }", "title": "" }, { "docid": "6330a7d55c5ff42cf14bfbcaf65de189", "score": "0.5119715", "text": "private static void init() {\n if (!wasInit) {\n synchronized (sem) {\n if (!wasInit) {\n wasInit = true;\n Logger.getRootLogger().removeAllAppenders();\n try {\n if (confFile != null) {\n addConfigFile(SystemUtilities\n .getResourceURL(confFile.toString()));\n } else {\n URL[] urls = SystemUtilities.getConfURLs(\"log4j\");\n for (int i = urls.length - 1; i >= 0; i--)\n addConfigFile(urls[i]);\n }\n } catch (Exception e) {\n e.printStackTrace(System.err); // cannot\n // log\n // yet\n }\n }\n }\n }\n }", "title": "" }, { "docid": "1a8bab86a9495e1c009f00cf9bbdf002", "score": "0.5101894", "text": "private void setupLogger() {\n\t\tSimpleLayout layout = new SimpleLayout();\n\t ConsoleAppender consoleAppender = new ConsoleAppender( layout );\n\t\t\n\t logger = LogManager.getLogger(ReplicationManager.class.getName());\n\t\tlogger.addAppender(consoleAppender);\n\t logger.setLevel(Level.INFO);\n\t}", "title": "" }, { "docid": "33be9b42317eaf96786e76061f02104a", "score": "0.5061048", "text": "@Test\n void shouldBePossibleToDestroyMockAppender() {\n LoggingMockUtil.createMockedLogAppender(ClassWithLogger.class);\n\n LoggingMockUtil.destroyMockedAppender(ClassWithLogger.class);\n\n Appender destroyedAppender = LoggingMockUtil.getLogger(ClassWithLogger.class)\n .getAppenders().get(\"mockAppender\");\n assertThat(destroyedAppender)\n .isNull();\n }", "title": "" }, { "docid": "50e5ded01aa8ce59d3629a99934c6bf8", "score": "0.5032241", "text": "public Logger getLogger()\r\n {\r\n if( log == null ) throw new IllegalStateException(\"logging has not been enabled\");\r\n return log;\r\n }", "title": "" }, { "docid": "d47bc408d486f34dcf5062946c329ea7", "score": "0.49683544", "text": "private static void initLog4J(final QedeqGuiConfig config) {\r\n final String resourceName = \"log4j.xml\";\r\n // LATER mime 20070927: hard coded entry \"config\":\r\n String resourceDirectoryName = \"config\";\r\n final File resourceDir = new File(config.getBasisDirectory(), resourceDirectoryName);\r\n final File log4jConfig = new File(resourceDir, resourceName);\r\n String res = \"/\" + resourceDirectoryName + \"/\" + resourceName;\r\n // if the config file doesn't exist in the file system, we take it from the class path\r\n // and save it in the file system!\r\n if (!log4jConfig.exists()) {\r\n final URL log4jConfigUrl = QedeqMainFrame.class.getResource(res);\r\n if (log4jConfigUrl == null) {\r\n errorPrintln(\"Resource not found: \" + res);\r\n } else {\r\n try {\r\n if (!resourceDir.exists()) {\r\n if (!resourceDir.mkdirs()) {\r\n errorPrintln(\"Creation of directory failed: \"\r\n + resourceDir.getAbsolutePath());\r\n }\r\n }\r\n final StringBuffer buffer = new StringBuffer();\r\n // if this would be a properties file would have to load it with ISO-8859-1\r\n IoUtility.loadFile(log4jConfigUrl, buffer, \"UTF-8\");\r\n IoUtility.saveFile(log4jConfig, buffer, \"UTF-8\");\r\n } catch (IOException e1) {\r\n errorPrintln(\"Resource can not be saved: \" + log4jConfig.getAbsolutePath());\r\n e1.printStackTrace();\r\n }\r\n }\r\n } else {\r\n res = UrlUtility.toUrl(log4jConfig).toString();\r\n }\r\n System.setProperty(\"log4j.configDebug\", \"true\");\r\n System.setProperty(\"log4j.configuration\", res);\r\n\r\n // init Log4J watchdog\r\n try {\r\n // set properties and watch file every 5 seconds\r\n if (res.endsWith(\".xml\")) {\r\n DOMConfigurator.configureAndWatch(log4jConfig.getCanonicalPath(), 5000);\r\n } else {\r\n PropertyConfigurator.configureAndWatch(log4jConfig.getCanonicalPath(), 5000);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "a7959e00fc782c05879daf8dc058e54f", "score": "0.49563974", "text": "@Override\n public boolean hasLogger() {\n return manager.logManager().hasContextLogger(tomcatModule);\n }", "title": "" }, { "docid": "18bfebbf5b66ebc71289ee4fc14c3a5f", "score": "0.49450085", "text": "public Log4JLogger() {}", "title": "" }, { "docid": "6703f2e42f78113fd2eba40258de5ac6", "score": "0.49121514", "text": "private static boolean implementationIsOPS4J() {\n if(!slf4JOnClasspath()){\n return false;\n }\n Slf4JLogger l = new Slf4JLogger(\"test\");\n if (l.getImplementation().getClass().getName().equals(\"org.ops4j.pax.logging.slf4j.Slf4jLogger\")) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "fe1656429934b7feb6d8a5c1e346d4df", "score": "0.4879657", "text": "@Test\n public void validateWrappedLoggerIsLog4JLogger() throws Exception {\n HeraLogger heraLogger = HeraLoggerFactory.getLogger(\"myClass\");\n\n Field f = HeraLogger.class.getDeclaredField(\"logger\");\n f.setAccessible(true);\n Object logger = f.get(heraLogger);\n\n Assert.assertNotNull(heraLogger);\n Assert.assertEquals(logger.getClass(), Log4JLogger.class);\n }", "title": "" }, { "docid": "c6345c3d2c78b33a27223c3a210b6859", "score": "0.48732147", "text": "private static void redirectJavaUtilLoggingToSlf4j() {\n if (!SLF4JBridgeHandler.isInstalled()) {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }\n }", "title": "" }, { "docid": "0ab86d3b132047222cbf43e57c7b6331", "score": "0.48688245", "text": "@Test\r\n\tpublic void testGetLogger() {\r\n\t\tPayer payer = new Payer();\r\n\t\tpayer.setLogger(null);\r\n\t\tassertNull(payer.getLogger());\r\n\t}", "title": "" }, { "docid": "4b2fee069e92c8e245263c0238addb87", "score": "0.4861937", "text": "static void configureLogger() {\n ConsoleAppender console = new ConsoleAppender(); //create appender\n //configure the appender\n console.setLayout(new PatternLayout(PATTERN));\n console.setThreshold(Level.ALL);\n console.activateOptions();\n //add appender to any Logger (here is root)\n log.addAppender(console);\n // This is for the rmi_server log file\n FileAppender fa = new FileAppender();\n fa.setName(\"FileLogger\");\n fa.setFile(\"log/shardcoord.log\");\n fa.setLayout(new PatternLayout(\"%d %-5p [%c{1}] %m%n\"));\n fa.setThreshold(Level.ALL);\n fa.setAppend(true);\n fa.activateOptions();\n\n //add appender to any Logger (here is root)\n log.addAppender(fa);\n log.setAdditivity(false);\n //repeat with all other desired appenders\n }", "title": "" }, { "docid": "52fc9c0b1fdad0f2528e5046b979239d", "score": "0.48432618", "text": "protected jxl.common.Logger getLoggerImpl(Class cl)\r\n/* 66: */ {\r\n/* 67:139 */ org.apache.log4j.Logger l = org.apache.log4j.Logger.getLogger(cl);\r\n/* 68:140 */ return new Log4JLogger(l);\r\n/* 69: */ }", "title": "" }, { "docid": "85771279b74fb783c5967311153a4279", "score": "0.48108914", "text": "public static void initLogging()\r\n\t{\r\n\t\t// load custom XML configuration\r\n\t\tURL url = Loader.getResource(\"log4j-Main.xml\");\r\n\t\tif (url == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Could not load file log4j-Main.xml\");\r\n\t\t}\r\n\t\tDOMConfigurator.configure(url);\r\n\t}", "title": "" }, { "docid": "232011d8cbc4acafba7b402d8056cbd9", "score": "0.47748536", "text": "public static void intiateLoggers() {\n\n\t\ttry {\n\n\t\t\tSystem.setProperty(\"log4j.time\", Long.toString(Calendar.getInstance().getTimeInMillis()));\n\t\t\tSystem.setProperty(\"pwd\", System.getProperty(\"user.dir\"));\n\t\t\tString logfileName = \"log4j.properties\";\n\t\t\tPropertyConfigurator.configure(logfileName);\n\t\t\tLOGGER = Logger.getLogger(BaseTest1.class);\n\t\t\tLOGGER.info(\"log4j properties filepath: \" + logfileName);\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"Error while intiating Loggers.\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "a4061aee650ca3493efbbc7c0b6e3c1f", "score": "0.47726157", "text": "@Test\n void shouldNotThrowExceptionWhenDestroyingNonInitializedAppender() {\n LoggingMockUtil.destroyMockedAppender(ClassWithLogger.class);\n loggingVerifier.verify(Level.WARN, \"Tried to destroy a mocked appender on se.fortnox.reactivewizard.test.ClassWithLogger but none was mocked. Perhaps you set up the mockedLogAppender for a different class?\");\n }", "title": "" }, { "docid": "901e922c3312fd2282f2b46ef09ae004", "score": "0.47529456", "text": "public static void logInitialization() {\n\t\tPropertyConfigurator.configure(\"resources/\" + Constants.RESOURCE_PATH + \"log4j.properties\");\n\t}", "title": "" }, { "docid": "894dad2561275690f4ea1275f920792e", "score": "0.4720865", "text": "public void enableLogging( final Logger logger )\r\n {\r\n if( logger == null ) throw new NullPointerException(\"null logger argument\");\r\n log = logger;\r\n }", "title": "" }, { "docid": "0fbcfe8023d4104feb33d5e3356f9707", "score": "0.4708937", "text": "@Bean\n public static Log4jOverridableConfigurer log4jConfigurer()\n {\n Log4jOverridableConfigurer log4jConfigurer = new Log4jOverridableConfigurer();\n log4jConfigurer.setDefaultResourceLocation(TEST_LOG4J_CONFIG_RESOURCE_LOCATION);\n log4jConfigurer.setOverrideResourceLocation(\"non_existent_override_location\");\n log4jConfigurer.setRefreshIntervalMillis(0);\n return log4jConfigurer;\n }", "title": "" }, { "docid": "793dfd954860368d79e120b7114c17bd", "score": "0.4688655", "text": "private Logger createTestLogger() throws IOException {\n Logger testLogger = Logger.getLogger(new SimpleDateFormat(\"yyyy-MM-dd-HHmmss\").format(new Date()));\n FileAppender fileAppender = new FileAppender(new PatternLayout(\"%d %-5p - %m%n\"), \"logs/\" + getTestClassName() + \"/test_\" + testLogger.getName() + \".log\", false);\n fileAppender.setThreshold(Level.INFO);\n testLogger.addAppender(fileAppender);\n return testLogger;\n }", "title": "" }, { "docid": "2e724f2f59c3c976d35aca34ea608aa3", "score": "0.460205", "text": "public boolean isLogInfoEnabled()\n {\n return getLogger().isInfoEnabled();\n }", "title": "" }, { "docid": "70cd35f48d3cb908f3f31ae931491cde", "score": "0.45986068", "text": "public static void turnLoggingOn() {\n \t\tLogger.getLogger(\"py4j\").setLevel(Level.ALL);\n \t}", "title": "" }, { "docid": "7963d4aadb7ff451c8a1f37e08c27e61", "score": "0.4594579", "text": "public void setupLogging() {\n final CLIParam logFile = cli.getParam(\"-logfile\");\n if (!logFile.getStringValue().isEmpty()) {\n final File file = new File(logFile.getStringValue());\n if (!file.exists()) {\n try {\n file.createNewFile();\n } catch (final IOException ex) {\n logger.error(\"Unable to create log file: \" + ex);\n }\n }\n\n try {\n final BufferedWriter bw = new BufferedWriter(new FileWriter(file, true));\n final SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if (!logger.getTag().isEmpty()) {\n bw.append(\"[\");\n bw.append(logger.getTag());\n bw.append(\"] \");\n }\n bw.append(\"Log file opened at: \" + sdf.format(new Date(System.currentTimeMillis())));\n bw.append(\"\\n\");\n bw.flush();\n // We will never get to setting it here if it failed to write above!\n logger.setWriter(bw);\n logger.info(\"Using log file: \" + file);\n } catch (final IOException ex) {\n logger.error(\"Unable to write to log file: \" + ex);\n }\n }\n }", "title": "" }, { "docid": "6aff7b5f6471a991a6dbaf648529df9c", "score": "0.4592206", "text": "private static void init() {\n URL u = WebSocketServer.class.getClassLoader().getResource(\"./log4j.xml\");\n DOMConfigurator.configure(u);\n }", "title": "" }, { "docid": "cf7225cec6360845833c55160b575c00", "score": "0.4572273", "text": "@Override\n protected synchronized void doStart() throws Exception\n {\n if (_logDateFormat != null)\n {\n _logDateCache = new DateCache(_logDateFormat,_logLocale);\n _logDateCache.setTimeZoneID(_logTimeZone);\n }\n\n if (_filename != null)\n {\n _fileOut = new RolloverFileOutputStream(_filename,_append,_retainDays,TimeZone.getTimeZone(_logTimeZone),_filenameDateFormat,null);\n _closeOut = true;\n LOG.info(\"Opened \" + getDatedFilename());\n }\n else\n _fileOut = System.err;\n\n _out = _fileOut;\n\n if (_ignorePaths != null && _ignorePaths.length > 0)\n {\n _ignorePathMap = new PathMap();\n for (int i = 0; i < _ignorePaths.length; i++)\n _ignorePathMap.put(_ignorePaths[i],_ignorePaths[i]);\n }\n else\n _ignorePathMap = null;\n\n synchronized(this)\n {\n _writer = new OutputStreamWriter(_out);\n }\n super.doStart();\n }", "title": "" }, { "docid": "fa5f2945e26af673cac65564c8237d55", "score": "0.45718804", "text": "public boolean isLogging()\n\t{\n\t\treturn defaultTrue(\"logging\");\n\t}", "title": "" }, { "docid": "b284eb5986d86ebac85a4f2708cb80dc", "score": "0.45661443", "text": "@Override\n\tprotected Logger getLogger() {\n\t\treturn log;\n\t}", "title": "" }, { "docid": "2de9c621412b2d4afdd0908f0ed80b35", "score": "0.4565188", "text": "public void initLogManager() {\n PropertyConfigurator.configure(\"log4j.properties\");\n logger.setLevel(Level.ALL);\n }", "title": "" }, { "docid": "d20c0bc42e5ec6e4194cc78c9306f3cd", "score": "0.4550282", "text": "@Test\n\tpublic void checkLogWithSlf4j() {\n\t\tlogCheckRule.addExpectedLog(\"Hello\");\n\t\t\n\t\tLogger logger = LoggerFactory.getLogger(LogCheckRuleUnitTest.class);\n\t\tlogger.info(\"Hello\");\n\t}", "title": "" }, { "docid": "6ad20b3d116cf1657afba6dc420635f5", "score": "0.45351452", "text": "static void createLogger() {\n newDir = new File(System.getProperty(\"user.dir\") + \"/\" + myPeerID);\n newDir.mkdir();\n String logPathname = newDir.getAbsolutePath() + \"/\" + myPeerID + \"_BitTorrent.log\";\n\n try {\n\n fh = new FileHandler(logPathname);\n logger.addHandler(fh);\n logger.setUseParentHandlers(false);\n SimpleFormatter formatter = new SimpleFormatter();\n fh.setFormatter(formatter);\n\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "314a0beaa9f7da55a8d4327c3b357d22", "score": "0.45331213", "text": "protected final synchronized Logger getLogger() {\n if (logger == null) {\n logger = Logging.getLogger(ConfigFinder.class);\n }\n return logger;\n }", "title": "" }, { "docid": "6ed1185afc5c7e41e5402dc7d2da94ed", "score": "0.45321465", "text": "void openLog() {\n\n if (filesReadOnly) {\n return;\n }\n\n Crypto crypto = database.logger.getCrypto();\n\n try {\n if (crypto == null) {\n dbLogWriter = new ScriptWriterText(database, logFileName,\n false, false, false);\n } else {\n dbLogWriter = new ScriptWriterEncode(database, logFileName,\n crypto);\n }\n\n dbLogWriter.setWriteDelay(writeDelay);\n dbLogWriter.start();\n\n isModified = false;\n } catch (Throwable e) {\n throw Error.error(ErrorCode.FILE_IO_ERROR, logFileName);\n }\n }", "title": "" }, { "docid": "39dbe4efcca22653d60ad2dc6c46ca9f", "score": "0.45291224", "text": "@Test\n public void testLog4jAnalysis() {\n try {\n final JarAnalyzer ja = new JarAnalyzer();\n ja.analyze(new File(\"./src/test/resources/log4j-core-2.14.0.jar\"));\n JarAnalyzer.setAppContext(new Application(\"dummy-group\", \"dummy-artifact\", \"0.0.1-SNAPSHOT\"));\n ja.call();\n } catch (Exception e) {\n e.printStackTrace();\n assertTrue(false);\n }\n }", "title": "" }, { "docid": "4da1fc3daa2c9343e109193ca5cdce03", "score": "0.45096767", "text": "private void setupDebugLog() {\n boolean useDebug = this.configurationManager.readDebug();\n Level logLevel = (useDebug ? Level.FINEST : Level.OFF); // SUPPRESS CHECKSTYLE AvoidInlineConditionalsCheck\n\n DEBUG_LOG.setLevel(logLevel);\n OWDebugHandler debugHandler = new OWDebugHandler(new File(this.getDataFolder(), \"debug.log\"));\n debugHandler.setLevel(logLevel);\n DEBUG_LOG.addHandler(debugHandler);\n\n DEBUG_LOG.fine(\"Enabled debug log at \" + (new Date()).toString());\n }", "title": "" }, { "docid": "95c3559fc98cbaf97f2017d28a42a705", "score": "0.45028377", "text": "@Override\n\tprotected Logger getLogger() {\n\t\treturn LOG;\n\t}", "title": "" }, { "docid": "b50bd478f5983df9625f85b69ad8c8b7", "score": "0.4501333", "text": "private void installLogger() {\n Logger.setBackend(new Logger.LogBackEnd() {\n @Override\n public void log(Class<?> clazz, LogLevel loglevel, String msg, Object... params) {\n ProxyTester.this.logArea\n .append(loglevel + \"\\t\" + MessageFormatter.format(msg, params).getMessage() + \"\\n\");\n }\n });\n }", "title": "" }, { "docid": "88caeb9a8212936a5971c1ea7e271678", "score": "0.4492293", "text": "public abstract boolean isDebugLoggingEnabled();", "title": "" }, { "docid": "1db93d5d2821c1a1611a0eae905cdd2d", "score": "0.4491695", "text": "private void initialiseLogFile()\n {\n this.mLogFile.getParentFile().mkdirs();\n setFilePermissionsToPublic(this.mLogFile.getParentFile());\n \n if (mTestCycle <= 1)\n {\n if (mLogFile.exists())\n {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"'Log_'yyyyMMdd_HHmmss'.txt'\", Locale.US);\n File archiveFile = new File(mLogFile.getParentFile(), simpleDateFormat.format(new Date()));\n while (archiveFile.exists())\n {\n try\n {\n Thread.sleep(200);\n }\n catch (InterruptedException e)\n {\n }\n \n archiveFile = new File(mLogFile.getParentFile(), simpleDateFormat.format(new Date()));\n }\n if (!mLogFile.renameTo(archiveFile))\n {\n mLogger.onLog(\"Failed to archive old log file\");\n }\n }\n \n // Delete all files and restart.\n mLogFile.delete();\n mDataHashRecordFile.delete();\n mTestFile.delete();\n }\n else\n {\n // Add this line as a log cycle break to the the log file.\n writeToFile(this.mLogFile, true, \"**********************************************************\\r\\n\");\n }\n }", "title": "" }, { "docid": "e8751d9a341fc33f627af85628375232", "score": "0.44814777", "text": "protected synchronized void open()\n\t{\n\t\tif (writer != null)\n\t\t\twriter.close();\n\n\t\ttry\n\t\t{\n\t\t\twriter = new PrintWriter(new FileOutputStream(filename, true), true);\n\t\t}\n\t\tcatch (FileNotFoundException e)\n\t\t{\n\t\t\tLOG.warn(\"Could not open log file: \" + filename);\n\t\t}\n\t}", "title": "" }, { "docid": "ea4daa88dd5260d27c5788aeb029a72c", "score": "0.44722715", "text": "public boolean hasLogFileName() {\n return fieldSetFlags()[7];\n }", "title": "" }, { "docid": "ecca763491a3792208f140d8015ddcd3", "score": "0.44720936", "text": "void setLogger(PrintStream out)\n {\n logger = out;\n }", "title": "" }, { "docid": "55f7a9b56c5767e71b50fa8910c5977c", "score": "0.44641295", "text": "public DailyZipRollingFileAppender() {\r\n\t}", "title": "" }, { "docid": "a98f85e54b32b36661820f2e34440a3d", "score": "0.44605052", "text": "private static void configureLog4J(Properties properties) {\n // TODO Add a file appender for the logs\n // TODO Need to create a property in the properties file for it.\n // sgroschupf, 25Feb2008: this method will be obsolete with PIG-115.\n \n String log4jconf = properties.getProperty(LOG4J_CONF);\n String trueString = \"true\";\n boolean brief = trueString.equalsIgnoreCase(properties.getProperty(BRIEF));\n Level logLevel = Level.INFO;\n\n String logLevelString = properties.getProperty(DEBUG);\n if (logLevelString != null){\n logLevel = Level.toLevel(logLevelString, Level.INFO);\n }\n \n if (log4jconf != null) {\n PropertyConfigurator.configure(log4jconf);\n } else if (!brief ) {\n // non-brief logging - timestamps\n Properties props = new Properties();\n props.setProperty(\"log4j.rootLogger\", \"INFO, PIGCONSOLE\");\n props.setProperty(\"log4j.appender.PIGCONSOLE\",\n \"org.apache.log4j.ConsoleAppender\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.layout\",\n \"org.apache.log4j.PatternLayout\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.layout.ConversionPattern\",\n \"%d [%t] %-5p %c - %m%n\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.target\",\n \"System.err\");\n PropertyConfigurator.configure(props);\n } else {\n // brief logging - no timestamps\n Properties props = new Properties();\n props.setProperty(\"log4j.rootLogger\", \"INFO, PIGCONSOLE\");\n props.setProperty(\"log4j.appender.PIGCONSOLE\",\n \"org.apache.log4j.ConsoleAppender\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.layout\",\n \"org.apache.log4j.PatternLayout\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.layout.ConversionPattern\",\n \"%m%n\");\n props.setProperty(\"log4j.appender.PIGCONSOLE.target\",\n \"System.err\");\n PropertyConfigurator.configure(props);\n }\n}", "title": "" }, { "docid": "7d653c7b24745f40e851706374d13e87", "score": "0.44592717", "text": "private void initLog4J(ServletContext servletContext) {\n PropertyConfigurator.configure(this.getClass().getClassLoader().getResource(\"configureLogger.properties\"));\n\n log(\"Log4J initialization started\");\n try {\n PropertyConfigurator.configure(\n servletContext.getRealPath(\"WEB-INF/log4j.properties\"));\n LOG.debug(\"Log4j has been initialized\");\n } catch (Exception ex) {\n log(\"Cannot configure Log4j\");\n ex.printStackTrace();\n }\n log(\"Log4J initialization finished\");\n }", "title": "" }, { "docid": "9b0bd018b367c8068fe4e53d43b96c8c", "score": "0.44283158", "text": "public static Logger getLogger() {\r\n\t return log;\r\n\t}", "title": "" }, { "docid": "82a38cc61e4f143bbdf85fcf6d6663c3", "score": "0.44175518", "text": "boolean hasSetDebugLogging();", "title": "" }, { "docid": "a19f524f3219e01c91bfab72af49e251", "score": "0.4417322", "text": "public void init() {\r\n\r\n\t\tlog = Logger.getRootLogger();\r\n\r\n\t\tBasicConfigurator.configure();\r\n\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "b401b645acdfcc932684f17fbf37fec1", "score": "0.44135058", "text": "public boolean getLogServer()\n {\n return _logServer;\n }", "title": "" }, { "docid": "87c233b5924b23768614c17fac98847c", "score": "0.4410788", "text": "private static SwLogAppender getBasicAppender()\r\n {\r\n Logger rootLogger = Logger.getRootLogger();\r\n\r\n rootLogger.setLevel(Level.INFO);\r\n SwLogAppender swApp = new LogPanelAppender();\r\n swApp.setLayout(new PatternLayout(LogUtils.DEFAULT_LOG_PATTERN));\r\n rootLogger.addAppender(swApp);\r\n return swApp;\r\n\r\n }", "title": "" }, { "docid": "138bf782498a9b5310f9224029c1c6e6", "score": "0.44093668", "text": "protected Logger getLogger() {\r\n return LogManager.getLogger(getClass());\r\n }", "title": "" }, { "docid": "86033c1846995c81fc95bfe25e4518ac", "score": "0.44031525", "text": "public LogData getSystemLog() throws Exception {\n boolean isLogFileFound = Boolean.valueOf(LoggingUtil.getConfigurationProperty(\n LoggingConstants.LOG4J_FILE_FOUND));\n if (!isLogFileFound) {\n throw new Exception(\"Log4j.properties file not found, please put a log4j.properties file to the classpath\");\n }\n\n LogData logData = new LogData();\n\n // loading initial data\n logData.setLogLevel(LoggingUtil.getSystemLogLevel());\n logData.setLogPattern(LoggingUtil.getSystemLogPattern());\n\n // set the appenders\n AppenderData[] appenderData = getAllAppenderData();\n if (appenderData.length > 0) {\n logData.setAppenderData(appenderData);\n logData.setSelectedAppenderData(appenderData[0]);\n }\n return logData;\n }", "title": "" }, { "docid": "ff63f1dcaf80bf3a5a4d7b23c64d43a9", "score": "0.4401481", "text": "@Test\n public void testNoLogFiles()\n throws Throwable {\n Environment env = null;\n try {\n EnvironmentConfig noFileConfig = TestUtils.initEnvConfig();\n /* Don't checkpoint utilization info for this test. */\n DbInternal.setCheckpointUP(noFileConfig, false);\n noFileConfig.setConfigParam\n (EnvironmentParams.LOG_MEMORY_ONLY.getName(), \"true\");\n noFileConfig.setTransactional(true);\n noFileConfig.setAllowCreate(true);\n\n env = new Environment(envHome, noFileConfig);\n EnvironmentImpl envImpl = DbInternal.getNonNullEnvImpl(env);\n List<String> dbList = envImpl.getDbTree().getDbNames();\n assertEquals(\"no dbs exist\", 0, dbList.size());\n\n /* Fake a shutdown/startup. */\n env.close();\n env = new Environment(envHome, noFileConfig);\n envImpl = DbInternal.getNonNullEnvImpl(env);\n dbList = envImpl.getDbTree().getDbNames();\n assertEquals(\"no dbs exist\", 0, dbList.size());\n } catch (Throwable t) {\n t.printStackTrace();\n throw t;\n } finally {\n if (env != null)\n env.close();\n }\n }", "title": "" }, { "docid": "a585fac2462bef4452f0febeef0ea86f", "score": "0.4396101", "text": "private synchronized void monitorLogging() {\n if (executor.isPresent()) {\n logger.debug(() -> String.format(\n \"[thread-pool] [%s/%s] Active: %s/%s | Completed: %s/%s | Shutdown/Terminated: %s/%s\",\n executor.get().getPoolSize(), executor.get().getCorePoolSize(),\n executor.get().getActiveCount(), executor.get().getQueue().size(),\n executor.get().getCompletedTaskCount(), executor.get().getTaskCount(),\n executor.get().isShutdown(), executor.get().isTerminated()));\n }\n }", "title": "" }, { "docid": "6d7d6112916e00d71425d6541387a291", "score": "0.4382095", "text": "public static void resetLogger() {\n final Field frozen;\n try {\n frozen = Configuration.class.getDeclaredField(\"frozen\");\n frozen.setAccessible(true);\n frozen.set(null, false);\n } catch (final NoSuchFieldException | IllegalAccessException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b1363581639bf3d1d51cbc62b3dd168d", "score": "0.43674862", "text": "protected void setupLogging() {\n // setup the logger for the default streams.\n mLogger = LogManagerFactory.loadSingletonInstance(mProps);\n mLogger.logEventStart(\"event.pegasus.pegasus-rc-converter\", \"pegasus.version\", mVersion);\n }", "title": "" }, { "docid": "3b77357acf07da7fcf8a690289e38fad", "score": "0.43601587", "text": "static public Logs getLogger() {\n\t\treturn logs_glob;\n\t}", "title": "" }, { "docid": "6ea5d4275d0d598f97362ff155879e54", "score": "0.43549693", "text": "public static void setBackupStream(OutputStream os) {\n // synchronize on the old backup - don't want to pull the rug out from\n // under him if he's working on a big stacktrace or something like that.\n if (backup != null) {\n synchronized (backup) {\n wrappingPrintStream = null;\n backup = os;\n }\n } else {\n wrappingPrintStream = null;\n backup = os;\n }\n }", "title": "" }, { "docid": "150358e8641aa8702d4d61c8c2b390da", "score": "0.43534464", "text": "public static boolean isLoggable() {\r\n return BuildConfig.DEBUG;\r\n }", "title": "" }, { "docid": "88e4d86430d2bc282dadac046dd35573", "score": "0.43456694", "text": "public static Logger getLogger() {\n if (logMe == null) {\n logMe = new MyLogger();\n }\n return logger;\n }", "title": "" }, { "docid": "ad2850fe505541496f889a8f6276cc77", "score": "0.4337344", "text": "synchronized void initLog( boolean coldStart,\n boolean readOnly,\n String logDirectory ) {\n\n // Trace the global state of the log.\n\n // IF logInitialised\n // Unlock the LogGlobalMutex\n // Return LOG_SUCCESS\n\n if( logInitialised ) {\n return;\n }\n\n logReadOnly = readOnly;\n\n // Store the log directory name for use by subsequent log functions.\n\n directoryPath = new String(logDirectory);\n\n // If this is a cold start, then remove all files in the log directory\n\n if( coldStart && !readOnly )\n clearDirectory(logDirectory);\n\n // Create the Vector which will hold the LogHandles.\n\n logHandles = new Vector();\n\n // Set the logInitialised flag to TRUE\n // Unlock the logGlobalMutex\n // Return LOG_SUCCESS\n\n logInitialised = true;\n\n }", "title": "" }, { "docid": "6dbdabe754a5cec3c6545cec3ffc887c", "score": "0.4336209", "text": "public static java.io.PrintWriter getLogWriter() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "b0cb9e02185e4845750ec78f40c417c1", "score": "0.43322584", "text": "private static void defaultLogging() {\n byte b[] = StrUtils.asUTF8bytes(getDefaultString());\n try (InputStream input = new ByteArrayInputStream(b)) {\n LogCtlLog4j2.resetLogging(input, \".properties\");\n }\n catch (IOException ex) {\n IOX.exception(ex);\n }\n }", "title": "" }, { "docid": "3764e405148777417191579210325acd", "score": "0.4322224", "text": "public abstract File getLoggingDir();", "title": "" }, { "docid": "dab623034fe6c7058f0427c5f655688a", "score": "0.4315961", "text": "public boolean logDLProcess() {\n return getBoolean(\"log-download-process\");\n }", "title": "" }, { "docid": "d8dd49388f42182279ae3779e5d66e08", "score": "0.43099654", "text": "public static boolean isDebugLogging() {\n\t\treturn mLogger_inner;\n\t}", "title": "" }, { "docid": "9e71f97d6afae5c6826814ddc8f70aba", "score": "0.4305045", "text": "Log4JLogger(Logger logger)\r\n/* 15: */ {\r\n/* 16: 66 */ super(logger.getName());\r\n/* 17: 67 */ this.logger = logger;\r\n/* 18: 68 */ this.traceCapable = isTraceCapable();\r\n/* 19: */ }", "title": "" }, { "docid": "d67914188615e7e21c95efb9fc3854aa", "score": "0.43034843", "text": "@Override\r\n\tpublic Logger getLogger() throws Exception {\n\t\treturn (Logger) wossMap.get(\"logger\");\r\n\t}", "title": "" }, { "docid": "a163cc2d843dc083941811e2e51f68d1", "score": "0.43011367", "text": "@Test\n @SneakyThrows\n public void testLogging() {\n SimpleLayout layout = new SimpleLayout();\n PatternLayout patternLayout = new PatternLayout(\"%d{ISO8601} %-5p %x - %m%n\");\n FileAppender fileAppender = new FileAppender(patternLayout,\"logs/custom.log\",true);\n ConsoleAppender consoleAppender = new ConsoleAppender(patternLayout);\n logger.addAppender(fileAppender);\n logger.addAppender(consoleAppender);\n\n logger.setLevel((Level) Level.DEBUG);\n\n logger.debug(\"Here is some DEBUG\");\n logger.info(\"Here is some INFO\");\n logger.warn(\"Here is some WARN\");\n logger.error(\"Here is some ERROR\");\n logger.fatal(\"Here is some FATAL\");\n }", "title": "" }, { "docid": "09781b00ca292bb391c0cfc7df3b6074", "score": "0.42986244", "text": "private static void checkLogDates() throws Exception{\n String nowDate = TimeHandler.getTimestamp(\"yyyyMMdd\");\n String currFile = composeLogfilePath(\"\");\n if(lastWriteTag == null){\n FileHandler.writeToFile(nowDate, getLastWriteFile());\n if (!FileHandler.fileExists(currFile))\n FileHandler.writeToFile(\"\", currFile);\n lastWriteTag = nowDate;\n return;\n }\n if (lastWriteTag.equals(nowDate)) return;\n \n // The last write date is outdated; move the logfile (if appropriate) and update the last-write file\n String oldFile = composeLogfilePath(lastWriteTag);\n if (FileHandler.fileExists(currFile) && FileHandler.getFileSize(currFile) > 0)\n FileHandler.moveFile(currFile, oldFile);\n if (!FileHandler.fileExists(currFile))\n FileHandler.writeToFile(\"\", currFile);\n FileHandler.writeToFile(nowDate, getLastWriteFile());\n lastWriteTag = nowDate;\n }", "title": "" }, { "docid": "46150592801dbd75f97a64344655d242", "score": "0.42841586", "text": "public void startLogging(){\n LogFile mylogger = LogFile.getInstance();\n mylogger.doSomething();\n\n }", "title": "" }, { "docid": "0ecb8ff49f7c2453b82416c4f48d7e9a", "score": "0.42718983", "text": "@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n \n Logger result = Logger.getInstance();\n assertNotNull(result);\n \n File file = new File(Runtime.getInstance().getConfigPath().concat(\n \"/aidger.log\"));\n assertTrue(file.exists());\n }", "title": "" }, { "docid": "2a92ae70fd845c6ede749f6ffa530d52", "score": "0.42591068", "text": "public static void setup() {\n logger.setUseParentHandlers(false);\n for(Handler handler : logger.getHandlers()) {\n if(handler.getClass() == ConsoleHandler.class)\n logger.removeHandler(handler);\n }\n\n // Console Handler\n ch.setFormatter(new MyConsoleFormatter());\n ch.setLevel(LEVEL);\n\n // add a filter to remove sun.rmi stuff from outor logs\n ch.setFilter((LogRecord rec) -> {\n String n = rec.getSourceClassName();\n return (!n.startsWith(\"sun.rmi\") &&\n !n.startsWith(\"sun.awt\") && !n.startsWith(\"java.awt\")\n && !n.startsWith(\"sun.lwawt\"));\n });\n\n // the actual Logger\n logger.addHandler(ch);\n logger.setLevel(LEVEL);\n }", "title": "" }, { "docid": "31c93ba5005dd13786d62ed8bcf6d7fe", "score": "0.4250895", "text": "private void prepareLoggingConfiguration() {\n if (GlobalConfiguration.createLoggingConfigurationFile()) {\n GlobalConfiguration.fillLoggingConfigurationFileWithDefaultValue();\n }\n }", "title": "" }, { "docid": "ad4ea523207287a289e69279eec2db5c", "score": "0.42468446", "text": "private void checkDirectoryExistenceAndOptionallyCreate(final QedeqGuiConfig config)\r\n throws IOException {\n {\r\n final File file = config.getLogFile();\r\n final File dir = file.getParentFile();\r\n if (!dir.exists() && !dir.mkdirs()) {\r\n throw new IOException(\"can't create directory: \" + dir.getAbsolutePath());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "b851ec3a1306641a6fae7b4c345c0c7f", "score": "0.42438483", "text": "public static synchronized DataRecorder getLoggingRecorder(){\n\t\tif ( loggingRecorder == null ){\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tDataRecorderSettings drs = EnvironmentalSetter.getDataRecorderSettings();\n\t\t\t\tClass recorderClass = drs.getType();\n\t\t\t\n\t\t\t\tloggingRecorder = (DataRecorder) recorderClass.newInstance();\n\t\t\t\tloggingRecorder.init( drs );\n\t\t\t\t\n\t\t\t} catch ( Exception e) {\n\t\t\t\tSystem.err.println(\"Problem loading Recorder Loaded default.\");\n\t\t\t\tloggingRecorder = new FileDataRecorder();\n\t\t\t\t((FileDataRecorder)loggingRecorder).setLogDir(\"bctLogging\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn loggingRecorder;\n\t}", "title": "" }, { "docid": "a435e290294b79c6a2eace953f9a7d3e", "score": "0.4241685", "text": "@Override\n public PrintWriter getLogWriter() throws XQException {\n return logWriter;\n }", "title": "" }, { "docid": "8c28580081326313bebcd3e652a237f1", "score": "0.42354646", "text": "public static void enableFileLog()\n {\n setFileName( PRIMARY_CONFIG, defaultFileName );\n }", "title": "" }, { "docid": "9588b48a13fcf4ea59c8f85462aa907a", "score": "0.42327347", "text": "@Test(groups= {\"ut\"})\r\n\tpublic void testLogInDevMode() throws IOException {\r\n\t\ttry {\r\n\t\t\tSeleniumRobotLogger.reset();\r\n\t\t\tSystem.setProperty(SeleniumRobotLogger.INTERNAL_DEBUG, \"core\");\r\n\t\t\tSeleniumRobotLogger.updateLogger(SeleniumTestsContextManager.getThreadContext().getOutputDirectory(), SeleniumTestsContextManager.getThreadContext().getDefaultOutputDirectory());\r\n\t\t\t\r\n\t\t\tLogger logger = spy(SeleniumRobotLogger.getLogger(TestSeleniumRobotLogger.class));\r\n\t\t\t\r\n\t\t\tlogger.info(SeleniumRobotLogger.START_TEST_PATTERN + \"testLogInDevMode\");\r\n\t\t\tlogger.info(\"some info\");\r\n\t\t\tlogger.debug(\"some debug\");\r\n\t\t\tlogger.info(SeleniumRobotLogger.END_TEST_PATTERN + \"testLogInDevMode\");\r\n\t\t\t\r\n\t\t\tverify(logger, times(4)).callAppenders(any(LoggingEvent.class));\r\n\t\t\t\r\n\t\t\t// check log file content\r\n\t\t\tSeleniumRobotLogger.parseLogFile();\r\n\t\t\tString logs = SeleniumRobotLogger.getTestLogs().get(\"testLogInDevMode\");\r\n\t\t\tAssert.assertTrue(logs.contains(\"some info\"));\r\n\t\t\tAssert.assertTrue(logs.contains(\"some debug\"));\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\tSystem.clearProperty(SeleniumRobotLogger.INTERNAL_DEBUG);\r\n\t\t\tSeleniumRobotLogger.reset();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4dcdccfa8bc18058278f17a10f7ae9b4", "score": "0.42256516", "text": "public static java.util.logging.Logger getDefaultLogger(Object o) {\n return getDefaultLogger(o.getClass());\n }", "title": "" }, { "docid": "8facff710e63cb7aabd71326098400e9", "score": "0.4222254", "text": "private Log4JLogger(org.apache.log4j.Logger l)\r\n/* 11: */ {\r\n/* 12: 50 */ this.log4jLogger = l;\r\n/* 13: */ }", "title": "" }, { "docid": "a71070a0f2d7144422e6cbc4d593bee0", "score": "0.4217861", "text": "public static Logger getLogger() {\n\t\treturn _logger;\n\t}", "title": "" }, { "docid": "2f1ba15522b59544e4c660cde76f2142", "score": "0.4209198", "text": "private DBLogger()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// This block configure the logger with handler and formatter\n\t\t\tfh = new FileHandler(\"MainLog.log\", true);\n\t\t\tlogger.addHandler(fh);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfh.setFormatter(formatter);\n\t\t\tlogger.setUseParentHandlers(false);\n\t\t\tlogger.info(\"Started application\");\n\t\t} catch (SecurityException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0e22fd60a5c6dba77eac939f50024993", "score": "0.4199832", "text": "public boolean getLogAbandoned() {\n return this.logAbandoned;\n }", "title": "" }, { "docid": "cf5b9dccdeeffe013e65846c33f9a86b", "score": "0.41952536", "text": "boolean getLoggingOn();", "title": "" }, { "docid": "7fe787fa1fedbe1d28c805cc3fe0e18d", "score": "0.4193275", "text": "public void enableLogging(boolean status);", "title": "" }, { "docid": "2108c3117899549eaa15682ddee38278", "score": "0.41928706", "text": "public static void setLogWriter(java.io.PrintWriter out) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "9fbb07edb8577fac619f7b327c8ceb1e", "score": "0.4187499", "text": "private static boolean hasLoggingHandler(Logger logger) {\n for (Handler handler : logger.getHandlers()) {\n if (handler instanceof LoggingHandler) {\n return true;\n }\n }\n // look for Stackdriver Logging handler registered via logging.properties\n String loggerName = logger.getName();\n String propertyName = loggerName.equals(ROOT_LOGGER_NAME)\n ? HANDLERS_PROPERTY : loggerName + \".\" + HANDLERS_PROPERTY;\n String handlersProperty = LogManager.getLogManager().getProperty(propertyName);\n String[] handlers = handlersProperty != null ? handlersProperty.split(\",\") : NO_HANDLERS;\n for (String handlerName : handlers) {\n if (handlerName.contains(LoggingHandler.class.getPackage().getName())) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "b1658291a33446ae0b3bfe86935a196a", "score": "0.4185256", "text": "private void processLogging() {\n //write metric\n if(Configuration.getProducer()!=null){\n if (metricStartTime > 0) {\n String metric = selectedRoute.getMetric();\n if(!Strings.isNullOrEmpty(metric)){\n MetricObjectQueue obj = new MetricObjectQueue();\n metric = metric.replace(\"{server_name}\", selectedRoute.getServer())\n .replace(\"{verb}\", selectedRoute.getVerd().toString())\n .replace(\"{route_name}\", selectedRoute.getName())\n .replace(\"{response_code}\", statusResponse);\n obj.setMetric(metric);\n obj.setMetricStartTime(metricStartTime);\n obj.setMetricStopTime(System.currentTimeMillis());\n obj.setStatusResponse(statusResponse);\n try {\n logger.debug(\"send MetricObjectQueue message\");\n Configuration.getProducer().sendMessage(obj);\n } catch (IOException e) {\n logger.error(\"sendMessage error \", e);\n }\n }\n }\n //write logging\n if(!Configuration.getProxyRule().isOffLogging(selectedRoute)){\n LogObjectQueue obj = new LogObjectQueue();\n obj.setLogObject(logObject);\n obj.setMethodName(method.name());\n obj.setSelectedRoute(selectedRoute);\n try {\n logger.debug(\"send LogObjectQueue message\");\n Configuration.getProducer().sendMessage(obj);\n } catch (IOException e) {\n logger.error(\"sendMessage error \", e);\n }\n }\n }\n }", "title": "" }, { "docid": "06b8651e8f4bcd4a259bf3987f9a43e3", "score": "0.41806227", "text": "private Logger getLogger(LogRecord record) \n {\n String loggerName = record.getLoggerName();\n Logger logger = loggerCache.get(loggerName);\n if (logger == null) \n {\n logger = Logger.getLogger(loggerName);\n loggerCache.put(loggerName, logger);\n }\n \n return logger;\n }", "title": "" }, { "docid": "192176399828cf44ab9b389a4b2b0dd5", "score": "0.41728103", "text": "public static Logger getLogger() {\n return logger;\n }", "title": "" }, { "docid": "3005055145822f26149fcf5b972bcf9a", "score": "0.41691968", "text": "public static Logger getLogger() {\n return getLogger(RuntimeUtils.getCallerClassName(3));\n }", "title": "" } ]
a4774d900eb766ab74558540d1404f55
string profile_name = 5;
[ { "docid": "2447413b326b9847046de85d6f7cb849", "score": "0.6202459", "text": "com.google.protobuf.ByteString\n getProfileNameBytes();", "title": "" } ]
[ { "docid": "4f97b7eaa7dd7432c20d5cfb57a0e343", "score": "0.7469452", "text": "public int getProfileName(){\n return localProfileName;\n }", "title": "" }, { "docid": "5ead6c4110d601861ab1b27bca5f64d6", "score": "0.70535904", "text": "java.lang.String getProfileName();", "title": "" }, { "docid": "5ead6c4110d601861ab1b27bca5f64d6", "score": "0.70535904", "text": "java.lang.String getProfileName();", "title": "" }, { "docid": "7c836a10821ade5244fee819f67c7e18", "score": "0.6977", "text": "public void setProfileName(int param){\n \n this.localProfileName=param;\n \n\n }", "title": "" }, { "docid": "ead8710ea6eb409197610ac9b1d8387c", "score": "0.6790948", "text": "public java.lang.String getProfileName(){\n return localProfileName;\n }", "title": "" }, { "docid": "ec898b3afa3c7f6f8b1032857917a72f", "score": "0.66053486", "text": "public void setProfileName(java.lang.String param){\n \n this.localProfileName=param;\n \n\n }", "title": "" }, { "docid": "b5ee1b09b1b7a4df17b8c29ccc33aa4c", "score": "0.6502395", "text": "public String get(final String name)\r\n {\r\n return profile.get(name);\r\n }", "title": "" }, { "docid": "f869a44ba411e10fe6fce305ebec79fb", "score": "0.6484955", "text": "public String getProfileName()\n {\n return getStringValue(FLD_PROFILE_NAME);\n }", "title": "" }, { "docid": "1fb0b36b33029b7e188b913386de97ae", "score": "0.64481986", "text": "private void saveProfileName() {\n\t\t\n\t}", "title": "" }, { "docid": "1fbea54a0f23794c3b6041d8a98a7783", "score": "0.6309828", "text": "public String getProfileName() {\n return profileName;\n }", "title": "" }, { "docid": "9f316010935661d8f76ce821ceff7886", "score": "0.6213072", "text": "void setProfileName(java.lang.String profileName);", "title": "" }, { "docid": "3ec4a2eadc7062be0728b44ce400143b", "score": "0.5902761", "text": "public String getSecurityProfileName()\n {\n return m_profile;\n }", "title": "" }, { "docid": "4af81daadf3276132aea1ac774a234a3", "score": "0.58581656", "text": "protected String profileString (String name, String id)\n {\n if (_usePronouns && id.trim().equals(_memberId + \"\")) {\n return _messages.you();\n }\n return _builder.createLink(name, Pages.PEOPLE, Args.compose(id));\n }", "title": "" }, { "docid": "d9b8996c52a2e2586efe8a18666943df", "score": "0.58439773", "text": "public void setProfileName(String name)\n {\n setValue(FLD_PROFILE_NAME, name);\n }", "title": "" }, { "docid": "f1e17bbef2fb63f0741485f59bbb218d", "score": "0.5822948", "text": "private String GetProfileString(UriInfo uriInfo, Message message) {\n\t\tString uri = uriInfo.getBaseUriBuilder().path(ProfileResource.class).build()\n\t\t\t\t.toString();\n\n\t\treturn uri;\n\t}", "title": "" }, { "docid": "36805f0936633153338135de9e1790af", "score": "0.58124596", "text": "org.apache.xmlbeans.XmlString xgetProfileName();", "title": "" }, { "docid": "ba695ff73deeee795b70d44b25e44213", "score": "0.5793473", "text": "public String getProfileName(String argProfileId) {\r\n\t\tString query = SELECT_ID_NAME_FROM_PROFILE_WHERE_ID + APOSTROPHE\r\n\t\t\t\t+ argProfileId + APOSTROPHE;\r\n\t\ttry {\r\n\t\t\tString profileName = null;\r\n\t\t\tQueryResult queryResult = this.getPartnerConnection().query(query);\r\n\t\t\tif (queryResult != null && queryResult.getSize() > 0) {\r\n\t\t\t\tSObject[] queryResultRecords = queryResult.getRecords();\r\n\t\t\t\tif (queryResultRecords != null && queryResultRecords.length > 0) {\r\n\t\t\t\t\tSObject profile = queryResultRecords[0];\r\n\t\t\t\t\tif (profile.hasChildren()) {\r\n\t\t\t\t\t\tIterator<XmlObject> profilexmlObject = profile\r\n\t\t\t\t\t\t\t\t.getChildren();\r\n\t\t\t\t\t\tMap<String, String> map = new HashMap<String, String>();\r\n\t\t\t\t\t\tif (profilexmlObject != null) {\r\n\t\t\t\t\t\t\twhile (profilexmlObject.hasNext()) {\r\n\t\t\t\t\t\t\t\tXmlObject profileXmlObj = profilexmlObject\r\n\t\t\t\t\t\t\t\t\t\t.next();\r\n\t\t\t\t\t\t\t\tmap.put(profileXmlObj.getName().getLocalPart(),\r\n\t\t\t\t\t\t\t\t\t\tprofileXmlObj.getValue().toString());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tprofileName = map.get(NAME);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn profileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"Exception while getting profile name for profile id:\"\r\n\t\t\t\t\t\t\t+ argProfileId, e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a3eda5a87c0aeb537155b2867f1d37e5", "score": "0.5729736", "text": "public String getUserProfileGuiName();", "title": "" }, { "docid": "67084752099ba6be4afed0e4a0885640", "score": "0.56891125", "text": "public FortniteProfile (String username) {\n this.username = username;\n }", "title": "" }, { "docid": "f409da9e979a5f04f64b14405401d7f4", "score": "0.5653812", "text": "String getName(String username);", "title": "" }, { "docid": "de1809a4ad0b4826b908e0a5e3893188", "score": "0.5594208", "text": "java.lang.String getSkillProfileId();", "title": "" }, { "docid": "4f82b93b08a1fd2d5208d484384a7c3f", "score": "0.5581998", "text": "public String printName(String x){return x; }", "title": "" }, { "docid": "6fbb14aad648ad5378d1ebb4e70e29fd", "score": "0.5576853", "text": "String getNameIn();", "title": "" }, { "docid": "3ab530748a1224e8afdc59b4c92a18b6", "score": "0.5562154", "text": "private void displayProfileName(String name) {\n\t\tprofileNameLab = new GLabel(name);\n\t\tprofileNameLab.setColor(Color.BLUE);\n\t\tprofileNameLab.setFont(PROFILE_NAME_FONT);\n\t\tdouble x = LEFT_MARGIN;\n\t\tdouble y = TOP_MARGIN + profileNameLab.getAscent();\n\t\tprofileNameLab.setLocation(x,y);\n\t\tadd(profileNameLab);\n\t}", "title": "" }, { "docid": "eb1374c19a05c47864cb1a72bf5d54fb", "score": "0.55473965", "text": "private String getName() {\n SharedPreferences sp = getSharedPreferences(\"key\", Context.MODE_PRIVATE);\n final String value = sp.getString(\"loginUser\", \"\");\n return value;\n }", "title": "" }, { "docid": "42cd0cf1815f9b9166e9917644783ac0", "score": "0.55184484", "text": "public native String getProfile()/*-{\n\t\tvar peer = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\n\t\treturn peer.getprofile();\n }-*/;", "title": "" }, { "docid": "5d6002ec79f883a9e187cfbfd68917a6", "score": "0.55176693", "text": "public String mo10346a() {\n return \"Recs.ProfileOpen\";\n }", "title": "" }, { "docid": "9b331f6e700c6fa5f39529debe66590c", "score": "0.5516576", "text": "String getSurname();", "title": "" }, { "docid": "a03db5e0d23a316959e370342e458084", "score": "0.55062944", "text": "public synchronized String getUserid(int position){\r\n\t\tString name = \"\";\r\n\t\ttry {\r\n\t\t\tString userid = mTransactionList.get(position).mi.userid;\r\n\t\t\t// look up profile from cache\r\n\t\t\tProfileDescriptor prof = new ProfileDescriptor();\r\n\t\t\tprof = ProfileCache.getProfile (userid);\r\n\t\t\tname = prof.getField(ProfileDescriptor.ProfileFields.NAME_DISPLAY);\r\n\t\t}catch (Exception e){\r\n\t\t\tLog.e(TAG, \"Error getting UserID: \"+e.toString());\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "cad1597cc98fec1a4c056d2822cd71c3", "score": "0.5499844", "text": "public void setProfile_id(String profile_id) {\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(\"profile_id\", profile_id);\n editor.apply();\n }", "title": "" }, { "docid": "0beeb8daa24da1117db41d603b188ad1", "score": "0.54965097", "text": "public static String createUserName(String first, String last, int n) {\n // - - - declare local variable 'newName'\n String newName;\n // - - - strip off the salutation\n first = first.substring(4);\n // - - - construct a username with the first character or the first name,\n // - - - I chose to use .substring() instead of .charAt() to practice .substring as a new concept\n first = first.substring(0,1);\n System.out.println(first);\n // - - - three characters of the last name (starting with the second letter),\n last = last.substring(1, 4);\n // - - - and the with a random number from 1 - 100\n newName = first + last + n;\n // - - - convert the username to lowercase\n newName = newName.toLowerCase();\n // - - - return 'newName'\n System.out.println(newName);\n return newName;\n }", "title": "" }, { "docid": "44e6351574e3c816304b30d34d7de810", "score": "0.5492087", "text": "String getNameFromUser() {\n\t\tSystem.out.println(\"What is your name?\");\n\t\tString newName = scanner.nextLine();\n\t\tSystem.out.println(String.format(\"Hi %s, Lets Play\", newName));\n\n\t\treturn newName;\n\t}", "title": "" }, { "docid": "e6abd56d0c630b44b38fb0397a3d40c1", "score": "0.54908705", "text": "public String getUserName() {\r\n\t\treturn sharedPref.getString(username, \"Player 1\");\r\n\t}", "title": "" }, { "docid": "61c08ceacf2f724ed8db7fc5263ecdbe", "score": "0.54869306", "text": "private String myName() { return \"[RiemanCube] \"; }", "title": "" }, { "docid": "9757af9baba269757b430ea857f799d4", "score": "0.5484787", "text": "public static int getName(){\n return name;\n }", "title": "" }, { "docid": "2c26fe8e81343a81ede7b0a091887b5d", "score": "0.54617065", "text": "public static String getString() {\n return name;\n }", "title": "" }, { "docid": "c60a0bfa823df55bb0f8f08893ad73c5", "score": "0.54490006", "text": "String username();", "title": "" }, { "docid": "dc7fc02f20d1364cbda2996d60bae2a8", "score": "0.5444958", "text": "@GET\n\t@Path(\"/{profileName}\")\t//variable link\n\tpublic Profile getProfile(@PathParam(\"profileName\") String profileName){\n\t\treturn pS.getProfile(profileName);\n\t}", "title": "" }, { "docid": "6ffdc65ba5432a7114a30f7efafc6c40", "score": "0.5437731", "text": "String myFourthmethod (String firstName, String secondName, int a,int b){\n firstName = \"prime\";\n secondName = \"testing\";\n String fullName = firstName+secondName;\n int result = a+b;\n return fullName;\n\n }", "title": "" }, { "docid": "269fe3daa3dc0b4f29a41aa8a1e35545", "score": "0.54352343", "text": "String getVarName();", "title": "" }, { "docid": "269fe3daa3dc0b4f29a41aa8a1e35545", "score": "0.54352343", "text": "String getVarName();", "title": "" }, { "docid": "269fe3daa3dc0b4f29a41aa8a1e35545", "score": "0.54352343", "text": "String getVarName();", "title": "" }, { "docid": "4b5d6382077ead4d470f4245885225f0", "score": "0.5430335", "text": "String createName(String base);", "title": "" }, { "docid": "79c5e8c8d82be0d8638b31fd864d5675", "score": "0.5410853", "text": "public String Profile() {\n // TODO\n return null;\n }", "title": "" }, { "docid": "c5ca47aac075a693b9e201c3c13022b8", "score": "0.5401955", "text": "private static String getName() {\n\t\tString name = Singleton.getUname();\n\t\tString tmp = \"\";\n\t\t\n\t\tfor (int i = 0; i < name.length(); i++) {\n\t\t\t\n\t\t\tif(name.charAt(i)!=' ')\n\t\t\t{\n\t\t\t\ttmp=tmp+name.charAt(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tmp;\n\t}", "title": "" }, { "docid": "f5c33cbd7c856a5620ff022f7d3a7445", "score": "0.539943", "text": "public String nameById(int num);", "title": "" }, { "docid": "1fbfe461b5a3b0985ea9488a29267a4a", "score": "0.5397206", "text": "public String getLoggeInCUsomerName (WebDriver driver)\n {\n WebElement custName = (new WebDriverWait(driver, 3))\n .until(ExpectedConditions.presenceOfElementLocated(By.name(\"profile\")));\n return custName.getText();\n }", "title": "" }, { "docid": "9ded5563879b9263c89b97f5212bafea", "score": "0.53892434", "text": "public static String GetName(){\n \t\tString name = \"Glucose\";\n \t\treturn name; \n \t}", "title": "" }, { "docid": "f99da0f7cdfb534a854dbbf209af6d63", "score": "0.53733057", "text": "public static String detectPerson(){\n String person = \"Horace Mann\"; // hardcoded-name\n return person;\n }", "title": "" }, { "docid": "60c1c096021935655d05a09371d8c65f", "score": "0.537094", "text": "static String takeName()\n {\n System.out.println(\"Enter the name of the student: \");\n String name = scan.next();\n return name;\n }", "title": "" }, { "docid": "e9bd2846b559b882ceb279d66f7805de", "score": "0.5369462", "text": "public String getUserProfileType() {\n return userProfileType;\n }", "title": "" }, { "docid": "2152395fc46de20fcf26d7001059c4b0", "score": "0.53680503", "text": "public String getString(String name);", "title": "" }, { "docid": "2521c26a1577eadd49d81f44b2d51c57", "score": "0.5365886", "text": "String getVarAsString(String name);", "title": "" }, { "docid": "13f5992dd40ac8eee08f1c2ad76fd70c", "score": "0.53651065", "text": "default String getString(String name) {\n return getStringForUser(name, getUserId());\n }", "title": "" }, { "docid": "e7e59be51bbbed6324dfeb4ba2f10ccf", "score": "0.53640103", "text": "private void setUserName(\n String value) {\n value.getClass();\n \n userName_ = value;\n }", "title": "" }, { "docid": "13035656d2716f19a6d059c8f29a9a46", "score": "0.5327557", "text": "String getAccountNo();", "title": "" }, { "docid": "edfccc0785acec0d767f316635767715", "score": "0.5314089", "text": "public static void main(String[] args) {\n\t\tRandom generator = new Random();\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tString first_name, last_name, user_name;\r\n\t\tint num;\r\n\t\t\r\n\t\tnum = generator.nextInt(90) + 10;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter your first name: \");\r\n\t\tfirst_name = scan.nextLine();\r\n\t\tSystem.out.println(\"Enter your last name: \");\r\n\t\tlast_name = scan.nextLine();\r\n\t\t\r\n\t\tuser_name = first_name.charAt(0) + last_name.substring(0, 5) + num;\r\n\t\t\r\n\t\tSystem.out.println(\"Username: \" + user_name);\r\n\t}", "title": "" }, { "docid": "f592cafd4270bbbcc67d42f75a01fcfb", "score": "0.529269", "text": "@Test\n\tpublic void testGetName_1()\n\t\tthrows Exception {\n\t\tProfileParameter fixture = new ProfileParameter(\"\", \"\", \"\", \"\", new ParameterRestriction(), new SubProfileParameter[] {}, \"\", \"\", new String[] {}, new String[] {});\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "title": "" }, { "docid": "93ac018603ce8b92953c6bc3bbbcb962", "score": "0.5291362", "text": "public static String empName(){\n String generatedString = RandomStringUtils.randomAlphabetic(5);\n return (\"Test_\" + generatedString);\n }", "title": "" }, { "docid": "e03d6589a97d0f871fd5e84442c83389", "score": "0.52909046", "text": "public void getUserName(){\n SharedPreferences getTheName = this.getSharedPreferences(\"UserPreferences\",Context.MODE_PRIVATE);\n userName = getTheName.getString(\"UserName\",null);\n }", "title": "" }, { "docid": "fa9cc6fad5c4254721adfb0ef3bffb41", "score": "0.5288413", "text": "void xsetProfileName(org.apache.xmlbeans.XmlString profileName);", "title": "" }, { "docid": "7f50c6570366361b0d136f785a562304", "score": "0.5286039", "text": "public String getFourCharName();", "title": "" }, { "docid": "ce64134087dfb4ee169f1b7d4466542b", "score": "0.5283774", "text": "public String getPlayerName(int player);", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.5281748", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.5281748", "text": "String getUserName();", "title": "" }, { "docid": "99d4aeca773c577ca14ed3e48eda3c51", "score": "0.5281748", "text": "String getUserName();", "title": "" }, { "docid": "b95a083d98b7d7c9a5b7680709846b35", "score": "0.5278773", "text": "private void getName() {\n\t\tSharedPreferences sp=getSharedPreferences(\"name\",MODE_PRIVATE);\n\t\tString id=sp.getString(\"uid\", null);\n\t\tif(id!=null){\n\t\t\teditText1.setText(id);\n\t\t}\t\t\n\t\t}", "title": "" }, { "docid": "c5d1d3b9eb73e30673d9ec6fc94c0f7c", "score": "0.5268592", "text": "public String getUserString(){\r\n return userString;\r\n }", "title": "" }, { "docid": "927ef71acc230c5b3c91fbb74645284c", "score": "0.5268536", "text": "String getName();", "title": "" }, { "docid": "f4d56adfcd7bdced6e98d966c5006a23", "score": "0.52678275", "text": "static String userName() {\n Scanner in = new Scanner(System.in);\n String firstName;\n String lastName;\n System.out.println(\"Please enter your name with space between first and last name\");\n firstName = in.next();\n lastName = in.next();\n return firstName+lastName;\n }", "title": "" }, { "docid": "4386f9d1d01c04e75eff632e80a2d17b", "score": "0.52629787", "text": "public String getNamaProf(){\n\t\tIntent i = getIntent();\n\t\tBundle b = i.getExtras();\n\t\tString nama = b.getString(\"namaProf\");\n\t\t\n\t\treturn nama;\n\t}", "title": "" }, { "docid": "6228e5ec72920e026b78e34496f97d96", "score": "0.5260272", "text": "public void setUserName(String value) {\r\n getPref().edit().putString(\"user_name\", value).commit();\r\n }", "title": "" }, { "docid": "5e94c4d3a61de79e54a5c90994d267ef", "score": "0.52543616", "text": "private void getProfile(){\n SharedPreferences sp = getSharedPreferences(ProfileActivity.PREF_PROFILE, Activity.MODE_PRIVATE);\n long profileId = sp.getLong(ProfileActivity.PREF_PROFILE_ID, -1);\n // Get Info from DB\n ContentValues values = mDbHelper.getProfile(profileId);\n if(values == null) return;\n // Info Allocation\n String name = values.getAsString(ProfileDbHelper.ProfileContract.ProfileEntry.COLUMN_NAME_NAME);\n String email = values.getAsString(ProfileDbHelper.ProfileContract.ProfileEntry.COLUMN_NAME_EMAIL);\n String phone = values.getAsString(ProfileDbHelper.ProfileContract.ProfileEntry.COLUMN_NAME_PHONE);\n // Set Info in UI\n nameTextView.setText(name);\n emailTextView.setText(email);\n }", "title": "" }, { "docid": "db5d23622b6000d30174f80b4cc02253", "score": "0.52405214", "text": "public String getName(){\n return(Username);\n }", "title": "" }, { "docid": "a93d2a4a8700d82a42afd3ba1ffcd556", "score": "0.5239505", "text": "private String getCurrentUser() {\n\t\treturn \"Fred\";\n\t}", "title": "" }, { "docid": "d0030cdcb80b22d27cf10bffa3e1f75b", "score": "0.5237543", "text": "String getVariable();", "title": "" }, { "docid": "d0030cdcb80b22d27cf10bffa3e1f75b", "score": "0.5237543", "text": "String getVariable();", "title": "" }, { "docid": "97ab50265c7232175e833f8cd4fc11ed", "score": "0.52327347", "text": "public String namn()\r\n\t{\r\n\t\tString n = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tn = streamIn.readUTF().toString();\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(n.equals(\"\"))\r\n\t\t{\r\n\t\t\tn = \"TheStig\";\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "title": "" }, { "docid": "060c60c998d392188518060d983c9858", "score": "0.5221023", "text": "private UserProfileType(String userProfileType) {\n this.userProfileType = userProfileType;\n }", "title": "" }, { "docid": "6d9304f6ff0e59266f4bdd788a7f13bb", "score": "0.5208731", "text": "String get_name(String hash);", "title": "" }, { "docid": "efd533c60bfa0c7b784f8bd15e324109", "score": "0.5208594", "text": "public static String getName() {\r\n\t\tif(name != null)\r\n\t\t return name;\r\n\t\telse\r\n\t\t\treturn \"FAIL\";\r\n\t}", "title": "" }, { "docid": "dc28dd2f692d5be0e64f821c3a8f7c80", "score": "0.5207653", "text": "public static String getUsernameString() {\n \t\treturn ParseUser.getCurrentUser().getUsername();\n \t}", "title": "" }, { "docid": "00c2bc9ed869ec13d556ad3c3388688a", "score": "0.52044016", "text": "Variable getVarname();", "title": "" }, { "docid": "67be126d78493a95e1165e35b2f58486", "score": "0.5200367", "text": "String getStringValue();", "title": "" }, { "docid": "67be126d78493a95e1165e35b2f58486", "score": "0.5200367", "text": "String getStringValue();", "title": "" }, { "docid": "cf24181853c9817db113cc75f56eb903", "score": "0.5196064", "text": "public String getUser_name() {\r\n return user_name;\r\n }", "title": "" }, { "docid": "3317e6a7173adb7d84045c5eb09c700a", "score": "0.5193012", "text": "public static void stringMethod (String name){\r\n //prints the \"name\" variable to console\r\n System.out.println(name);\r\n}", "title": "" }, { "docid": "0e74d58ff4e140ae4fa1ec0af4085a6b", "score": "0.51912475", "text": "public String getName(){\n return name; //Regresa el contenido de la variable name\r\n }", "title": "" }, { "docid": "ceae142c3371df528e5ef8c727ffd37e", "score": "0.51907134", "text": "private void setCharacter_name() {\n TextView character_name = findViewById(R.id.profileName);\n character_name.setText(player.getName());\n }", "title": "" }, { "docid": "fded4d2a6257fc56079a5c883f69733c", "score": "0.518943", "text": "String getPlayerName();", "title": "" }, { "docid": "53653d91ecaf6474cb343334b5c1399f", "score": "0.5183447", "text": "public String getStringName() {\n/* 161 */ return this.stringName;\n/* */ }", "title": "" }, { "docid": "5bc64099cffec27509d6dfda7d21d742", "score": "0.51818246", "text": "String getVari();", "title": "" }, { "docid": "1bcabc174b611eae9c8662cca5c639ec", "score": "0.5174395", "text": "public static void main(String[] args) {\nString name=\"Nurdan\";\r\nint count=name.length();\r\nSystem.out.println(name.length()-1);\r\n\r\n\t\t\r\n\tSystem.out.println(name.substring(0,2));\t\r\n\tSystem.out.println(name.substring(3,6));\t\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "8c4c59d3aa2e92f074f6476e18d9df87", "score": "0.5171755", "text": "public String profileFieldName() {\n return this.profileFieldName;\n }", "title": "" }, { "docid": "bb2fd96bff9422ac9a50332e51a56024", "score": "0.51717293", "text": "java.lang.String getProfilePicture();", "title": "" }, { "docid": "4c9ff3fb24f681d9dfc97fb9f5a05043", "score": "0.51653737", "text": "private String getUserName()\r\n {\r\n StringBuffer res = new StringBuffer( 4 );\r\n for( int i = 0; i < 4; i++ )\r\n res.append( INPUT_LETTERS[ this.userNameIndexes[ i ] ] );\r\n\r\n return res.toString();\r\n }", "title": "" }, { "docid": "1a1e7cfa2e2a4714f2ba71cfb843cd14", "score": "0.51605195", "text": "public String getAccountID()\r\n {\r\n String s;\r\n\r\n s = \"HA-\"+getAccountNumber();\r\n\r\n return s;\r\n }", "title": "" }, { "docid": "99b6c503f446b2ea7cf3525619c5f54b", "score": "0.5160388", "text": "public static void main(String[] args) {\n\tString pickName = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\n\tString A=pickName.substring(0, 1);\n\tString L=pickName.substring(11, 12);\n\tString i=pickName.substring(8,9).toLowerCase();\n\tSystem.out.println(A+\" \"+L+\" \"+i);\n}", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.5158632", "text": "String getUsername();", "title": "" }, { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.5158632", "text": "String getUsername();", "title": "" } ]
bbff55d16eb36df8db843cdb7908143f
Creates an iterator that traverses all values in this dictionary.
[ { "docid": "38d0c12e9ce9b5ad886a559c11c366d8", "score": "0.670539", "text": "public Iterator<String> getValueIterator()\n {\n return values.iterator(); \n }", "title": "" } ]
[ { "docid": "8db422ae661765b3cccddc3c5a1b622c", "score": "0.74264544", "text": "public Iterator<V> valuesIterator() {\n return new CompactHashMap<K, V>.Itr<V>() {\n /* access modifiers changed from: package-private */\n public V getOutput(int i) {\n return CompactHashMap.this.values[i];\n }\n };\n }", "title": "" }, { "docid": "53fbb6c6c1f8f548a541a5d411b02db6", "score": "0.7133363", "text": "@Override\n public Iterator<String> iterator() {\n return this.values.iterator();\n }", "title": "" }, { "docid": "96703029e5e1bb6c05b9423342d3358f", "score": "0.68985283", "text": "@Override\n public Iterator<V> getValueIterator()\n {\n return _map.values().iterator();\n }", "title": "" }, { "docid": "32d3627ce4991bea61c7c271cfc5ad96", "score": "0.68286645", "text": "public Iterator<V> createValuesIterator() {\n if (size() == 0) {\n return EmptyIterator.emptyIterator();\n }\n return new ValuesIterator(this);\n }", "title": "" }, { "docid": "2942b48fdae0635b6e1529f37c3f2a7f", "score": "0.67701286", "text": "@Override\n public Iterator<Customer> iterator() {\n \treturn map.values().iterator();\n }", "title": "" }, { "docid": "c9001f26d60738dfccdfe9fbca678e56", "score": "0.6721555", "text": "public Iterator<V> values();", "title": "" }, { "docid": "ed36f9e55afbde47405b83a64b0dad2b", "score": "0.67096573", "text": "@Override\n public Iterator<V> iterator() {\n return new ValueIterator(firstEntry());\n }", "title": "" }, { "docid": "72cdf5cf15ab6da0b7868f2582352e25", "score": "0.66216695", "text": "@Override\n public Iterator<ODataProperty> iterator() {\n return fields.values().iterator();\n }", "title": "" }, { "docid": "f501bea591b12f2d89a0e72b27783eea", "score": "0.66148794", "text": "@Override\n public Iterator<E> iterator() {\n return map.keySet().iterator();\n }", "title": "" }, { "docid": "7975f73662041f97b936fe5770d19a80", "score": "0.66014946", "text": "@Override\n\tpublic Iterator<E> iterator() {\n//\t\treturn new Sequentializer<E>(\n//\t\t\tnew Mapper<List<E>, Iterator<E>>(\n//\t\t\t\tnew AbstractFunction<List<E>, Iterator<E>>() {\n//\t\t\t\t\tpublic Iterator<E> invoke(List<E> bucket) {\n//\t\t\t\t\t\treturn bucket.iterator();\n//\t\t\t\t\t}\n//\t\t\t\t},\n//\t\t\t\thashTable.values().iterator()\n//\t\t\t)\n//\t\t);\n\t\t\n\t\treturn new AbstractCursor<E>() {\n\t\t\tprotected Iterator<E> it = null;\n\t\t\tprotected Iterator<List<E>> buckets = hashTable.values().iterator();\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNextObject() {\n\t\t\t\tif (it != null && it.hasNext())\n\t\t\t\t\treturn true;\n\t\t\t\tif (it != null && !it.hasNext())\n\t\t\t\t\tit = null;\n\t\t\t\twhile (it == null && buckets.hasNext()) {\n\t\t\t\t\tit = buckets.next().iterator();\n\t\t\t\t\tif (it.hasNext())\n\t\t\t\t\t\treturn true;\n\t\t\t\t\telse it = null;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\n\t\t\t@Override\n\t\t\tpublic E nextObject() {\n\t\t\t\treturn it.next();\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t};\n\t}", "title": "" }, { "docid": "71894c7f78af01084365dc7f7df2ffd7", "score": "0.65654373", "text": "@Override\n\t@ServerSide\n\t@BrowserCompatibility(\"none\")\n\tpublic Iterator<String> iterator() {\n\t\t// Extract from the ECMA-262 specification: chapter 12.6.4 The for-in Statement\n\t\t//\n\t\t// The mechanics and order of enumerating the properties is not specified. Properties of the object being\n\t\t// enumerated may be deleted during enumeration. If a property that has not yet been visited during\n\t\t// enumeration is deleted, then it will not be visited. If new properties are added to the object being\n\t\t// enumerated during enumeration, the newly added properties are not guaranteed to be visited in the active\n\t\t// enumeration. A property name must not be visited more than once in any enumeration.\n\n\t\treturn new Iterator<String>() {\n\t\t\tprivate Iterator<Entry<V>> arrayIter = entryIterator(0, $length(), true);\n\t\t\tprivate Iterator<String> nonArrayIter = nonArrayElements.keySet().iterator();\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn arrayIter.hasNext() || nonArrayIter.hasNext();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String next() {\n\t\t\t\tif (arrayIter.hasNext()) {\n\t\t\t\t\tEntry<V> nextEntry = arrayIter.next();\n\t\t\t\t\treturn Long.toString(nextEntry.key);\n\t\t\t\t}\n\t\t\t\treturn nonArrayIter.next();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "9b7613476bdefb21b6d281756742fdae", "score": "0.65342176", "text": "@Override\n public Iterator<KVPair<K, V>> iterator() {\n return new ChainedIterator<>(this.chains);\n }", "title": "" }, { "docid": "9b7613476bdefb21b6d281756742fdae", "score": "0.65342176", "text": "@Override\n public Iterator<KVPair<K, V>> iterator() {\n return new ChainedIterator<>(this.chains);\n }", "title": "" }, { "docid": "4b8a176fc27b4c413f1f4651cc99f303", "score": "0.65205455", "text": "@Override\n public Iterator<V> iterator() {\n return new EdgeListIterator(values, vertexes);\n }", "title": "" }, { "docid": "cf0dc609ae5d7e3ee139b029b56e6fd6", "score": "0.65080106", "text": "Iterator<Entry<K, V>> iterator() throws Exception;", "title": "" }, { "docid": "001ab791822773a8a42756215e7cba12", "score": "0.65040517", "text": "@Override\n public Iterator<Route> iterator() {\n return routeMap.values().iterator();\n }", "title": "" }, { "docid": "8e936fbcf2d81bd8761cc8f01b4dfb5d", "score": "0.6485591", "text": "@Override\n public Iterator<Song> iterator() {\n return aItems.values().iterator();\n }", "title": "" }, { "docid": "71bc91042f12888686c5a220c7dafd9a", "score": "0.647645", "text": "public synchronized Iterator<IEdge<T,U>> iterator()\r\n {\r\n return edgeMap.values().iterator();\r\n }", "title": "" }, { "docid": "3b0c624ef3e6ba8adc87a7b188276c73", "score": "0.6474227", "text": "public MapLoopIterator(Map<String,Value> map){\n\t\titer = map.keySet().iterator();\n\t}", "title": "" }, { "docid": "010056674156987ad235ceb6f592679b", "score": "0.6453902", "text": "@Override\n public Iterator<V> values() {\n return new Iterator<V>() {\n Iterator<SLNode<K, V>> nit = SkipList.this.nodes();\n\n @Override\n public boolean hasNext() {\n return nit.hasNext();\n } // hasNext()\n\n @Override\n public V next() {\n return nit.next().value;\n } // next()\n\n @Override\n public void remove() {\n nit.remove();\n } // remove()\n };\n }", "title": "" }, { "docid": "2a6da3fc5da158fe95a8ac73308b53cf", "score": "0.6434731", "text": "@Override\n public Iterator<E> iterator() {\n return new ArrayIterator<E>(values);\n }", "title": "" }, { "docid": "8de3d0f5769995fe113a26da21a8e511", "score": "0.640456", "text": "public Iterator<K> iterator() {\n\t\treturn new HashMapIterator();\n\t}", "title": "" }, { "docid": "b23689afb89798e8e32d1f91305a6263", "score": "0.6339464", "text": "@Override\n public Iterator<Map.Entry<String, Object>> iterator() {\n return metadata.entrySet().iterator();\n }", "title": "" }, { "docid": "8134ffb4a6a5737028bbdb6c2f631f3c", "score": "0.6299747", "text": "@Override\n public Iterator<Map.Entry<K,V>> iterator() {\n return new EntryIterator(firstEntry());\n }", "title": "" }, { "docid": "1980044b4574165d6ef7e581b552d884", "score": "0.62362653", "text": "@Override\n\tpublic Iterator<K> iterator()\n\t{\n\t\treturn new BSTDictionaryIterator<K>( this.root );\n\t}", "title": "" }, { "docid": "ca3e9a00f1af34ba650499081378c93a", "score": "0.62269807", "text": "@Override\n public Iterator<SAXRecord> iterator() {\n return this.records.values().iterator();\n }", "title": "" }, { "docid": "17d603f4d9ea5e8427eab1707e1f9a36", "score": "0.62043464", "text": "public Iterator<Map.Entry<String, JPropNode>> objectContents() {\n if (_byName == null) { // only value, most likely\n return Collections.emptyIterator();\n }\n return _byName.entrySet().iterator();\n }", "title": "" }, { "docid": "447706a092b922a3a1c8527859f2b6f3", "score": "0.61975956", "text": "public \n Iterable<VALUEIN> getValues() throws IOException, InterruptedException {\n return iterable;\n }", "title": "" }, { "docid": "4e092c532d50c94e3ff77999ad295652", "score": "0.6190006", "text": "public jl<Entry<K, V>> iterator() {\n return this.a.h();\n }", "title": "" }, { "docid": "b105298cf6cf829b52d1d8b8315500a7", "score": "0.6152093", "text": "public Iterator<Vertex> iterator() {\n return this.vertices.values().iterator();\n }", "title": "" }, { "docid": "cc8476d5ba557ae858f4df1f7b7b6209", "score": "0.6150828", "text": "public ValueCollectionIterator() {\n\n current_entry = -1;\n next_ok = false;\n\n }", "title": "" }, { "docid": "033a3980278f265059137d10150b7c02", "score": "0.6117543", "text": "Iter(){}", "title": "" }, { "docid": "f91a5506e1d8e9bf03232041bcee50b9", "score": "0.6116479", "text": "@HasNoSideEffects\n @Nonnull\n public native JsIteratorIterable<T> values();", "title": "" }, { "docid": "e31ac4b759e485564c9913bbad9ac0b5", "score": "0.611425", "text": "public synchronized Iterable<T> values() {\n\t\t\t/* Only create Iterable when needed */\n\t\t\tif (this.valuesIterable == null) {\n\t\t\t\tthis.valuesIterable = new ValuesIterable();\n\t\t\t}\n\t\t\treturn this.valuesIterable;\n\t\t}", "title": "" }, { "docid": "d7113329eb0216ca5cf021c3072836a7", "score": "0.6112306", "text": "public Iterator<List<SubscriptionHistory>> iterator() {\n final Iterator<Long> i = getSubscriptionKeys().iterator();\n return new Iterator<List<SubscriptionHistory>>() {\n\n public boolean hasNext() {\n return i.hasNext();\n }\n\n public List<SubscriptionHistory> next() {\n return getSubscriptionHistoryEntries(i.next().longValue());\n }\n\n public void remove() {\n throw new NotImplementedException();\n }\n };\n }", "title": "" }, { "docid": "7bf6be6cc16acbbca9d7d24e865f1b0b", "score": "0.6101065", "text": "public Iterator<? extends FTPFSEntry> iterator() throws IOException {\n ensureEntries();\n return entries.values().iterator();\n }", "title": "" }, { "docid": "fb6a07dc19982dbed2ef29964ff4f65b", "score": "0.60819465", "text": "public Iterator<T> propertyIterator();", "title": "" }, { "docid": "c9c97119b87338b7cf987bf42d17196f", "score": "0.6060783", "text": "Iterable<V> values();", "title": "" }, { "docid": "94d3c0ba8bb24da6fc74a8b83c889916", "score": "0.60540694", "text": "@Override\r\n\tpublic Iterator<String> iterator() {\r\n\t\tIterator<String> itr = hs.iterator();\r\n\t\treturn itr;\r\n\t}", "title": "" }, { "docid": "cd1110fb169ade98f3350604fbbd0e1f", "score": "0.60300475", "text": "public Iterator iterator() {\n\t\tViaje actual = primero;\n\t\tCollection lista = new ArrayList<>();\n\t\twhile(actual.darSiguiente() != null)\n\t\t{\n\t\t\tlista.add(actual);\n\t\t\tactual = actual.darSiguiente();\n\t\t}\n\t\treturn lista.iterator();\n\t}", "title": "" }, { "docid": "789f0245b1f5799bde9f1aa9f0732a1d", "score": "0.598842", "text": "public Iterator<Map.Entry<K, V>> entrySetIterator() {\n return new CompactHashMap<K, V>.Itr<Map.Entry<K, V>>() {\n /* access modifiers changed from: package-private */\n public Map.Entry<K, V> getOutput(int i) {\n return new MapEntry(i);\n }\n };\n }", "title": "" }, { "docid": "00fc5c5eda2d23834a9ad6093bc22e56", "score": "0.59701407", "text": "AIterator<V> valuesIterator (AOption<K> from, boolean fromInclusive, AOption<K> to, boolean toInclusive);", "title": "" }, { "docid": "f8fc140d723f888a989f42d9d531e51e", "score": "0.5940777", "text": "public Enumeration elements() {\n return new ValueIterator();\n }", "title": "" }, { "docid": "4fa866fa01a3a1e1699b2c5f4d6c6174", "score": "0.59242827", "text": "public Iterator iterator() {\n return entryList().iterator();\n }", "title": "" }, { "docid": "2046883f971da9b418a6a47802044b3c", "score": "0.5911898", "text": "public Iterator<Record> getValues() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ac11a15a65c51ee398606c7e541be84b", "score": "0.590855", "text": "@Override\n\tpublic Iterator<T> iterator() {\n\t\tIterator<T> iterator = new Iterator<T>() {\n\t\t\tprivate int level = 0;\n\t\t\tprivate Node<T> cur = head/*.getNext(level)*/;\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (cur.getNext(level) != null) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tcur = cur.getNext(level);\n\t\t\t\treturn cur.getValue();\n\t\t\t}\n\t\t};\n\t\treturn iterator;\n\t}", "title": "" }, { "docid": "3c059542037f96a626f357b030404448", "score": "0.59037644", "text": "public Iterator values() {\n return null;\n }", "title": "" }, { "docid": "e3ee5e7324ba6d39f4c368fc2419e7bb", "score": "0.5894506", "text": "public Iterator<K> keyIterator() {\n ArrayList<K> keys = new ArrayList<K>();\n for (int i = 0; i < buckets.size(); i++) {\n for (Cell cp = buckets.get(i); cp != null; cp = cp.link) {\n keys.add(cp.key);\n }\n }\n return keys.iterator();\n }", "title": "" }, { "docid": "2df070f3c9b2b0a8272ffdecfae87d0a", "score": "0.58691084", "text": "public DbIterator iterator() {\n // some code goes here\n //throw new UnsupportedOperationException(\"please implement me for proj2\");\n TupleDesc td = makeTupleDesc();\n ArrayList<Tuple> res = new ArrayList<Tuple>();\n\n for (Integer key : inthash.keySet()) {\n Tuple t = new Tuple(td);\n int val = inthash.get(key);\n\n IntField gb = new IntField(key);\n IntField a = new IntField(val);\n\n if (hasGrouping()) {\n t.setField(0, gb);\n t.setField(1, a);\n } else {\n t.setField(0, a);\n }\n res.add(t);\n }\n for (String key : strhash.keySet()) {\n Tuple t = new Tuple(td);\n int val = strhash.get(key);\n\n StringField gb = new StringField(key, Type.STRING_LEN);\n IntField a = new IntField(val);\n if (hasGrouping()) {\n t.setField(0, gb);\n t.setField(1, a);\n } else {\n t.setField(0, a);\n }\n res.add(t);\n }\n return new TupleIterator(td, res);\n }", "title": "" }, { "docid": "c1f0803c07a0aec61b8888d8eb15b279", "score": "0.58579856", "text": "public Iterator<Map.Entry<K, V>> b() {\n final Iterator<Map.Entry<K, V>> it = this.delegate.entrySet().iterator();\n return new Iterator<Map.Entry<K, V>>() {\n Map.Entry<K, V> a;\n\n public boolean hasNext() {\n return it.hasNext();\n }\n\n public Map.Entry<K, V> next() {\n this.a = (Map.Entry) it.next();\n return new BiMapEntry(this.a);\n }\n\n public void remove() {\n CollectPreconditions.a(this.a != null);\n V value = this.a.getValue();\n it.remove();\n AbstractBiMap.this.removeFromInverseMap(value);\n }\n };\n }", "title": "" }, { "docid": "889c59d6866bfe6e372e802aed82b3f7", "score": "0.5850418", "text": "public Iterator<Key> iterator() {\r\n return set.iterator();\r\n }", "title": "" }, { "docid": "4f7e010dc084c03e98fb57cd20d9d8b5", "score": "0.5842365", "text": "public Iterator iterator();", "title": "" }, { "docid": "03ff96c78226777c15315762823549dd", "score": "0.5831654", "text": "@Override\n public Iterator<K> iterator() {\n if (m instanceof MyTreeMap)\n return ((MyTreeMap<K,?>)m).keyIterator();\n else\n return ((MyTreeMap.NavigableSubMap<K,?>)m).keyIterator();\n }", "title": "" }, { "docid": "4bd04c05dba3cf4c2009c227ee4ee275", "score": "0.58212227", "text": "Iterable<V> values() throws Exception;", "title": "" }, { "docid": "df759cd57a7211f69a55c991f8095ef4", "score": "0.581713", "text": "public Iterator<E> iterator()\n {\n return root.iterator();\n }", "title": "" }, { "docid": "24bae8ed26b58de2b545e78e45095ae7", "score": "0.58009315", "text": "Iterator iterator();", "title": "" }, { "docid": "24bae8ed26b58de2b545e78e45095ae7", "score": "0.58009315", "text": "Iterator iterator();", "title": "" }, { "docid": "75b4feb928fa886d4246a36e33b26f66", "score": "0.5793595", "text": "public Enumerator(Map map) {\n\n this(map.values().iterator());\n\n }", "title": "" }, { "docid": "18e1ab538a974cdb1d89e8fa61600e0f", "score": "0.5774581", "text": "@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Iterator<Node<E>> iter = baseSet.iterator();\n\t\t\tprivate Node<E> lastReturned = null;\n\t\t\tpublic boolean hasNext(){\n\t\t\t\treturn iter.hasNext();\n\t\t\t}\n\t\t\t\n\t\t\tpublic E next(){\n\t\t\t\tlastReturned = iter.next();\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tE elem = (E) lastReturned.element; //this cast won't fail\n\t\t\t\treturn elem;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void remove(){\n\t\t\t\tif (lastReturned == null)\n\t\t\t\t\tthrow new IllegalStateException();\n\t\t\t\tNode<E> previous = lastReturned.previousNode;\n\t\t\t\tNode<E> next = lastReturned.nextNode;\n\t\t\t\tif (previous == null)\n\t\t\t\t\thead = next;\n\t\t\t\telse\n\t\t\t\t\tprevious.setNextNode(next);\n\t\t\t\tif (next == null)\n\t\t\t\t\ttail = previous;\n\t\t\t\telse\n\t\t\t\t\tnext.setPreviousNode(previous);\n\t\t\t\titer.remove();\n\t\t\t\tlastReturned = null;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "733abfcacfece120b580c39a5f25d145", "score": "0.576923", "text": "@Override Iterator<String> iterator();", "title": "" }, { "docid": "7e7ddbe6d3e99c351ca06923aaef13be", "score": "0.5765493", "text": "protected abstract HashesIterator values(long bucketOrd);", "title": "" }, { "docid": "090ba209f9c6f7b447b235c220f9703c", "score": "0.576251", "text": "@Override\n public Iterator<Key> iterator() {\n return new HeapIterator();\n }", "title": "" }, { "docid": "cb91f2a4a220be5c516e559d5ae308ab", "score": "0.57546777", "text": "public Iterator iterator() {\r\n\t\t// Perhaps should check the result and return\r\n\t\t// an empty set if it returns false\r\n\t\teval();\r\n\r\n\t\tswitch (collection) {\r\n\t\tcase CollectionEnum.SOURCES:\r\n\t\t\treturn sourceSet.values().iterator();\r\n\t\tcase CollectionEnum.TARGETS:\r\n\t\t\treturn targetSet.values().iterator();\r\n\t\tcase CollectionEnum.ALLSOURCES:\r\n\t\t\treturn allSourceSet.values().iterator();\r\n\t\tcase CollectionEnum.ALLTARGETS:\r\n\t\t\treturn allTargetSet.values().iterator();\r\n\t\tdefault:\r\n\t\t\treturn sourceSet.values().iterator();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9cf3d864203fbd464468b92d02c365f5", "score": "0.57541126", "text": "public Iterator<Object> iterator();", "title": "" }, { "docid": "ffc195dc780d74dd3d8aa194ec5a3611", "score": "0.5753002", "text": "Iterable<Entry<K, V>> entries() throws Exception;", "title": "" }, { "docid": "27a107f480d5f5f44da374f4017984ee", "score": "0.5742428", "text": "public DbIterator iterator() {\n // some code goes here\n return new TupleIterator(tupleDesc, ans.values());\n }", "title": "" }, { "docid": "390ea23493c530b314bd858acd52cbd4", "score": "0.573978", "text": "@Override\n\tpublic Iterator<key> iterator() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ad01f90e07e5e1a6ea0e610abc67a399", "score": "0.57379735", "text": "public Iterator iterateSubExpressions() {\n Expression[] e = {value, min, max};\n return Arrays.asList(e).iterator();\n }", "title": "" }, { "docid": "7c7288565e21f3dcf548fbf3305f4cac", "score": "0.573574", "text": "public Iterator<E> iterator() {\n\n return new Iterator<E>() {\n\n private Node<E> current = head;\n\n @Override\n public boolean hasNext() {\n return current != null;\n }\n\n @Override\n public E next() {\n E result = null;\n if (current != null) {\n result = current.data;\n current = current.next;\n }\n return result;\n }\n };\n }", "title": "" }, { "docid": "6b7028061234eccfe407059c0a377e31", "score": "0.57338625", "text": "public Iterator<Locale> getKeys() {\n\t\treturn values.keySet().iterator();\n\t}", "title": "" }, { "docid": "de90a0bd17fc864451006e13c8838919", "score": "0.573318", "text": "public Iterator<OptionSchema> iterator() {\n return options.values().iterator();\n }", "title": "" }, { "docid": "5be86a8b60b576aa15e03f356f379336", "score": "0.5715975", "text": "@Override\n public Iterator<String> iterator() {\n return new Itr();\n }", "title": "" }, { "docid": "44b04379a4fbfaeda90646f55795fd57", "score": "0.57093436", "text": "public Iterator<Procedure> iterator(){\n\tCollection col = hashtab.values();\n\treturn col.iterator();\n }", "title": "" }, { "docid": "5029fe12e24979f95ee4484785034c55", "score": "0.5706392", "text": "public Iterator<IndexTreeNode<K, List<V>>> iterator() {\n\t\treturn new IndexTreeIterator<K, List<V>>(root);\n\t}", "title": "" }, { "docid": "2d331cab04e6197de0f635979dc30d2a", "score": "0.569423", "text": "public java.util.Iterator<T> iterator();", "title": "" }, { "docid": "e64451ede667f16cc1ba098c6d5fba09", "score": "0.5692084", "text": "abstract Iterator<K> descendingKeyIterator();", "title": "" }, { "docid": "3f2b9b468275170bcc23e3e2a3926d70", "score": "0.5686575", "text": "Iterator getFieldList()\r\n\t\t{\r\n\t\t\treturn nameToValue.keySet().iterator();\r\n\t\t}", "title": "" }, { "docid": "6eee301971a8524b7e4f29b813e0a443", "score": "0.56787354", "text": "public Iterator<K> iterator() {\n\t\treturn new InorderIterator();\n\t}", "title": "" }, { "docid": "c21e16d6ca74afc663cb3161ca77eddf", "score": "0.56766295", "text": "public Iterator iterateSubExpressions() \n {\n ArrayList<Expression> list = new ArrayList<Expression>(attribs.size() + 1);\n for (Expression exp : attribs.values())\n list.add(exp);\n if (content != null) {\n list.add(content);\n }\n return list.iterator();\n }", "title": "" }, { "docid": "74190500ba760c55002489aa82064b6f", "score": "0.56765777", "text": "public Iterator<V> iterator() {\t\r\n\t\treturn new ArrayIterator();\r\n\t}", "title": "" }, { "docid": "def976bf4ddc02ce1de4b0b74b4ff84b", "score": "0.5671583", "text": "public Iterator<Key> iterator() {\r\n return new HeapIterator();\r\n }", "title": "" }, { "docid": "c074478d33a81927a46c1feda117de02", "score": "0.5667932", "text": "@Override\r\n\tpublic Iterator<DiaryList> iterator() {\n\t\treturn tree.iterator();\r\n\t}", "title": "" }, { "docid": "65e881695af3aa36e963994c4488e819", "score": "0.566792", "text": "public Iterator<Attribute> iterator(){\n\t\treturn this.data.iterator();\n\t}", "title": "" }, { "docid": "5b5607ff49ba06e68c22d7929ccf436d", "score": "0.5666994", "text": "public ReleasableIterator<T> iterate() {\n\t\treturn iterate(\"\");\n\t}", "title": "" }, { "docid": "9d519746faeaf47ab3bc4868aece2009", "score": "0.56451833", "text": "public Iterator<String> iterator() {\n\t\treturn data.iterator();\n\t}", "title": "" }, { "docid": "1f5f2cb5ad1dfd779e176076f8cfa16c", "score": "0.5643408", "text": "public Iterator<V> valueIterator(K name)\r\n/* 473: */ {\r\n/* 474:492 */ List<V> empty = Collections.emptyList();\r\n/* 475:493 */ return empty.iterator();\r\n/* 476: */ }", "title": "" }, { "docid": "8f35e1ef469a260ef517b80de9ede136", "score": "0.5634243", "text": "@Override\n\tpublic Traversal iterate() {\n return (Traversal) this.fill(new ArrayList<>()).iterator().next();\n\t}", "title": "" }, { "docid": "f6c22296dab7a3cfe6348eda7a4f09ed", "score": "0.56149065", "text": "public UnfailingIterator<T> iterate() {\n return SingletonIterator.makeIterator(item); // handles null properly\n }", "title": "" }, { "docid": "8c0a279da9bc0f2abde2494679b61411", "score": "0.56116694", "text": "public HashIterator()\n\t\t{\n\n\t\t\t// ADD YOUR CODE BELOW HERE\n\n\t\t\tallEntries = new HashLinkedList<K,V>();\n\n\t\t\t//iterates through the lists in buckets and adds each node to allEntries\n\t\t\tfor (int i = 0; i < numBuckets; i++) {\n\n\t\t\t\tHashNode<K,V> node = buckets.get(i).getHead();\n\n\t\t\t\twhile (node != null) {\n\t\t\t\t\tallEntries.add(node.getKey(), node.getValue());\n\t\t\t\t\tnode = node.getNext();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// ADD YOUR CODE ABOVE HERE\n\n\t\t}", "title": "" }, { "docid": "f51ecd9fa99cd4c5364a79292c6f2942", "score": "0.5605994", "text": "public Iterator<T> iterator();", "title": "" }, { "docid": "f51ecd9fa99cd4c5364a79292c6f2942", "score": "0.5605994", "text": "public Iterator<T> iterator();", "title": "" }, { "docid": "f51ecd9fa99cd4c5364a79292c6f2942", "score": "0.5605994", "text": "public Iterator<T> iterator();", "title": "" }, { "docid": "336498058ca7e32eb81c552803aeb74a", "score": "0.5605984", "text": "public Iterator<Map.Entry<K, V>> iterator()\r\n/* 479: */ {\r\n/* 480:498 */ List<Map.Entry<K, V>> empty = Collections.emptyList();\r\n/* 481:499 */ return empty.iterator();\r\n/* 482: */ }", "title": "" }, { "docid": "b0410f7ef0b18fd60f04c0fda82ec454", "score": "0.56058675", "text": "public Iterator<? extends Object> entries(PropertyKey listKey);", "title": "" }, { "docid": "d3dab9f9465dec26b560eee8e6a7c4fb", "score": "0.5605759", "text": "@Override\n public Iterator<T> iterator() {\n return new TreeIterator(this);\n }", "title": "" }, { "docid": "9a932ca376740932df0740939a6112e1", "score": "0.5603889", "text": "public Iterator<String> iterator(){\n\tArrayList<String> iter=this.toList();\n\treturn iter.iterator();\n }", "title": "" }, { "docid": "98141521c99aa06a51f5759eb97fbe03", "score": "0.5600876", "text": "@Override\n public Map.Entry<K, V> next() {\n return nextEntry();\n }", "title": "" }, { "docid": "14dba744515bbff40202be17f9df43c8", "score": "0.559049", "text": "public MyHashTable<K, V>.HashIterator iterator(){\n\t\treturn new HashIterator();\n\t}", "title": "" }, { "docid": "9e1aa7ce6114d23a8ff6ec143c49507b", "score": "0.5589355", "text": "public Iterator<K> getKeyIterator()\n {\n return keys.iterator(); \n }", "title": "" }, { "docid": "ed4fed67fd76e1d78b4c37e5547641f9", "score": "0.5582547", "text": "public Iterator<Entry<K, V>> createEntrySetIterator() {\n if (size() == 0) {\n return EmptyIterator.emptyIterator();\n }\n return new EntrySetIterator(this);\n }", "title": "" } ]
b95c719fa14286b2fc2d8df5e1a2170a
/ Static method for generating a linked list from an RNA sequence
[ { "docid": "d532db212b4408fa4705618637433e24", "score": "0.694067", "text": "public static AminoAcidLL createFromRNASequence(String inSequence){\n\n // Creating a boolean variable and setting it to true to signify if we reach a 'STOP' node\n boolean ifStop = true;\n\n // Creating a head node\n AminoAcidLL head = new AminoAcidLL(inSequence.substring(0,3));\n\n // Saving our head to tempHead variable for future usage\n tempHead = head;\n\n // If inSequence is equal a '*' meaning 'STOP,' don't go into loop\n if(inSequence.substring(0, 3).charAt(0) == '*') {\n\n // Adding codons..\n head.addCodon(inSequence.substring(0,3));\n ifStop = false;\n\n // Adding codons...\n } else{\n head.addCodon(inSequence.substring(0, 3));\n }\n\n // Loop to go through the entire inSequence string and add the codon accordingly\n for(int i = 3; i < inSequence.length() - 2 && ifStop; i += 3) {\n\n // If inSequence is equal a '*' meaning 'STOP,' exit loop\n if(inSequence.charAt(i) == '*') {\n\n // Adding to the linked list\n head.addCodon(inSequence.substring(i, i + 3));\n ifStop = false;\n\n // Else add codon at head for the next three characters in the inSequence string\n }else{\n head.addCodon(inSequence.substring(i, i + 3));\n }\n }\n return head;\n }", "title": "" } ]
[ { "docid": "a8e35ddf4ae364d8d5143a54dcc840fd", "score": "0.68451643", "text": "public void makeSeq() {\n\t\t// start with an array of 1..28 for easy randomizing\n\t\tint[] seqValues = new int[28];\n\t\t// assign values from 1 to 28\n\t\tfor (int i=0; i < seqValues.length; i++) {\n\t\t\tseqValues[i] = i+1;\n\t\t}\n\n\t\t// randomize the numbers\n\t\tRandom randgen = new Random();\n\t\tfor (int i = 0; i < seqValues.length; i++) {\n\t\t\tint other = randgen.nextInt(28);\n\t\t\tint temp = seqValues[i];\n\t\t\tseqValues[i] = seqValues[other];\n\t\t\tseqValues[other] = temp;\n\t\t}\n\n\t\t// create a circular linked list from this sequence and make seqRear point to its last node\n\t\tSeqNode sn = new SeqNode();\n\t\tsn.seqValue = seqValues[0];\n\t\tsn.next = sn;\n\t\tseqRear = sn;\n\t\tfor (int i=1; i < seqValues.length; i++) {\n\t\t\tsn = new SeqNode();\n\t\t\tsn.seqValue = seqValues[i];\n\t\t\tsn.next = seqRear.next;\n\t\t\tseqRear.next = sn;\n\t\t\tseqRear = sn;\n\t\t}\n\t}", "title": "" }, { "docid": "cf6cfb6f450d1ea77362f78f134cd154", "score": "0.6654328", "text": "public static AminoAcidLL createFromRNASequence(String inSequence){\n AminoAcidLL list = null; // ........................................................................................created a linked list from the AminoAcidLL\n if(inSequence.length() >= 3 && AminoAcidResources.getAminoAcidFromCodon(inSequence.substring(0,2)) != '*'){\n list = new AminoAcidLL(inSequence.substring(0,3));\n for(int i = 3; i < inSequence.length() - 2; i+=3){ // ............................................................looks through the RNA string, start at index 3\n if (AminoAcidResources.getAminoAcidFromCodon(inSequence.substring(i, i + 3)) != '*') { //\n list.addCodon(inSequence.substring(i,i+3));\n }else{\n System.out.print(\"error\"); // displays once star is detected\n }\n }\n }\n return list;\n }", "title": "" }, { "docid": "599ab3db6306fd013716323f8d53d637", "score": "0.6563713", "text": "public static AminoAcidLL createFromRNASequence(String inSequence) {\n // creates new Linked List with the first three characters of inSequence\n AminoAcidLL list = new AminoAcidLL(inSequence.substring(0, 3));\n //updates the string inSequence to include the rest of the string excluding the first three chars\n inSequence = inSequence.substring(3);\n //uses for loop to iterate through the string and take substrings of every three letter sequence\n for (int i = 0; i < inSequence.length(); i++) {\n // checks if the sequence does not have a stop, and if it does breaks out of the loop\n if(AminoAcidResources.getAminoAcidFromCodon(inSequence.substring(0,3)) == '*'){\n break;\n }\n else{\n // adds the Amino Acid for ever three letter sequence\n list.addCodon(inSequence.substring(0, 3));\n //updates inSequence same as above\n inSequence = inSequence.substring(3);\n i--;\n }\n //decreases the iterator to avoid out-of-bounds exceptions, and to avoid missing the last codon of the string\n\n }\n printList(list);\n return list;\n }", "title": "" }, { "docid": "5954c9b1e099cb5b7e4230cb93cb77f2", "score": "0.62967753", "text": "private SinglyLinkedList createSampleList(int length) {\n List<Node> nodeList = new ArrayList<>();\n for (int i = 1; i <= length; i++) {\n Node node = new Node(i);\n nodeList.add(node);\n }\n\n for (int i = 0; i < length - 1; i++) {\n nodeList.get(i).next = nodeList.get(i+1);\n }\n\n return new SinglyLinkedList(nodeList.get(0), length);\n }", "title": "" }, { "docid": "651bb42bc358a7db60515572fdeb6022", "score": "0.6225446", "text": "Sequences createSequences();", "title": "" }, { "docid": "8a838266646a1da81fe0829b46371441", "score": "0.59623885", "text": "Sequence createSequence();", "title": "" }, { "docid": "d217fd840fa81ca6d71978ed7c0ec6cb", "score": "0.59098196", "text": "AminoAcidLL(String inCodon){\n\n // Data for one node\n aminoAcid = AminoAcidResources.getAminoAcidFromCodon(inCodon);\n codons = AminoAcidResources.getCodonListForAminoAcid(aminoAcid);\n counts = new int[codons.length];\n next = null;\n }", "title": "" }, { "docid": "7f335c6adbf2d0b6eb242c9d4f913f02", "score": "0.58932024", "text": "public static AminoAcidLL createFromRNASequence(String inSequence){\n AminoAcidLL block = new AminoAcidLL(inSequence.substring(0, 3));\n boolean test = true;\n\n if(inSequence.substring(0, 4).charAt(0) == '*'){\n block.addCodon(inSequence.substring(0, 4));\n test = false;\n }\n else{\n block.addCodon(inSequence.substring(0, 4));\n }\n for (int i = 3; i < inSequence.length() - 1; i += 4) {\n //use string.subString(start, end)\n if (inSequence.charAt(i) == '*') {\n block.addCodon(inSequence.substring(i, i + 4));\n test = false;\n }\n else{\n block.addCodon(inSequence.substring(i, i + 4));\n }\n }\n return block;\n }", "title": "" }, { "docid": "bf56cc240e4a9e27d020589031ff36e0", "score": "0.574807", "text": "AminoAcidLL(String inCodon){\n aminoAcid = AminoAcidResources.getAminoAcidFromCodon(inCodon); // ................................................looks at the AminoAcidResources and gets the amino acid from the codons given\n codons = AminoAcidResources.getCodonListForAminoAcid(aminoAcid); // ..............................................looks at the AminoAcidResources and gets the codons list from the amino acids given\n incrCodons(inCodon); //\n next = null;\n }", "title": "" }, { "docid": "5592753218cc7ddc580cde334fc1cfc5", "score": "0.57027054", "text": "AminoAcidLL(){}", "title": "" }, { "docid": "1b68ce7d258818432ac57bc013331aef", "score": "0.5686243", "text": "public LinkedList<Base> processDNA(int length, LinkedList<Base> newDNA)\r\n { \r\n for(int i = 0; i < length-5; i++)\r\n {\r\n if(newDNA.get(i).equals(new Base(\"g\")) && newDNA.get(i+1).equals(new Base(\"a\")) \r\n && newDNA.get(i+2).equals(new Base(\"a\")) && newDNA.get(i+3).equals(new Base(\"t\"))\r\n && newDNA.get(i+4).equals(new Base(\"t\")) && newDNA.get(i+5).equals(new Base(\"c\")))\r\n {\r\n newDNA.add(i+1, new Base(\"t\"));\r\n newDNA.add(i+2, new Base(\"g\"));\r\n newDNA.add(i+3, new Base(\"a\"));\r\n newDNA.add(i+4, new Base(\"t\"));\r\n newDNA.add(i+5, new Base(\"a\"));\r\n }\r\n }\r\n return newDNA;\r\n }", "title": "" }, { "docid": "a5653b25553ed68e16e75a33d93a45a5", "score": "0.5531016", "text": "public ListNode creatLinkedList(){\n\t\t\n\t\tListNode start = new ListNode(1);\n\t\tListNode node2 = new ListNode(2);\n\t\tListNode node3 = new ListNode(3);\n\t\tListNode node4 = new ListNode(4);\n\t\tListNode node5 = new ListNode(5);\n\t\t//ListNode node6 = new ListNode(6);\n\t\tstart.next = node2;\n\t\tnode2.next = node3;\n\t\tnode3.next = node4;\n\t\tnode4.next = node5;\n\t\tnode5.next = node5;\n\t\treturn start;\n\t}", "title": "" }, { "docid": "ad5f5d6c09c44fc1f6a6b82d9741f191", "score": "0.53473336", "text": "SequenceFlow createSequenceFlow();", "title": "" }, { "docid": "a4aca1c7d26d49c10bc273bef6421737", "score": "0.53421944", "text": "private SequenceG() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "ff5b0f39ed266fcd4d9fd83cbe6fa403", "score": "0.53348017", "text": "AminoAcidLL(){\n\n }", "title": "" }, { "docid": "f4a26b13c1f5504888dd531dfdb14269", "score": "0.5311032", "text": "List<ICell> nextGeneration();", "title": "" }, { "docid": "2a8e039b790ffed2c9510c5beb731a70", "score": "0.52830017", "text": "protected abstract void fillInterpretedWordListInSequence();", "title": "" }, { "docid": "2e5d7e15ef76e1d4258a089d851b770f", "score": "0.52820945", "text": "private RandomSeq() {\n\t}", "title": "" }, { "docid": "422f24447582690ff3f727eeb694ed67", "score": "0.52757597", "text": "public static Node<Integer> buildList()\r\n {\r\n System.out.print(\"Enter a sequence of integers: -1 is sentinel: \");\r\n //read integers and call SinglyLinkedList.insertLast and return the list\r\n Scanner f = new Scanner(System.in);\r\n Node<Integer> front = new Node<Integer>();\r\n while (true)\r\n {\r\n int i = f.nextInt();\r\n if(i == -1) break;\r\n front = SinglyLinkedList.insertLast(front, i);\r\n }\r\n return front;\r\n }", "title": "" }, { "docid": "454777ee6ef2f4c7bbc228677d63e08f", "score": "0.5258202", "text": "public SymbolList getDNA(){\n SimpleSymbolList dna = new SimpleSymbolList(DNATools.getDNA());\n for(int i = 1; i < this.length(); i++){\n try{\n dna.addSymbol(PhredTools.dnaSymbolFromPhred(this.symbolAt(i)));\n }catch(ChangeVetoException cve){\n throw new BioError(\"Cannot construct symbol list as it has becomed locked?\", cve);\n }catch(IllegalSymbolException ise){\n throw new BioError(\n \"PhredTools.dnaSymbolFromPhred() has returned a symbol not in the DNA alphabet\", ise);\n }\n }\n return dna;\n }", "title": "" }, { "docid": "53c6ca14173eb709262a120c91147653", "score": "0.5253947", "text": "AminoAcidLL(String inCodon) {\n this.aminoAcid = AminoAcidResources.getAminoAcidFromCodon(inCodon);\n this.codons = AminoAcidResources.getCodonListForAminoAcid(aminoAcid);\n this.next = null;\n }", "title": "" }, { "docid": "7322a1ed64584c68986d038aad211e99", "score": "0.5246125", "text": "public abstract void createObjectSequence();", "title": "" }, { "docid": "2b1bd8758ded11bfe96842cfd4f1e507", "score": "0.52416235", "text": "public abstract String getNextSequenceNumber();", "title": "" }, { "docid": "25c17f1ee2c926b1fafae7fe2f1eede3", "score": "0.52410805", "text": "public void addSequence(Sequence sequence);", "title": "" }, { "docid": "39822e7271aa9ffe71641fb9f55e78c8", "score": "0.5223333", "text": "protected CNode _FieldSequence(){\n CNode vNode;\n String vData;\n ArrayList<CNode> vNodes = new ArrayList();\n ArrayList<String> vDataList = new ArrayList();\n vNode = _Var_List1();\n vNodes.add(vNode);\n term(OBERON0_Codes.sycolon);\n vNode = _Type();\n vNodes.add(vNode);\n return bdTuple(\"FieldSequence\",\"\",vNodes,vDataList);\n }", "title": "" }, { "docid": "7a857eb5e37caa59a2c9e784a0c906f7", "score": "0.5210309", "text": "public void makeSeq(Scanner scanner)\n\t\t\tthrows IOException {\n\t\tSeqNode sn = null;\n\t\tif (scanner.hasNextInt()) {\n\t\t\tsn = new SeqNode();\n\t\t\tsn.seqValue = scanner.nextInt();\n\t\t\tsn.next = sn;\n\t\t\tseqRear = sn;\n\t\t}\n\t\twhile (scanner.hasNextInt()) {\n\t\t\tsn = new SeqNode();\n\t\t\tsn.seqValue = scanner.nextInt();\n\t\t\tsn.next = seqRear.next;\n\t\t\tseqRear.next = sn;\n\t\t\tseqRear = sn;\n\t\t}\n\t}", "title": "" }, { "docid": "e66f79368763684880f1e7c08657be17", "score": "0.5208473", "text": "public void createSequences(){\n\t\tHashtable<Integer,Integer[]> validnessOfSequences = new Hashtable<Integer,Integer[]>();\n\t\t\n\t\tint sequencecounter = 0;\n\t\tfor(int i=0; i<WebAccessSequences.filteredlogsize(); i++){\n\t\t\tRequest req = WebAccessSequences.getRequest(i);\n\t\t\tint sessionID = req.getSessionID();\n\t\t\tint nvalid = 0;\n\t\t\tint len = 0;\n\t\t\tif(\treq.getIsSuitableToLinkPrediction() ){\n\t\t\t\tif( WebAccessSequences.m_sequences.containsKey(sessionID) ){\n\t\t\t\t\tArrayList<Integer> sequence = WebAccessSequences.m_sequences.get(sessionID);\n\t\t\t\t\tsequence.add(i);\n\t\t\t\t\tWebAccessSequences.m_sequences.put(sessionID,sequence);\n\t\t\t\t\t\n\t\t\t\t\t// validness\n\t\t\t\t\tInteger[] objA = validnessOfSequences.get(sessionID);\n\t\t\t\t\tnvalid = objA[0] + 1;\n\t\t\t\t\tlen = objA[1];\n\t\t\t\t} else{\n\t\t\t\t\tArrayList<Integer> sequence = new ArrayList<Integer>();\n\t\t\t\t\tsequence.add(i);\n\t\t\t\t\tWebAccessSequences.m_sequences.put(sessionID,sequence);\n\t\t\t\t\tsequencecounter++;\n\t\t\t\t}\n\t\t\t\tlen++;\n\t\t\t\tInteger[] newObjA = new Integer[2];\n\t\t\t\tnewObjA[0] = nvalid;\n\t\t\t\tnewObjA[1] = len;\n\t\t\t\tvalidnessOfSequences.put(sessionID, newObjA);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \" + sequencecounter + \" sequences created.\");\n\t\t\n\t\t// update validness\n\t\tEnumeration<Integer> keys = validnessOfSequences.keys();\n\t\twhile(keys.hasMoreElements()){\n\t\t\tint sessionID = keys.nextElement();\n\t\t\tInteger[] freqData = validnessOfSequences.get(sessionID);\n\t\t\tint nvalid = freqData[0];\n\t\t\tint len = freqData[1];\n\t\t\tfloat prob = (float)nvalid/(float)len;\n\t\t\tWebAccessSequences.m_validnessOfSequences.put(sessionID, prob);\n\t\t}\n\t}", "title": "" }, { "docid": "fc7d14e2040487296cfd2bc1f359e01a", "score": "0.52010155", "text": "public Node generateInitialLinkedList() {\n\t\t/* Create nodes */\n\t\tNode firstNode = new Node(1, \"First\");\n\t\tNode secondNode = new Node(2, \"Second\");\n\t\tNode thirdNode = new Node(3, \"Third\");\n\t\tNode fourthNode = new Node(4, \"Fourth\");\n\t\t\n\t\t/* Set next nodes */\n\t\tfirstNode.setNext(secondNode);\n\t\tsecondNode.setNext(thirdNode);\n\t\tthirdNode.setNext(fourthNode);\n\t\tfourthNode.setNext(null);\n\t\t\n\t\t/* Set random nodes */\n\t\tfirstNode.setRandom(thirdNode);\n\t\tsecondNode.setRandom(firstNode);\n\t\tthirdNode.setRandom(thirdNode);\n\t\tfourthNode.setRandom(secondNode);\n\t\t\n\t\treturn firstNode;\n\t}", "title": "" }, { "docid": "e12ddcdf178ec67da2c1ccef1eb7e000", "score": "0.5196647", "text": "@Test\n public void testLR() {\n System.out.println(\"LR\");\n ILRService service = Lookup.getDefault().lookup(ILRService.class);\n String[][] namesList = {\n {\"entryClone-L1-L2.gb\", \"pcDNA3-2-V5-DEST.gb\", \"expression-clone-pro1.gb\"},\n {\"entryClone-L1-R5.gb\", \"entryClone-L5-L2.gb\", \"pcDNA3-2-V5-DEST.gb\", \"expression-clone-pro2.gb\"},\n {\"entryClone-R4-R3.gb\", \"entryClone-L1-L4.gb\", \"entryClone-L3-L2.gb\", \"pcDNA3-2-V5-DEST.gb\", \"expression-clone-pro3.gb\"},\n {\"entryClone-L1-R5.gb\", \"entryClone-L5-L4.gb\", \"entryClone-R4-R3.gb\", \"entryClone-L3-L2.gb\", \"pcDNA3-2-V5-DEST.gb\", \"expression-clone-pro4.gb\"},\n {\"entryClone-L4-R1.gb\", \"entryClone-L1-L2.gb\", \"entryClone-R2-L3.gb\", \"pDESTR4-R3 Vector II.gb\", \"expression-clone-frag3.gb\"}\n };\n\n for (String[] names : namesList) {\n List<AnnotatedSeq> entryClones = new ArrayList<AnnotatedSeq>();\n AnnotatedSeq dest = null;\n for (int i = 0; i < names.length; i++) {\n AnnotatedSeq as = null;\n if (i < names.length - 2) {\n as = AnnotatedSeqParser.singleParse(EntryDumb2.class, names[i], new FlexGenbankFormat());\n entryClones.add(as);\n } else if(i == names.length - 2){\n as = AnnotatedSeqParser.singleParse(DestDumb.class, names[i], new FlexGenbankFormat());\n dest = as;\n }\n }\n List<AnnotatedSeq> seqs = new ArrayList<AnnotatedSeq>();\n seqs.addAll(entryClones);\n seqs.add(dest);\n AnnotatedSeq exp = service.createExpressionClone(seqs);\n String fileName = names[names.length - 1];\n AnnotatedSeqWriter.toFile(exp, new File(\"D:\\\\tmp\\\\\"+fileName));\n }\n }", "title": "" }, { "docid": "05d5e411183920e16bb8072d95a8545d", "score": "0.51751846", "text": "AminoAcidLL(String inCodon) {\n aminoAcid = AminoAcidResources.getAminoAcidFromCodon(inCodon);\n codons = AminoAcidResources.getCodonListForAminoAcid(aminoAcid);\n counts = new int[codons.length];\n incrementCodons(inCodon);\n next = null;\n\n }", "title": "" }, { "docid": "6a3f89d87f6d107dcbdbe26b955c94f5", "score": "0.51442623", "text": "public String getNextSequenceValue();", "title": "" }, { "docid": "d4d6175bbb55c181f29687ef320efe5e", "score": "0.5099917", "text": "public PhredSequence(SymbolList phredSequence, String name, String urn, Annotation anno)\n throws IllegalAlphabetException{\n super(phredSequence,urn,name,anno);\n if(this.getAlphabet() != PhredTools.getPhredAlphabet()){\n throw new IllegalAlphabetException(\n \"Cannot build a PhredSequence using a \"+\n phredSequence.getAlphabet().getName()+\n \" SymbolList.\");\n }\n }", "title": "" }, { "docid": "14816e2ad77c96d45c7b416e4bf4a3b4", "score": "0.5097517", "text": "SequenceDiagram createSequenceDiagram();", "title": "" }, { "docid": "7f1320fab2b41d4fc08981d079451653", "score": "0.50878584", "text": "public static <T> LinkedList<T> toLinkedList(Generator<T> generator){\n LinkedList<T> result = new LinkedList<T>();\n toCollection(generator,result);\n return result;\n }", "title": "" }, { "docid": "fdc46cba84d4085702854569fd20cde6", "score": "0.5087267", "text": "public DNAStrand(String dna) {\n if (dna.length() > 0) {\n front = new Nucleotide(dna.charAt(0));\n Nucleotide current = front;\n for (int index = 1; index < dna.length(); index++) {\n current.next = new Nucleotide(dna.charAt(index));\n current = current.next;\n }\n }\n }", "title": "" }, { "docid": "9cfb57808a253fd2f88beeb44a55662f", "score": "0.50704175", "text": "public ArrayList<BigDecimal>[] testLengths(){\r\n System.out.println(\"dna length = \" + dna.size());\r\n int length = 2;\r\n while(length < dna.size()){\r\n BigDecimal before = new BigDecimal(System.nanoTime());\r\n LinkedList<Base> newDNA = (LinkedList)dna.clone();\r\n newDNA = processDNA(length, newDNA);\r\n BigDecimal after = new BigDecimal(System.nanoTime());\r\n MathContext mc = new MathContext(15);\r\n spliceeList.add(new java.math.BigDecimal(String.valueOf(length))); \r\n BigDecimal difference = (after.subtract(before, mc)).divide(new BigDecimal(1000000), 6, RoundingMode.CEILING);\r\n timeList.add(difference);\r\n System.out.println(\"LinkStrand:\\tsplicee \" + length + \"\\ttime \" + difference + \"\\tbefore \" + dna.size() + \"\\tafter \" + dna.size() + \" recomb \" + newDNA.size());\r\n finalString.add(newDNA.toString());\r\n length = length * 2;\r\n }\r\n BigDecimal before = new BigDecimal(System.nanoTime());\r\n LinkedList<Base> newDNA = processDNA(dna.size(), (LinkedList)dna.clone());\r\n BigDecimal after = new BigDecimal(System.nanoTime());\r\n MathContext mc = new MathContext(2);\r\n BigDecimal difference = (after.subtract(before, mc)).divide(new BigDecimal(1000000), 6, RoundingMode.CEILING);\r\n spliceeList.add(new java.math.BigDecimal(String.valueOf(dna.size()))); \r\n timeList.add(difference);\r\n System.out.println(\"LinkStrand:\\tsplicee \" + dna.size() + \"\\ttime \" + difference + \"\\tbefore \" + dna.size() + \"\\tafter \" + dna.size() + \" recomb \" + newDNA.size());\r\n System.out.println(\"Final DNA Strand: \" + newDNA.toString());\r\n finalString.add(newDNA.toString());\r\n \r\n output[0] = spliceeList; \r\n output[1] = timeList; \r\n output[2] = finalString;\r\n \r\n return output; \r\n }", "title": "" }, { "docid": "df408375e73b2f496ae94e5b19939396", "score": "0.5043504", "text": "RegMemSequence createRegMemSequence();", "title": "" }, { "docid": "551ee0a1af7bbc44ff298668fc04fe50", "score": "0.5031879", "text": "public static void translate(String mRNA_sequence){\r\n\t if(if_mRNASequence(mRNA_sequence)){\r\n\t\t\r\n\t\t mRNA_sequence=mRNA_sequence.toLowerCase();\r\n\t\t int start=findStartingNucleotide(mRNA_sequence);\r\n\t\t char[] sequence = mRNA_sequence.toCharArray();\r\n\t\t\r\n\t\t for(int i=start; i<=sequence.length-3; i=i+3){\r\n\t\t\t char[] codonCharArr = {sequence[i], sequence[i+1], sequence[i+2]};\r\n\t\t\t String codon=new String(codonCharArr);\r\n\t\t\t \r\n\t\t\t //START codon & methionine(M)\r\n\t\t\t if(codon.equals(\"aug\")){\r\n\t\t\t\t System.out.print(\"M\");\r\n\t\t\t }\r\n\t\t\t //phenylalanine(F)\r\n\t\t\t else if(codon.equals(\"uuu\") | codon.equals(\"uuc\")){\r\n\t\t\t\tSystem.out.print(\"F\");\r\n\t\t\t }\r\n\t\t\t //leucine(L)\r\n\t\t\t else if(codon.equals(\"uua\") | codon.equals(\"uug\") | codon.equals(\"cuu\") |\r\n\t\t\t\t\t codon.equals(\"cuc\") | codon.equals(\"cua\") | codon.equals(\"cug\")){\r\n\t\t\t\tSystem.out.print(\"L\");\r\n\t\t\t }\r\n\t\t\t //isoleucine(I)\r\n\t\t\t else if(codon.equals(\"auu\") | codon.equals(\"auc\") | codon.equals(\"aua\")){\r\n\t\t\t\t System.out.print(\"I\");\r\n\t\t\t }\r\n\t\t\t //valine(V)\r\n\t\t\t else if(codon.equals(\"guu\") | codon.equals(\"guc\") | codon.equals(\"gua\") |\r\n\t\t\t\t\t codon.equals(\"gug\")){\r\n\t\t\t\t System.out.print(\"V\");\r\n\t\t\t }\r\n\t\t\t //serine(S)\r\n\t\t\t else if(codon.equals(\"ucu\") | codon.equals(\"ucc\") | codon.equals(\"uca\") |\r\n\t\t\t\t\t codon.equals(\"ucg\") | codon.equals(\"agu\") | codon.equals(\"agc\")){\r\n\t\t\t\t System.out.print(\"S\");\r\n\t\t\t }\r\n\t\t\t //proline(P)\r\n\t\t\t else if(codon.equals(\"ccu\") | codon.equals(\"ccc\") | codon.equals(\"cca\") |\r\n\t\t\t\t\t codon.equals(\"ccg\")){\r\n\t\t\t\t System.out.print(\"P\");\r\n\t\t\t }\r\n\t\t\t //threonine(T)\r\n\t\t\t else if(codon.equals(\"acu\") | codon.equals(\"acc\") | codon.equals(\"aca\") |\r\n\t\t\t\t\t codon.equals(\"acg\")){\r\n\t\t\t\t System.out.print(\"T\");\r\n\t\t\t }\r\n\t\t\t //alanine(A)\r\n\t\t\t else if(codon.equals(\"gcu\") | codon.equals(\"gcc\") | codon.equals(\"gca\") |\r\n\t\t\t\t\t codon.equals(\"gcg\")){\r\n\t\t\t\t System.out.print(\"A\");\r\n\t\t\t }\r\n\t\t\t //tyrosine(Y)\r\n\t\t\t else if(codon.equals(\"uau\") | codon.equals(\"uac\")){\r\n\t\t\t\t System.out.print(\"Y\");\r\n\t\t\t }\r\n\t\t\t //histidine(H)\r\n\t\t\t else if(codon.equals(\"cau\") | codon.equals(\"cac\")){\r\n\t\t\t\t System.out.print(\"H\");\r\n\t\t\t }\r\n\t\t\t //glutamine(Q)\r\n\t\t\t else if(codon.equals(\"caa\") | codon.equals(\"cag\")){\r\n\t\t\t\t System.out.print(\"Q\");\r\n\t\t\t }\r\n\t\t\t //asparagine(N)\r\n\t\t\t else if(codon.equals(\"aau\") | codon.equals(\"aac\")){\r\n\t\t\t\t System.out.print(\"N\");\r\n\t\t\t }\r\n\t\t\t //lysine(K)\r\n\t\t\t else if(codon.equals(\"aaa\") | codon.equals(\"aag\")){\r\n\t\t\t\t System.out.print(\"K\");\r\n\t\t\t }\r\n\t\t\t //aspartate/aspartic acid(D)\r\n\t\t\t else if(codon.equals(\"gau\") | codon.equals(\"gac\")){\r\n\t\t\t\t System.out.print(\"D\");\r\n\t\t\t }\r\n\t\t\t //glutamate/glutamic acid(E)\r\n\t\t\t else if(codon.equals(\"gaa\") | codon.equals(\"gag\")){\r\n\t\t\t\t System.out.print(\"E\");\r\n\t\t\t }\r\n\t\t\t //cysteine(C)\r\n\t\t\t else if(codon.equals(\"ugu\") | codon.equals(\"ugc\")){\r\n\t\t\t\t System.out.print(\"C\");\r\n\t\t\t }\r\n\t\t\t //tryptophan(W)\r\n\t\t\t else if(codon.equals(\"ugg\")){\r\n\t\t\t\t System.out.print(\"W\");\r\n\t\t\t }\r\n\t\t\t //arginine(R)\r\n\t\t\t else if(codon.equals(\"cgu\") | codon.equals(\"cgc\") | codon.equals(\"cga\") |\r\n\t\t\t\t\t codon.equals(\"cgg\") | codon.equals(\"aga\") | codon.equals(\"agg\")){\r\n\t\t\t\t System.out.print(\"R\");\r\n\t\t\t }\r\n\t\t\t //glycine(G)\r\n\t\t\t else if(codon.equals(\"ggu\") | codon.equals(\"ggc\") | codon.equals(\"gga\") |\r\n\t\t\t\t\t codon.equals(\"ggg\")){\r\n\t\t\t\t System.out.print(\"G\");\r\n\t\t\t }\r\n\t\t\t //STOP codons\r\n\t\t\t else if(codon.equals(\"uaa\") | codon.equals(\"uag\") | codon.equals(\"uga\")){\r\n\t\t\t\t break;\r\n\t\t\t }\r\n\t\t}\r\n\t }\r\n\t \r\n\t }", "title": "" }, { "docid": "04c3c926a6b84da4fe3e0a46736e5864", "score": "0.50129414", "text": "public abstract String getSequenceString();", "title": "" }, { "docid": "ba032ae83d0d75ee7011b6a9ac982e99", "score": "0.50074226", "text": "private SequenceC() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "3edc23ebce8c089301680160d7bac9a5", "score": "0.5005697", "text": "public interface Sequence<T extends Comparable> {\n\n /**\n * Indicates location of sequence\n * Example: [x, y, z].here() = x\n * @return T A generic object marking location of sequence\n */\n public T here();\n\n /**\n * Determines if sequence has a next value\n * Example: [x, y, z].hasNext() = true\n * @return A Boolean that is true if there is a next object and otherwise false\n */\n public boolean hasNext();\n\n /**\n * Returns the sequence after here\n * Example: [x, y, z].next() = [y, z]\n * @return A Sequence, of all elements T after here (x)\n */\n public Sequence<T> next();\n\n /**\n * Creates a string from the elements of the sequence\n * Example: [x, y, z].toStringSeq() = \"x y z\"\n * @return A String containing the elements of the sequence\n */\n public String stringify();\n}", "title": "" }, { "docid": "2fe5ddfdbabce4b6af5012851b38d254", "score": "0.49994475", "text": "public static LinkedList readBigInteger(Scanner in)\n {\n\t\tLinkedList x = new LinkedList(in.nextInt(), null, null); \n\t\t\n\t\t//loop creates a new ListNode n times\n\t\tfor(int i = 0; i < x.n; i++){ \t\n\t\t\t\n\t\t\t//because of the code specifications, the new node will\n\t\t\t//always be the first node in the linked list\n\t\t\tListNode newNode = new ListNode(in.nextInt(), x.start); \n\t\t\t\n\t\t\tx.start = newNode;\t\t\t\t\t\t\t\t\t\t\n\t\t\tif(i == 0){ \n\t\t\t\t\n\t\t\t\t//case where there are no nodes in the list, \n\t\t\t\t//so the new node is the first and last in the linked list\n\t\t\t\tx.rear = newNode; \n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\n return(x);\n\n\n }", "title": "" }, { "docid": "1b05b4075883757051be26fb7d0ed0da", "score": "0.49951857", "text": "public void generateAdjacencyLists()\n {\n // Implement method: +3 pts \n }", "title": "" }, { "docid": "84da41ab50c2c0013dfcd3094206e5a9", "score": "0.49724364", "text": "public static ListNode stringToListNode(int [] input) {\n ListNode dummyRoot = new ListNode(0);\n ListNode ptr = dummyRoot;\n for(int item : input) {\n ptr.next = new ListNode(item);\n ptr = ptr.next;\n }\n return dummyRoot.next;\n }", "title": "" }, { "docid": "d9a420fa4bb6b39046a986196af5f317", "score": "0.4966073", "text": "public String getSequence();", "title": "" }, { "docid": "326c7f9f246c8aabb75d2854679eed32", "score": "0.49606636", "text": "public Model(int sequenceLength) throws IllegalArgumentException {\r\n if (sequenceLength <= 0) {\r\n throw new IllegalArgumentException(\"The length of the sequence must be a positive number\");\r\n }\r\n this.sequenceLength = sequenceLength;\r\n this.guessesAllowed = 10;\r\n this.colorLength = 6;\r\n this.duplicates = true;\r\n\r\n this.colors = new ArrayList<String>();\r\n this.generateColorList();\r\n\r\n this.correctSequence = new ArrayList<String>();\r\n this.generateSequence();\r\n\r\n this.guessedSequence = new ArrayList<String>();\r\n\r\n\r\n }", "title": "" }, { "docid": "a9b1fd8ea7c6f78c454a727261c75070", "score": "0.49593452", "text": "private SequenceD() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "e898b8a53e485ab27d952f165c67273a", "score": "0.4950372", "text": "public String toString() {\n return \"lt-\" + node + \" \" + getProbability() +\n \"{\" + wordSequence + \"}\" ;\n }", "title": "" }, { "docid": "550497d902e15120117129a1518a7722", "score": "0.4936434", "text": "public String toString() { //mimics appearance of LInkedLists\n\t \n\tString retStr = \"|\";\n\tif (size()==1){\n\t retStr+=_head.getCargo()+\"|.|->|NULL|\";\n\t return retStr;\n\t }\n\telse{\n\t DLLNode<T> tmp = _head; //init tr\n\t int i=size();\n\t while( i>1 ) {\n\t retStr += tmp.getCargo() + \"|.| -> |\";\n\t tmp = tmp.getNext();\n\t i--;\n\t}\n\tretStr += \"NULL|\";\n\t}\n\treturn retStr;\n }", "title": "" }, { "docid": "f840953240e70b0d9b6a329aecf0e504", "score": "0.49314308", "text": "long getSequence();", "title": "" }, { "docid": "f840953240e70b0d9b6a329aecf0e504", "score": "0.49314308", "text": "long getSequence();", "title": "" }, { "docid": "8a349ab4f4501863c82cfd07d63f26e8", "score": "0.49271622", "text": "public void constructGraph(String seq) {\n String prefix = seq.substring(0, kMer);\n String substr = seq.substring(1);\n if (!(kmerList.contains(prefix))) {\n addStringToGraph(prefix);\n }\n if ( !(kmerList.contains(substr))) {\n addStringToGraph(substr);\n }\n int startVex = kmerList.indexOf(prefix);\n int neighVex = kmerList.indexOf(substr);\n adj.get(startVex).add(neighVex);\n out[startVex] += 1;\n in[neighVex] += 1;\n }", "title": "" }, { "docid": "36801a43791c2fa0f51ec206acb4154b", "score": "0.49207804", "text": "public ListNode<E> getNext();", "title": "" }, { "docid": "52362a98d0e1201c80251076ee41592f", "score": "0.49139524", "text": "private SequenceH() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "f7a86ccb63a321e7c89fdc2dacb8bfdb", "score": "0.49077624", "text": "int mo22811a(C40522gu c40522gu, C7620bi c7620bi, LinkedList<C19993u> linkedList);", "title": "" }, { "docid": "5a431e9f4a7768d8dd07ddea51136f26", "score": "0.49063408", "text": "public static ListNode build(String list) {\n List<String> values = Arrays.asList(list.split(\"->\"));\n ListNode fake = new ListNode(-1);\n ListNode pre = fake;\n for (String value : values) {\n ListNode node = new ListNode(Integer.parseInt(value));\n pre.next = node;\n pre = node;\n }\n return fake.next;\n }", "title": "" }, { "docid": "f3debc926ee07efbff29ee15362060c3", "score": "0.4904628", "text": "long getSeq();", "title": "" }, { "docid": "2c65433f98e883f851dfcfd806ad29c9", "score": "0.48876768", "text": "static Node createLinkedList(int[] values) {\n\t\tNode curr = new Node(values[0]);\n\t\tNode head = curr;\n\t\tfor (int i = 1; i < values.length; i++) {\n\t\t\tNode temp = new Node(values[i]);\n\t\t\tcurr.next = temp;\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn head;\n\t}", "title": "" }, { "docid": "3a74ce891b78d22db902d74de65aac8f", "score": "0.48811492", "text": "public Pair<Sequence, Transition> nextRandomSequenceToExtend() {\n if(this.hasNoSequenceToExtend()) {\n Log.log(\" there is no sequence generated. No transition for extension.\");\n return null;\n }\n \n //the number of corresponding models of generated sequence\n int numOfCoveredModels = this.modelSequences.keySet().size();\n //all classes whose model has been covered\n List<Class<?>> allClasses = new ArrayList<Class<?>>(this.modelSequences.keySet());\n Class<?> modelClass = allClasses.get(Randomness.nextRandomInt(numOfCoveredModels));\n //get model node and its corresponding sequence list\n Map<ModelNode, List<Sequence>> nodeSequencesMap = this.modelSequences.get(modelClass);\n \n //double check\n PalusUtil.checkNull(nodeSequencesMap, \"The node sequence map could not be null.\");\n \n //randomly pick up a start node\n int numOfModelNode = nodeSequencesMap.keySet().size();\n List<ModelNode> allNodes = new ArrayList<ModelNode>(nodeSequencesMap.keySet());\n ModelNode startNode = allNodes.get(Randomness.nextRandomInt(numOfModelNode));\n \n //double check\n PalusUtil.checkNull(startNode, \"The starting model node could not be null.\");\n //get the sequence list which produce the model node\n List<Sequence> seqList = nodeSequencesMap.get(startNode);\n PalusUtil.checkNull(seqList, \"The sequence list could not be null.\");\n// PalusUtil.checkTrue(!seqList.isEmpty());\n if(seqList.isEmpty()) {\n Log.log(\" the sequence is empty. bug?\");\n return null;\n }\n \n //get the base sequence, and start to extend it\n Sequence baseSequence = seqList.get(Randomness.nextRandomInt(seqList.size()));\n //pick up a transition from the startNode\n List<Transition> transitions = startNode.getAllOutgoingEdges();\n if(transitions.isEmpty()) {\n Log.log(\" there is no outgoing edges for the selected ModelNode: \" + startNode.getNodeId());\n// Log.log(\" \" + startNode.getNodeInfo());\n return null;\n }\n //get a sequence to extend\n Transition transitionToExtend = transitions.get(Randomness.nextRandomInt(transitions.size()));\n \n //save the state of selected sequence\n this.currSequence = baseSequence;\n \n //update statistic\n this.stats.incrExtCount();\n this.stats.incrModelNodeCoverage(modelClass, startNode);\n this.stats.incrTransitionCoverage(modelClass, transitionToExtend);\n \n return new Pair<Sequence, Transition>(baseSequence, transitionToExtend);\n }", "title": "" }, { "docid": "568bc441ec9e885915591c880ca449fe", "score": "0.48798808", "text": "private ArrayList<String> convertCodesListToASequence(List<LandSegmentRelation> segmentRelations)\n\t{\n\t\t\n\t\tif(segmentRelations==null) return null;\n\n\t\t\n\t\tArrayList<String> list = new ArrayList<>();\n\t\t\n\t\tString sequence = \"\";\t\t\n\t\tfor(LandSegmentRelation item :segmentRelations)\n\t\t{\n\t\t\tif(sequence.length()<Integer.MAX_VALUE)\n\t\t\t{\n\t\t\t\tsequence = sequence + mapCodeToChar(item.leftSide)+mapCodeToChar(item.rightSide);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlist.add(sequence);\t\n\t\t\t\tsequence = \"\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tlist.add(sequence);\n\t\treturn list;\n\t}", "title": "" }, { "docid": "32e74a2748fe3ca1af099b3290f0ee0c", "score": "0.48789224", "text": "@Recorded\n @PublishedMethod(params=\"BiojavaRNASequence rnaSeq\",\n methodSummary=\"Converts a RNA sequence into DNA (reverse transcription).\")\n public BiojavaDNASequence RNAtoDNA(BiojavaRNASequence rnaSeq);", "title": "" }, { "docid": "7d0cde3869fec2c591b45714cddcd395", "score": "0.4878207", "text": "@Recorded\n @PublishedMethod(params=\"BiojavaDNASequence sequence\",\n methodSummary=\"Converts a DNA sequence into RNA (transcription).\")\n public BiojavaRNASequence DNAtoRNA( BiojavaDNASequence sequence );", "title": "" }, { "docid": "628eab8e0d9a9ef45f5dffccc8c4c5e4", "score": "0.48593363", "text": "private SequenceA() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "60c6605e76e9050e7c4df834e6405b37", "score": "0.48577237", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Part A: \");\n\t\tSinglyLinkedList<String> list = new SinglyLinkedList<String>();\n\t\t//Display that there is no index in the list that was created\n\t\tSystem.out.println(list.size());\n\n\t\t// B) A list with nodes but no cycles\n\t\tSystem.out.println(\"Part B: \");\n\t\tSinglyLinkedList<String>list2 = new SinglyLinkedList<String>();\n\t\tlist2.add(\"Hello\");\n\t\tlist2.add(\"My\");\n\t\tlist2.add(\"name\");\n\t\tlist2.add(\"is\");\n\t\tlist2.add(\"Slim\");\n\t\tlist2.add(\"Shady\");\n\t\tSystem.out.println(list2.hasCycle());\n\n\t\t// C) A list with only one node with its next reference set to itself\n\t\tSystem.out.println(\"Part C: \");\n\t\tSinglyLinkedList<String>list3 = new SinglyLinkedList<String>();\n\t\tlist3.add(\"Computers\");\n\t\tlist3.addToCreateCycle(list3.getNode(0));\n\t\tSystem.out.println(\"Since the node's next reference is set to itself, \" + list3.hasCycle());\n\n\t\t/* D) A list with a cycle whose length (number of nodes involved in\n\t\t\t the cycle) is odd\n\t\t */\n\t\tSystem.out.println(\"Part D: \");\n\t\tSinglyLinkedList<String>list4 = new SinglyLinkedList<String>();\n\t\tlist4.add(\"Phone\");\n\t\tlist4.add(\"Laptop\");\n\t\tlist4.add(\"Tablet\");\n\t\tlist4.add(\"Playstation 5\");\n\t\tlist4.add(\"Stereo\");\n\t\t//This makes the list a cycle\n\t\tlist4.addToCreateCycle(list4.getNode(0));\n\t\tSystem.out.println(list4.hasCycle());\n\n\t\t// E) A list with a cycle whose length is even\n\t\tSystem.out.println(\"Part E: \");\n\t\tSinglyLinkedList<String>list5 = new SinglyLinkedList<String>();\n\t\tlist5.add(\"Phone\");\n\t\tlist5.add(\"Laptop\");\n\t\tlist5.add(\"Tablet\");\n\t\tlist5.add(\"Stereo\");\n\t\tlist4.addToCreateCycle(list5.getNode(0));\n\t\tSystem.out.println(list5.hasCycle());\n\t}", "title": "" }, { "docid": "2fa21d982166b4861ff968e4e2147a7b", "score": "0.48537624", "text": "abstract public void addGatingSequence(Sequence gatingSequence);", "title": "" }, { "docid": "61a762cb999d1748c435eb8192d2aa59", "score": "0.48534703", "text": "public static ListNode getSampleSortedLinkedList(){\n ListNode node11 = new ListNode(11);\n ListNode node10 = new ListNode(10, node11);\n ListNode node9 = new ListNode(9, node10);\n ListNode node8 = new ListNode(8, node9);\n ListNode node7 = new ListNode(7, node8);\n ListNode node6 = new ListNode(6, node7 );\n ListNode node5 = new ListNode(5, node6);\n ListNode node4 = new ListNode(4, node5);\n ListNode node3 = new ListNode(3, node4);\n ListNode node2 = new ListNode(2, node3);\n ListNode node1 = new ListNode(1, node2);\n\n ListNode head = new ListNode(0, node1);\n\n return node1;\n }", "title": "" }, { "docid": "de37e035d08ef63beb5cb08395c4df79", "score": "0.4850428", "text": "Ligne(){\n\t\tarrets = new LinkedList<Arret>();\n\t}", "title": "" }, { "docid": "955f01226266279efa2b5212b583ca57", "score": "0.4843007", "text": "@Override\n\tpublic String toString() {\n\t\treturn nodeid + \"#\" + seqNo;\n\t}", "title": "" }, { "docid": "bc7e567709cfd3121a919840dedfd83c", "score": "0.48342162", "text": "long getSeqNum();", "title": "" }, { "docid": "0b77cd4a2b8ddaff2dcdc3adbcf2bdb7", "score": "0.48292598", "text": "public SinglyLinkedList() {\n\n }", "title": "" }, { "docid": "32ebb4d2201a98815f302a14ff560612", "score": "0.48127034", "text": "public Map getSequences();", "title": "" }, { "docid": "27df2dac87564262cbbea2056d6c6436", "score": "0.48045513", "text": "private SequenceF() {\n\t\t\tsuper(new ArrayList<>());\n\t\t}", "title": "" }, { "docid": "484d668d8dacdcddce87ad8146eb0fde", "score": "0.48001298", "text": "private void generateDNA() {\r\n\t\tint totalLength = maxEnergyBitLength + speedBitLength + visionRangeBitLength + strengthBitLength;\r\n\t\tRandomGenerator instance = RandomGenerator.getInstance();\r\n\t\t\r\n\t\tDNA = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < totalLength; i++) {\r\n\t\t\tif (instance.getRandom().nextBoolean()) {\r\n\t\t\t\tDNA = DNA + '1';\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tDNA = DNA + '0';\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eae52d97ce7c5510c2af85b820488246", "score": "0.4799644", "text": "public LinkedIntList(int... args) {\n if (args.length != 0) {\n front = new ListNode(args[0]);\n ListNode back = front;\n for (int i = 1; i < args.length; i += 1) {\n back.next = new ListNode(args[i]);\n back = back.next;\n }\n }\n }", "title": "" }, { "docid": "21d3c8cf6592fcf5450a97da49f17e01", "score": "0.4791129", "text": "public List<String> findRepeatedDnaSequences(String s) {\n if (s == null || s.length() < 10) return new LinkedList<>();\n\n Set<String> set = new HashSet<>();\n Set<String> result = new HashSet<>();\n\n int length = s.length();\n for (int i = 0; i <= length - 10; i++) {\n String subString = s.substring(i, i + 10);\n if (!set.add(subString)) {\n result.add(subString);\n }\n }\n\n return new LinkedList<>(result);\n }", "title": "" }, { "docid": "f692d2855c4db17d82eb8e4d302d379f", "score": "0.47897077", "text": "public char[] aminoAcidList() {\n // if list is empty or points to null returns default aminoAcid\n if (next == null) {\n return new char[]{aminoAcid};\n }\n else{\n //initializes a char [] that recursively calls the next position of the list (iterates through list)\n // * does not start at the start of the list*\n char[] current = next.aminoAcidList();\n // creates empty char [] that will store the Amino Acids, uses the length of the list of the current\n // * adds one to the length, since current does not begin at the start of the list*\n char[] aminoAcidList = new char[current.length + 1];\n // iterates through the aminoAcidList and then assigns each index to the index of the char [] current\n for (int i = 0; i < current.length; i++) {\n //assigns the first position of the amino acid [] to the first amino acid in the list\n aminoAcidList[0] = aminoAcid;\n // does this for the rest of the positions not including 0\n aminoAcidList[i + 1] = current[i];\n }\n //printArray(aminoAcidList);\n return aminoAcidList;\n }\n }", "title": "" }, { "docid": "19b332e000955c14a66a720a772bb6fd", "score": "0.47816283", "text": "public Sequence<T> next();", "title": "" }, { "docid": "1e79ee583fe445ff418c063f3aefba39", "score": "0.4771112", "text": "public MyLinkedList() {\n len=0;\n\n }", "title": "" }, { "docid": "15c165bf92305c24c84dbf718c782aa4", "score": "0.47690624", "text": "private static void initialiseLinkedList(String value) {\n\t\tfor (int i = 0; i < value.length(); i++) {\n\t\t\tif (head == null) {\n\t\t\t\thead = new Node();\n\t\t\t\thead.value = value.charAt(i);\n\t\t\t}\n\t\t\telse {\n\t\t\t\thead.add(value.charAt(i));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f26604e0424aed5fbd2be18dd5b65a01", "score": "0.47677612", "text": "double learnSequence(Sequence<T> sequence, AtomicLong nextRandom, double learningRate);", "title": "" }, { "docid": "04efd07a694000714507bbd7b16ac388", "score": "0.4766357", "text": "public RandomListNode copyRandomListI(RandomListNode head) {\n\t\tif (head == null) return null;\n\t\tRandomListNode oldNode = head;\n\t\tRandomListNode newNode;\n\t\t// 1 create new node behind the old node in the same list\n\t\twhile (oldNode != null) {\n\t\t\tRandomListNode next = oldNode.next;\n\t\t\tnewNode = new RandomListNode(oldNode.label);\n\t\t\toldNode.next = newNode;\n\t\t\tnewNode.next = next;\n\t\t\toldNode = oldNode.next.next;\n\t\t}\t\t\n\t\t// 2 link the new node's random\n\t\toldNode = head;\n\t\twhile (oldNode != null) {\n\t\t\tnewNode = oldNode.next;\n\t\t\tnewNode.random = oldNode.random == null ? null : oldNode.random.next; // be care\n\t\t\toldNode = oldNode.next.next;\n\t\t}\n\t\t// 3 link the new node's next\n\t\toldNode = head;\n\t\tRandomListNode dummy = new RandomListNode(0);\n\t\tdummy.next = head.next;\n\t\twhile (oldNode != null) {\n\t\t\tnewNode = oldNode.next;\n\t\t\toldNode.next = newNode.next; // need change back original list\n\t\t\tnewNode.next = newNode.next == null ? null : newNode.next.next;\n\t\t\toldNode = oldNode.next;\n\t\t}\n\t\treturn dummy.next;\n\t}", "title": "" }, { "docid": "f4f092d69ff206680c1fdbcec45e9c17", "score": "0.47635072", "text": "private static Graph2D loadAminoAcidGraph(String sequenceNotation)\n\t\t\tthrows MonomerException, IOException, JDOMException {\n\n\t\t/*\n\t\t * MonomerFactory monomerFactory = MonomerFactory.getInstance();\n\t\t * Map<String, Map<String, Monomer>> monomerDB =\n\t\t * monomerFactory.getMonomerDB();\n\t\t */\n\n\t\t// setting up the sequence graph\n\t\tGraph2D sequenceGraph = new Graph2D();\n\t\tsequenceGraph.addDataProvider(NodeMapKeys.MONOMER_REF,\n\t\t\t\tsequenceGraph.createNodeMap());\n\t\tsequenceGraph.addDataProvider(EdgeMapKeys.EDGE_INFO,\n\t\t\t\tsequenceGraph.createEdgeMap());\n\t\tsequenceGraph.addDataProvider(NodeMapKeys.MONOMER_POSITION,\n\t\t\t\tsequenceGraph.createNodeMap());\n\n\t\t// initializing the copier and set the right behavior\n\t\tGraphCopier copier = new GraphCopier(\n\t\t\t\tsequenceGraph.getGraphCopyFactory());\n\n\t\tcopier.setDataProviderContentCopying(true);\n\t\tcopier.setEdgeMapCopying(true);\n\t\tcopier.setNodeMapCopying(true);\n\n\t\tString[] ncArray = sequenceNotation.split(UNIT_SEPERATION_SYMBOL);\n\n\t\tint distance = 120;\n\t\tint centerX = 50;\n\t\tint centerY = 50;\n\t\tNode sourceNode = null;\n\t\tNode targetNode = null;\n\t\tAttachment sourceAttachment = null;\n\t\tAttachment targetAttachment = null;\n\n\t\tMonomerInfo sourceMonomerInfo = null;\n\t\tMonomerInfo targetMonomerInfo = null;\n\t\tEdge edge = null;\n\n\t\tNodeMap nodeMap = (NodeMap) sequenceGraph\n\t\t\t\t.getDataProvider(NodeMapKeys.MONOMER_REF);\n\t\tNodeMap positionMap = (NodeMap) sequenceGraph\n\t\t\t\t.getDataProvider(NodeMapKeys.MONOMER_POSITION);\n\t\tEdgeMap edgeMap = (EdgeMap) sequenceGraph\n\t\t\t\t.getDataProvider(EdgeMapKeys.EDGE_INFO);\n\n\t\tNodeRealizer nodeRealizer = null;\n\n\t\tint position = 1;\n\t\tif (ncArray.length > 0) {\n\t\t\tfor (int i = 0; i < ncArray.length; i++) {\n\t\t\t\tsourceNode = sequenceGraph.lastNode();\n\t\t\t\tif (ncArray[i].contains(MONOMER_MODIFICATION_START_SYMBOL)) {\n\t\t\t\t\tncArray[i] = ncArray[i]\n\t\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\t\tncArray[i]\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(MONOMER_MODIFICATION_START_SYMBOL) + 1,\n\t\t\t\t\t\t\t\t\tncArray[i]\n\t\t\t\t\t\t\t\t\t\t\t.indexOf(MONOMER_MODIFICATION_END_SYMBOL));\n\t\t\t\t}\n\n\t\t\t\ttargetNode = copier.copy(\n\t\t\t\t\t\tSimpleElemetFactory.getInstance().createMonomerNode(\n\t\t\t\t\t\t\t\tMonomer.PEPTIDE_POLYMER_TYPE, ncArray[i]),\n\t\t\t\t\t\tsequenceGraph).lastNode();\n\t\t\t\tpositionMap.setInt(targetNode, position++);\n\t\t\t\tnodeRealizer = sequenceGraph.getRealizer(targetNode);\n\t\t\t\tnodeRealizer.setCenter(centerX + distance * i, centerY);\n\t\t\t\tif (sourceNode != null && targetNode != null) {\n\t\t\t\t\tsourceMonomerInfo = (MonomerInfo) nodeMap.get(sourceNode);\n\t\t\t\t\ttargetMonomerInfo = (MonomerInfo) nodeMap.get(targetNode);\n\t\t\t\t\tsourceAttachment = sourceMonomerInfo\n\t\t\t\t\t\t\t.getAttachment(Attachment.BACKBONE_MONOMER_RIGHT_ATTACHEMENT);\n\t\t\t\t\ttargetAttachment = targetMonomerInfo\n\t\t\t\t\t\t\t.getAttachment(Attachment.BACKBONE_MONOMER_LEFT_ATTACHEMENT);\n\n\t\t\t\t\t// if (!sourceAttachment.isConnected() &&\n\t\t\t\t\t// !targetAttachment.isConnected()) {\n\t\t\t\t\tif (!sourceMonomerInfo.isConnected(sourceAttachment)\n\t\t\t\t\t\t\t&& !targetMonomerInfo.isConnected(targetAttachment)) {\n\t\t\t\t\t\tedge = sequenceGraph.createEdge(sourceNode, targetNode);\n\t\t\t\t\t\tedgeMap.set(edge, new EditorEdgeInfoData(\n\t\t\t\t\t\t\t\tsourceAttachment, targetAttachment));\n\t\t\t\t\t\tsourceMonomerInfo.setConnection(sourceAttachment, true);\n\t\t\t\t\t\ttargetMonomerInfo.setConnection(targetAttachment, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn sequenceGraph;\n\n\t}", "title": "" }, { "docid": "b9ea0c3c304f420cc784e74f8be386f8", "score": "0.47587872", "text": "public char[] aminoAcidList(){\n\n // If initialize variable is true, initialize the array depending to the length of the linked list\n if(initialize) {\n aminoAcidArray = new char[getLinkedListLength(tempHead)];\n }\n\n // Base Case: if tempHead is equal to NULL stop recursion\n if(tempHead == null) {\n\n // Reset counter back to 0\n j = 0;\n\n // Assign node back to its head\n tempHead = iterator;\n\n return null;\n\n }else {\n\n // Store the current index of the array with the current amino acid of the linked list\n aminoAcidArray[j] = tempHead.aminoAcid;\n\n // Increment counter\n j++;\n\n // Assign the pointer to its next node in the linked list\n tempHead = tempHead.next;\n\n // Assign the initialize variable to false\n initialize = false;\n\n // Make a recursive call\n aminoAcidList();\n }\n return aminoAcidArray;\n }", "title": "" }, { "docid": "9cc6c4caa95d364357044b66c668ab5f", "score": "0.47570008", "text": "public SLLIterator() {\n\t\t\tnextNode = head;\n\t\t\titerModCount = modCount;\n\t\t\tcanRemove = false;\n\t\t}", "title": "" }, { "docid": "207f422dfcd1ba31b9765f7ee46163bf", "score": "0.4755479", "text": "private LSA initLinkStateDatabase() {\n LSA lsa = new LSA();\n lsa.linkStateID = rd.simulatedIPAddress;\n lsa.lsaSeqNumber = Integer.MIN_VALUE;\n LinkDescription ld = new LinkDescription();\n ld.linkID = rd.simulatedIPAddress;\n ld.portNum = -1;\n ld.tosMetrics = 0;\n lsa.links.add(ld);\n return lsa;\n }", "title": "" }, { "docid": "bc80e3be7642a2f911983275f85543bc", "score": "0.47484508", "text": "private static LinkedList<Integer> createList(int size) {\n HashSet<Integer> set = new HashSet<>();\n while (set.size() != size) {\n int value = getRandomNumber(0, 100);\n set.add(value);\n }\n return new LinkedList<>(set);\n }", "title": "" }, { "docid": "041b954feb90d5415e7c0d7342e30da9", "score": "0.4739576", "text": "public static void main(String[] args) {\r\n MyLinkedList myLinkedList = new MyLinkedList(10);\r\n\r\n// System.out.println(myLinkedList.toString());\r\n myLinkedList.append(5);\r\n\r\n myLinkedList.append(16);\r\n// System.out.println(myLinkedList.toString());\r\n myLinkedList.prepend(1);\r\n\r\n myLinkedList.printList();\r\n myLinkedList.insert(2, 99);\r\n myLinkedList.insert(-1, 15);\r\n myLinkedList.insert(100, 33);\r\n\r\n myLinkedList.printList();\r\n\r\n myLinkedList.remove(3);\r\n myLinkedList.printList();\r\n myLinkedList.remove(-1);\r\n myLinkedList.printList();\r\n myLinkedList.remove(99);\r\n myLinkedList.printList();\r\n\r\n myLinkedList.reverse2();\r\n myLinkedList.printList();\r\n\r\n List<Integer> linkedList = new LinkedList<>();\r\n\r\n linkedList.add(0, 23);\r\n }", "title": "" }, { "docid": "887e24fd47d4d537591bdee6c5091667", "score": "0.47379193", "text": "public LinkedList(Object item) {\r\n\t\tif(item != null) {\r\n\t\t\tcurrent = end = start = new ListItem(item); // item is the start and end\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "e2f2f066fe11e627e523e3e481797539", "score": "0.47343966", "text": "EnumerationSequence createEnumerationSequence();", "title": "" }, { "docid": "0c807b3ff9d838de2a2001d76bedb5c3", "score": "0.4732103", "text": "public static String randomSequence(int length) {\n return randomBaseSequence(length, 36);\n }", "title": "" }, { "docid": "f6b00b3a838227561f0c6d6d38b8ce79", "score": "0.47298008", "text": "public PersistentDLList() {\n first = new Node[ar_size];\n last = new Node[ar_size];\n version = 0;\n N = new int[ar_size];\n N[0] = 0;\n }", "title": "" }, { "docid": "eaf758b11f0fe44e1f56c1d3c7d74fdd", "score": "0.47258854", "text": "private void generateLDCodes() {\n\t\tprimaryOpCodeMap.put(\"0e\", new OpCodeLD(\"LD C,d8\",8, 2, OpCodeRegister.REGISTER_C));\n\t\tprimaryOpCodeMap.put(\"06\", new OpCodeLD(\"LD B,d8\",8, 2, OpCodeRegister.REGISTER_B));\n\t\tprimaryOpCodeMap.put(\"16\", new OpCodeLD(\"LD D,d8\",8, 2, OpCodeRegister.REGISTER_D));\n\t\tprimaryOpCodeMap.put(\"3e\", new OpCodeLD(\"LD A,d8\",8, 2, OpCodeRegister.REGISTER_A));\n\t\tprimaryOpCodeMap.put(\"2e\", new OpCodeLD(\"LD L,d8\",8, 2, OpCodeRegister.REGISTER_L));\n\t\tprimaryOpCodeMap.put(\"1e\", new OpCodeLD(\"LD E,d8\",8, 2, OpCodeRegister.REGISTER_E));\n\n\t\t//xA loading A from address (4 codes)\n primaryOpCodeMap.put(\"0a\", new OpCodeLD(\"LD A,(BC)\",8, 1, OpCodeRegister.REGISTER_A, OpCodeRegister.ADDRESS_BC));\n primaryOpCodeMap.put(\"1a\", new OpCodeLD(\"LD A,(DE)\",8, 1, OpCodeRegister.REGISTER_A, OpCodeRegister.ADDRESS_DE));\n primaryOpCodeMap.put(\"2a\", new OpCodeLD(\"LD A,(HL+)\",8, 1, OpCodeRegister.REGISTER_A, OpCodeRegister.ADDRESS_HL_INC));\n primaryOpCodeMap.put(\"3a\", new OpCodeLD(\"LD A,(HL-)\",8, 1, OpCodeRegister.REGISTER_A, OpCodeRegister.ADDRESS_HL_DEC));\n\n\t\t//x2 loading A into address\n primaryOpCodeMap.put(\"02\", new OpCodeLD(\"LD (BC),A\", 8, 1, OpCodeRegister.ADDRESS_BC, OpCodeRegister.REGISTER_A));\n primaryOpCodeMap.put(\"12\", new OpCodeLD(\"LD (DE),A\", 8, 1, OpCodeRegister.ADDRESS_DE, OpCodeRegister.REGISTER_A));\n primaryOpCodeMap.put(\"22\", new OpCodeLD(\"LD (HL+),A\", 8, 1, OpCodeRegister.ADDRESS_HL_INC, OpCodeRegister.REGISTER_A));\n primaryOpCodeMap.put(\"32\", new OpCodeLD(\"LD (HL-),A\", 8, 1, OpCodeRegister.ADDRESS_HL_DEC, OpCodeRegister.REGISTER_A));\n\n\n\t\t//x1 loading 16bit registers\n\t\tprimaryOpCodeMap.put(\"01\", new OpCodeLD(\"LD BC,d16\",12, 3, OpCodeRegister.REGISTERS_BC));\n\t\tprimaryOpCodeMap.put(\"11\", new OpCodeLD(\"LD DE,d16\",12, 3, OpCodeRegister.REGISTERS_DE));\n\t\tprimaryOpCodeMap.put(\"21\", new OpCodeLD(\"LD HL,d16\",12, 3, OpCodeRegister.REGISTERS_HL));\n\t\tprimaryOpCodeMap.put(\"31\", new OpCodeLD(\"LD SP,d16\",12, 3, OpCodeRegister.REGISTERS_SP));\n\n\n\t\tprimaryOpCodeMap.put(\"36\", new OpCodeLD(\"LD (HL), d8\",12, 2, OpCodeRegister.ADDRESS_HL));\n\n\t\t//4x-7x (minus 0x76 which is a halt) loading register into register and sometimes HL arithmetic\n String[] registerToRegisterOrder = {\"B\", \"C\", \"D\", \"E\", \"H\", \"L\", \"(HL)\", \"A\"};\n int startingHex = 0x40;\n for(int i = 0; i < 8; i++) {\n for(int j = 0; j < 8; j++) {\n String arg1 = registerToRegisterOrder[i];\n String arg2 = registerToRegisterOrder[j];\n int cycles = 4;\n if (arg1.equals(\"(HL)\") || arg2.equals(\"(HL)\")) {\n cycles = 8;\n }\n if(startingHex == 0x76) {\n startingHex++;\n continue;\n }\n createOpCodeLD(Util.byteToHex(startingHex), \"LD \" + arg1+ \",\" + arg2, cycles, arg1, arg2 );\n startingHex++;\n }\n }\n\n\t\tprimaryOpCodeMap.put(\"e0\", new OpCodeLD(\"LDH ($FF00+a8), A\",12, 2, OpCodeRegister.LDH_ADDRESS_FF00));\n\t\tprimaryOpCodeMap.put(\"e2\", new OpCodeLD(\"LD ($FF00+C), A\",8, 1, OpCodeRegister.ADDRESS_FF00_C, OpCodeRegister.REGISTER_A));\n\t\tprimaryOpCodeMap.put(\"ea\", new OpCodeLD(\"LD (a16), A\",16, 3, OpCodeRegister.A_TO_ADDRESS));\n\t\tprimaryOpCodeMap.put(\"fa\", new OpCodeLD(\"LD A,(a16)\",16, 3, OpCodeRegister.ADDRESS_TO_A));\n\t\tprimaryOpCodeMap.put(\"f0\", new OpCodeLD(\"LDH A, ($FF00+a8)\",12, 2, OpCodeRegister.LDH_ADDRESS_FF00_REGISTER_A));\n\n\t}", "title": "" }, { "docid": "2780ab58b986136a97622c22f4be318d", "score": "0.47253922", "text": "protected StreamSequence makeNativeSequence (final Sequence sequence) {\n return new FastaStreamSequence (sequence);\n }", "title": "" }, { "docid": "8e52a0cfed8e102c4f137b57090573be", "score": "0.47242257", "text": "public LList generateTestList(int[] values, int config){\n LList l = new LList();\n l.size = values.length;\n for(int i = 0; i < values.length; i++){\n Node n = new Node();\n n.elem = values[i];\n // 2: corrupt elements\n if(config == 2){\n n.elem++;\n }\n if(i == 0){\n n.next = n;\n // 1: break 'tail'\n if(config == 1){\n n.next = null;\n }\n }else{\n n.next = l.header;\n }\n l.header = n;\n }\n return l;\n }", "title": "" }, { "docid": "2f4a2c789648e6ba0e9339a1d5947dbc", "score": "0.4723051", "text": "long getSequenceNr();", "title": "" }, { "docid": "ab3d8d9b9ef9dd59ce094c0e4ccacbdf", "score": "0.4720078", "text": "public List(){ //Generates a node\n first =null;\n }", "title": "" }, { "docid": "24af8036b1cd9262c663469fe89fe5a7", "score": "0.47177973", "text": "int getSequence();", "title": "" }, { "docid": "24af8036b1cd9262c663469fe89fe5a7", "score": "0.47177973", "text": "int getSequence();", "title": "" }, { "docid": "f8587324e3566d106ff36e991b8e5560", "score": "0.47154307", "text": "private static List<ConnectionNotation> hybridizationWithLengthFromStart(PolymerNotation one, PolymerNotation two,\r\n\t\t\tString senseAnalogSeq, String antisenseAnalogSeq, int lengthFromStart) throws NotationException {\r\n\t\tList<ConnectionNotation> connections = new ArrayList<ConnectionNotation>();\r\n\t\tConnectionNotation connection;\r\n\t\tfor (int i = 0; i < lengthFromStart; i++) {\r\n\t\t\tint ssPos = i * 3 + 2;\r\n\t\t\tint asPos = (lengthFromStart - 1 - i) * 3 + 2;\r\n\t\t\tString ssChar = String.valueOf(senseAnalogSeq.charAt(i));\r\n\t\t\tString asChar = String.valueOf(antisenseAnalogSeq.charAt(lengthFromStart - 1 - i));\r\n\t\t\tif (complementMap.get(ssChar).equalsIgnoreCase(asChar)) {\r\n\t\t\t\tString details = ssPos + \":pair-\" + asPos + \":pair\";\r\n\t\t\t\tconnection = new ConnectionNotation(one.getPolymerID(), two.getPolymerID(), details);\r\n\t\t\t\tconnections.add(connection);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn connections;\r\n\t}", "title": "" }, { "docid": "c1ea3bce32b6d89121bcc2b7e76d9343", "score": "0.47140935", "text": "static SingleLinkedList randomFirst3()\r\n\t{\r\n\t\tsnakeList = new SingleLinkedList();\r\n\t\tRandom rnd = new Random();\t\r\n\t\tint placex = 4;\r\n\t\t//erase last element after movement\r\n\t\tsnakeList.addToHead(' ', placex++, 5);\r\n\t\tfor (int i = 0; i < 3; i++) \r\n\t\t{\r\n\t\t\tint randomfirst = rnd.nextInt(4);\r\n\t\t\tif(randomfirst == 0)\r\n\t\t\t\tsnakeList.addToHead('A', placex++, 5);\r\n\t\t\tif(randomfirst == 1)\r\n\t\t\t\tsnakeList.addToHead('T', placex++, 5);\r\n\t\t\tif(randomfirst == 2)\r\n\t\t\t\tsnakeList.addToHead('C', placex++, 5);\r\n\t\t\tif(randomfirst == 3)\r\n\t\t\t\tsnakeList.addToHead('G', placex++, 5);\r\n\t\t}\r\n\t\t\r\n\t\t String stringSnake = SnakeFunctions.snakeList.display();\r\n String substringedSnake = stringSnake.substring(0, 3);\r\n String reverse = \"\";\r\n for(int i = substringedSnake.length() - 1; i >= 0; i--)\r\n {\r\n reverse = reverse + substringedSnake.charAt(i);\r\n }\r\n // Aminoacids.textToMllAminos();\r\n Aminoacids.aminoacids.search(reverse);\r\n\t\t\r\n\t\treturn snakeList;\r\n\t}", "title": "" } ]
eb4ef12a51e7a0271bc68862ad742ba7
Validates the name of user custom exchange. Return true if the exchange name is reserved and false otherwise.
[ { "docid": "28c6d429c7f11d9faf1b56dd20b616c7", "score": "0.7442456", "text": "boolean isReservedExchangeName(String name);", "title": "" } ]
[ { "docid": "ba8a9799e47e7eb1d356733a5f07692d", "score": "0.6391649", "text": "@Override\n public boolean isUserNameValid(String name) throws CustomFacadeException {\n try {\n return baseUserValidator.isUserNameValid(name);\n } catch (IllegalArgumentException e) {\n throw new CustomFacadeException(e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "ff362466a8a22f053d1a79b631c7b032", "score": "0.61371976", "text": "private boolean checkName(String name) {\n try {\n String token = client.registerName(userNameField.getText());\n\n if (token != null) {\n accountDetails = new AccountDetails(name, token);\n UserSettings.getInstance().setDetails(accountDetails);\n\n return true;\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n return false;\n }", "title": "" }, { "docid": "4698b709985287ec7361bb04c81788d1", "score": "0.6015216", "text": "@Override\r\n\tpublic boolean validateNameOnCard(String nameOnCard) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "71177217ff723fae617f3d8ea4bcf5bd", "score": "0.5971628", "text": "public boolean isValidName() {\n\n\t\tString name = tfGuestName.getText();\n\t\tboolean isString = name.matches(\"[a-zA-Z]{1,20}+\");\n\t\tif (isString == true) {\n\t\t\treturn true;\n\t\t}\n\n\t\telse {\n\t\t\ttfGuestName.clear();\n\t\t\tNameErrorAlert.display(\"Name Error\",\n\t\t\t\t\t\"ERROR: THE NAME ENTERED IS INVALID\\n\\n\\u2022Be sure it is less than 20 characters\\n\\u2022Use only letters\"\n\t\t\t\t\t\t\t+ \"\\n\\u2022Numbers and symbols are not accepted\");\n\t\t}\n\n\t\treturn null != null;\n\t}", "title": "" }, { "docid": "e352bf6830c4ded5ee9874b586ce8048", "score": "0.59413385", "text": "@Override\n\tpublic boolean checkUserName(String name) {\n\t\tList<?> checkUserName = uMapper.checkUserName(name);\n\t\tif (null!=checkUserName&&checkUserName.size()>0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ca0fab8f237b0927726cbc1e7018e059", "score": "0.5936194", "text": "@Override\n\tpublic boolean hasCustomInventoryName() {\n\t\treturn this.localizedName != null && this.localizedName.length() > 0;\n\t}", "title": "" }, { "docid": "4bcd43ed1c4288bfc0631a5634ebc8a3", "score": "0.5842195", "text": "public boolean isNameValid(String name){\r\n return !name.matches(getString(R.string.NameValidator));\r\n }", "title": "" }, { "docid": "7d6638cf64263a531b1986f097641253", "score": "0.58276516", "text": "public boolean isValidName(){\n if (this.name.toLowerCase().equals(\"carrier\")){\n return true;\n } else {\n if (this.name.toLowerCase().equals(\"battleship\")){\n return true;\n } else {\n if (this.name.toLowerCase().equals(\"submarine\")){\n return true;\n } else {\n return this.name.toLowerCase().equals(\"destroyer\");\n }\n }\n }\n }", "title": "" }, { "docid": "b264ed62c27364ef7f60567d9fafe15c", "score": "0.58275664", "text": "protected boolean isValidName(String name)\n {\n return !isBlank(name);\n }", "title": "" }, { "docid": "f1e466a6eadccb677958d4ef38ad1ed3", "score": "0.5809093", "text": "public boolean invalidUserName() {\n String name = userName.getText();\n currentUser = searchUserData(name);\n if (name.isEmpty() || currentUser == null)\n {\n Alert a = new Alert(Alert.AlertType.INFORMATION);\n a.setContentText(\"Invalid User Name, please try again.\");\n a.show();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "7f9080436f422911b1108e2e827be312", "score": "0.57919306", "text": "@Override\n\tpublic boolean checkName(String name) {\n\t\tUser user=dao.getByName(name);\n\t\treturn user!=null;\n\t}", "title": "" }, { "docid": "422a50f4421c807dd06beb39b8febbab", "score": "0.57884717", "text": "@Override\n\t\t\tpublic boolean isValid(String name) {\n\t\t\t\tif (oldInvKey == null || !invalidationKey.isValid(oldInvKey)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t// Check for existence of the file\n\t\t\t\treturn Files.exists(cacheFolderPath.resolve(name));\n\t\t\t}", "title": "" }, { "docid": "4cc5811bd7fbe29ec6ce78caedbc55d6", "score": "0.57387954", "text": "public boolean isValidName(String name) {\n\t\tif (commandslist.contains(name) || name.contains(\" \") || server.getServerPeers().contains(name)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "eafb56f6cfde52373a2374fc90e7fd33", "score": "0.5673297", "text": "public boolean checkNewUserName (String userName) {\n\t\treturn tutorManagementService.userNameIsAvailable(userName);\n\t}", "title": "" }, { "docid": "c9bdac4c0d164955ed3c281c2ff98e1e", "score": "0.5665984", "text": "public boolean validate(String namingType, String name) throws Exception {\n GeneratedName genName = genNameRepo.findUnReleased(namingType, name);\n return (genName == null);\n }", "title": "" }, { "docid": "20a35393c2f1f4da3eb451cddcad113c", "score": "0.5636826", "text": "public boolean isInvNameLocalized()\n\t{\n\t\treturn customName != null;\n\t}", "title": "" }, { "docid": "fcd640e7ae8bcba9c1230e7dc6a53906", "score": "0.5623587", "text": "public static boolean nameCheck(String name) {\n return true;\n }", "title": "" }, { "docid": "c05375b525c850650ea1dc0dd5752540", "score": "0.5618092", "text": "private boolean validName(final String name){\n\t\t\n\t\tif(name.trim().isEmpty()) return false;\n\t\telse return true;\n\t}", "title": "" }, { "docid": "df62d59888696a9a65bc15c9f3d607e0", "score": "0.56127256", "text": "private static boolean checkValidity(String name) {\r\n\r\n\t\tif (!(name.charAt(0) == '@'))\r\n\t\t\treturn false;\r\n\r\n\t\tfor (int i = 1; i < name.length(); i++) {\r\n\t\t\tchar c = name.charAt(i);\r\n\t\t\tif (!(Character.isLetter(c) || Character.isDigit(c) || c == '_'))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "58635a63bac423b71cf41998c40ff1a3", "score": "0.55722016", "text": "public boolean isNameValid(String name){\n\t\treturn searchWord(\"Name\", name+\"%\", DatabaseConstants.LIKE);\n\t}", "title": "" }, { "docid": "bac1f439ecd12fe13879c0a0133b7cfd", "score": "0.557149", "text": "private boolean isValid(String name) {\r\n\t\treturn (null != name && !name.isEmpty());\r\n\t}", "title": "" }, { "docid": "7c8d0046276f4f051d426fba24a1c540", "score": "0.556861", "text": "public boolean validateName(String name) {\n\t\tboolean validate = true;\n\t\tif ( name.length() == 0 && name.length() < 10 ) {\n\t\t\tvalidate = false;\n\t\t}\n\t\treturn validate;\n\t}", "title": "" }, { "docid": "4cd05db2cdd23d65798a49766657fdee", "score": "0.5566769", "text": "public boolean userNameUQ(String name)\n\t{\n\t\treturn repo.findByUsername(name).isEmpty();\n\t}", "title": "" }, { "docid": "016e906ca373efd8a039317a656ad811", "score": "0.55619484", "text": "boolean isExistingUser(String userName) throws UserStoreException;", "title": "" }, { "docid": "06d9f27c48888b29baed7fbe967fe787", "score": "0.55520076", "text": "private boolean checkName(String name) {\r\n\t\tint minNameLen = getResources().getInteger(R.integer.MIN_NAME_LEN);\r\n\r\n\t\tif (name.length() >= minNameLen) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d4ba61438933eb130e7e6ba7df758f19", "score": "0.554975", "text": "private boolean isValidName(String name) {\n\t\treturn name != null && !name.contains(\"$\");\n\t}", "title": "" }, { "docid": "e3ee2c0150d5d0e71292a0db712a981c", "score": "0.5535897", "text": "public String checkUserName() {//check user name repetition\n //select database to see if the name is exit\n User user = UserModel.getUserByUserName(this.sysUser);\n if (user == null) {\n this.msgType = \"OK\";\n this.msgDescribe = \"尚未注册\";\n } else {\n this.msgType = \"NO\";\n this.msgDescribe = \"该账号已注册,请更换账号后再试一次\";\n\n }\n return SUCCESS;\n }", "title": "" }, { "docid": "c2cda266be174e2cdd17196a83d29e23", "score": "0.55130255", "text": "public boolean hasValidName() {\n\t\treturn teamName.length() >= LONG_TEAMNAME\n\t\t\t\t&& teamName.matches(REGEX_TEAMNAME);\n\t}", "title": "" }, { "docid": "789500ca172821eb2bb3c270701f175d", "score": "0.54970104", "text": "boolean checkAvailableUsername(String username);", "title": "" }, { "docid": "9478a75cb4471594973428b2a8c9dcf3", "score": "0.5489652", "text": "public boolean checkUsernameAvailable(String user);", "title": "" }, { "docid": "c21f6e93aa4a97330f521743fdb65b4e", "score": "0.54688084", "text": "public boolean checkUserExist(String userName);", "title": "" }, { "docid": "2b2900702d646dcf889046883d9fa261", "score": "0.54549295", "text": "public boolean isAvailableName() {\n\t\t\t\n\t\tString name = mTextName.getText().toString();\n\t\tboolean isAvailableName = true;\n\t\t\n\t\t// query the database for users with the same name as that entered by the user\n\t\tCursor cur = mDatabaseHelper.getReadableDatabase().rawQuery( \n\t\t\t\t\"SELECT _id FROM users WHERE name = \" + \"'\" + name + \"'\", null);\n\t\t\n\t\tif(cur != null && cur.moveToFirst()) {\n\t\t\t\n\t\t\t// a user by the same name exists\n\t\t\tisAvailableName = false;\n\t\t}\n\t\t\n\t\tcur.close();\n\t\t\n\t\treturn isAvailableName;\n\t}", "title": "" }, { "docid": "e2e18449d22841ae40301f1d96c93629", "score": "0.5454779", "text": "public static boolean isValidName(String name){\r\n\t\tif(org.apache.commons.lang.StringUtils.isBlank(name)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn name.length()>1;\r\n\t}", "title": "" }, { "docid": "3269b5a7415aa1e94fd4f1da021d5b50", "score": "0.5446904", "text": "private Boolean validateName() {\n String nameToBeValidated = username.getEditText().getText().toString();\n\n if (nameToBeValidated.isEmpty()) {\n username.setError(\"Username cannot be empty!\");\n return false;\n } else {\n username.setError(null);\n username.setErrorEnabled(false);\n return true;\n }\n }", "title": "" }, { "docid": "1779043b29fd15c9adadb02f6d0db6b9", "score": "0.54353696", "text": "private boolean isValidName(String name, Session session) {\n\t\treturn name != null && (!DBMS.ORACLE.equals(session.dbms) || !name.startsWith(\"BIN$\"));\n\t}", "title": "" }, { "docid": "340e348baa19bc88d73af7361f27defe", "score": "0.5414261", "text": "public static boolean validName(final String name) {\n if (name == null) {\n return false;\n }\n if (name.length() < 2 || name.length() > 3) {\n // log.warning(\"field name must be present and have 2 or 3 characters length and found: \"+field);\n return false;\n }\n if (!StringUtils.isNumeric(name.substring(0, 2))) {\n // log.warning(\"field name should start with a numeric prefix and found: \"+field.substring(0, 2));\n return false;\n }\n // log.warning(\"letter option if present should be a single capital letter or an 'a' for all letter options, and\n // found: \"+field.charAt(2));\n return name.length() != 3\n || Character.isDigit(name.charAt(2))\n || name.charAt(2) == 'a'\n || Character.isUpperCase(name.charAt(2));\n }", "title": "" }, { "docid": "4af290230d009ac58eba137d4cafe747", "score": "0.5409171", "text": "public boolean verifyPayorName(String payorName) {\n\t\tboolean status = false;\n\t\tif (fldPayor.getAttribute(\"value\").equals(payorName)) {\n\t\t\tstatus = true;\n\t\t}\n\t\treturn status;\n\t}", "title": "" }, { "docid": "acb7c8f58a0e3cc55fb4fc73b3fb15ee", "score": "0.5404808", "text": "private boolean verifyName() {\n\n String name = Fullname.getEditText().getText().toString().trim();\n if (name.isEmpty()) {\n Fullname.setErrorEnabled(true);\n Fullname.setError(\"Name Required\");\n return true;\n } else {\n Fullname.setErrorEnabled(false);\n return false;\n }\n }", "title": "" }, { "docid": "eefb4a26bbdae5a8f4503b43ef56f0eb", "score": "0.5402398", "text": "public boolean isUserNameExisted(String userName);", "title": "" }, { "docid": "72451e3459ae4d8ad8877707b91ae487", "score": "0.5384872", "text": "@Override\r\n\tpublic boolean hasName(String username) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "83c82f1a87a6c04e3394edd8b3a92961", "score": "0.5376736", "text": "public boolean checkUsername(String userName);", "title": "" }, { "docid": "8c40293f14ed9ec95a7b174adf3f9df6", "score": "0.5357663", "text": "public boolean isValidUserName(String newUserName){\n\t\treturn false;\n\t}", "title": "" }, { "docid": "43f46c45037c5e08dfb890d3e132850f", "score": "0.53476536", "text": "public static boolean isValidName(String name){\n if (name == null || name.isEmpty()) {\n return false;\n }\n Pattern pattern = Pattern.compile(\"^[A-Z][a-z]{3,20}|[А-ЯІЇ][а-я]{3,20}$\");\n Matcher matcher = pattern.matcher(name);\n if (!matcher.matches()) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "becd997b85f686425ab9ae97acb31967", "score": "0.53052855", "text": "@Raw\n\tpublic boolean canHaveAsName(String name)\n\t{\n\t\treturn name.length()>1 && name.substring(0,1).matches(\"[A-Z]+\") && name.matches(\"[A-Za-z '\\\"]+\");\n\t}", "title": "" }, { "docid": "4c1f59c65211e260cfa3c3b397fb4b4c", "score": "0.53008497", "text": "public boolean containsAllowedUser(String name){\n\t\t//TODO\n\t\tif(name==null) throw new IllegalArgumentException();\n\t\tfor(int i = 0; i < this.allowedUsers.size(); i++){\n\t\t\tif(this.allowedUsers.get(i).equals(name))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "45770d57fcd320c0826101a9e6d7b96e", "score": "0.5298648", "text": "public boolean hasCustomName()\n {\n return this.upperChest.hasCustomName() || this.lowerChest.hasCustomName();\n }", "title": "" }, { "docid": "0def67a652fe3a1e93a163c833500d0f", "score": "0.5298223", "text": "private Boolean checkName(String str) {\n\t\t// \\w -> nur Buchstaben oder Zahlen\n\t\tif (str.matches(\"^[a-zA-Z]*$\") == false) {\n\t\t\treturn false;\n\t\t} else if (str.length() > 10) {\n\t\t\treturn false;\n\t\t} else if (str.length() < 2) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "fb71d97d40e6f9cf9b9e75e12a87ef8a", "score": "0.52918535", "text": "boolean hasNameVn();", "title": "" }, { "docid": "ab8f3ddacb863f12e2897c582c4a5903", "score": "0.52791923", "text": "private boolean nameNotExist(String userName) {\n for (int x = 0; x < numOfPlayer; x++) {\n if (playerList[x].getUserName().equals(userName)) {return false;}\n }\n return true;\n }", "title": "" }, { "docid": "1f2e2b2ca0462669aad6e46d99108192", "score": "0.52734196", "text": "private boolean isValidName(String name) {\n return Pattern.matches(\"[a-zA-Z0-9 ]{1,15}\", name);\n }", "title": "" }, { "docid": "cc9f7c4e5e8fec558b94bd1189ca5298", "score": "0.524393", "text": "public static boolean isLegalName(final String name) {\n\t\treturn !name.matches(\".*[^a-zA-Z0-9_]+.*\");\n\t}", "title": "" }, { "docid": "cb2cd05b60f47ebd22444c66951e0652", "score": "0.52370554", "text": "public static boolean validateNameSearch(String name) {\n name = StringUtils.lowerCase(name);\n name = StringUtils.trim(name);\n\n if (StringUtils.isEmpty(name)) {\n return false;\n }\n\n String pattern = \"([a-z,\\\\-\\\\s])+\";\n return name.matches(pattern);\n }", "title": "" }, { "docid": "4ca7c54262165de5945c9a2a73a059a7", "score": "0.52306145", "text": "public boolean isChatterValid (Name username);", "title": "" }, { "docid": "22b0adcd0cfe5575a8238ed3c6f5a65e", "score": "0.5222301", "text": "public boolean isValid() {\n\t\t\treturn name != null && !(this instanceof InvalidChoice);\n\t\t}", "title": "" }, { "docid": "5d6a7afbb887c87f0ee74446ba19c8cb", "score": "0.5210006", "text": "public boolean isSetApplicationName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(APPLICATIONNAME$26) != null;\n }\n }", "title": "" }, { "docid": "5e8425e8fd250d8b392ebc18db926a85", "score": "0.52095795", "text": "public static QueryResult isValidUserName(String desiredUserName)\r\n { \r\n QueryResult result = new QueryResult();\r\n try {\r\n result.setResult(AccountDB.isUserNameUnique(desiredUserName, \"client\"));\r\n }\r\n catch (SQLException e) {\r\n result.setSqlError(true);\r\n }\r\n \r\n return result; \r\n }", "title": "" }, { "docid": "7991b2e50f0b9471c57d567c7b8e3004", "score": "0.51989293", "text": "public boolean isValidIdentifierName()\n {\n return this.getSuperFrontEndEvent().isValidIdentifierName();\n }", "title": "" }, { "docid": "cb0c345d9f00615ed0aa3064d15e5078", "score": "0.5195601", "text": "public boolean validateUsername() {\n if(username.length() <= 0) {\n setErrorMessage(getString(R.string.create_account_no_username_error));\n return false;\n }\n String regExp = \"^[A-Za-z][ A-Za-z0-9_]*$\";\n Pattern pattern = Pattern.compile(regExp);\n Matcher matcher = pattern.matcher(username);\n if(matcher.find()) {\n return true;\n }\n else {\n setErrorMessage(getString(R.string.create_account_invalid_username_error));\n return false;\n }\n }", "title": "" }, { "docid": "549cd124cc8e1eb2438833aa3c320c12", "score": "0.5194179", "text": "private boolean checkValidName(String name) {\n\t\tif (name == \"\" || name == null) {\n\t\t\tSystem.out.println(\"file name cannot be nothing\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\tfor (int i = 0; i < name.length(); i++) {\n\t\t\t\tif (\"\\t/ !@#$%^&*(){}`|<>?\".indexOf(name.charAt(i)) != -1){\n\t\t\t\t\tSystem.out.println(\"File name cannot contain / !@#$%^&*(){}`|<>?\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t}", "title": "" }, { "docid": "907d019301d57c64e0fb576887797233", "score": "0.5190018", "text": "private boolean validName(String name)\n {\n \n Pattern p = Pattern.compile(\"[a-zA-Z]{1,100}\");\n Matcher m = p.matcher(name);\n return m.matches();\n \n }", "title": "" }, { "docid": "b746f26068c8fcf9ebf00497a6e8d3c8", "score": "0.5175247", "text": "public boolean hasUserName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "816a9dac6b3f4383c290fa5462f1b149", "score": "0.5175181", "text": "public static boolean checkUserName(String userName) {\n\n\t\tboolean valid = false;\n\t\tif (StringValidator.isValidString(userName, \"User name shouldn't empty\")) {\n\n\t\t\tvalid = StringValidator.isValidUsername(userName);\n\t\t}\n\n\t\treturn valid;\n\t}", "title": "" }, { "docid": "e850ad98957218a23d8a7a650854e53d", "score": "0.51645994", "text": "private boolean validate() {\n\t\tboolean isNameGiven = false;\n\t\tView focusView = null;\n\n\t\tmUserName = mNameText.getText().toString().trim();\n\n\t\tif (TextUtils.isEmpty(mUserName)) {\n\t\t\tmNameText.setError(getString(R.string.blank_name));\n\t\t\tfocusView = mNameText;\n\t\t} else {\n\t\t\tisNameGiven = true;\n\t\t}\n\n\t\tif (focusView != null) {\n\t\t\tfocusView.requestFocus();\n\t\t}\n\n\t\treturn isNameGiven;\n\t}", "title": "" }, { "docid": "3438f513e4538d20b7177caa6f9d9392", "score": "0.51629925", "text": "@Override\r\n\tpublic boolean checkInsured(String userName) throws InsuranceException {\r\n\t\tResultSet resultSet = null;\r\n\t\tList<AccountCreation> checkinsuredList = new ArrayList<>();\r\n\t\tboolean validFlag = false;\r\n\t\tconnection = JdbcUtility.getConnection();\r\n\t\ttry {\r\n\t\t\tstatement = connection.prepareStatement(QueryMapper.checkAccount);\r\n\t\t\tstatement.setString(1, userName);\r\n\t\t\tresultSet = statement.executeQuery();\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\tString insuredName = resultSet.getString(1);\r\n\t\t\t\tAccountCreation accountCreation2 = new AccountCreation();\r\n\t\t\t\taccountCreation2.setInsuredName(insuredName);\r\n\t\t\t\tcheckinsuredList.add(accountCreation2);\r\n\t\t\t}\r\n\t\t\tif (checkinsuredList.isEmpty()) {\r\n\t\t\t\tvalidFlag = true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn validFlag;\r\n\t}", "title": "" }, { "docid": "77ee9ea92b50704c433a2934fe7aaef5", "score": "0.51591605", "text": "static boolean hasPlayerName(Context context, int playerNumber) {\n boolean isPortrait = Utils.isPortrait(context);\n SharedPreferences shprefs = context.getSharedPreferences(Constants.SHPREFS, Context.MODE_PRIVATE);\n String defaultName = context.getString(Constants.getPlayerDefaultNameIds(isPortrait)[playerNumber]);\n return !shprefs.getString(Constants.getPlayerNameStorageIds(isPortrait).get(Constants.getPlayerNameIds(isPortrait)[playerNumber]),\n defaultName).equals(defaultName);\n }", "title": "" }, { "docid": "3045ab5d81962db72e156f4b1a414b73", "score": "0.51587117", "text": "boolean hasRoleName();", "title": "" }, { "docid": "3045ab5d81962db72e156f4b1a414b73", "score": "0.51587117", "text": "boolean hasRoleName();", "title": "" }, { "docid": "8aede1fa10b2329c552bfa21fd0b5d33", "score": "0.5154416", "text": "private boolean validGameName(String name) {\n return name.length() <= ChatServer.GAME_NAME_MAX_LEN\n && name.length() > 0;\n }", "title": "" }, { "docid": "1921bbfc75737ef3cb98fd5a04cbd434", "score": "0.5152543", "text": "@Override\r\n\tpublic void validateAccount(String accountName) {\n\t\t\r\n\t}", "title": "" }, { "docid": "048678e7142807eb0b4f2322ff41ae95", "score": "0.5152188", "text": "private boolean snippetNameIsAvailable() {\n String snippetName = nameField.getText().toString();\n Boolean nameIsAvailable;\n\n if (ExternalReader.snippetExists(this, worldName, articleCategory, articleName,\n snippetName)) {\n nameIsAvailable = false;\n ThemedSnackbar.showSnackbarMessage(this, coordinatorLayout,\n getString(R.string.snippetExistsError, snippetName, articleName));\n } else {\n nameIsAvailable = true;\n }\n\n return nameIsAvailable;\n }", "title": "" }, { "docid": "8e06b9317b5971f4ee276034db5ee85b", "score": "0.51491576", "text": "public String validateName() {\n\t\tString name = \"\";\n\t\tArrayList<String> names = getAllNames();\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"Enter the name of your event:\");\n\t\t\tname = scan.nextLine();\n\t\t\tif (names.contains(name)) {\n\t\t\t\tSystem.out.println(\"Event name already exists.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.length() == 0) {\n\t\t\t\tSystem.out.println(\"The name of your event cannot be empty.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(\"Event name added.\");\n\t\t\tbreak;\n\t\t}\n\t\treturn name;\n\t}", "title": "" }, { "docid": "6ac0cd968aaec230f2052fc82875a0d8", "score": "0.513877", "text": "public boolean hasUserName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "276a0cc055b9343c037652db37532a7a", "score": "0.51309645", "text": "private boolean isUsernameValid(String username) {\n //TODO: local username validation (...)\n\n return true;\n }", "title": "" }, { "docid": "63bfb4adfbc844f35d4d98861224e7ca", "score": "0.51230437", "text": "public static boolean isNameValid(String name) {\n return (name != null) && name.matches(NAME_REGEX);\n }", "title": "" }, { "docid": "1bac12104a60fa88ec3cffd2c184c35c", "score": "0.5121126", "text": "public static boolean validateName(String name) {\n Matcher matcherName = Pattern.compile(regexName).matcher(name);\n if (matcherName.matches()) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "0baad7c3101768f8783144726dd25e00", "score": "0.51165634", "text": "boolean hasPlayerName();", "title": "" }, { "docid": "0db4d03de14df1f3803ded2d838d13bc", "score": "0.5096961", "text": "public boolean isRegionNameTaken(String name){\n \t\treturn getRegion(name) != null;\n \t}", "title": "" }, { "docid": "2f63881c9e25ea01faacb0d24c96ca46", "score": "0.5092315", "text": "boolean hasUserName();", "title": "" }, { "docid": "2f63881c9e25ea01faacb0d24c96ca46", "score": "0.5092315", "text": "boolean hasUserName();", "title": "" }, { "docid": "90da417622dae9a7059c160159e710ea", "score": "0.50863105", "text": "@Override\r\n\tpublic boolean validateName(EmployeeBean e) throws EmployeeException {\r\n\t\tboolean isvalid =true;\r\n\t\tif(!(e.getEid() >999)) {\r\n\t\t\tthrow new EmployeeException(ExceptionMessage.ERROR1);\r\n\t\t}\r\n\t\tif(!(e.getEname().length() >= 4 && e.getEname().matches(\"[a-z A-Z]{4,}\"))) {\r\n\t\t\tthrow new EmployeeException(ExceptionMessage.ERROR2);\r\n\t\t}\r\n\t\tif(!(e.getSal()> 0)) {\r\n\t\t\tthrow new EmployeeException(ExceptionMessage.ERROR3); \r\n\t\t}\r\n\t\tif((e.getDept()== null && !(e.getDept().matches(\"[a-z]{20}\")))) { \r\n\t\t\tthrow new EmployeeException(ExceptionMessage.ERROR4); \r\n\t\t}\r\n\t\treturn isvalid;\r\n }", "title": "" }, { "docid": "532c14ef101a38b6eb56fc9f9432b955", "score": "0.5078479", "text": "private boolean checkUsername(String userName) {\r\n\t\tboolean check = false;\r\n\t\tMatcher matcher = PATTERN.matcher(userName);\r\n\t\tif (matcher.find()) {\r\n\t\t\tcheck = true;\r\n\t\t}\r\n\t\treturn check;\r\n\t}", "title": "" }, { "docid": "f8ff2ecd1798c37d515b1b26dbd2551a", "score": "0.5077196", "text": "@Test\n\t\tpublic void testValidatewsReq_for_nameOnCard_Empty() {\n\t\t\twsReq.getCardDetails().setNameOnCard(\" \");\n\n\t\t\ttry {\n\t\t\t\tvalidator.validatewsReq(wsReq);\n\t\t\t} catch (RegisterSvcReqInvalid e) {\n\t\t\t\tAssert.assertEquals(\"02009\", e.getRespCode());\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "e2d20340189c085d7ddd9d4c3eb0ebf1", "score": "0.5076867", "text": "public boolean hasName(String name);", "title": "" }, { "docid": "d07a1d7f5ea5404c07aeef333d1aabbc", "score": "0.5070964", "text": "boolean hasCustomerName();", "title": "" }, { "docid": "fb0a20efc0177d110d08536226e93e69", "score": "0.5068699", "text": "public boolean validateUsername(String username) {\n\t\tif(username.length()<12)\n\t\t\treturn false;\n\t\tString suffix=new String();\n\t\tsuffix=\"_job\";\n\t\tif(username.substring(username.length()-4).equals(suffix))\n\t\t\treturn true;\n\t\telse\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4e255a67898cb22e281b966e3d953d4b", "score": "0.50686103", "text": "private static boolean isValidExtensionName(String name) {\n for (int i = 0; i < name.length(); i++) {\n if (!isValidChar(name.charAt(i))) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "5178ac802896eb7c8aad4248e574b55c", "score": "0.50655055", "text": "@Override\n\tpublic boolean isInvNameLocalized() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c108437851bfc76a907097a62f1693ec", "score": "0.5065012", "text": "public boolean isSetCustname()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CUSTNAME$36) != 0;\n }\n }", "title": "" }, { "docid": "412642099622f5c4fad55f235e53a115", "score": "0.5064199", "text": "public boolean isInvNameLocalized() {\r\n\t\treturn this.field_94050_c != null && this.field_94050_c.length() > 0;\r\n\t}", "title": "" }, { "docid": "4f1f768dd07fade6b7e14375fad4c18b", "score": "0.50616515", "text": "boolean hasClientName();", "title": "" }, { "docid": "279e1cacc62666f6e97a642d67ffe89c", "score": "0.50589854", "text": "@Override\n public boolean isInvNameLocalized()\n {\n return false;\n }", "title": "" }, { "docid": "89436d94378d9a72e6250d08c78e47ed", "score": "0.5053672", "text": "@Override\r\n\tpublic boolean userExits(String name) {\n\t\tUser user = this.findUserByName(name);\r\n\t\tif (user == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "e892185f1336494645dfd3cd2343c0d4", "score": "0.50510496", "text": "public boolean checkUsername(String username);", "title": "" }, { "docid": "9aafdeb5051679036a255c35b44826f3", "score": "0.5046967", "text": "public boolean isNameAvailable (String name) {\n\t\tname = name.toLowerCase();\n\t\tList<Brand> brandList = getAllBrands();\n\t\t\n\t\tfor(Brand brand : brandList) {\n\t\t\tString brandName = brand.getBrandName();\n\t\t\tbrandName = brandName.toLowerCase();\n\t\t\tif(brandName.equals(name)) {\n\t\t\t\tSystem.out.println(\"Brand is already in the database. Returning false\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Brand is not in the database. Returning true.\");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "33aaff0f3e08783b70594f1d196e7944", "score": "0.50461113", "text": "boolean isExistingRole(String roleName) throws UserStoreException;", "title": "" }, { "docid": "e4b121819e78f76f57ca859961755004", "score": "0.50426066", "text": "public boolean isInputValid(String tempPortfolioName, String tempCurrencyBox) {\n \t\n \tif (tempPortfolioName == null || tempPortfolioName.trim().isEmpty() || tempCurrencyBox == null) {\n \n\t\t\t Alert alert = new Alert(AlertType.ERROR);\n\t\t\t alert.setTitle(\"Eingabefehler\");\n\t\t\t alert.getDialogPane().getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n\t\t\t alert.getDialogPane().getStyleClass().add(\"dialog-pane\");\n\t\t\t alert.setHeaderText(\"Portfolioname und Waehrung darf nicht leer sein\");\n\t\t\t alert.showAndWait();\n\t\t\t \n \t\treturn false;\n \t}\n \t\n \treturn true;\n }", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.5035384", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.5035384", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.5035384", "text": "boolean hasName();", "title": "" }, { "docid": "c09567641e7b3fea3e329539323e11dd", "score": "0.5035384", "text": "boolean hasName();", "title": "" } ]
1f1211058dbb3ec6b9451c8858a7563b
Gets the value of score.
[ { "docid": "21aedc02b72cf4a8c882643089e444d2", "score": "0.8192499", "text": "public int getScore() {\n return score;\n }", "title": "" } ]
[ { "docid": "6af6caa1eb26f9d1bee6defc50200a0b", "score": "0.859587", "text": "public int getScore() {\r\n return scoreVal;\r\n }", "title": "" }, { "docid": "79bd88bb6638725f6f2e9ab33b97b052", "score": "0.8501356", "text": "public Integer getScore() {return score.get();}", "title": "" }, { "docid": "47dfff2cc27d11c414aa1cdab3269c6a", "score": "0.8470565", "text": "public float getScore() { \treturn score.get(); }", "title": "" }, { "docid": "0a0b847bc03ed948d5977c89fd1548c4", "score": "0.8448814", "text": "public int getScore() {\n return score.get();\n }", "title": "" }, { "docid": "1d9ef315e0bbb30f88f6ad5d152aa1b4", "score": "0.8416958", "text": "public int getScore() {\n return this.score.getValue();\n }", "title": "" }, { "docid": "d02351a88148871d05e7128cfc598ec7", "score": "0.8334662", "text": "public final double getScore() {\n return this.score;\n }", "title": "" }, { "docid": "463b8e9d55006911ab5bc5696878ff0d", "score": "0.83335537", "text": "public double getScore()\r\n\t\t{\r\n\t\t\treturn score;\r\n\t\t}", "title": "" }, { "docid": "7470d58146a8c287708d311f693a11f4", "score": "0.82851535", "text": "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "77073669518ce887342c86e95868e58f", "score": "0.8265998", "text": "public double getScore() {\n return score;\n }", "title": "" }, { "docid": "77073669518ce887342c86e95868e58f", "score": "0.8265998", "text": "public double getScore() {\n return score;\n }", "title": "" }, { "docid": "686a1beaee0e643caeea097f1c095896", "score": "0.8249844", "text": "public double getScore () {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "48b4969ed12271f37714bab42f3d03f5", "score": "0.82469803", "text": "public final int getScore() {\n return score;\n }", "title": "" }, { "docid": "3a9657dbd24ba1c6114b8568d8e55cb9", "score": "0.8245196", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "3a9657dbd24ba1c6114b8568d8e55cb9", "score": "0.8245196", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "3a9657dbd24ba1c6114b8568d8e55cb9", "score": "0.8245196", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "3a9657dbd24ba1c6114b8568d8e55cb9", "score": "0.8245196", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "3a9657dbd24ba1c6114b8568d8e55cb9", "score": "0.8245196", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "1b396980db23038a20051762357441b7", "score": "0.824181", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "1b396980db23038a20051762357441b7", "score": "0.824181", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "1b396980db23038a20051762357441b7", "score": "0.824181", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "1b396980db23038a20051762357441b7", "score": "0.824181", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "1b396980db23038a20051762357441b7", "score": "0.824181", "text": "public float getScore() {\n return score_;\n }", "title": "" }, { "docid": "c5f77d1a7f5bd6656809d25cd8b08b3c", "score": "0.8238287", "text": "public Integer getScore() {\n return this.score;\n }", "title": "" }, { "docid": "abd03dcc4d8e51a1c143d486a0678169", "score": "0.8237796", "text": "public Integer getScore() {\r\n return score;\r\n }", "title": "" }, { "docid": "4b7737f3e9864d858d454fd7c734b6e8", "score": "0.82365125", "text": "Double getScore();", "title": "" }, { "docid": "bf35629cae852a37a3d560cd60c4e088", "score": "0.8233565", "text": "public int getScore() {\n return score_;\n }", "title": "" }, { "docid": "05aa242a5ef77760080a5958211bfe12", "score": "0.82262254", "text": "public static int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7761590e513435e4d1f864716a726472", "score": "0.822121", "text": "public int getScore() {\r\n return score;\r\n }", "title": "" }, { "docid": "7761590e513435e4d1f864716a726472", "score": "0.822121", "text": "public int getScore() {\r\n return score;\r\n }", "title": "" }, { "docid": "596c58067829f595bced1089053e335e", "score": "0.8220952", "text": "public Double getScore() {\n return score;\n }", "title": "" }, { "docid": "ff9f01ad8309bc5eeaf170817d8e2ea4", "score": "0.8210971", "text": "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "09640642b88a07060cd9fce909191cdf", "score": "0.81988025", "text": "public int getScore() {\n return score_;\n }", "title": "" }, { "docid": "48d0b0d6ebce54cc37def4eaf702ee7b", "score": "0.81966555", "text": "public int getScore() {\r\n return this.score;\r\n }", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "d93c258710d222236c97701ef1494922", "score": "0.81856585", "text": "float getScore();", "title": "" }, { "docid": "5eb4019fd5b416839af81b46d452c1d3", "score": "0.81739146", "text": "public int getScore(){\n return scoreboard.getScore();\n }", "title": "" }, { "docid": "f1f0870cb8ad307887edd8170d307abe", "score": "0.8173501", "text": "@Override\r\n\tpublic double getScore() {\n\t\treturn this.score;\r\n\t}", "title": "" }, { "docid": "382b2f62ccc58eda8ff39cff577144c7", "score": "0.81682485", "text": "public int getScore() \n\t{\n\t\treturn score;\n\t}", "title": "" }, { "docid": "fc59750675c9e56fb6a6b87d91d3e4fc", "score": "0.81571114", "text": "public Integer getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "85a2e9628e4c7153e191a1197d4e7d82", "score": "0.8153246", "text": "public int getScore() {\n return this.score;\n }", "title": "" }, { "docid": "a91b52554de4ce65304dd1db15ea5f8c", "score": "0.8151504", "text": "public int getScore() {\n return score_;\n }", "title": "" }, { "docid": "e3f1e3828d5f502f1abf4870de3fa4d0", "score": "0.81513244", "text": "public int getScore()\n\t{\n\t\treturn score;\n\t}", "title": "" }, { "docid": "e3f1e3828d5f502f1abf4870de3fa4d0", "score": "0.81513244", "text": "public int getScore()\n\t{\n\t\treturn score;\n\t}", "title": "" }, { "docid": "e3f1e3828d5f502f1abf4870de3fa4d0", "score": "0.81513244", "text": "public int getScore()\n\t{\n\t\treturn score;\n\t}", "title": "" }, { "docid": "e9410242f755bde634d5beeaab2d4ac9", "score": "0.81488436", "text": "public int getScore()\n {\n return score;\n }", "title": "" }, { "docid": "a5bb13b2b99c8717fa7474e3fb405182", "score": "0.8148568", "text": "public int getScore(){\n\t\treturn score;\n\t}", "title": "" }, { "docid": "a5bb13b2b99c8717fa7474e3fb405182", "score": "0.8148568", "text": "public int getScore(){\n\t\treturn score;\n\t}", "title": "" }, { "docid": "a5bb13b2b99c8717fa7474e3fb405182", "score": "0.8148568", "text": "public int getScore(){\n\t\treturn score;\n\t}", "title": "" }, { "docid": "09ecc9d883c0c60c41f1b34a97d77a83", "score": "0.81482214", "text": "public int getScore(){\n\t\treturn this.score;\n\t}", "title": "" }, { "docid": "905d82fd7af1c1e77870dab8e2b22188", "score": "0.81472343", "text": "public int getScore()\n {\n return this.score;\n }", "title": "" }, { "docid": "e102237498cc7833d867fd4a5aa8c75f", "score": "0.81394285", "text": "public int score() {\n return score;\n }", "title": "" }, { "docid": "0872106678197a82ce483797797933b1", "score": "0.8115204", "text": "public int getScore() {\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "0872106678197a82ce483797797933b1", "score": "0.8115204", "text": "public int getScore() {\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "d4656b9c5bea779e6907f1bf4d192d05", "score": "0.81120455", "text": "public Float getScore() {\n return score;\n }", "title": "" }, { "docid": "075662b015d5e9131bf49c8edc9350f5", "score": "0.8094359", "text": "public int getScore()\n {\n return score;\n }", "title": "" }, { "docid": "a56d54801b553a207cac53c576afa4c0", "score": "0.8092871", "text": "public int getScore()\n\t{\n\t\treturn this.score;\n\t}", "title": "" }, { "docid": "4d3c902bb3344f9a051ff27527509b77", "score": "0.80875325", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "4d3c902bb3344f9a051ff27527509b77", "score": "0.80875325", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "4d3c902bb3344f9a051ff27527509b77", "score": "0.80875325", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "f9700d5fc51b4a579686545e6d0ecd27", "score": "0.8065047", "text": "public int getScore() {\r\n\t\treturn this.score;\r\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "7bd35bf94a6f31eb18ba2e1ad53d7b27", "score": "0.80602205", "text": "public int getScore() {\n\t\treturn score;\n\t}", "title": "" }, { "docid": "1922bbc59197ea1ecd83ea664f602a7d", "score": "0.8059324", "text": "public int getValue() {\n return score - getPar();\n }", "title": "" }, { "docid": "2b06053eb1d51b32c51549b1333be4e1", "score": "0.80579007", "text": "public int getScore() {\n\t\treturn this.score;\r\n\t}", "title": "" }, { "docid": "169aeef419fd599127b0b8f81ea9d9dc", "score": "0.805518", "text": "public int getScore()\n\t{\n\t\treturn aScore;\n\t}", "title": "" }, { "docid": "3b30f5b8ddc750d9995b04467f66fcf7", "score": "0.8044141", "text": "public int getScore() {\n return mScore;\n }", "title": "" }, { "docid": "53d8d82a46dc2d4484295b25da928cff", "score": "0.8028281", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "53d8d82a46dc2d4484295b25da928cff", "score": "0.8028281", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "53d8d82a46dc2d4484295b25da928cff", "score": "0.8028281", "text": "public int getScore() {\n return Score_;\n }", "title": "" }, { "docid": "671bd25d559ef641c086569cf3403819", "score": "0.8021514", "text": "public int getScore() {\n\t\treturn _score;\n\t}", "title": "" }, { "docid": "5abf3ffd68b40cbd6ac2b8561c4b3e49", "score": "0.8015678", "text": "public int getScore() { return score; }", "title": "" }, { "docid": "6cd3001ca3642ffe149ee2be68bcaa6a", "score": "0.7996524", "text": "public int score() {\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "3f0a53992f8810f825f8caf648948eb8", "score": "0.7995285", "text": "public Long getScore() {\r\n\t\treturn score;\r\n\t}", "title": "" }, { "docid": "466267de49f5d97ec93f412041b21855", "score": "0.7983556", "text": "public int getScore() {\n\t\t\treturn score;\n\t\t}", "title": "" }, { "docid": "b9ffdb46d26e730229ff939baa3afb0a", "score": "0.794714", "text": "int getScore() {\r\n return score;\r\n }", "title": "" }, { "docid": "7bae29d037ff2b36c05f77a56fd5da6f", "score": "0.79399127", "text": "public int getScore();", "title": "" }, { "docid": "265734d60c3d7bbf0f61d69bd60490ce", "score": "0.7921013", "text": "Score getScore();", "title": "" }, { "docid": "d20e6dfd48e16bdc4b66930218c67b96", "score": "0.79171616", "text": "int getScore();", "title": "" }, { "docid": "d20e6dfd48e16bdc4b66930218c67b96", "score": "0.79171616", "text": "int getScore();", "title": "" }, { "docid": "d20e6dfd48e16bdc4b66930218c67b96", "score": "0.79171616", "text": "int getScore();", "title": "" }, { "docid": "d20e6dfd48e16bdc4b66930218c67b96", "score": "0.79171616", "text": "int getScore();", "title": "" }, { "docid": "d20e6dfd48e16bdc4b66930218c67b96", "score": "0.79171616", "text": "int getScore();", "title": "" } ]
47053325eb02758adc87f7db5047d62f
Sets the phone number of this facility.
[ { "docid": "e03b370b89cf4e364cb110c1059477ae", "score": "0.7883438", "text": "public void setPhoneNumber(java.lang.String phoneNumber) {\n\t\t_facility.setPhoneNumber(phoneNumber);\n\t}", "title": "" } ]
[ { "docid": "60b927205f9eb9a17e84ecab9d3e55aa", "score": "0.77523094", "text": "public void setPhone(int value) {\r\n this.phone = value;\r\n }", "title": "" }, { "docid": "a695d044f7195e67445b6ab192f20385", "score": "0.7743794", "text": "public void setPhoneNum(String phoneNum) {\r\n //TODO: illegal String entry; setby who?\r\n this.phoneNum = phoneNum;\r\n }", "title": "" }, { "docid": "b97070c4e26f2f683858c4bd7617b8df", "score": "0.7743086", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber.set(phoneNumber);\n }", "title": "" }, { "docid": "a67e0df8990ca594b588375a7d188aad", "score": "0.7731883", "text": "public void setPhoneNumber(int phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "c99c440147e3e826e7115d326747044a", "score": "0.76753336", "text": "public Builder setPhoneNum(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n phoneNum_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6fd8de9fc34b209a23c4343539e0921c", "score": "0.7652428", "text": "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "title": "" }, { "docid": "aed91d610f78b24e6370ec77199764f0", "score": "0.7646986", "text": "@Override\r\n\tpublic void setPhone(String p) {\n\t\tthis.phone=p;\r\n\t}", "title": "" }, { "docid": "b36154a2c4c9c32be951b6f99fb40bb5", "score": "0.7633029", "text": "private void setPhoneNumber(String pNumber) {\r\n\t phoneNumber = pNumber;\r\n }", "title": "" }, { "docid": "b23826e4ab4ee960765fd2a182a40ce0", "score": "0.76088107", "text": "void setPhone(java.lang.String phone);", "title": "" }, { "docid": "518a4423250b804bc49c072571a31f99", "score": "0.7535962", "text": "public void setPhoneNumber(String phone_number_p)\n\t{\n\t\tphone_number = phone_number_p;\n\t}", "title": "" }, { "docid": "b7fd4f667fd7dd3ac1e4ac00d664da06", "score": "0.7520234", "text": "public void setPhoneNumber(String phoneNumber){\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "f6cb65db287a21570d72c51e96344cb2", "score": "0.7509052", "text": "public void setPhoneNo(String value) {\n this.phoneNo = value;\n }", "title": "" }, { "docid": "7fdeff58e458df4eb8a06bed3177bce0", "score": "0.7485868", "text": "public void setPhone(String p) {\n phone = p;\n }", "title": "" }, { "docid": "8340b5cbffca4dc3b46931d72b6477e7", "score": "0.7478636", "text": "private void setPhoneNumber(final String number){\n\n\t\tvalidatePhoneNumber(number);\n\t\tthis.phone_number = number;\n\n\t}", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.74561375", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.74561375", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "e3f1dbc756789dba169199b9f3721053", "score": "0.74561375", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "a9b817a0c4d5f557fecdde102bfc2dfb", "score": "0.7442094", "text": "public void setPhone(java.lang.String phone)\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(PHONE$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PHONE$18);\n }\n target.setStringValue(phone);\n }\n }", "title": "" }, { "docid": "7d4d0206a53c19a2d5f23ac05ebd7e33", "score": "0.74415296", "text": "public void setPhoneNumber(String PhoneNumber)\n {\n this.PhoneNumber = PhoneNumber;\n }", "title": "" }, { "docid": "73a0fe80c4efa0275ef9461f52db675f", "score": "0.74232113", "text": "public void setPhone(java.lang.String phone)\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(PHONE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PHONE$10);\n }\n target.setStringValue(phone);\n }\n }", "title": "" }, { "docid": "00d7a293cf6cafea3456efec466b346d", "score": "0.7406625", "text": "public void setPhone(String phone) {\r\n\t\tthis.Phone = phone;\r\n\t\tsetDirty();\r\n\t}", "title": "" }, { "docid": "8631622d89636a5316034d42153d24f6", "score": "0.73679227", "text": "public void setPhoneNumber(String phoneNumber)\n\t{\n\t\tthis.phoneNumber=phoneNumber;\n\t}", "title": "" }, { "docid": "5a2ea4ec24a3d1badf6188d15e903a03", "score": "0.7357975", "text": "public void setPhone(Integer phone) {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "81460a67daa13006ed1e713e1ff7aff4", "score": "0.7345657", "text": "public void setPhoneNumber(gov.nih.www.NEDPersonV3.PhoneNumber phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "title": "" }, { "docid": "615266b5d5becb4d744a95175403d623", "score": "0.7320636", "text": "public void setNumber(String pnumber) { \n \tgetPhoneContactImpl().setNumber(pnumber); \n }", "title": "" }, { "docid": "de50a28a15e64b5356b9527a89928461", "score": "0.7299344", "text": "public void setPhone(int phone) { this.phone = phone; }", "title": "" }, { "docid": "2ebc927f8a91f0e98bc41b1dbaba63ae", "score": "0.7297274", "text": "public void setPhone(String phone) {\n\t\tif(phone == null || phone.length() != 10) {\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Phone Number\");\r\n\t\t} \r\n\t\telse {\r\n\t\t\tthis.phone = phone;\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "b231b9e823d18a9f296cf8cfdf2ad0ed", "score": "0.72880083", "text": "public void setPhoneNumber(String s) {\n this.phoneNumber = s;\n }", "title": "" }, { "docid": "c19a6b917d33f82555af9c2356e6c86e", "score": "0.72493535", "text": "public void setContactPhone(String value) {\n setAttributeInternal(CONTACTPHONE, value);\n }", "title": "" }, { "docid": "fdddd7dcca7a9ddf27a97f2fd7a7365e", "score": "0.72408044", "text": "public void setPhone(String phone)\r\n {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "d581661e09d9f9963d732a3a7f398b86", "score": "0.7231534", "text": "private void setNumber() {\n number = getPhone().replace(\" \", \"\").replace(\"+46\", \"\").replace(\"+\", \"\");\n phoneTextView.setText(number);\n }", "title": "" }, { "docid": "2966de38bb10556f56a358b5084b0f5c", "score": "0.72296315", "text": "public void setPhone(String phone) {\r\n\t\tthis.phone = phone;\r\n\t}", "title": "" }, { "docid": "2d78ae5ad76d12c5d393b4c057a9a7f7", "score": "0.7206096", "text": "public void setPhone(long value) {\n this.phone = value;\n }", "title": "" }, { "docid": "b95bd83dc56b17cc3c29d9c9be53f50e", "score": "0.71850437", "text": "public Builder setPhone(io.bloombox.schema.contact.PhoneNumber value) {\n if (phoneBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n phone_ = value;\n onChanged();\n } else {\n phoneBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "8193eb4ac5f95eaab164618415b01c41", "score": "0.71759", "text": "public void setPhone(String phone) {\n this.phone = phone;\n }", "title": "" }, { "docid": "3c2746eb418334d092558ea9101710c5", "score": "0.7172511", "text": "public org.apache.hadoop.hive.hbase.avro.OfficePhone.Builder setNumber(long value) {\n validate(fields()[1], value);\n this.number = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "title": "" }, { "docid": "817240a858f9f97c0f4fc9539d61c2ff", "score": "0.71706694", "text": "public void setPhone ( String newPhone ) {\n\t\tphoneNumber = newPhone;\n\t}", "title": "" }, { "docid": "d6eb0ca92d716283d77079534b21b148", "score": "0.71634454", "text": "public void setPhone(java.lang.String phone) {\r\n this.phone = phone;\r\n }", "title": "" }, { "docid": "375f9fa486abfdcbc4549787ade4ffc6", "score": "0.71625346", "text": "public Builder setPhone(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f582ee5524b2cd44d21df9efd9f0e836", "score": "0.7140551", "text": "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();\n }", "title": "" }, { "docid": "3f360cec24ce1c9df5aeaa160b72bf36", "score": "0.71246827", "text": "public void setPhoneNum(@NotNull String phoneNum) {\n this.phoneNum = phoneNum;\n }", "title": "" }, { "docid": "cb8038e4479a915ab1db3a0e4fb9ef24", "score": "0.7121443", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "cc10ef0b8c5d1940527c6a80f54c0692", "score": "0.7106846", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone;\n\t}", "title": "" }, { "docid": "ae6314113e169719712169ea41840588", "score": "0.7102031", "text": "public void setPhoneNo(String phoneNo) {\n this.phoneNo = phoneNo;\n }", "title": "" }, { "docid": "2185744bbeee2a830c21be600b093de6", "score": "0.7081216", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2185744bbeee2a830c21be600b093de6", "score": "0.7081216", "text": "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phone_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ec4c874d5c45389162e35433eaad2335", "score": "0.70287246", "text": "public void xsetPhone(org.apache.xmlbeans.XmlString phone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PHONE$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PHONE$18);\n }\n target.set(phone);\n }\n }", "title": "" }, { "docid": "6830e5d45b60cb99e60dde3d25642105", "score": "0.7026265", "text": "public void xsetPhone(org.apache.xmlbeans.XmlString phone)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PHONE$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PHONE$10);\n }\n target.set(phone);\n }\n }", "title": "" }, { "docid": "27aea9535fec374dbccd6e32396d35ad", "score": "0.70232666", "text": "public synchronized void setPhone(final Telephone newValue) {\n checkWritePermission();\n phone = newValue;\n }", "title": "" }, { "docid": "d0fd04921d81297e937a0f2b7a246657", "score": "0.7004755", "text": "public void setTelephone(int param) {\n this.localTelephone = param;\n }", "title": "" }, { "docid": "248c01f5ed33643fcf6379c165482efc", "score": "0.7003886", "text": "public void setUserPhoneNum(String userPhoneNum) {\n this.userPhoneNum = userPhoneNum;\n }", "title": "" }, { "docid": "41d95905674414b4650c03c780efd6d9", "score": "0.6977379", "text": "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "681e6e62502d7d1af63635b208c080db", "score": "0.6963287", "text": "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "title": "" }, { "docid": "af90779cac5670055121040b41dc1059", "score": "0.69612813", "text": "public void setPhone(java.lang.String param){\n localPhoneTracker = true;\n \n this.localPhone=param;\n \n\n }", "title": "" }, { "docid": "fcdaac9877517b5b088ddbc9b8f29130", "score": "0.69515276", "text": "public void setPhone(String newPhone) {\n\t\tSystem.out.println(\"setPhone called\");\n\n\t}", "title": "" }, { "docid": "6de6b2cc9e602c7af3fa9987ca4bd909", "score": "0.694271", "text": "public StudentBuilder setPhoneNumber(final String phoneNumber) {\n this.phoneNumber = phoneNumber;\n return this;\n }", "title": "" }, { "docid": "759a06159a8d4c6762d8733cb457da3f", "score": "0.69377667", "text": "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "title": "" }, { "docid": "dc9f012ab672a9e8aea28d1ba45ebf54", "score": "0.6933042", "text": "public void setPhone(String phoneText){\n this.phone.setText(\"Phone: \" + phoneText);\n }", "title": "" }, { "docid": "917d10033bbccf55e73b1b11363c113d", "score": "0.69050926", "text": "public JOB_APPLICATION setPhoneTextField(String phoneValue) {\n phone.sendKeys(phoneValue);\n return this;\n }", "title": "" }, { "docid": "27cf7b0246f7b6b8c1fcf34c31023d50", "score": "0.68876034", "text": "public void setTelephone(String telephone) {\r\n this.telephone = telephone;\r\n }", "title": "" }, { "docid": "643a163b7d3d2551e616e888ff40b170", "score": "0.6873725", "text": "public void setTelephone(String telephone)\r\n\t{\r\n\t\tthis.telephone = telephone;\r\n\t}", "title": "" }, { "docid": "f67e4f99d92ff14fa797e6f66ad2d37e", "score": "0.6859538", "text": "public void setTelephone (int newVar) {\n telephone = newVar;\n }", "title": "" }, { "docid": "9977b9c116491906b00478fbdfb195f3", "score": "0.6834192", "text": "public void setLocalNumber(String phoneNumber) {\r\n\r\n\t\tthis.localNumber = phoneNumber.substring(6, 10);\r\n\t}", "title": "" }, { "docid": "0a79ffd565bc23a3ca82ad0266fb95b6", "score": "0.6831784", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "0a79ffd565bc23a3ca82ad0266fb95b6", "score": "0.6831784", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "c7e3c606de95f847fceee10938e4e9e2", "score": "0.6789044", "text": "public void setPhone(String Phone) {\n\t\tif (Phone != null && Phone.length() > 40) {\n\t\t\tlog.warning(\"Length > 40 - truncated\");\n\t\t\tPhone = Phone.substring(0, 39);\n\t\t}\n\t\tset_Value(\"Phone\", Phone);\n\t}", "title": "" }, { "docid": "50603cd7d650af8cd6a3f7dc168b8b04", "score": "0.676363", "text": "public void setUserPhone(String userPhone) {\n this.userPhone = userPhone;\n }", "title": "" }, { "docid": "1c750362c6e4beaec6694c1ef125f864", "score": "0.6748629", "text": "public void setTelephone(java.lang.String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "1c750362c6e4beaec6694c1ef125f864", "score": "0.6748629", "text": "public void setTelephone(java.lang.String telephone) {\n this.telephone = telephone;\n }", "title": "" }, { "docid": "c39a53a2b33560f9ded374e8d13f2d96", "score": "0.67459005", "text": "public Builder setPhone(com.tshang.peipei.protocol.protobuf.ByteString value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tbitField0_ |= 0x00000040;\n\t\t\t\tphone_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "title": "" }, { "docid": "70b053c82f726342b2d51ad7e1d22abf", "score": "0.6718191", "text": "private void editPhoneNo() {\n\t\tContact person = getContact();\n\t\tif (person != null) {\n\t\t\tSystem.out.println(\"Enter new phone number:\");\n\t\t\tperson.phoneNumber = input.nextLong();\n\t\t\tSystem.out.println(\"\\nContact details: \" + person.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "e371047c6e2358955b29c14911f06301", "score": "0.661162", "text": "public Builder setPhoneNumBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n phoneNum_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "87469f745dfb82bad140d57d691cb6dd", "score": "0.65969956", "text": "public void setTelphone(String telphone) {\r\n this.telphone = telphone == null ? null : telphone.trim();\r\n }", "title": "" }, { "docid": "18a776db467171e5356d7e140bfc33ce", "score": "0.65917194", "text": "public JOB_APPLICATION setPhoneTextField() {\n return setPhoneTextField(data.get(\"PHONE\"));\n }", "title": "" }, { "docid": "2fb8ac0db04a13250ac28f48e9b50e0e", "score": "0.6578858", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "title": "" }, { "docid": "2fb8ac0db04a13250ac28f48e9b50e0e", "score": "0.6578858", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "title": "" }, { "docid": "2fb8ac0db04a13250ac28f48e9b50e0e", "score": "0.6578858", "text": "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "title": "" }, { "docid": "003e15591cf954a89838745021cb48c2", "score": "0.65560734", "text": "public Builder setPhoneId(long value) {\n bitField0_ |= 0x00000004;\n phoneId_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
a62b1661d714ad7b97febf2d922ea51f
Only used for very old versions of LogBlock
[ { "docid": "5f67565bdd9bbc04b85cd0220f2bbbfe", "score": "0.0", "text": "public static int getBlockTypeIdAt(Location location) {\n\t\ttry {\n\t\t\treturn GET_BLOCK_TYPE_ID_AT != null ? (int) GET_BLOCK_TYPE_ID_AT.invoke(location.getWorld(), location) : 0;\n\t\t} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "8636af5f5df4c2861efc8abf2c3a19b2", "score": "0.6417475", "text": "@Override\n public void logs(String log) {\n }", "title": "" }, { "docid": "bc4a8a2e3855be240a517031694ad899", "score": "0.6379867", "text": "@Override\n\tpublic void log() {\n\t\t\n\t}", "title": "" }, { "docid": "d47d50515fe1a7d1e05b99c9ad39dc46", "score": "0.6344544", "text": "protected LogResult logInternal( LoggableObject item, boolean isProvisional, boolean flushRequired, boolean forceNewLogFile, long oldNodeLsn, boolean marshallOutsideLatch, ByteBuffer marshalledBuffer\n//#if CLEANER\n , UtilizationTracker tracker\n//#endif\n) throws IOException, DatabaseException {\n LogEntryType entryType=item.getLogType();\n//#if CLEANER\n if (oldNodeLsn != DbLsn.NULL_LSN) \n//#if CLEANER\n{\n tracker.countObsoleteNode(oldNodeLsn,entryType);\n }\n//#endif\n//#endif\n int entrySize;\n if (marshallOutsideLatch) {\n entrySize=marshalledBuffer.limit();\n }\n else {\n entrySize=item.getLogSize() + HEADER_BYTES;\n }\n if (forceNewLogFile) {\n fileManager.forceNewLogFile();\n }\n boolean flippedFile=fileManager.bumpLsn(entrySize);\n long currentLsn=DbLsn.NULL_LSN;\n//#if CLEANER\n boolean wakeupCleaner=false;\n//#endif\n boolean usedTemporaryBuffer=false;\n try {\n currentLsn=fileManager.getLastUsedLsn();\n//#if CLEANER\n wakeupCleaner=tracker.countNewLogEntry(currentLsn,entryType,entrySize);\n//#endif\n//#if CLEANER\n if (item.countAsObsoleteWhenLogged()) \n//#if CLEANER\n{\n tracker.countObsoleteNodeInexact(currentLsn,entryType);\n }\n//#endif\n//#endif\n if (!marshallOutsideLatch) {\n marshalledBuffer=marshallIntoBuffer(item,entrySize - HEADER_BYTES,isProvisional,entrySize);\n }\n if (entrySize != marshalledBuffer.limit()) {\n throw new DatabaseException(\"Logged item entrySize= \" + entrySize + \" but marshalledSize=\"+ marshalledBuffer.limit()+ \" type=\"+ entryType+ \" currentLsn=\"+ DbLsn.getNoFormatString(currentLsn));\n }\n LogBuffer useLogBuffer=logBufferPool.getWriteBuffer(entrySize,flippedFile);\n marshalledBuffer=addPrevOffsetAndChecksum(marshalledBuffer,fileManager.getPrevEntryOffset(),entrySize);\n//#if LATCHES\n useLogBuffer.latchForWrite();\n//#endif\n//#if LATCHES\n try {\n ByteBuffer useBuffer=useLogBuffer.getDataBuffer();\n if (useBuffer.capacity() - useBuffer.position() < entrySize) {\n fileManager.writeLogBuffer(new LogBuffer(marshalledBuffer,currentLsn));\n usedTemporaryBuffer=true;\n assert useBuffer.position() == 0;\n//#if STATISTICS\n nTempBufferWrites++;\n//#endif\n }\n else {\n useBuffer.put(marshalledBuffer);\n }\n }\n finally {\n useLogBuffer.release();\n }\n//#endif\n }\n catch ( Exception e) {\n fileManager.restoreLastPosition();\n if (e instanceof DatabaseException) {\n throw (DatabaseException)e;\n }\n else if (e instanceof IOException) {\n throw (IOException)e;\n }\n else {\n throw new DatabaseException(e);\n }\n }\n if (!usedTemporaryBuffer) {\n logBufferPool.writeCompleted(currentLsn,flushRequired);\n }\n item.postLogWork(currentLsn);\n//#if CPBYTES\n//#if CHECKPOINTERDAEMON\n boolean wakeupCheckpointer=checkpointMonitor.recordLogWrite(entrySize,item);\n//#endif\n//#endif\n return new LogResult(currentLsn\n//#if CPBYTES\n//#if CHECKPOINTERDAEMON\n, wakeupCheckpointer\n//#endif\n//#endif\n//#if CLEANER\n, wakeupCleaner\n//#endif\n);\n }", "title": "" }, { "docid": "4c4c368de410eee463f1aaf7d421204e", "score": "0.6323129", "text": "@Override public String getName() {return \"Log\";}", "title": "" }, { "docid": "5d21799a3ed19d826053e7e55ffc79c2", "score": "0.61927193", "text": "public void log() {\n\n\t}", "title": "" }, { "docid": "12ee437070bda8df152a22b0737c40c4", "score": "0.6132653", "text": "protected void _log(String msg) {}", "title": "" }, { "docid": "f8d6fe842664f87e350386da80e4279c", "score": "0.6081325", "text": "public logseverlet() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "2fbc457a61fd96e76d6724689ca813ef", "score": "0.6073198", "text": "public void log() {\n\t}", "title": "" }, { "docid": "4849b5669078810c3a966c93fd60793f", "score": "0.6060163", "text": "org.conservify.fieldkit.data.pb.FkData.LogMessage getLog();", "title": "" }, { "docid": "aae1874e65e4ffee71c2cb9aa2cb5acb", "score": "0.6028968", "text": "private FullTrace() {\n initFields();\n }", "title": "" }, { "docid": "654eb1d32abc6d538f886a9162ebcbfd", "score": "0.58503", "text": "private Irongenlog() {\n\t}", "title": "" }, { "docid": "bc5276388f2f20d08cec6fbb102aed61", "score": "0.58145535", "text": "protected CentralityCreationLog() {\n\t}", "title": "" }, { "docid": "693719f46c07c152183e2db2900e9396", "score": "0.5802629", "text": "public abstract void log();", "title": "" }, { "docid": "9f30d1d044179a67a1ad123db1db8ea3", "score": "0.57953453", "text": "private void constructLog() {\r\n historyString = new String(\"StereoDepth()\\n\");\r\n }", "title": "" }, { "docid": "cb1dad4bc320d15561e5f3c7ecae18b5", "score": "0.57768476", "text": "java.lang.String getLog();", "title": "" }, { "docid": "2a7a9b4c5819f143cd506f155855fef2", "score": "0.57415", "text": "@Override\n\tpublic B log() {\n\t\treturn super.log();\n\t}", "title": "" }, { "docid": "d1d211030785e918405a83874764f927", "score": "0.5741493", "text": "public static void handleLogCompatibility() {\n boolean isReload = SharedPreferencesHelper.getInstance().getBoolean(TransmitKey.FORGING_LOG, false);\n if(!isReload){\n MiningUtil.clearLogDirectory();\n SharedPreferencesHelper.getInstance().putBoolean(TransmitKey.FORGING_LOG, true);\n }\n }", "title": "" }, { "docid": "6d1f70240170ca82c5b282a0a2a397ae", "score": "0.5739788", "text": "public void log(){\n\n \n }", "title": "" }, { "docid": "5ec90d929dd2a94b466e767519e39c65", "score": "0.5726154", "text": "private long log( LoggableObject item, boolean isProvisional, boolean flushRequired\n//#if FSYNC\n , boolean fsyncRequired\n//#endif\n, boolean forceNewLogFile, long oldNodeLsn) throws DatabaseException {\n if (readOnly) {\n return DbLsn.NULL_LSN;\n }\n boolean marshallOutsideLatch=item.marshallOutsideWriteLatch();\n ByteBuffer marshalledBuffer=null;\n//#if CLEANER\n UtilizationTracker tracker=envImpl.getUtilizationTracker();\n//#endif\n LogResult logResult=null;\n try {\n if (marshallOutsideLatch) {\n int itemSize=item.getLogSize();\n int entrySize=itemSize + HEADER_BYTES;\n marshalledBuffer=marshallIntoBuffer(item,itemSize,isProvisional,entrySize);\n }\n logResult=logItem(item,isProvisional,flushRequired,forceNewLogFile,oldNodeLsn,marshallOutsideLatch,marshalledBuffer\n//#if CLEANER\n, tracker\n//#endif\n);\n }\n catch ( BufferOverflowException e) {\n throw new RunRecoveryException(envImpl,e);\n }\ncatch ( IOException e) {\n throw new DatabaseException(Tracer.getStackTrace(e),e);\n }\n//#if FSYNC\n if (fsyncRequired) \n//#if FSYNC\n{\n fileManager.groupSync();\n }\n//#endif\n//#endif\n//#if CPBYTES\n//#if CHECKPOINTERDAEMON\n if (logResult.wakeupCheckpointer) \n//#if CPBYTES\n//#if CHECKPOINTERDAEMON\n{\n checkpointMonitor.activate();\n }\n//#endif\n//#endif\n//#endif\n//#endif\n//#if CLEANER\n if (logResult.wakeupCleaner) \n//#if CLEANER\n{\n tracker.activateCleaner();\n }\n//#endif\n//#endif\n return logResult.currentLsn;\n }", "title": "" }, { "docid": "fd3cfa2aa10fb1c738f1e846359749a1", "score": "0.57171804", "text": "LogEvent log(LogEvent logEvent);", "title": "" }, { "docid": "e9fc9ae382a6764468e558c6ac8971cb", "score": "0.5714973", "text": "@Override\n public void onBlockEvent(long realTimeStart, long realTimeEnd,\n long threadTimeStart, long threadTimeEnd) {\n ArrayList<String> threadStackEntries = stackSampler\n .getThreadStackEntries(realTimeStart, realTimeEnd);\n if (!threadStackEntries.isEmpty()) {\n BlockInfo blockInfo = BlockInfo.newInstance()\n .setMainThreadTimeCost(realTimeStart, realTimeEnd, threadTimeStart, threadTimeEnd)\n .setCpuBusyFlag(cpuSampler.isCpuBusy(realTimeStart, realTimeEnd))\n .setRecentCpuRate(cpuSampler.getCpuRateInfo())\n .setThreadStackEntries(threadStackEntries)\n .flushString();\n LogWriter.save(blockInfo.toString());\n\n if (mInterceptorChain.size() != 0) {\n for (BlockInterceptor interceptor : mInterceptorChain) {\n interceptor.onBlock(config().provideContext(), blockInfo);\n }\n }\n }\n }", "title": "" }, { "docid": "404635878aea0bd8619077b06fdb11ad", "score": "0.5707189", "text": "public ReadLog()\n {\n super(\"READLOG\");\n }", "title": "" }, { "docid": "c658cd9b9797ee34126253c597f69cbe", "score": "0.56664854", "text": "@Override\n public com.google.protobuf.ByteString getLog() {\n return log_;\n }", "title": "" }, { "docid": "79a8ba238de7d95565db777057b658a3", "score": "0.5665408", "text": "public Log() {}", "title": "" }, { "docid": "02ae4888dd9c81fd756cfe2fee84991c", "score": "0.5644831", "text": "@Override\r\n\tpublic boolean log(long runtimeID, byte moduleType, byte[] data) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2010938cc34803ca6dd4c331db4a4ffb", "score": "0.5628038", "text": "protected void configureLogging()\n {\n }", "title": "" }, { "docid": "95df196f145df7c5af18ead6697b45ba", "score": "0.56244504", "text": "public WorkFlowLog() {\r\n initComponents();\r\n setLanguageTags(this);\r\n }", "title": "" }, { "docid": "88a16d13dea4a9d70592c64665655cb1", "score": "0.56226957", "text": "private void initLog() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tSystem.out.println(sdf.format(Calendar.getInstance().getTime()) + \" - [log] - Reading Word2Vec Model!\" );\n\t}", "title": "" }, { "docid": "b169e509d22ddf4add724c71c4e81f0f", "score": "0.5620884", "text": "@Override\n\tpublic String visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\n\t}", "title": "" }, { "docid": "42c8cb4463a9855d209d47debc3e7645", "score": "0.5616395", "text": "@Override\n public com.google.protobuf.ByteString getLogBytes() {\n java.lang.Object ref = log_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n log_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "646acaee7d68f6d980237b23bd25ffdb", "score": "0.56057215", "text": "@Override\n public com.google.protobuf.ByteString getLog() {\n return log_;\n }", "title": "" }, { "docid": "d71c54dc34611648b1872c161ad3306d", "score": "0.5601611", "text": "public void log();", "title": "" }, { "docid": "952354ab6bdc670694d91bf01f718fbe", "score": "0.56006813", "text": "private static void log(String message) {\n }", "title": "" }, { "docid": "e393f140a715703a6c81d41dec37e7f9", "score": "0.5594852", "text": "public void initializeLogging() {\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n Log.setLogNode(logWrapper);\n\n // Filter strips out everything except the message text.\n MessageOnlyLogFilter msgFilter = new MessageOnlyLogFilter();\n logWrapper.setNext(msgFilter);\n\n // On screen logging via a fragment with a TextView.\n LogFragment logFragment = (LogFragment) getFragmentManager()\n .findFragmentById(R.id.log_fragment);\n msgFilter.setNext(logFragment.getLogView());\n\n Log.i(\"GPL\", \"Ready\");\n }", "title": "" }, { "docid": "d2bc52afd65c0541d04dee5bf6b49503", "score": "0.5590551", "text": "void log(long connectionID, int type, byte[] data);", "title": "" }, { "docid": "2a79229dbc9531bdd458a170488a8f3c", "score": "0.55879563", "text": "LogContext getLogContext();", "title": "" }, { "docid": "4fa97814844f73e7a2fdb85b54776f5e", "score": "0.5585143", "text": "@Override\r\n\tpublic void log(String message) {\n\t\t\r\n\t}", "title": "" }, { "docid": "992cbfbb6763cc38562a3e7fcf3d13d4", "score": "0.5581465", "text": "private CustomLog() {\n }", "title": "" }, { "docid": "246fc534a8b038f1c8e16d09685a3733", "score": "0.55549514", "text": "Logging() {\n }", "title": "" }, { "docid": "3730cf933faf6258002bafdd36ae1bf5", "score": "0.55514824", "text": "private void log(String message){\n\t}", "title": "" }, { "docid": "babc84bbe7f1905ed6ba24f9e4b53381", "score": "0.5540172", "text": "@Override\n public java.lang.String getLog() {\n java.lang.Object ref = log_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n log_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "dc07ddf06ccb05f7f7c3a289b68a1830", "score": "0.55251014", "text": "com.google.protobuf.ByteString getLog();", "title": "" }, { "docid": "c9d5f40e435a025bd20770a9c923dd8a", "score": "0.55200464", "text": "private IFR_LogContract() {}", "title": "" }, { "docid": "1df7335ae3a8808e651c4c5d278ddc45", "score": "0.5516238", "text": "@Override\n public com.google.protobuf.ByteString getLogBytes() {\n java.lang.Object ref = log_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n log_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "9b30f3efe73866e9f2781bbcd0b7c4fc", "score": "0.5513894", "text": "public void LogData()\r\n {\r\n try {\r\n Log(\"------------------------------------------------\");\r\n for(int i = 0 ; i < MAX_REQUIRED_CS_USE ; i++)\r\n {\r\n Log(\"[\"+i+\"]:TOKENS[\"+m_strTokenOwnershipStatus[i] +\"] Tx(\"+m_nAttemptSent[i]+\") Including REQ: \"+m_nREQSentPerAttempt[i]+\" REP: \"+m_nREPSentPerAttempt[i]+\" Rx(\"+m_nAttemptRcvd[i]+\") Including REQ: \"+m_nREQRcvdPerAttemptWithLowerTimeStamp[i]+\" REP: \"+m_nREPRcvdPerAttempt[i] +\" Latancy(ms) = \"+m_nLatency[i]);\r\n }\r\n Log(\"------------------------------------------------\");\r\n Log(\"Total Sent: \"+m_nTotalSent);\r\n Log(\"Total Rcvd: \"+m_nTotalRcvd);\r\n Log(\"------------------------------------------------\"); \r\n \r\n m_log.flush();\r\n m_log.close();\r\n } catch (IOException ex) {\r\n \r\n }\r\n }", "title": "" }, { "docid": "d4064f33046d5d5ed9e43d0dc3e2e1f3", "score": "0.5513573", "text": "Log createLog();", "title": "" }, { "docid": "e8ce1317a0e33d3fbe84c0939c21724d", "score": "0.5512663", "text": "private static interface LogRecord extends Serializable {\n\tvoid apply(MailboxImpl mb);\n }", "title": "" }, { "docid": "c0978a1a203a47c87e51352ca6124cc2", "score": "0.55096394", "text": "private LogHelper()\n\t{\n\t}", "title": "" }, { "docid": "75f23bef772edc16190fadcbcabd845a", "score": "0.5508627", "text": "private void logHeader() {\n\t\tlogger.debug(\"&&&&&&&&&&&&&&&&&&&&&& GetNumberOfEmails &&&&&&&&&&&&&&&&&&&&&&\\n\");\n\t}", "title": "" }, { "docid": "9c7bc71402309c5a8357b868120670f3", "score": "0.55015564", "text": "@Override\r\n public void onBlockAdded(World par1World, int par2, int par3, int par4)\r\n\t{\r\n\t\tFMLLog.info(\"onBlockAdded [%d %d %d]\", par2, par3, par4);\r\n\t}", "title": "" }, { "docid": "e5d1bf2ec93d8331bc5ff7d6622d7870", "score": "0.5478972", "text": "private void outputLogLine(String line) {\n if (line.startsWith(CvsListCommand.LOG_WORKING_FILE)) {\n String filePath = line.substring(CvsListCommand.LOG_WORKING_FILE.length()).trim();\n int index = filePath.lastIndexOf('/');\n if (index < 0) {\n index = filePath.lastIndexOf('\\\\');\n }\n String path;\n String fileName;\n if (index > 0) {\n path = filePath.substring(0, index);\n fileName = filePath.substring(index + 1);\n } else {\n path = \"\";\n fileName = filePath;\n }\n VcsDirContainer filesByNameContDir = filesByNameCont.getParent(path);\n if (filesByNameContDir != null) {\n Hashtable filesByName = (Hashtable) filesByNameContDir.getElement();\n if (filesByName != null) {\n String[] fileStatuses = (String[]) filesByName.get(fileName);\n if (fileStatuses == null) {\n fileStatuses = new String[7];\n fileStatuses[0] = fileName;\n fileStatuses[1] = Statuses.STATUS_DEAD;\n filesByName.put(fileName, fileStatuses);\n }\n lastLogFileStatuses = fileStatuses;\n }\n }\n } else if (line.startsWith(CvsListCommand.LOG_LOCKS)) {\n logReadingLocks = true;\n } else if (logReadingLocks) {\n if (line.length() > 0 && Character.isWhitespace(line.charAt(0))) {\n lastLocks.append(line.trim() + \"\\n\");\n } else {\n if (lastLogFileStatuses != null && lastLocks.length() > 0) {\n lastLogFileStatuses[6] = getLockers(lastLocks.toString(), lastLogFileStatuses[2]);\n lastLocks.delete(0, lastLocks.length());\n }\n logReadingLocks = false;\n lastLogFileStatuses = null;\n }\n }\n }", "title": "" }, { "docid": "2d3a003c2145d7ed532f0ef60cad450f", "score": "0.5473514", "text": "private SysLog()\n {\n }", "title": "" }, { "docid": "00e7242ac53dfb507dea39a1d46a3ee9", "score": "0.5468333", "text": "@Override\n public java.lang.String getLog() {\n java.lang.Object ref = log_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n log_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "cb8505b3ae2ff0de4092e9b8d92b0e28", "score": "0.5459652", "text": "public Docking$PBLK13$trace STM$() {\n TRACE_BEGIN_STM$(\"trace\",15);\n // JavaLine 41 ==> SourceLine 16\n if(((Docking$PBLK13)(CUR$.SL$)).verbose) {\n // JavaLine 43 ==> SourceLine 17\n {\n TRACE_BEGIN_STM$(\"CompoundStatement17\",17);\n sysout().outtext(p$msg);\n sysout().outimage();\n TRACE_END_STM$(\"CompoundStatement17\",17);\n }\n }\n TRACE_END_STM$(\"trace\",17);\n EBLK();\n return(this);\n }", "title": "" }, { "docid": "faecffa6c4c6c479daed3f75814ece08", "score": "0.54586154", "text": "org.conservify.fieldkit.data.pb.FkData.LogMessage getLogs(int index);", "title": "" }, { "docid": "2b9ae11c2bdd4f2b3db7086c320d3b0f", "score": "0.54572237", "text": "public void storeLog(){\n\t}", "title": "" }, { "docid": "e385ed19585e185d117af56d185a6195", "score": "0.54537874", "text": "@Override\n\tpublic String getLogId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9513f29adf680f2c2c7204558f034b12", "score": "0.54450333", "text": "public void setLog(Log log);", "title": "" }, { "docid": "c5ba7e4d4815e83df640c2e723fcdfd8", "score": "0.5441158", "text": "java.lang.String getTracelog();", "title": "" }, { "docid": "e8309152150d1148d65ddae037bdee42", "score": "0.54383224", "text": "LogService log();", "title": "" }, { "docid": "f2726772d1197c02f8af21f111955629", "score": "0.54122275", "text": "LogStorage getLogStorage();", "title": "" }, { "docid": "f82457fc91c73c2ba3d27dbd83268244", "score": "0.5396356", "text": "public static void loadLogConfig() {\n }", "title": "" }, { "docid": "de1493a9af03cfb2f4a89f1859b0d983", "score": "0.5389378", "text": "public void setBindLog(String bindLog) {\n/* 82 */ this.bindLog = bindLog;\n/* */ }", "title": "" }, { "docid": "350c5d2986006f8e8917040b8c21dbe6", "score": "0.5380943", "text": "void log();", "title": "" }, { "docid": "c73e977ad49a669da5c2c6132bd9bc8d", "score": "0.53795177", "text": "void broadcastLog(LogDetails logDetails);", "title": "" }, { "docid": "5bfc39dca06d3be5b371fe6b5cb467eb", "score": "0.5373972", "text": "void traceBlockEnd();", "title": "" }, { "docid": "92750fb00b0e6db2a3a7d8c437132654", "score": "0.5373674", "text": "protected void logMessage(String... fields) {\n if (_os != null) {\n _pendingLogEntries.add(fields);\n }\n }", "title": "" }, { "docid": "bf2576d8787bd62224120609f513e0af", "score": "0.5363921", "text": "@Override\n public int stamp () {\n return 0;\n }", "title": "" }, { "docid": "112e5bdb7453955983090814535bbe1c", "score": "0.53605485", "text": "com.google.protobuf.ByteString getLogBytes();", "title": "" }, { "docid": "112e5bdb7453955983090814535bbe1c", "score": "0.53605485", "text": "com.google.protobuf.ByteString getLogBytes();", "title": "" }, { "docid": "f303bdb6a1ab3cbe9be94cbbe9fe1403", "score": "0.5357411", "text": "public LogLine<Context,Action,Reward> generateLogLine() ;", "title": "" }, { "docid": "f011e03445cab6fa6ab9c76b73ebd1d8", "score": "0.5347846", "text": "private void refreshLog() throws IOException, URISyntaxException, SQLException, ClassNotFoundException{\n this.logEvents = Logger.readLog();\n }", "title": "" }, { "docid": "ff42447cfee06d0cd3f076df60efbec6", "score": "0.534434", "text": "public Docking$PBLK13$trace(RTObject$ SL$)\n { super(SL$); }", "title": "" }, { "docid": "139b6b320f5f6a366d8b422ff0622c54", "score": "0.5342398", "text": "public void configureLogs() {\n Log.setLevel(Level.OFF);\n Log.setLevel(DatacenterBroker.LOGGER, Level.WARN);\n Log.setLevel(CloudletSchedulerAbstract.LOGGER, Level.OFF);\n Log.setLevel(DatacenterBroker.LOGGER, Level.INFO);\n\n /*this.getDatacenterBroker().getVmWaitingList().forEach(vm -> {\n vm.addOnHostAllocationListener(this::logVmAllocationSuccess);\n vm.addOnCreationFailureListener(this::logVmAllocationFailure);\n });\n\n this.getDatacenterBroker().getCloudletSubmittedList().forEach(cloudlet -> {\n cloudlet.addOnStartListener(this::logCloudletExecutionStart);\n cloudlet.addOnFinishListener(this::logCloudletExecutionFinish);\n cloudlet.addOnUpdateProcessingListener(this::logCloudletExecutionUpdate);\n });\n\n ((ch.qos.logback.classic.Logger)this.getMyLogger()).setLevel(Level.INFO);*/\n }", "title": "" }, { "docid": "5f3899ef6e0784be7dc9867768de1d52", "score": "0.53376687", "text": "private static DetailedLogEvent retrieveBlockingDetailedLogEvent (LogEvent it) {\n try {\n RestTemplate restTemplate = new RestTemplate();\n ResponseEntity<DetailedLogEvent> response = restTemplate.getForEntity(BASE_URL + \"/logs/\" + it.getLogEventId(), DetailedLogEvent.class);\n return response.getBody();\n } catch (RestClientException e) {\n String message = \"Failed when retrieving detailed log event : \" + e.getMessage();\n log.error(message);\n return DetailedLogEvent.builder().logEventId(it.getLogEventId()).message(message).build();\n }\n }", "title": "" }, { "docid": "44c8b55efb3877eb706b8c02202a9aad", "score": "0.5331244", "text": "@MessageLogger(projectCode = \"ISPN\")\npublic interface Log extends org.infinispan.util.logging.Log {\n @LogMessage(level = ERROR)\n @Message(value = \"Could not register interpreter MBean\", id = 19001)\n void jmxRegistrationFailed();\n\n @LogMessage(level = ERROR)\n @Message(value = \"Could not unregister interpreter MBean\", id = 19002)\n void jmxUnregistrationFailed();\n\n @LogMessage(level = ERROR)\n @Message(value = \"Interpreter error\", id = 19003)\n void interpreterError(@Cause Throwable t);\n\n @Message(value = \"No action has been specified for the upgrade command\", id = 19004)\n StatementException missingUpgradeAction();\n\n @Message(value = \"No migrator has been specified\", id = 19005)\n StatementException missingMigrator();\n\n @Message(value = \"Unknown option '%s'\", id = 19006)\n StatementException unknownOption(String name);\n\n @Message(value = \"The option %s requires a parameter\", id = 19007)\n StatementException missingOptionParameter(String name);\n\n @Message(value = \"Failure while encoding key using codec '%s'\", id = 19008)\n CodecException keyEncodingFailed(@Cause Exception e, String codec);\n\n @Message(value = \"Failure while decoding key using codec '%s'\", id = 19009)\n CodecException keyDecodingFailed(@Cause Exception e, String codec);\n\n @Message(value = \"Failure while encoding value using codec '%s'\", id = 19010)\n CodecException valueEncodingFailed(@Cause Exception e, String codec);\n\n @Message(value = \"Failure while decoding value using codec '%s'\", id = 19011)\n CodecException valueDecodingFailed(@Cause Exception e, String codec);\n\n @Message(value = \"No such codec named '%s'\", id = 19012)\n CodecException noSuchCodec(String codec);\n\n @LogMessage(level = WARN)\n @Message(value = \"There was an error loading a codec\", id = 19013)\n void loadingCodecFailed(@Cause ServiceConfigurationError e);\n\n @LogMessage(level = ERROR)\n @Message(value = \"Codec '%s' attempts to override codec '%s'\", id = 19014)\n void duplicateCodec(String codec1, String codec2);\n\n @Message(value = \"Invalid session id '%s'\", id = 19015)\n IllegalArgumentException invalidSession(String sessionId);\n\n @Message(value = \"No such cache: '%s'\", id = 19016)\n IllegalArgumentException nonExistentCache(String cacheName);\n\n @Message(value = \"A cache named '%s' already exists\", id = 19017)\n IllegalArgumentException cacheAlreadyExists(String cacheName);\n\n @Message(value = \"Could not create cache named '%s' on all cluster nodes\", id = 19018)\n CacheException cannotCreateClusteredCaches(@Cause Throwable e, String cacheName);\n\n @Message(value = \"Statistics not enabled on cache '%s'\", id = 19019)\n StatementException statisticsNotEnabled(String cacheName);\n\n @Message(value = \"Cannot retrieve a transaction manager\", id = 19020)\n StatementException noTransactionManager();\n\n @Message(value =\"The TransactionManager does not support nested transactions\", id = 19021)\n StatementException noNestedTransactions();\n\n @Message(value = \"Unexpected error while starting transaction\", id = 19022)\n StatementException unexpectedTransactionError(@Cause SystemException e);\n\n @Message(value = \"Cannot commit transaction\", id = 19023)\n StatementException cannotCommitTransaction(@Cause Exception e);\n\n @Message(value = \"Cache is not distributed\", id = 19024)\n StatementException cacheNotDistributed();\n\n @Message(value = \"Cannot rollback transaction\", id = 19025)\n StatementException cannotRollbackTransaction(@Cause Exception e);\n\n @Message(value = \"An error occurred while synchronizing data for cache '%s' using migrator '%s' from the source server\", id = 19026)\n StatementException dataSynchronizationError(@Cause Exception e, String migratorName, String name);\n\n @Message(value = \"An error occurred while disconnecting the source server for cache '%s' using migrator '%s'\", id = 19027)\n StatementException sourceDisconnectionError(@Cause Exception e, String migratorName, String name);\n\n @Message(value = \"A site name needs to be specified\", id = 19028)\n StatementException siteNameNotSpecified();\n\n @Message(value = \"No cache selected yet\", id = 19029)\n StatementException noCacheSelectedYet();\n\n @Message(value = \"Failure while encoding value of type '%s' using codec '%s'\", id = 19030)\n CodecException valueEncodingFailed(String type, String codec);\n}", "title": "" }, { "docid": "17106ebab6528d1c698ca28eeba7df18", "score": "0.5330657", "text": "@MessageLogger(projectCode = \"AMQ\")\npublic interface ActiveMQJournalLogger extends BasicLogger {\n\n /**\n * The journal logger.\n */\n ActiveMQJournalLogger LOGGER = Logger.getMessageLogger(ActiveMQJournalLogger.class, ActiveMQJournalLogger.class.getPackage().getName());\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141000, value = \"*** running direct journal blast: {0}\", format = Message.Format.MESSAGE_FORMAT)\n void runningJournalBlast(Integer numIts);\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141002, value = \"starting thread for sync speed test\", format = Message.Format.MESSAGE_FORMAT)\n void startingThread();\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141003, value = \"Write rate = {0} bytes / sec or {1} MiB / sec\", format = Message.Format.MESSAGE_FORMAT)\n void writeRate(Double rate, Long l);\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141004, value = \"Flush rate = {0} flushes / sec\", format = Message.Format.MESSAGE_FORMAT)\n void flushRate(Double rate);\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141005, value = \"Check Data Files:\", format = Message.Format.MESSAGE_FORMAT)\n void checkFiles();\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141006, value = \"Sequence out of order on journal\", format = Message.Format.MESSAGE_FORMAT)\n void seqOutOfOrder();\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141007, value = \"Current File on the journal is <= the sequence file.getFileID={0} on the dataFiles\" +\n \"\\nCurrentfile.getFileId={1} while the file.getFileID()={2}\" +\n \"\\nIs same = ({3})\",\n format = Message.Format.MESSAGE_FORMAT)\n void currentFile(Long fileID, Long id, Long fileFileID, Boolean b);\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141008, value = \"Free File ID out of order\", format = Message.Format.MESSAGE_FORMAT)\n void fileIdOutOfOrder();\n\n @LogMessage(level = Logger.Level.INFO)\n @Message(id = 141009, value = \"A Free File is less than the maximum data\", format = Message.Format.MESSAGE_FORMAT)\n void fileTooSmall();\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142000, value = \"You have a native library with a different version than expected\", format = Message.Format.MESSAGE_FORMAT)\n void incompatibleNativeLibrary();\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142001, value = \"Could not get lock after 60 seconds on closing Asynchronous File: {0}\",\n format = Message.Format.MESSAGE_FORMAT)\n void couldNotGetLock(String fileName);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142002, value = \"Asynchronous File: {0} being finalized with opened state\", format = Message.Format.MESSAGE_FORMAT)\n void fileFinalizedWhileOpen(String fileName);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142003, value = \"AIO Callback Error: {0}\", format = Message.Format.MESSAGE_FORMAT)\n void callbackError(String error);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142004, value = \"Inconsistency during compacting: CommitRecord ID = {0} for an already committed transaction during compacting\",\n format = Message.Format.MESSAGE_FORMAT)\n void inconsistencyDuringCompacting(Long transactionID);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142005, value = \"Inconsistency during compacting: Delete record being read on an existent record (id={0})\",\n format = Message.Format.MESSAGE_FORMAT)\n void inconsistencyDuringCompactingDelete(Long recordID);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142006, value = \"Could not find add Record information for record {0} during compacting\",\n format = Message.Format.MESSAGE_FORMAT)\n void compactingWithNoAddRecord(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142007, value = \"Can not find record {0} during compact replay\",\n format = Message.Format.MESSAGE_FORMAT)\n void noRecordDuringCompactReplay(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142008, value = \"Could not remove file {0} from the list of data files\",\n format = Message.Format.MESSAGE_FORMAT)\n void couldNotRemoveFile(JournalFile file);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142009, value = \"Deleting {0} as it does not have the configured size\",\n format = Message.Format.MESSAGE_FORMAT)\n void deletingFile(JournalFile file);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142010, value = \"Failed to add file to opened files queue: {0}. This should NOT happen!\",\n format = Message.Format.MESSAGE_FORMAT)\n void failedToAddFile(JournalFile nextOpenedFile);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142011, value = \"Error on reading compacting for {0}\",\n format = Message.Format.MESSAGE_FORMAT)\n void compactReadError(JournalFile file);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142012, value = \"Couldn't find tx={0} to merge after compacting\",\n format = Message.Format.MESSAGE_FORMAT)\n void compactMergeError(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142013, value = \"Prepared transaction {0} was not considered completed, it will be ignored\",\n format = Message.Format.MESSAGE_FORMAT)\n void preparedTXIncomplete(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142014, value = \"Transaction {0} is missing elements so the transaction is being ignored\",\n format = Message.Format.MESSAGE_FORMAT)\n void txMissingElements(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142015, value = \"Uncommitted transaction with id {0} found and discarded\",\n format = Message.Format.MESSAGE_FORMAT)\n void uncomittedTxFound(Long id);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142016, value = \"Could not stop compactor executor after 120 seconds\",\n format = Message.Format.MESSAGE_FORMAT)\n void couldNotStopCompactor();\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142017, value = \"Could not stop journal executor after 60 seconds\",\n format = Message.Format.MESSAGE_FORMAT)\n void couldNotStopJournalExecutor();\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142018, value = \"Temporary files were left unnatended after a crash on journal directory, deleting invalid files now\",\n format = Message.Format.MESSAGE_FORMAT)\n void tempFilesLeftOpen();\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142019, value = \"Deleting orphaned file {0}\", format = Message.Format.MESSAGE_FORMAT)\n void deletingOrphanedFile(String fileToDelete);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142020, value = \"Could not get lock after 60 seconds on closing Asynchronous File: {0}\", format = Message.Format.MESSAGE_FORMAT)\n void errorClosingFile(String fileToDelete);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142021, value = \"Error on IO callback, {0}\", format = Message.Format.MESSAGE_FORMAT)\n void errorOnIOCallback(String errorMessage);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142022, value = \"Timed out on AIO poller shutdown\", format = Message.Format.MESSAGE_FORMAT)\n void timeoutOnPollerShutdown(@Cause Exception e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142023, value = \"Executor on file {0} couldn''t complete its tasks in 60 seconds.\", format = Message.Format.MESSAGE_FORMAT)\n void couldNotCompleteTask(@Cause Exception e, String name);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142024, value = \"Error completing callback\", format = Message.Format.MESSAGE_FORMAT)\n void errorCompletingCallback(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142025, value = \"Error calling onError callback\", format = Message.Format.MESSAGE_FORMAT)\n void errorCallingErrorCallback(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142026, value = \"Timed out on AIO writer shutdown\", format = Message.Format.MESSAGE_FORMAT)\n void timeoutOnWriterShutdown(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142027, value = \"Error on writing data! {0} code - {1}\", format = Message.Format.MESSAGE_FORMAT)\n void errorWritingData(@Cause Throwable e, String errorMessage, Integer errorCode);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142028, value = \"Error replaying pending commands after compacting\", format = Message.Format.MESSAGE_FORMAT)\n void errorReplayingCommands(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142029, value = \"Error closing file\", format = Message.Format.MESSAGE_FORMAT)\n void errorClosingFile(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142030, value = \"Could not open a file in 60 Seconds\", format = Message.Format.MESSAGE_FORMAT)\n void errorOpeningFile(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142031, value = \"Error retrieving ID part of the file name {0}\", format = Message.Format.MESSAGE_FORMAT)\n void errorRetrievingID(@Cause Throwable e, String fileName);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142032, value = \"Error reading journal file\", format = Message.Format.MESSAGE_FORMAT)\n void errorReadingFile(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142033, value = \"Error reinitializing file {0}\", format = Message.Format.MESSAGE_FORMAT)\n void errorReinitializingFile(@Cause Throwable e, JournalFile file);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142034, value = \"Exception on submitting write\", format = Message.Format.MESSAGE_FORMAT)\n void errorSubmittingWrite(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 142035, value = \"Could not stop journal append executor after 60 seconds\", format = Message.Format.MESSAGE_FORMAT)\n void couldNotStopJournalAppendExecutor();\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144000, value = \"Failed to delete file {0}\", format = Message.Format.MESSAGE_FORMAT)\n void errorDeletingFile(Object e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144001, value = \"Error starting poller\", format = Message.Format.MESSAGE_FORMAT)\n void errorStartingPoller(@Cause Exception e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144002, value = \"Error pushing opened file\", format = Message.Format.MESSAGE_FORMAT)\n void errorPushingFile(@Cause Exception e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144003, value = \"Error compacting\", format = Message.Format.MESSAGE_FORMAT)\n void errorCompacting(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144004, value = \"Error scheduling compacting\", format = Message.Format.MESSAGE_FORMAT)\n void errorSchedulingCompacting(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144005, value = \"Failed to performance blast\", format = Message.Format.MESSAGE_FORMAT)\n void failedToPerfBlast(@Cause Throwable e);\n\n @LogMessage(level = Logger.Level.ERROR)\n @Message(id = 144006, value = \"IOError code {0}, {1}\", format = Message.Format.MESSAGE_FORMAT)\n void ioError(final int errorCode, final String errorMessage);\n\n @LogMessage(level = Logger.Level.WARN)\n @Message(id = 144007, value = \"Ignoring journal file {0}: file is shorter then minimum header size. This file is being removed.\", format = Message.Format.MESSAGE_FORMAT)\n void ignoringShortFile(String fileName);\n\n}", "title": "" }, { "docid": "2dceea65696363b3fa07cf79527e67ed", "score": "0.5328625", "text": "@Override\r\n public void updateBatchJobLog(Batchjoblog batchJobLog) {\n\r\n }", "title": "" }, { "docid": "b3c79d8bf3645f7b77117e92a887acd3", "score": "0.53284156", "text": "private void setLog(org.conservify.fieldkit.data.pb.FkData.LogMessage value) {\n value.getClass();\n log_ = value;\n \n }", "title": "" }, { "docid": "db082c5ce41ccb9c7554487cda483942", "score": "0.532477", "text": "protected void initLogging2() throws ProcessException {\r\n initLogging2(/* logCount = */ 3,/* logSize = */ 100000,/* logLevel = */ Level.FINE);\r\n }", "title": "" }, { "docid": "9a8efc8e924bd13dc75a163248ade0a7", "score": "0.5307851", "text": "@Override\n public void log(String tag, String message) {\n }", "title": "" }, { "docid": "2638b4e8acad86a76b1adb5db4a78643", "score": "0.5298548", "text": "public void setLog(String logName);", "title": "" }, { "docid": "7e3def212c61c4cba23e9452e7418717", "score": "0.5297822", "text": "@Override\n public boolean logModified(Logger log)\n {\n long digest = getDigest();\n \n if (_digest != digest) {\n String reason = \"\";\n \n String name = getClass().getName();\n int p = name.lastIndexOf('.');\n if (p > 0)\n \tname = name.substring(p + 1);\n \n Path archiveDirectory = getArchiveDirectory();\n if (archiveDirectory != null)\n \treason = name + \"[\" + archiveDirectory.getNativePath() + \"] is modified\";\n \n Path expandDirectory = getExpandDirectory();\n if (expandDirectory != null\n \t && ! expandDirectory.equals(archiveDirectory)) {\n \tif (! \"\".equals(reason))\n \t reason = reason + \" or \";\n \t\n \treason = name + \"[\" + expandDirectory.getNativePath() + \"] is modified\";\n }\n \n log.info(reason);\n \n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "00c80ce3157214e5fb2a2380d086e8e9", "score": "0.5296183", "text": "public abstract String getNameForLogging();", "title": "" }, { "docid": "4aa42bb44a87a62626126ccce111a15d", "score": "0.52940226", "text": "public long log( LoggableObject item) throws DatabaseException {\n return log(item,false,false\n \t\t//#if FSYNC\n \t\t,false\n \t\t//#endif\n \t\t,false,DbLsn.NULL_LSN);\n }", "title": "" }, { "docid": "75c993af49e14d381dd59a3e09f4ee64", "score": "0.5278217", "text": "boolean hasLogBytes();", "title": "" }, { "docid": "9c0587fd502ff8a49a27df8808d561e5", "score": "0.52770936", "text": "private void log(String context)\n {\n getLog().debug(\"==== \" + context + \" \" + getName() + \" ====\");\n }", "title": "" }, { "docid": "82289cd7ecdc868c65afffc51e6a536e", "score": "0.52769816", "text": "Block(){\t\n\t}", "title": "" }, { "docid": "ee40d59b9645cac5c3dc839f75a32e3a", "score": "0.52734923", "text": "@Override\n\tpublic B log(Expression logExpression) {\n\t\treturn super.log(logExpression);\n\t}", "title": "" }, { "docid": "961c0a4b30bcdc83c638dcdcf7c22f22", "score": "0.52661175", "text": "@Override\r\n\t\t\t\tpublic String format(LogRecord record) {\n\t\t\t\t\treturn \"[\" + getCurrentDateStr(DATE_PATTEN_FULL) + \" - level:\" \r\n\t\t\t\t\t\t\t+ record.getLevel().getName().substring(0,1) + \" ] - \"\r\n\t\t\t\t\t\t\t+ \"[\" + record.getSourceClassName()\r\n\t\t\t\t\t\t\t+ \" -> \" + record.getSourceMethodName() + \"()] \" \r\n\t\t\t\t\t\t\t+ record.getMessage() + \"\\n\"\r\n\t\t\t\t\t\t\t;\r\n\t\t\t\t}", "title": "" }, { "docid": "2af6827c0fafdafcb52b447196cbf5cf", "score": "0.52609915", "text": "@Override\n public void setCommandLog(CommandLog cl) {\n }", "title": "" }, { "docid": "5970ffd5d27531df0b211466860050fd", "score": "0.5247289", "text": "public boolean log() { return log; }", "title": "" }, { "docid": "55dccbccc3830b432d230e619dd88368", "score": "0.5246439", "text": "public long log( LoggableObject item, boolean isProvisional, long oldNodeLsn) throws DatabaseException {\n return log(item,isProvisional,false\n \t\t//#if FSYNC\n \t\t,false\n \t\t//#endif\n \t\t,false,oldNodeLsn);\n }", "title": "" }, { "docid": "3588f1ca28e92e5c86279b28467139f5", "score": "0.5243581", "text": "public void setLogLine(int logLine) {\n this.logLine = logLine;\n }", "title": "" }, { "docid": "1853b5dc7ff0cfdd18c7b0a01e757f24", "score": "0.52401716", "text": "@Override\r\n public void addBatchJobLog(Batchjoblog batchJobLog) {\n\r\n }", "title": "" }, { "docid": "0c47d119b168314e98be2ed0155bcfae", "score": "0.52392125", "text": "abstract void logInfoMessage();", "title": "" }, { "docid": "9ef28f480bcdd773c53b4b8a642e51d0", "score": "0.5229224", "text": "@Override\n public String format(LogRecord record) {\n StringBuilder builder = new StringBuilder(1000);\n builder.append(df.format(new Date(record.getMillis()))).append(\" - \");\n builder.append(\"[\").append(record.getSourceClassName()).append(\".\");\n builder.append(record.getSourceMethodName()).append(\"] :\");\n builder.append(\"\\n\");\n builder.append(\"\\t[\").append(record.getLevel()).append(\"] - \");\n builder.append(formatMessage(record));\n builder.append(\"\\n\");\n return builder.toString();\n }", "title": "" }, { "docid": "9ddce7a4ddc246b8d9778fb5de61b5c4", "score": "0.5225494", "text": "public Date getLogTime()\r\n/* */ {\r\n/* 128 */ return this.logTime;\r\n/* */ }", "title": "" }, { "docid": "7e6fbc5734c0ed85ed06e978a5085a50", "score": "0.5222978", "text": "String GetLog()\n {\n return m_Log;\n }", "title": "" }, { "docid": "e951b7e62e5cc9048e37af415d8607c9", "score": "0.5219028", "text": "FileAccessLogs fileAccessLogs();", "title": "" }, { "docid": "da67bb8293ee34c0ad02b9d8f3a0ff12", "score": "0.5217623", "text": "@Override\n public boolean isLogText() {\n return false;\n }", "title": "" } ]
c316600af81c545ffd800b360dfca856
Constructor that uses document number and a suspension category code.
[ { "docid": "20d7d8933ccdeba16a84834efbb75781", "score": "0.74237883", "text": "public InvoiceSuspensionCategory(String documentNumber, String suspensionCategoryCode) {\n this.documentNumber = documentNumber;\n this.suspensionCategoryCode = suspensionCategoryCode;\n refreshReferenceObject(\"suspensionCategory\");\n }", "title": "" } ]
[ { "docid": "6c0e8dda63f049e6174b21c986a4f8fa", "score": "0.5390762", "text": "public void setSuspensionCategoryCode(String suspensionCategoryCode) {\n this.suspensionCategoryCode = suspensionCategoryCode;\n }", "title": "" }, { "docid": "ebbaded7379647e9bb900ed2d5c709ee", "score": "0.53582805", "text": "Category(int num) {\n this.num = num;\n }", "title": "" }, { "docid": "f4d75660fb88cb97fc3e03f50b5c65da", "score": "0.5315731", "text": "public Case(String CPR, String info) {\n this.CPR = CPR;\n this.info = info;\n creationDate = Business.getInstance().getCalendar().formatToString(new Date());\n dailyNotes = new ArrayList<>();\n medicineList = new ArrayList<>();\n }", "title": "" }, { "docid": "e0e3153b07834dcb177de1183150bd8f", "score": "0.5163408", "text": "public String getSuspensionCategoryCode() {\n return suspensionCategoryCode;\n }", "title": "" }, { "docid": "ad70d9e6a83d21c5feb371b445f3b552", "score": "0.5141122", "text": "public ApplicationCategory() {\n this.applicationCategoryId = 0;\n this.applicationCategoryName = \"\";\n dbAccess = new DataAccess();\n }", "title": "" }, { "docid": "f70442d323608df2817d27f9d6187e1a", "score": "0.5032128", "text": "public PostingList(int df, int N)\n {\n documentFrequency = df;\n totalNoOfDocuments = N;\n }", "title": "" }, { "docid": "0b5074281bbf0d2fb5d8cde3db559519", "score": "0.4974648", "text": "public Course(String code,int number,Department dept,String title) {\n this.dept = dept;\n this.title = title;\n this.code = code;\n this.number = number;\n this.classList = new ArrayList<>();\n }", "title": "" }, { "docid": "6e48132e3f51f5573c0e63ecda54d6f1", "score": "0.49488056", "text": "public void setSuspensionCategory(SuspensionCategory suspensionCategory) {\n this.suspensionCategory = suspensionCategory;\n }", "title": "" }, { "docid": "afdfd49a38c04f922dff5e7ee70965c1", "score": "0.4882858", "text": "public DiscountProduct(String productCode, String description, int unitPrice, double discountRate) \n\t{\n\t super(productCode, description, unitPrice);\n\t this.discountRate = discountRate;\n\t}", "title": "" }, { "docid": "15eb04547f3a133ce18a536d7e927645", "score": "0.48151916", "text": "private Identifier(final Category category, final QualifiedName name) {\r\n if (category == null || name == null) {\r\n throw new NullPointerException();\r\n }\r\n \r\n this.category = category;\r\n this.name = name;\r\n }", "title": "" }, { "docid": "c1378e1473644aaed5070ad87d76a95e", "score": "0.48141482", "text": "public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}", "title": "" }, { "docid": "4282bfcefc7fc2f2fe6ceda6856d4926", "score": "0.48101625", "text": "public Competence(){\n this(1,new BigValue(Constant.EXP_CHAR));\n }", "title": "" }, { "docid": "a0dff2b654f01835634ab8b043a487af", "score": "0.480205", "text": "private HardCodedCitations() {\n }", "title": "" }, { "docid": "827ca28fd1d763f5a9b84e10936726c5", "score": "0.4775652", "text": "public FilmCategoryId() {\n super();\n }", "title": "" }, { "docid": "891835fa972e56752417fc2706588e14", "score": "0.47685125", "text": "private void init(String filename){\n // create product cateogries \n // hard coded key-value for this project \n productCategory.addProduct(\"book\", \"books\");\n productCategory.addProduct(\"books\", \"books\");\n productCategory.addProduct(\"chocolate\", \"food\");\n productCategory.addProduct(\"chocolates\", \"food\");\n productCategory.addProduct(\"pills\", \"medical\");\n \n // read input\n parser.readInput(filename);\n \n // addProducts\n try {\n this.addProducts(parser.getRawData());\n } catch (Exception e) {\n System.out.println(\"Check input integrity\");\n }\n \n this.generateReceipt();\n\n }", "title": "" }, { "docid": "c2a89dd7fe71945bef9b244cfbdc5088", "score": "0.47631732", "text": "public Case(int IDNum, String caseDirectory, String creationDate, String CPR, boolean isActive) {\n this.CPR = CPR;\n this.IDNum = IDNum;\n this.caseDirectory = caseDirectory;\n this.info = Business.getInstance().getData().getCaseInfo(caseDirectory);\n this.creationDate = creationDate;\n this.isActive = isActive;\n dailyNotes = new ArrayList<>();\n medicineList = new ArrayList<>();\n ResultSet rs = Business.getInstance().getData().getDailyNote(IDNum);\n try {\n while (rs.next()) {\n dailyNotes.add(new DailyNote(rs.getInt(\"noteid\"),\n rs.getString(\"note\"),\n rs.getString(\"date\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n ResultSet rs2 = Business.getInstance().getData().getMedicine(IDNum);\n try {\n while (rs2.next()) {\n medicineList.add(new Medicine(rs2.getString(\"name\"),\n rs2.getString(\"vnr\"),\n rs2.getString(\"dosage\"),\n rs2.getInt(\"medicineID\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8ff42860d68bb46970cb3baf536609d7", "score": "0.47608104", "text": "private SeverityObservation(String code, String displayNameEn, String displayNameFr) {\n\t\tthis.code = code;\n\t\tthis.displayNameEn = displayNameEn;\n\t\tthis.displayNameFr = displayNameFr;\n\t}", "title": "" }, { "docid": "04af467c9c7c581426bb8d8fd20d27e4", "score": "0.47465837", "text": "protected ProductCategories(Parcel parcel_in) {\n this.id = parcel_in.readInt();\n this.name = parcel_in.readString();\n this.slug = parcel_in.readString();\n }", "title": "" }, { "docid": "7fe92909929a2cb21f386cb8002fcbd5", "score": "0.4736055", "text": "public category() {\r\n }", "title": "" }, { "docid": "52b3aa15e5ed7e07fb5a8005d7c07536", "score": "0.47348836", "text": "public Competence() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "a70c77713519cf72dc13b3dc9ba83c6b", "score": "0.4719654", "text": "private ClaimOrConcession(int proposal) {\n this.proposal = proposal;\n }", "title": "" }, { "docid": "3ae5a7aa84db5379a8eab78f82894a83", "score": "0.46788374", "text": "public Course(String courseCode, int availability, ArrayList<Course>prereqs) {\r\n\t\tthis.courseCode = courseCode;\r\n\t\tthis.availability = availability;\r\n\t\tthis.prereqs = prereqs;\r\n\t}", "title": "" }, { "docid": "3ccab1d8a1bb806859bc8124faeee0cf", "score": "0.46773174", "text": "public CPCAdapter(String code) {\n super();\n operationCode = code;\n if (code.equalsIgnoreCase(COPY))\n codeIndex = 0;\n else if (code.equalsIgnoreCase(CUT))\n codeIndex = 1;\n else if (code.equalsIgnoreCase(PASTE))\n codeIndex = 2;\n else\n System.out.println(\"wrong specfication of operation\");\n }", "title": "" }, { "docid": "661aba717cf1a3e2371fb6cbf3ea0ef7", "score": "0.4673145", "text": "public Course(String title, String codeNumber)\n {\n this.title = title;\n this.codeNumber = codeNumber;\n\n this.credits = 0;\n this.finalGrade = finalGrade;\n\n module1 = new Module(\"Application Development\", \"AD200\");\n module2 = new Module(\"Programming Concepts\", \"PC452\");\n module3 = new Module(\"Data Analysis\", \"DA101\");\n module4 = new Module(\"Web Design\", \"WD953\");\n }", "title": "" }, { "docid": "8de47f5575e02a2bd84bb91baf83a878", "score": "0.46721628", "text": "public Commercial()\n {\n super();\n payload = 0;\n }", "title": "" }, { "docid": "d7bacb34c1265bfb40359facb890ed85", "score": "0.46661448", "text": "public ExamcategRecord() {\n super(Examcateg.EXAMCATEG);\n }", "title": "" }, { "docid": "d929696e8cc41a612ad0258ae078f00e", "score": "0.46623662", "text": "private Severity(String strSeverityCode) {\r\n this.strSeverityCode = strSeverityCode;\r\n }", "title": "" }, { "docid": "671c4a8ca59a9579e2f2a6514968f03e", "score": "0.46575105", "text": "public CancerRisk() { this(\"None\", 1.0); }", "title": "" }, { "docid": "f4be6d9b5841a88cc1fcb4ce6ccfbc09", "score": "0.46503243", "text": "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "title": "" }, { "docid": "0baded509186156e5944dac482e81910", "score": "0.4632236", "text": "private Disc() {\n super(\"\");\n barcode = \"\";\n director = \"\";\n fsk = 0;\n }", "title": "" }, { "docid": "e71148dc318c58607e7a62469d6fabb8", "score": "0.46249047", "text": "public FurnitureDataBase(String type, String request, int number){\n setFurnitureRequest(request);\n setRequestType(type);\n setRequestNum(number);\n foundFurniture = new ArrayList<Furniture>();\n }", "title": "" }, { "docid": "6026842b71373f16be474d84af179717", "score": "0.46143287", "text": "private Recommendation() {\r\n }", "title": "" }, { "docid": "d9ac6d35465738a9e259d18895977959", "score": "0.46138224", "text": "public DeviceDocumentUnit(Long code, String fixedassetsCode, String deviceName, String specification, String idCode, Date startdate, String supplier, String supplierNum, Float power, Integer deptCode, Boolean editFlag, Long mainCode) {\n this.code = code;\n this.fixedassetsCode = fixedassetsCode;\n this.deviceName = deviceName;\n this.specification = specification;\n this.idCode = idCode;\n this.startdate = startdate;\n this.supplier = supplier;\n this.supplierNum = supplierNum;\n this.power = power;\n this.deptCode = deptCode;\n this.editFlag = editFlag;\n this.mainCode = mainCode;\n }", "title": "" }, { "docid": "93b3bcd5d75ed53fe7618998ba758bc4", "score": "0.4613538", "text": "public LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN() {}", "title": "" }, { "docid": "c309ea0512152551e4ee47dcc9412bf0", "score": "0.4610444", "text": "public CategoryBuilder()\n {\n fUpperInclusive = true;\n fValue = \"\";\n }", "title": "" }, { "docid": "8e0727a045e614938c0f334537defad7", "score": "0.46094978", "text": "public ASNClassNumber() {\n }", "title": "" }, { "docid": "1cee034a2a1f18bb696fcb53cf0b16c4", "score": "0.46070558", "text": "public ExamcategRecord(Long examcategPk, Long categoryPk, Long examlistPk) {\n super(Examcateg.EXAMCATEG);\n\n set(0, examcategPk);\n set(1, categoryPk);\n set(2, examlistPk);\n }", "title": "" }, { "docid": "6e3a62985ebfbdaad2a465d90e791315", "score": "0.4603254", "text": "public CalcCountRecord(int cnt)\r\n/* 14: */ {\r\n/* 15:48 */ super(Type.CALCCOUNT);\r\n/* 16:49 */ this.calcCount = cnt;\r\n/* 17: */ }", "title": "" }, { "docid": "f04647ca479967e40a69af8c8108adeb", "score": "0.46027127", "text": "public Factorization(MainDocumentController c) {\n this.recipes = new ArrayList<Recipe>();\n this.users = new ArrayList<User>();\n this.ingredients = new ArrayList<String>();\n this.userMap = new HashMap <String, Integer>();\n this.userMap_r = new HashMap<Integer, String>();\n this.recipeMap = new HashMap<String, Integer>();\n this.recipeMap_r = new HashMap<Integer, String>();\n this.ingredientMap = new HashMap<String, Integer>();\n this.ingredientMap_r = new HashMap<Integer, String>();\n this.firstMethodRes = null;\n this.secondMethodRes = null;\n this.mdc = c;\n }", "title": "" }, { "docid": "715b1d37fc677baf0798f56e1162276a", "score": "0.4599156", "text": "public BlusterCritter (int c) {\n super();\n courage = c;\n }", "title": "" }, { "docid": "0392101818762ef1781aab302df6da96", "score": "0.45977646", "text": "public CrlSeries(int crlSeries)\n {\n super(crlSeries);\n }", "title": "" }, { "docid": "cfd56ba0b3f6c160377c6242c055ddb8", "score": "0.45745552", "text": "public Category(String n) {\n this.name = n;\n }", "title": "" }, { "docid": "9ff5a8ed81e76ac5591e506bf1ccd8d9", "score": "0.4572578", "text": "private Category(final String description) {\r\n if (description == null) {\r\n throw new NullPointerException();\r\n }\r\n this.description = description;\r\n }", "title": "" }, { "docid": "7423480fa385eff3988641a995009f8b", "score": "0.45712313", "text": "public Note(int note, char accidental, Pane notePane) {\n _note = note;\n _accidental = accidental;\n _accidentalImage = new ImageView();\n this.setUpLedger();\n this.setUpNote();\n }", "title": "" }, { "docid": "c205c2e5b84e6e3fb233fcb8fc19e8ea", "score": "0.45700184", "text": "public ProductTestReport() {}", "title": "" }, { "docid": "51185324d0326f809db8c7a4f4aa06ec", "score": "0.45641565", "text": "public ProductCode() {\n }", "title": "" }, { "docid": "a77f4d6f84e98661667fa9a522946c81", "score": "0.45518568", "text": "public Productor(MonitorProdCons monitor, int N) {\r\n\t\tthis.monitor = monitor;\r\n\t\tthis.N = N;\r\n\t}", "title": "" }, { "docid": "7313f03b13dc80d184ad43089d4988ce", "score": "0.45509526", "text": "public Designation()\n\t{//Default Constructor...\n\n\t\tf_Designation = \"\";\n\n\t}", "title": "" }, { "docid": "e959c474fdc376718224f45d522b301a", "score": "0.45410708", "text": "public Candidate(String w, int c) {\r\n\t\tword = w;\r\n\t\tconfidence = c; // confidence will be represented by the number of times a particular word has been entered\r\n\t\t// higher frequency of entries = higher confidence\r\n\t}", "title": "" }, { "docid": "ce8306b3f35921b0b7f12396cd7c4c92", "score": "0.45402443", "text": "public Categorie(int noCategorie, String libelle) {\n this.noCategorie = noCategorie;\n this.libelle = libelle;\n }", "title": "" }, { "docid": "80517356f9cd15c247cda06c7638a147", "score": "0.45374274", "text": "public Medication(String name, String sg, LocalDate fd, int cp){\n medName = name;\n sig = sg;\n fillDate = fd;\n copay = cp;\n }", "title": "" }, { "docid": "bf7dacbfd7cc2f9b22e3fc80ecbf6694", "score": "0.45193198", "text": "public Doctor(String fN, String lN, String phNum, String special)\r\n {\r\n \r\n super(fN, lN, phNum);\r\n this.Dec = new String[appointmentsInDay][monthsWith31Days];\r\n this.Nov = new String[appointmentsInDay][monthsWith30Days];\r\n this.Oct = new String[appointmentsInDay][monthsWith31Days];\r\n this.Sep = new String[appointmentsInDay][monthsWith30Days];\r\n this.Aug = new String[appointmentsInDay][monthsWith31Days];\r\n this.Jul = new String[appointmentsInDay][monthsWith31Days];\r\n this.Jun = new String[appointmentsInDay][monthsWith30Days];\r\n this.May = new String[appointmentsInDay][monthsWith31Days];\r\n this.Apr = new String[appointmentsInDay][monthsWith30Days];\r\n this.Mar = new String[appointmentsInDay][monthsWith31Days];\r\n this.Feb = new String[appointmentsInDay][daysInFebruary];\r\n this.Jan = new String[appointmentsInDay][monthsWith31Days];\r\n specialization = special;\r\n \r\n }", "title": "" }, { "docid": "bc16885474f6abda9d3438a4aed56ef3", "score": "0.45164493", "text": "public CMN() {\n\t}", "title": "" }, { "docid": "73188cca0bf379a90e8e1824d1b73d5b", "score": "0.4513906", "text": "public Category() {}", "title": "" }, { "docid": "740c451bb971e001c5a6de802dcb7127", "score": "0.45119575", "text": "public Intensity(int code) {\r\n this.code = code;\r\n }", "title": "" }, { "docid": "4456f26637d861996dc324166425bc27", "score": "0.45082402", "text": "public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }", "title": "" }, { "docid": "efc74ad6bf600306d5423419f74bcbea", "score": "0.45055762", "text": "protected CategoricalMatrixImpl(Document document) {\r\n\t\tsuper(document,\"Standard\");\r\n\t}", "title": "" }, { "docid": "5aa3ed0db527d5f9787c74918c80364f", "score": "0.45019472", "text": "public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}", "title": "" }, { "docid": "289f20683359772e53fbdfa79f80a4b4", "score": "0.44979048", "text": "public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }", "title": "" }, { "docid": "66412f9ae17237bdccf764dd3c823c02", "score": "0.44947478", "text": "public Coalition(Coalition coalition) {\n super();\n this.definedOn = coalition.getPlayer();\n for(int i : coalition){\n add(i);\n }\n }", "title": "" }, { "docid": "3d731483ad0be32826c2b95046484cfb", "score": "0.4490897", "text": "public ArtPollPacket() {\n this((byte) 0b00000110, ArtNetPriorityCodes.DP_CRITICAL);\n }", "title": "" }, { "docid": "93942d4ab1d97a1fe76abccaa7f43473", "score": "0.44898823", "text": "public Incident() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c94fa5a7fdfa77395017c31e0b94a4c1", "score": "0.44872358", "text": "public PaymentP2007_03() {\n this(DSL.name(\"payment_p2007_03\"), null);\n }", "title": "" }, { "docid": "6148eb72528555b45f3fc2503ee0c4ef", "score": "0.44770607", "text": "public StudyClass(int internID, int classNum, String name, short sks, \r\n String[] roomConstraint, TimeConstraint timeConstraint){\r\n internalId = internID;\r\n this.classNum = classNum;\r\n className = name;\r\n this.sks = sks;\r\n this.roomConstraint = roomConstraint; \r\n this.tConstraint = timeConstraint;\r\n }", "title": "" }, { "docid": "3fbadf768e87817e634b7e77c8d66bbd", "score": "0.44716194", "text": "private MPayment createCounterDoc() {\n //\tIs this a counter doc ?\n if (getRef_Payment_ID() != 0) {\n return null;\n }\n\n //\tOrg Must be linked to BPartner\n MOrg org = MOrg.get(getCtx(), getAD_Org_ID());\n int counterC_BPartner_ID = org.getLinkedC_BPartner_ID();\n if (counterC_BPartner_ID == 0) {\n return null;\n }\n //\tBusiness Partner needs to be linked to Org\n MBPartner bp = new MBPartner(getCtx(), getC_BPartner_ID(), null);\n int counterAD_Org_ID = bp.getAD_OrgBP_ID_Int();\n if (counterAD_Org_ID == 0) {\n return null;\n }\n\n MBPartner counterBP = new MBPartner(getCtx(), counterC_BPartner_ID, null);\n MOrgInfo counterOrgInfo = MOrgInfo.get(getCtx(), counterAD_Org_ID);\n log.info(\"Counter BP=\" + counterBP.getName());\n\n //\tDocument Type\n int C_DocTypeTarget_ID = 0;\n MDocTypeCounter counterDT = MDocTypeCounter.getCounterDocType(getCtx(), getC_DocType_ID());\n if (counterDT != null) {\n log.fine(counterDT.toString());\n if (!counterDT.isCreateCounter() || !counterDT.isValid()) {\n return null;\n }\n C_DocTypeTarget_ID = counterDT.getCounter_C_DocType_ID();\n } else //\tindirect\n {\n C_DocTypeTarget_ID = MDocTypeCounter.getCounterDocType_ID(getCtx(), getC_DocType_ID());\n log.fine(\"Indirect C_DocTypeTarget_ID=\" + C_DocTypeTarget_ID);\n if (C_DocTypeTarget_ID <= 0) {\n return null;\n }\n }\n\n //\tDeep Copy\n MPayment counter = new MPayment(getCtx(), 0, get_TrxName());\n counter.setAD_Org_ID(counterAD_Org_ID);\n counter.setC_BPartner_ID(counterBP.getC_BPartner_ID());\n counter.setIsReceipt(!isReceipt());\n counter.setC_DocType_ID(C_DocTypeTarget_ID);\n counter.setTrxType(getTrxType());\n counter.setTenderType(getTenderType());\n //\n counter.setPayAmt(getPayAmt());\n counter.setDiscountAmt(getDiscountAmt());\n counter.setTaxAmt(getTaxAmt());\n counter.setWriteOffAmt(getWriteOffAmt());\n counter.setIsOverUnderPayment(isOverUnderPayment());\n counter.setOverUnderAmt(getOverUnderAmt());\n counter.setC_Currency_ID(getC_Currency_ID());\n counter.setC_ConversionType_ID(getC_ConversionType_ID());\n //\n counter.setDateTrx(getDateTrx());\n counter.setDateAcct(getDateAcct());\n counter.setRef_Payment_ID(getC_Payment_ID());\n //\n String sql = \"SELECT C_BankAccount_ID FROM C_BankAccount \"\n + \"WHERE C_Currency_ID=? AND AD_Org_ID IN (0,?) AND IsActive='Y' \"\n + \"ORDER BY IsDefault DESC\";\n int C_BankAccount_ID = DB.getSQLValue(get_TrxName(), sql, getC_Currency_ID(), counterAD_Org_ID);\n counter.setC_BankAccount_ID(C_BankAccount_ID);\n\n //\tRefernces\n counter.setC_Activity_ID(getC_Activity_ID());\n counter.setC_Campaign_ID(getC_Campaign_ID());\n counter.setC_Project_ID(getC_Project_ID());\n counter.setUser1_ID(getUser1_ID());\n counter.setUser2_ID(getUser2_ID());\n counter.save(get_TrxName());\n log.fine(counter.toString());\n setRef_Payment_ID(counter.getC_Payment_ID());\n\n //\tDocument Action\n if (counterDT != null) {\n if (counterDT.getDocAction() != null) {\n counter.setDocAction(counterDT.getDocAction());\n counter.processIt(counterDT.getDocAction());\n counter.save(get_TrxName());\n }\n }\n return counter;\n }", "title": "" }, { "docid": "45fbc55cee9ab9af173d18e9e4bd93d4", "score": "0.44636488", "text": "public DTMDOMException(short code) {\n/* 49 */ super(code, \"\");\n/* */ }", "title": "" }, { "docid": "7b76d1c333000f0080665fbc6e5e56a1", "score": "0.44611007", "text": "public AssignmentCategory(String ac) {\n categoryName = ac;\n }", "title": "" }, { "docid": "26af521f830ca9c5905c111e699ab19a", "score": "0.44561705", "text": "public void setDocumentNo (String DocumentNo);", "title": "" }, { "docid": "26af521f830ca9c5905c111e699ab19a", "score": "0.44561705", "text": "public void setDocumentNo (String DocumentNo);", "title": "" }, { "docid": "26af521f830ca9c5905c111e699ab19a", "score": "0.44561705", "text": "public void setDocumentNo (String DocumentNo);", "title": "" }, { "docid": "b400bf3224adaac29307799d12712a57", "score": "0.44539848", "text": "public Course(String codeNo, String title)\n {\n // initialise instance variables\n this.codeNo = codeNo;\n this.title = title;\n \n module1 = new Module(\"Programming Concepts\", \"CO452\");\n module2 = new Module(\"Game Design\", \"CO459\");\n module3 = new Module(\"Networking\", \"CO451\");\n module4 = new Module(\"Computer Architectures\", \"CO450\");\n }", "title": "" }, { "docid": "b0d35933c6f31a2551493860698a61a9", "score": "0.44511548", "text": "public Appointment(String appointmentTypeIn, String customerNameIn, String dateIn)\n {\n //id = id + 1;\n appointmentType = appointmentTypeIn;\n customerName = customerNameIn;\n appointmentDate = dateIn;\n appointmentDetails = \"\";\n }", "title": "" }, { "docid": "efe57a93a41138b559e4d26c9f071a87", "score": "0.44397765", "text": "public Notification()\n\t{\n\t\t// Start of user code constructor for Notification)\n\t\tsuper();\n\t\t// End of user code\n\t}", "title": "" }, { "docid": "b4735bc66de30c22922bba789ec85b35", "score": "0.44322443", "text": "public SysAccessCodeException(int code, String businessMessage)\n/* */ {\n/* 21 */ this(businessMessage);\n/* */ }", "title": "" }, { "docid": "40dc2874dfa3b4008442abffbb3c8048", "score": "0.44288582", "text": "public Catalogue()\n {\n SupplierId = 0;\n }", "title": "" }, { "docid": "5be100bd5cc057d121a04bafe02e99d8", "score": "0.4427904", "text": "public BlusterCritter(int c) {\n super();\n courage = c;\n }", "title": "" }, { "docid": "a9a7e0b8c28489352db3c2befa243378", "score": "0.44232595", "text": "public MajorDescription() {\n modules = new ArrayList<>();\n facultyModuleCodePrefixes = new ArrayList<>();\n }", "title": "" }, { "docid": "0ce2a8ff6fb47cd0bcf8bdaa51fd6099", "score": "0.44231215", "text": "public StaffHire(int vacancyNumber, String designation, String jobType){\r\n this.vacancyNumber = vacancyNumber;\r\n this.designation = designation;\r\n this.jobType = jobType;\r\n }", "title": "" }, { "docid": "bae7137b10f3b1ed40480f93485992a6", "score": "0.44107726", "text": "public ProdCal()\n {\n this.profileLength = 0;\n this.production = 0;\n this.prevCount = 0;\n this.lastCount = 0;\n this.numberOfStillages = 0;\n }", "title": "" }, { "docid": "6e57ddcee822fc99dd283ec2912ca3e9", "score": "0.44097358", "text": "public _355() {\n\n }", "title": "" }, { "docid": "8e8ee7d46a1fb788b484e43a82ad2bdc", "score": "0.44047886", "text": "public VoiceMail(Document document, String ser) {\r\n\t\tsuper(document, ser);\r\n\t}", "title": "" }, { "docid": "bfbd7514fc377722d71c53b247c9c7fa", "score": "0.4398336", "text": "public C23317d() {\n }", "title": "" }, { "docid": "8157daac9e6a4a8757ac9c074a2c53ed", "score": "0.43960336", "text": "public Occurrence(String doc, int freq) {\n\t\tdocument = doc;\n\t\tfrequency = freq;\n\t}", "title": "" }, { "docid": "6f331bcfeac82b3409274841eeb086b5", "score": "0.43916786", "text": "private void setC_DocType_ID() {\n setC_DocType_ID(isReceipt());\n }", "title": "" }, { "docid": "68b5f0d346f90a0f0f4218a880d781c0", "score": "0.43911856", "text": "public Course(String codeNo, String title)\n {\n // initialise variables\n this.codeNo = codeNo;\n this.title = title;\n \n // Setup the four individual modules\n // I did it this way as I couldn't bear pointing-and-clicking to add modules!\n moduleProgramming = new Module(\"Programming\", \"ABC001\");\n moduleWeb = new Module(\"Web Design\", \"ABC002\");\n moduleDigitalTech = new Module(\"Digital Technology\", \"ABC003\");\n moduleCompArchitecture = new Module(\"Computer Architecture\", \"ABC004\");\n \n complete = false;\n totalCredits = 0;\n totalMark = 0;\n }", "title": "" }, { "docid": "12abb27a1a58bd654249099fcc843bfd", "score": "0.4383773", "text": "public TutorIndustrial() {}", "title": "" }, { "docid": "5353730a39ccd74d1398cfa785d391cb", "score": "0.4378591", "text": "public ActionBook(String bName, String authorName, int count,\r\n\t\t\tBookCategory type) {\r\n\t\tsuper(bName, authorName, count, type);\r\n\t\taCount++;\r\n\t}", "title": "" }, { "docid": "4fe8fca8a2bb96cdee8f03276c0435fc", "score": "0.43785286", "text": "public Category() {\n super();\n }", "title": "" }, { "docid": "759077a515d59bea0a85fb8f96b09926", "score": "0.43739435", "text": "public DomainKnowledge() {\r\n\t\tthis.construct(3);\r\n\t}", "title": "" }, { "docid": "0197c7b928179b4ed24b756b6647584e", "score": "0.43717676", "text": "private CIECADocument updateCoverageCategory(final CIECADocument inDoc, final java.util.logging.Logger mLogger) {\n\t\t\n\t\tif (inDoc != null && inDoc.getCIECA() != null && inDoc.getCIECA().getAssignmentAddRq() != null) {\n\t\t\t\n\t\t\t//\n\t\t\t// <ClaimInfo>/<PolicyInfo>/<CoverageInfo>/<Coverage>/<CoverageCategory>\n\t\t\t//\n\t\t\tfinal ClaimInfoType claimInfo = inDoc.getCIECA().getAssignmentAddRq().getClaimInfo();\n\t\t\tif (claimInfo != null) {\n\t\t\t\tif (claimInfo.isSetPolicyInfo()) {\n\t\t\t\t\tfinal PolicyInfoType policyInfo = claimInfo.getPolicyInfo();\n\t\t\t\t\tif (policyInfo != null) {\n\t\t\t\t\t\tif (policyInfo.isSetCoverageInfo()) {\n\t\t\t\t\t\t\tfinal CoverageInfoType coverageInfo = policyInfo.getCoverageInfo();\n\t\t\t\t\t\t\tif (coverageInfo != null && coverageInfo.sizeOfCoverageArray() > 0) {\n\t\t\t\t\t\t\t\tfinal Coverage coverage = coverageInfo.getCoverageArray(0);\n\t\t\t\t\t\t\t\tif (coverage != null) {\n\t\t\t\t\t\t\t\t\tif (coverage.isSetCoverageCategory()) {\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* BEFORE updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t// TypeOfLoss - C maps to G, P maps to A, M maps to D, \n\t\t\t\t\t\t\t\t\t\t// A (Animal) maps to 0 Else no mapping \n\t\t\t\t\t\t\t\t\t\tif (coverage.getCoverageCategory() != null) {\n\t\t\t\t\t\t\t\t\t\t\tfinal String inCoverageCategory = coverage.getCoverageCategory();\n\t\t\t\t\t\t\t\t\t\t\tif (inCoverageCategory.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"G\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"P\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"A\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"M\")) {\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"D\");\n\t\t\t\t\t\t\t\t\t\t\t} else if (inCoverageCategory.equalsIgnoreCase(\"A\")) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Map A (Animal) to O (Other) - preventing collision with A (Property)\n\t\t\t\t\t\t\t\t\t\t\t\tcoverage.setCoverageCategory(\"0\");\n\t\t\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\t\t\t// else NO MAPPING of remaining LossTypes\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t if (mLogger.isLoggable(Level.FINE)) {\n\t\t\t\t\t\t\t\t \tmLogger.fine(\"********* AFTER updateCoverageCategory:: coverage.getCoverageCategory(): [ \" + coverage.getCoverageCategory() + \" ] *********\");\n\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inDoc;\n\t}", "title": "" }, { "docid": "b2ea3ad93fcbf0417eda180206e1d54b", "score": "0.4369415", "text": "public MyPrintDocumentAdapter(Context context, PhotoCategories category, String worksiteName)\n {\n this.context = context;\n this.worksiteName = worksiteName;\n if(category==PhotoCategories.GENERAL_VIEW_ACCESS){\n this.totalpages = 4;\n isGeneralAccessPhotosPrinted=true;\n } else {\n this.photoToWriteTypes= ListOfPhotosSingletonManager.getTypesByCategory(category);\n this.totalpages = WriteImagesInPDFTools.getTotalOfPagesByCategory(category);\n this.category = category;\n }\n\n }", "title": "" }, { "docid": "681641ca2606de1d786f3ac0f2c7eb0c", "score": "0.43663248", "text": "public Sell_Installment(ArrayList<Integer> item, int InstallmentPeriod, Customer customer)\n {\n // initialise instance variables\n super(item);\n this.InstallmentPeriod=InstallmentPeriod;\n this.customer=customer;\n isActive = true;\n\n }", "title": "" }, { "docid": "44be0e49f63752f5024823f25ce1145d", "score": "0.4364777", "text": "@Deprecated( since = \"Used only por mapping\")\n public Category() {\n }", "title": "" }, { "docid": "90cf1ec6bae45d0c39b8074337559aa1", "score": "0.43646377", "text": "public void setCategorySeq(Integer categorySeq) {\n this.categorySeq = categorySeq;\n }", "title": "" }, { "docid": "9b287325c462051039144e5c066c474f", "score": "0.43639436", "text": "public Produto(int id_p, int barcode, String categoria, String descricao,\r\n\t\t\tint unidade, BigDecimal custo, BigDecimal mlucro) {\r\n\t\tthis.id_p = id_p;\r\n\t\tthis.barcode = barcode;\r\n\t\tthis.categoria = categoria;\r\n\t\tthis.descricao = descricao;\r\n\t\tthis.unidade = unidade;\r\n\t\tthis.custo = custo;\r\n\t\tthis.mlucro = mlucro;\r\n\t}", "title": "" }, { "docid": "353a10ad8a8b039bcba34b0ed1362fae", "score": "0.4362775", "text": "public Category() {\n categoryName = null;\n }", "title": "" }, { "docid": "3316b55b9a56b1fd0d36af43e7df3580", "score": "0.43605822", "text": "public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }", "title": "" }, { "docid": "c6e537234576b6f31c98b8afb2106ccb", "score": "0.43583548", "text": "public Journal (String type, String callNum, String title, String organize, int year) \n throws InvalidCallNumberException, InvalidYearException, InvalidTitleException{\n super(type, callNum, title, year);\n this.organization = organize;\n }", "title": "" }, { "docid": "eab6d01687f6f5fd40e810429142a1ad", "score": "0.43532553", "text": "public ProductTestReport(Long id)\n/* 26: */ {\n/* 27:27 */ super(id);\n/* 28: */ }", "title": "" }, { "docid": "b08bb766a6d414599c3b1384a28e08ad", "score": "0.43495685", "text": "public void initForSwissCat(){\n hdBase = HD_BASED_ON_MMS;\n hdNoHdRankThreshold = 8;\n hdCorrection = 1; \n hdCeiling = 9;\n }", "title": "" } ]
f2bfc528f97bd6644097bcd37275dbf9
This method initializes jCheckBoxTopoMorphOpen
[ { "docid": "41e1dfab39bcd2dfac151dd91ff4a6ef", "score": "0.7744414", "text": "private JCheckBox getJCheckBoxTopoMorphOpen() {\r\n\t\tif (jCheckBoxTopoMorphOpen == null) {\r\n\t\t\tjCheckBoxTopoMorphOpen = new JCheckBox(\"Morphological open\");\r\n\t\t}\r\n\t\treturn jCheckBoxTopoMorphOpen;\r\n\t}", "title": "" } ]
[ { "docid": "e939c97e55b2d3b89589a100ad62bec3", "score": "0.6880856", "text": "private JCheckBox getJCheckBoxTopoMorphClose() {\r\n\t\tif (jCheckBoxTopoMorphClose == null) {\r\n\t\t\tjCheckBoxTopoMorphClose = new JCheckBox(\"Morphological closing\");\r\n\t\t}\r\n\t\treturn jCheckBoxTopoMorphClose;\r\n\t}", "title": "" }, { "docid": "c84c64ef1e710cdb43927e6288663b4b", "score": "0.6531647", "text": "private void initComponents() {\n\t\tJLabel jidePopupLabel = new JLabel();\n\t\tJButton showJidePopupButton = new JButton();\n\t\tJLabel jidePopupMenuLabel = new JLabel();\n\t\tJButton showJidePopupMenuButton = new JButton();\n\t\tJLabel label9 = new JLabel();\n\t\ttristateCheckBox1 = new TristateCheckBox();\n\t\ttriStateLabel1 = new JLabel();\n\t\tJLabel jideButtonLabel = new JLabel();\n\t\tJideButton jideButton1 = new JideButton();\n\t\tJideButton jideButton2 = new JideButton();\n\t\tJideButton jideButton3 = new JideButton();\n\t\tJideButton jideButton4 = new JideButton();\n\t\tJToolBar toolBar1 = new JToolBar();\n\t\tJideButton jideButton9 = new JideButton();\n\t\tJButton button1 = new JButton();\n\t\tverticalCheckBox = new JCheckBox();\n\t\tJLabel label1 = new JLabel();\n\t\tJideButton jideButton5 = new JideButton();\n\t\tJideButton jideButton6 = new JideButton();\n\t\tJideButton jideButton7 = new JideButton();\n\t\tJideButton jideButton8 = new JideButton();\n\t\tJToolBar toolBar2 = new JToolBar();\n\t\tJideButton jideButton10 = new JideButton();\n\t\ticonCheckBox = new JCheckBox();\n\t\tJLabel jideToggleButtonLabel = new JLabel();\n\t\tJideToggleButton jideToggleButton1 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton2 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton3 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton4 = new JideToggleButton();\n\t\tJToolBar toolBar3 = new JToolBar();\n\t\tJideToggleButton jideToggleButton9 = new JideToggleButton();\n\t\tJToggleButton toggleButton1 = new JToggleButton();\n\t\tJLabel label2 = new JLabel();\n\t\tJideToggleButton jideToggleButton5 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton6 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton7 = new JideToggleButton();\n\t\tJideToggleButton jideToggleButton8 = new JideToggleButton();\n\t\tJToolBar toolBar4 = new JToolBar();\n\t\tJideToggleButton jideToggleButton10 = new JideToggleButton();\n\t\tJToggleButton toggleButton2 = new JToggleButton();\n\t\tJLabel jideSplitButtonLabel = new JLabel();\n\t\tJideSplitButton jideSplitButton1 = new JideSplitButton();\n\t\tJideSplitButton jideSplitButton2 = new JideSplitButton();\n\t\tJideSplitButton jideSplitButton3 = new JideSplitButton();\n\t\talwaysDropdownCheckBox = new JCheckBox();\n\t\tJLabel label3 = new JLabel();\n\t\tJideSplitButton jideSplitButton5 = new JideSplitButton();\n\t\tJideSplitButton jideSplitButton6 = new JideSplitButton();\n\t\tJideSplitButton jideSplitButton7 = new JideSplitButton();\n\t\tbuttonEnabledCheckBox = new JCheckBox();\n\t\tJLabel jideToggleSplitButtonLabel2 = new JLabel();\n\t\tJideToggleSplitButton jideToggleSplitButton1 = new JideToggleSplitButton();\n\t\tJideToggleSplitButton jideToggleSplitButton2 = new JideToggleSplitButton();\n\t\tJideToggleSplitButton jideToggleSplitButton3 = new JideToggleSplitButton();\n\t\tJLabel label4 = new JLabel();\n\t\tJideToggleSplitButton jideToggleSplitButton4 = new JideToggleSplitButton();\n\t\tJideToggleSplitButton jideToggleSplitButton5 = new JideToggleSplitButton();\n\t\tJideToggleSplitButton jideToggleSplitButton6 = new JideToggleSplitButton();\n\t\tJLabel jideLabelLabel = new JLabel();\n\t\tJideLabel jideLabel1 = new JideLabel();\n\t\tJideLabel jideLabel2 = new JideLabel();\n\t\tJLabel styledLabelLabel = new JLabel();\n\t\tStyledLabel styledLabel1 = new StyledLabel();\n\t\tStyledLabel styledLabel2 = new StyledLabel();\n\n\t\t//======== this ========\n\t\tsetLayout(new MigLayout(\n\t\t\t\"insets dialog,hidemode 3\",\n\t\t\t// columns\n\t\t\t\"[]\" +\n\t\t\t\"[left]\" +\n\t\t\t\"[fill]\" +\n\t\t\t\"[fill]\" +\n\t\t\t\"[fill]\",\n\t\t\t// rows\n\t\t\t\"[]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]para\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]para\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]para\" +\n\t\t\t\"[]\" +\n\t\t\t\"[]\"));\n\n\t\t//---- jidePopupLabel ----\n\t\tjidePopupLabel.setText(\"JidePopup:\");\n\t\tadd(jidePopupLabel, \"cell 0 0\");\n\n\t\t//---- showJidePopupButton ----\n\t\tshowJidePopupButton.setText(\"show JidePopup\");\n\t\tshowJidePopupButton.addActionListener(e -> showJidePopup(e));\n\t\tadd(showJidePopupButton, \"cell 1 0,growx\");\n\n\t\t//---- jidePopupMenuLabel ----\n\t\tjidePopupMenuLabel.setText(\"JidePopupMenu:\");\n\t\tadd(jidePopupMenuLabel, \"cell 0 1\");\n\n\t\t//---- showJidePopupMenuButton ----\n\t\tshowJidePopupMenuButton.setText(\"show JidePopupMenu\");\n\t\tshowJidePopupMenuButton.addActionListener(e -> showJidePopupMenu(e));\n\t\tadd(showJidePopupMenuButton, \"cell 1 1,growx\");\n\n\t\t//---- label9 ----\n\t\tlabel9.setText(\"TristateCheckBox:\");\n\t\tadd(label9, \"cell 0 2\");\n\n\t\t//---- tristateCheckBox1 ----\n\t\ttristateCheckBox1.setText(\"three states\");\n\t\ttristateCheckBox1.addActionListener(e -> tristateCheckBox1Changed());\n\t\tadd(tristateCheckBox1, \"cell 1 2\");\n\n\t\t//---- triStateLabel1 ----\n\t\ttriStateLabel1.setText(\"text\");\n\t\ttriStateLabel1.setEnabled(false);\n\t\tadd(triStateLabel1, \"cell 2 2\");\n\n\t\t//---- jideButtonLabel ----\n\t\tjideButtonLabel.setText(\"JideButton:\");\n\t\tadd(jideButtonLabel, \"cell 0 3\");\n\n\t\t//---- jideButton1 ----\n\t\tjideButton1.setText(\"TOOLBAR\");\n\t\tadd(jideButton1, \"cell 1 3 3 1\");\n\n\t\t//---- jideButton2 ----\n\t\tjideButton2.setText(\"TOOLBOX\");\n\t\tjideButton2.setButtonStyle(1);\n\t\tadd(jideButton2, \"cell 1 3 3 1\");\n\n\t\t//---- jideButton3 ----\n\t\tjideButton3.setText(\"FLAT\");\n\t\tjideButton3.setButtonStyle(2);\n\t\tadd(jideButton3, \"cell 1 3 3 1\");\n\n\t\t//---- jideButton4 ----\n\t\tjideButton4.setText(\"HYPERLINK\");\n\t\tjideButton4.setButtonStyle(3);\n\t\tadd(jideButton4, \"cell 1 3 3 1\");\n\n\t\t//======== toolBar1 ========\n\t\t{\n\n\t\t\t//---- jideButton9 ----\n\t\t\tjideButton9.setText(\"JideButton\");\n\t\t\ttoolBar1.add(jideButton9);\n\n\t\t\t//---- button1 ----\n\t\t\tbutton1.setText(\"JButton\");\n\t\t\ttoolBar1.add(button1);\n\t\t}\n\t\tadd(toolBar1, \"cell 1 3 3 1\");\n\n\t\t//---- verticalCheckBox ----\n\t\tverticalCheckBox.setText(\"vertical\");\n\t\tverticalCheckBox.addActionListener(e -> verticalChanged());\n\t\tadd(verticalCheckBox, \"cell 4 3\");\n\n\t\t//---- label1 ----\n\t\tlabel1.setText(\"selected\");\n\t\tlabel1.setEnabled(false);\n\t\tadd(label1, \"cell 0 4,alignx right,growx 0\");\n\n\t\t//---- jideButton5 ----\n\t\tjideButton5.setText(\"TOOLBAR\");\n\t\tjideButton5.setSelected(true);\n\t\tadd(jideButton5, \"cell 1 4 3 1\");\n\n\t\t//---- jideButton6 ----\n\t\tjideButton6.setText(\"TOOLBOX\");\n\t\tjideButton6.setButtonStyle(1);\n\t\tjideButton6.setSelected(true);\n\t\tadd(jideButton6, \"cell 1 4 3 1\");\n\n\t\t//---- jideButton7 ----\n\t\tjideButton7.setText(\"FLAT\");\n\t\tjideButton7.setButtonStyle(2);\n\t\tjideButton7.setSelected(true);\n\t\tadd(jideButton7, \"cell 1 4 3 1\");\n\n\t\t//---- jideButton8 ----\n\t\tjideButton8.setText(\"HYPERLINK\");\n\t\tjideButton8.setButtonStyle(3);\n\t\tjideButton8.setSelected(true);\n\t\tadd(jideButton8, \"cell 1 4 3 1\");\n\n\t\t//======== toolBar2 ========\n\t\t{\n\n\t\t\t//---- jideButton10 ----\n\t\t\tjideButton10.setText(\"JideButton\");\n\t\t\tjideButton10.setSelected(true);\n\t\t\ttoolBar2.add(jideButton10);\n\t\t}\n\t\tadd(toolBar2, \"cell 1 4 3 1\");\n\n\t\t//---- iconCheckBox ----\n\t\ticonCheckBox.setText(\"icon\");\n\t\ticonCheckBox.addActionListener(e -> iconChanged());\n\t\tadd(iconCheckBox, \"cell 4 4\");\n\n\t\t//---- jideToggleButtonLabel ----\n\t\tjideToggleButtonLabel.setText(\"JideToggleButton:\");\n\t\tadd(jideToggleButtonLabel, \"cell 0 5\");\n\n\t\t//---- jideToggleButton1 ----\n\t\tjideToggleButton1.setText(\"TOOLBAR\");\n\t\tadd(jideToggleButton1, \"cell 1 5 3 1\");\n\n\t\t//---- jideToggleButton2 ----\n\t\tjideToggleButton2.setText(\"TOOLBOX\");\n\t\tjideToggleButton2.setButtonStyle(1);\n\t\tadd(jideToggleButton2, \"cell 1 5 3 1\");\n\n\t\t//---- jideToggleButton3 ----\n\t\tjideToggleButton3.setText(\"FLAT\");\n\t\tjideToggleButton3.setButtonStyle(2);\n\t\tadd(jideToggleButton3, \"cell 1 5 3 1\");\n\n\t\t//---- jideToggleButton4 ----\n\t\tjideToggleButton4.setText(\"HYPERLINK\");\n\t\tjideToggleButton4.setButtonStyle(3);\n\t\tadd(jideToggleButton4, \"cell 1 5 3 1\");\n\n\t\t//======== toolBar3 ========\n\t\t{\n\n\t\t\t//---- jideToggleButton9 ----\n\t\t\tjideToggleButton9.setText(\"JideToggleButton\");\n\t\t\ttoolBar3.add(jideToggleButton9);\n\n\t\t\t//---- toggleButton1 ----\n\t\t\ttoggleButton1.setText(\"JToggleButton\");\n\t\t\ttoolBar3.add(toggleButton1);\n\t\t}\n\t\tadd(toolBar3, \"cell 1 5 3 1\");\n\n\t\t//---- label2 ----\n\t\tlabel2.setText(\"selected\");\n\t\tlabel2.setEnabled(false);\n\t\tadd(label2, \"cell 0 6,alignx right,growx 0\");\n\n\t\t//---- jideToggleButton5 ----\n\t\tjideToggleButton5.setText(\"TOOLBAR\");\n\t\tjideToggleButton5.setSelected(true);\n\t\tadd(jideToggleButton5, \"cell 1 6 3 1\");\n\n\t\t//---- jideToggleButton6 ----\n\t\tjideToggleButton6.setText(\"TOOLBOX\");\n\t\tjideToggleButton6.setSelected(true);\n\t\tjideToggleButton6.setButtonStyle(1);\n\t\tadd(jideToggleButton6, \"cell 1 6 3 1\");\n\n\t\t//---- jideToggleButton7 ----\n\t\tjideToggleButton7.setText(\"FLAT\");\n\t\tjideToggleButton7.setSelected(true);\n\t\tjideToggleButton7.setButtonStyle(2);\n\t\tadd(jideToggleButton7, \"cell 1 6 3 1\");\n\n\t\t//---- jideToggleButton8 ----\n\t\tjideToggleButton8.setText(\"HYPERLINK\");\n\t\tjideToggleButton8.setSelected(true);\n\t\tjideToggleButton8.setButtonStyle(3);\n\t\tadd(jideToggleButton8, \"cell 1 6 3 1\");\n\n\t\t//======== toolBar4 ========\n\t\t{\n\n\t\t\t//---- jideToggleButton10 ----\n\t\t\tjideToggleButton10.setText(\"JideToggleButton\");\n\t\t\tjideToggleButton10.setSelected(true);\n\t\t\ttoolBar4.add(jideToggleButton10);\n\n\t\t\t//---- toggleButton2 ----\n\t\t\ttoggleButton2.setText(\"JToggleButton\");\n\t\t\ttoggleButton2.setSelected(true);\n\t\t\ttoolBar4.add(toggleButton2);\n\t\t}\n\t\tadd(toolBar4, \"cell 1 6 3 1\");\n\n\t\t//---- jideSplitButtonLabel ----\n\t\tjideSplitButtonLabel.setText(\"JideSplitButton:\");\n\t\tadd(jideSplitButtonLabel, \"cell 0 7\");\n\n\t\t//======== jideSplitButton1 ========\n\t\t{\n\t\t\tjideSplitButton1.setText(\"TOOLBAR\");\n\t\t}\n\t\tadd(jideSplitButton1, \"cell 1 7 3 1\");\n\n\t\t//======== jideSplitButton2 ========\n\t\t{\n\t\t\tjideSplitButton2.setText(\"TOOLBOX\");\n\t\t\tjideSplitButton2.setButtonStyle(1);\n\t\t}\n\t\tadd(jideSplitButton2, \"cell 1 7 3 1\");\n\n\t\t//======== jideSplitButton3 ========\n\t\t{\n\t\t\tjideSplitButton3.setText(\"FLAT\");\n\t\t\tjideSplitButton3.setButtonStyle(2);\n\t\t}\n\t\tadd(jideSplitButton3, \"cell 1 7 3 1\");\n\n\t\t//---- alwaysDropdownCheckBox ----\n\t\talwaysDropdownCheckBox.setText(\"always dropdown\");\n\t\talwaysDropdownCheckBox.addActionListener(e -> alwaysDropdownChanged());\n\t\tadd(alwaysDropdownCheckBox, \"cell 4 7\");\n\n\t\t//---- label3 ----\n\t\tlabel3.setText(\"selected\");\n\t\tlabel3.setEnabled(false);\n\t\tadd(label3, \"cell 0 8,alignx right,growx 0\");\n\n\t\t//======== jideSplitButton5 ========\n\t\t{\n\t\t\tjideSplitButton5.setText(\"TOOLBAR\");\n\t\t\tjideSplitButton5.setButtonSelected(true);\n\t\t}\n\t\tadd(jideSplitButton5, \"cell 1 8 3 1\");\n\n\t\t//======== jideSplitButton6 ========\n\t\t{\n\t\t\tjideSplitButton6.setText(\"TOOLBOX\");\n\t\t\tjideSplitButton6.setButtonStyle(1);\n\t\t\tjideSplitButton6.setButtonSelected(true);\n\t\t}\n\t\tadd(jideSplitButton6, \"cell 1 8 3 1\");\n\n\t\t//======== jideSplitButton7 ========\n\t\t{\n\t\t\tjideSplitButton7.setText(\"FLAT\");\n\t\t\tjideSplitButton7.setButtonStyle(2);\n\t\t\tjideSplitButton7.setButtonSelected(true);\n\t\t}\n\t\tadd(jideSplitButton7, \"cell 1 8 3 1\");\n\n\t\t//---- buttonEnabledCheckBox ----\n\t\tbuttonEnabledCheckBox.setText(\"button enabled\");\n\t\tbuttonEnabledCheckBox.setSelected(true);\n\t\tbuttonEnabledCheckBox.addActionListener(e -> buttonEnabledChanged());\n\t\tadd(buttonEnabledCheckBox, \"cell 4 8\");\n\n\t\t//---- jideToggleSplitButtonLabel2 ----\n\t\tjideToggleSplitButtonLabel2.setText(\"JideToggleSplitButton:\");\n\t\tadd(jideToggleSplitButtonLabel2, \"cell 0 9\");\n\n\t\t//======== jideToggleSplitButton1 ========\n\t\t{\n\t\t\tjideToggleSplitButton1.setText(\"TOOLBAR\");\n\t\t}\n\t\tadd(jideToggleSplitButton1, \"cell 1 9\");\n\n\t\t//======== jideToggleSplitButton2 ========\n\t\t{\n\t\t\tjideToggleSplitButton2.setText(\"TOOLBOX\");\n\t\t\tjideToggleSplitButton2.setButtonStyle(1);\n\t\t}\n\t\tadd(jideToggleSplitButton2, \"cell 1 9\");\n\n\t\t//======== jideToggleSplitButton3 ========\n\t\t{\n\t\t\tjideToggleSplitButton3.setText(\"FLAT\");\n\t\t\tjideToggleSplitButton3.setButtonStyle(2);\n\t\t}\n\t\tadd(jideToggleSplitButton3, \"cell 1 9\");\n\n\t\t//---- label4 ----\n\t\tlabel4.setText(\"selected\");\n\t\tlabel4.setEnabled(false);\n\t\tadd(label4, \"cell 0 10,alignx right,growx 0\");\n\n\t\t//======== jideToggleSplitButton4 ========\n\t\t{\n\t\t\tjideToggleSplitButton4.setText(\"TOOLBAR\");\n\t\t\tjideToggleSplitButton4.setButtonSelected(true);\n\t\t}\n\t\tadd(jideToggleSplitButton4, \"cell 1 10\");\n\n\t\t//======== jideToggleSplitButton5 ========\n\t\t{\n\t\t\tjideToggleSplitButton5.setText(\"TOOLBOX\");\n\t\t\tjideToggleSplitButton5.setButtonStyle(1);\n\t\t\tjideToggleSplitButton5.setButtonSelected(true);\n\t\t}\n\t\tadd(jideToggleSplitButton5, \"cell 1 10\");\n\n\t\t//======== jideToggleSplitButton6 ========\n\t\t{\n\t\t\tjideToggleSplitButton6.setText(\"FLAT\");\n\t\t\tjideToggleSplitButton6.setButtonStyle(2);\n\t\t\tjideToggleSplitButton6.setButtonSelected(true);\n\t\t}\n\t\tadd(jideToggleSplitButton6, \"cell 1 10\");\n\n\t\t//---- jideLabelLabel ----\n\t\tjideLabelLabel.setText(\"JideLabel:\");\n\t\tadd(jideLabelLabel, \"cell 0 11\");\n\n\t\t//---- jideLabel1 ----\n\t\tjideLabel1.setText(\"enabled\");\n\t\tadd(jideLabel1, \"cell 1 11\");\n\n\t\t//---- jideLabel2 ----\n\t\tjideLabel2.setText(\"disabled\");\n\t\tjideLabel2.setEnabled(false);\n\t\tadd(jideLabel2, \"cell 1 11\");\n\n\t\t//---- styledLabelLabel ----\n\t\tstyledLabelLabel.setText(\"StyledLabel:\");\n\t\tadd(styledLabelLabel, \"cell 0 12\");\n\n\t\t//---- styledLabel1 ----\n\t\tstyledLabel1.setText(\"enabled\");\n\t\tadd(styledLabel1, \"cell 1 12\");\n\n\t\t//---- styledLabel2 ----\n\t\tstyledLabel2.setText(\"disabled\");\n\t\tstyledLabel2.setEnabled(false);\n\t\tadd(styledLabel2, \"cell 1 12\");\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\n\t}", "title": "" }, { "docid": "2824f93f28833eff7b0aa1b75ee9509c", "score": "0.6405706", "text": "private void initComponents() {\r\n\r\n outlineViewDnevnaEvidencijeSvihRadnika = new org.openide.explorer.view.OutlineView();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel1 = new javax.swing.JLabel();\r\n jCheckBox_AktivneFirme = new javax.swing.JCheckBox();\r\n jTextField1 = new javax.swing.JTextField();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(DnevnaEvidencijaTopComponent.class, \"DnevnaEvidencijaTopComponent.jLabel4.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(DnevnaEvidencijaTopComponent.class, \"DnevnaEvidencijaTopComponent.jLabel1.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(jCheckBox_AktivneFirme, org.openide.util.NbBundle.getMessage(DnevnaEvidencijaTopComponent.class, \"DnevnaEvidencijaTopComponent.jCheckBox_AktivneFirme.text\")); // NOI18N\r\n jCheckBox_AktivneFirme.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jCheckBox_AktivneFirmeActionPerformed(evt);\r\n }\r\n });\r\n\r\n jTextField1.setBackground(new java.awt.Color(224, 223, 227));\r\n jTextField1.setText(org.openide.util.NbBundle.getMessage(DnevnaEvidencijaTopComponent.class, \"DnevnaEvidencijaTopComponent.jTextField1.text\")); // NOI18N\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jSeparator1)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(outlineViewDnevnaEvidencijeSvihRadnika, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jCheckBox_AktivneFirme)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addGap(3, 3, 3)\r\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(4, 4, 4)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel1)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jCheckBox_AktivneFirme))\r\n .addGap(33, 33, 33)\r\n .addComponent(outlineViewDnevnaEvidencijeSvihRadnika, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n }", "title": "" }, { "docid": "7fc50b56e6fbe5438c7ad8021097d0fa", "score": "0.6252635", "text": "public void customInitiate(){\r\n\t\tif(Main.saveAddress){\r\n \tjCheckBox1.setSelected(true);\r\n \tif(Main.savePassword){\r\n \t\tjCheckBox2.setSelected(true);\r\n \t\tif(Main.autoLogin){\r\n \t\t\tjCheckBox3.setSelected(true);\r\n \t\t}\r\n \t}else{\r\n \t\tjCheckBox3.setEnabled(false);\r\n \t\tjLabel3.setEnabled(false);\r\n \t}\r\n }else{\r\n \tjCheckBox2.setEnabled(false);\r\n \t\tjCheckBox3.setEnabled(false);\r\n \t\tjLabel3.setEnabled(false);\r\n \t\tjLabel2.setEnabled(false);\r\n }\r\n if(Main.checkSender){\r\n \tjCheckBox4.setSelected(true);\r\n }else{\r\n \tboolean enable = false;\r\n \tjButton3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 2, true));\r\n \tjButton4.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 2, true));\r\n \tjButton5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(102, 102, 102), 2, true));\r\n \t\tjButton3.setEnabled(enable);\r\n \t\tjButton4.setEnabled(enable);\r\n \t\tjButton5.setEnabled(enable);\r\n \t\tjLabel5.setEnabled(enable);\r\n \t\tjTextField1.setEnabled(enable);\r\n \t\tjComboBox1.setEnabled(enable);\r\n }\r\n\t}", "title": "" }, { "docid": "b94539cfcd379f7d0b9c861cc0e17769", "score": "0.62193745", "text": "private void setCheckboxes()\n {\n PDB123View.getcBnucleoBase3D().setSelected(true);\n showNucleoBase.bind(PDB123View.getcBnucleoBase3D().selectedProperty());\n PDB123View.getcBsugar3D().setSelected(true);\n showSugar.bind(PDB123View.getcBsugar3D().selectedProperty());\n PDB123View.getcBpBB3D().setSelected(false);\n showBackbone.bind(PDB123View.getcBpBB3D().selectedProperty());\n PDB123View.getcBhDB().setSelected(true);\n showHBonds.bind(PDB123View.getcBhDB().selectedProperty());\n }", "title": "" }, { "docid": "82af335d9523484cb65f6e4aae2ba314", "score": "0.61738527", "text": "public void initComponents() {\n \tsuper.initComponents();\n \t\n cPathActive = CWComponentFactory.createCheckBox(getModel().getPathPanelActiveModel(), \"Anzeigepfad aktivieren\");\n cbPathPosition = CWComponentFactory.createComboBox(getModel().getPathPanelPositionSelection());\n\n getComponentContainer()\n .addComponent(cPathActive)\n .addComponent(cbPathPosition);\n \n cPathActive.addItemListener(cbPathActiveListener = new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n// if(e.getStateChange() == ItemEvent.SELECTED) {\n// cbPathPosition.setEnabled(true);\n// } else {\n// cbPathPosition.setEnabled(false);\n// }\n cbPathPosition.setEnabled(cPathActive.isSelected());\n }\n });\n cbPathPosition.setEnabled(cPathActive.isSelected());\n }", "title": "" }, { "docid": "67f69ee0991d662ebc2ed6b7dd44cfb1", "score": "0.61362225", "text": "public void initialize() {\n\t\tflatModel.setToggleGroup(group);\n\t\tnegoModel.setToggleGroup(group);\n\t}", "title": "" }, { "docid": "964800ea97d67e3571b6895c0848582f", "score": "0.61177945", "text": "private void initComponents() {\n\n mySelectLbl = new javax.swing.JLabel();\n myScalars = new javax.swing.JCheckBox();\n myArray = new javax.swing.JCheckBox();\n myObject = new javax.swing.JCheckBox();\n myResource = new javax.swing.JCheckBox();\n myNull = new javax.swing.JCheckBox();\n myUninit = new javax.swing.JCheckBox();\n mySuperglobal = new javax.swing.JCheckBox();\n\n org.openide.awt.Mnemonics.setLocalizedText(mySelectLbl, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Select\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myScalars, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Scalars\")); // NOI18N\n myScalars.setActionCommand(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Scalars\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myArray, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Array\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myObject, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Object\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myResource, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Resource\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myNull, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Null\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(myUninit, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Uninit\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(mySuperglobal, org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LBL_Superglobal\")); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(mySelectLbl)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(myArray)\n .addComponent(myScalars)\n .addComponent(myObject)\n .addComponent(myResource)\n .addComponent(myNull)\n .addComponent(myUninit)\n .addComponent(mySuperglobal))))\n .addContainerGap(37, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(mySelectLbl)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myScalars)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myArray)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myObject)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myResource)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myNull)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(myUninit)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(mySuperglobal)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n mySelectLbl.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.mySelectLbl.AccessibleContext.accessibleName\")); // NOI18N\n mySelectLbl.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.mySelectLbl.AccessibleContext.accessibleDescription\")); // NOI18N\n myScalars.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Scalars\")); // NOI18N\n myScalars.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myScalars.AccessibleContext.accessibleDescription\")); // NOI18N\n myArray.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Array\")); // NOI18N\n myArray.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myArray.AccessibleContext.accessibleDescription\")); // NOI18N\n myObject.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Object\")); // NOI18N\n myObject.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myObject.AccessibleContext.accessibleDescription\")); // NOI18N\n myResource.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Resource\")); // NOI18N\n myResource.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myResource.AccessibleContext.accessibleDescription\")); // NOI18N\n myNull.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Null\")); // NOI18N\n myNull.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myNull.AccessibleContext.accessibleDescription\")); // NOI18N\n myUninit.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Uninit\")); // NOI18N\n myUninit.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.myUninit.AccessibleContext.accessibleDescription\")); // NOI18N\n mySuperglobal.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"A11_Superglobal\")); // NOI18N\n mySuperglobal.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.mySuperglobal.AccessibleContext.accessibleDescription\")); // NOI18N\n\n getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.AccessibleContext.accessibleName\")); // NOI18N\n getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(LocalFilterPanel.class, \"LocalFilterPanel.AccessibleContext.accessibleDescription\")); // NOI18N\n }", "title": "" }, { "docid": "afcb15e75f31facb3669096379b58ee6", "score": "0.6003043", "text": "public Checkbox_control() {\n initComponents();\n }", "title": "" }, { "docid": "d2805e04e4db61c6c6cc47d33ac58976", "score": "0.59978026", "text": "private JCheckBox getJCheckBoxTopology() {\r\n\t\tif (jCheckBoxHeightMap == null) {\r\n\t\t\tjCheckBoxHeightMap = new JCheckBox(\"Process and show the height-map\", true);\r\n\t\t\tjCheckBoxHeightMap.setSelected(true);\r\n\t\t\tjCheckBoxHeightMap.addItemListener(this);\r\n\t\t}\r\n\t\treturn jCheckBoxHeightMap;\r\n\t}", "title": "" }, { "docid": "64824193a72a425d201aac131ad2e0be", "score": "0.5991882", "text": "@FXML\n public void initCheckBoxes() {\n editLivedInUKFrance.setSelected(donorReceiver.getLivedInUKFlag());\n\n editSmoker.setSelected(\n BooleanExtension.getBoolean(donorReceiver.getUserAttributeCollection().getSmoker()));\n\n editLiver.setSelected(donorReceiver.getDonorOrganInventory().getLiver());\n editKidney.setSelected(donorReceiver.getDonorOrganInventory().getKidneys());\n editLung.setSelected(donorReceiver.getDonorOrganInventory().getLungs());\n editHeart.setSelected(donorReceiver.getDonorOrganInventory().getHeart());\n editPancreas.setSelected(donorReceiver.getDonorOrganInventory().getPancreas());\n editIntestine.setSelected(donorReceiver.getDonorOrganInventory().getIntestine());\n editCornea.setSelected(donorReceiver.getDonorOrganInventory().getCorneas());\n editMiddleEar.setSelected(donorReceiver.getDonorOrganInventory().getMiddleEars());\n editBone.setSelected(donorReceiver.getDonorOrganInventory().getBone());\n editBoneMarrow.setSelected(donorReceiver.getDonorOrganInventory().getBoneMarrow());\n editSkin.setSelected(donorReceiver.getDonorOrganInventory().getSkin());\n editConnectiveTissue.setSelected(donorReceiver.getDonorOrganInventory().getConnectiveTissue());\n\n editReceiverLiver.setSelected(donorReceiver.getRequiredOrgans().getLiver());\n editReceiverKidney.setSelected(donorReceiver.getRequiredOrgans().getKidneys());\n editReceiverLung.setSelected(donorReceiver.getRequiredOrgans().getLungs());\n editReceiverHeart.setSelected(donorReceiver.getRequiredOrgans().getHeart());\n editReceiverPancreas.setSelected(donorReceiver.getRequiredOrgans().getPancreas());\n editReceiverIntestine.setSelected(donorReceiver.getRequiredOrgans().getIntestine());\n editReceiverCornea.setSelected(donorReceiver.getRequiredOrgans().getCorneas());\n editReceiverMiddleEar.setSelected(donorReceiver.getRequiredOrgans().getMiddleEars());\n editReceiverBone.setSelected(donorReceiver.getRequiredOrgans().getBone());\n editReceiverBoneMarrow.setSelected(donorReceiver.getRequiredOrgans().getBoneMarrow());\n editReceiverSkin.setSelected(donorReceiver.getRequiredOrgans().getSkin());\n editReceiverConnectiveTissue\n .setSelected(donorReceiver.getRequiredOrgans().getConnectiveTissue());\n }", "title": "" }, { "docid": "cb4ff745a87e7cd7b79510d47f7b4922", "score": "0.5959356", "text": "private void init() {\n setTitle(\"Data Point Coloring Settings\");\n\n // Set up coloring method region of panel\n coloringMethod.setSelectedItem(colorManager.getColoringMethodString());\n coloringMethod.addActionListener(this);\n Box methodPanel = Box.createVerticalBox();\n Box cbPanel = Box.createHorizontalBox();\n cbPanel.add(new JLabel(\"Coloring method:\"));\n cbPanel.add(Box.createRigidArea(new Dimension(5, 0)));\n cbPanel.add(coloringMethod);\n methodPanel.add(cbPanel);\n methodPanel.add(Box.createRigidArea(new Dimension(0, 5)));\n methodPanel.add(new JSeparator(JSeparator.HORIZONTAL));\n\n // Set up hot point check box\n Box hotPointBox = Box.createHorizontalBox();\n hotPointBox.add(new JLabel(\"Hot point mode\"));\n hotPointBox.add(Box.createRigidArea(new Dimension(10, 0)));\n hotPointBox.add(hotPointCheckBox);\n hotPointCheckBox.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (hotPointCheckBox.isSelected() == true) {\n hotColorButton.setEnabled(true);\n hotColorIndicator.setEnabled(true);\n } else {\n hotColorButton.setEnabled(false);\n hotColorIndicator.setEnabled(false);\n }\n }\n });\n\n // Set up color widgets\n baseColor = colorManager.getBaseColor();\n hotColor = colorManager.getHotColor();\n baseColorIndicator.setBackground(baseColor);\n hotColorIndicator.setBackground(hotColor);\n baseColorIndicator.setSize(50, 50);\n hotColorIndicator.setSize(50, 50);\n baseColorIndicator.setBorder(BorderFactory\n .createLineBorder(Color.black));\n hotColorIndicator\n .setBorder(BorderFactory.createLineBorder(Color.black));\n if (colorManager.getHotPointMode() == true) {\n hotPointCheckBox.setSelected(true);\n hotColorButton.setEnabled(true);\n hotColorIndicator.setEnabled(true);\n } else {\n hotPointCheckBox.setSelected(false);\n hotColorButton.setEnabled(false);\n hotColorIndicator.setEnabled(false);\n }\n floor.setText(\"\" + Double.toString(colorManager.getFloor()));\n ceiling.setText(\"\" + Double.toString(colorManager.getCeiling()));\n incrementAmount.setText(\"\"\n + Double.toString(colorManager.getIncrementAmount()));\n decrementAmount.setText(\"\"\n + Double.toString(colorManager.getDecrementAmount()));\n\n baseColorIndicator.setBackground(colorManager.getBaseColor());\n hotColorIndicator.setBackground(colorManager.getHotColor());\n baseColorButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Color newColor = JColorChooser.showDialog(null,\n \"Choose base color\", colorManager.getBaseColor());\n if (newColor == null) {\n newColor = baseColorIndicator.getBackground();\n }\n baseColor = newColor;\n baseColorIndicator.setBackground(newColor);\n }\n });\n hotColorButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent arg0) {\n Color newColor = JColorChooser.showDialog(null,\n \"Choose hot color\", colorManager.getHotColor());\n if (newColor == null) {\n newColor = hotColorIndicator.getBackground();\n }\n hotColor = newColor;\n hotColorIndicator.setBackground(newColor);\n }\n });\n\n // Initialize based on combo box\n initPanel();\n\n // Set up help button\n ShowHelpAction helpAction = new ShowHelpAction(\n \"Pages/Plot/projection.html\");\n addButton(new JButton(helpAction));\n\n // Assemble color panel\n JPanel baseColorPanel = new JPanel();\n JPanel hotColorPanel = new JPanel();\n baseColorPanel.add(baseColorButton);\n baseColorPanel.add(baseColorIndicator);\n hotColorPanel.add(hotColorButton);\n hotColorPanel.add(hotColorIndicator);\n\n mainPanel.add(methodPanel);\n mainPanel.add(hotPointBox);\n mainPanel.add(baseColorPanel);\n mainPanel.add(hotColorPanel);\n mainPanel.add(currentColoringPanel);\n setContentPane(mainPanel);\n }", "title": "" }, { "docid": "9d1c405356edfa9966e541c6fa79a9ae", "score": "0.59532124", "text": "public ScatterPlotNodeDialogPane() {\n m_generateImageCheckBox = new JCheckBox(\"Create image at outport\");\n m_showLegendCheckBox = new JCheckBox(\"Show color legend\");\n m_displayFullscreenButtonCheckBox = new JCheckBox(\"Display fullscreen button\");\n m_autoRangeAxisCheckBox = new JCheckBox(\"Auto range axes\");\n m_useDomainInformationCheckBox = new JCheckBox(\"Use domain information\");\n m_showGridCheckBox = new JCheckBox(\"Show grid\");\n m_showCrosshairCheckBox = new JCheckBox(\"Enable mouse crosshair\");\n m_snapToPointsCheckBox = new JCheckBox(\"Snap to data pionts\");\n m_resizeViewToWindow = new JCheckBox(\"Resize view to fill window\");\n m_enableViewConfigCheckBox = new JCheckBox(\"Enable view edit controls\");\n m_enableTitleChangeCheckBox = new JCheckBox(\"Enable title edit controls\");\n m_enableSubtitleChangeCheckBox = new JCheckBox(\"Enable subtitle edit controls\");\n m_enableXColumnChangeCheckBox = new JCheckBox(\"Enable column chooser for x-axis\");\n m_enableYColumnChangeCheckBox = new JCheckBox(\"Enable column chooser for y-axis\");\n m_enableXAxisLabelEditCheckBox = new JCheckBox(\"Enable label edit for x-axis\");\n m_enableYAxisLabelEditCheckBox = new JCheckBox(\"Enable label edit for y-axis\");\n m_enableSwitchLegendBox = new JCheckBox(\"Enable legend display control\");\n m_enableDotSizeChangeCheckBox = new JCheckBox(\"Enable dot size edit\");\n m_allowMouseWheelZoomingCheckBox = new JCheckBox(\"Enable mouse wheel zooming\");\n m_allowDragZoomingCheckBox = new JCheckBox(\"Enable drag zooming\");\n m_allowPanningCheckBox = new JCheckBox(\"Enable panning\");\n m_showZoomResetCheckBox = new JCheckBox(\"Show zoom reset button\");\n m_enableSelectionCheckBox = new JCheckBox(\"Enable selection\");\n m_allowRectangleSelectionCheckBox = new JCheckBox(\"Enable rectangular selection\");\n m_allowLassoSelectionCheckBox = new JCheckBox(\"Enable lasso selection\");\n m_publishSelectionCheckBox = new JCheckBox(\"Publish selection events\");\n m_subscribeSelectionCheckBox = new JCheckBox(\"Subscribe to selection events\");\n m_enableShowSelectedOnlyCheckBox = new JCheckBox(\"Enable 'Show selected points only' option\");\n m_subscribeFilterCheckBox = new JCheckBox(\"Subscribe to filter events\");\n\n m_maxRowsSpinner = new JSpinner();\n m_appendedColumnName = new JTextField(TEXT_FIELD_SIZE);\n m_chartTitleTextField = new JTextField(TEXT_FIELD_SIZE);\n m_chartSubtitleTextField = new JTextField(TEXT_FIELD_SIZE);\n //TODO change to ColumnSelectionPanel\n @SuppressWarnings(\"unchecked\")\n DataValueColumnFilter colFilter = new DataValueColumnFilter(DoubleValue.class, StringValue.class);\n Border xColBoxBorder = BorderFactory.createTitledBorder(\"Choose column for x axis\");\n m_xColComboBox = new ColumnSelectionPanel(xColBoxBorder, colFilter, false, false);\n Border yColBoxBorder = BorderFactory.createTitledBorder(\"Choose column for y axis\");\n m_yColComboBox = new ColumnSelectionPanel(yColBoxBorder, colFilter, false, false);\n m_xAxisLabelField = new JTextField(TEXT_FIELD_SIZE);\n m_yAxisLabelField = new JTextField(TEXT_FIELD_SIZE);\n m_dotSize = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));\n\n m_imageWidthSpinner = new JSpinner(new SpinnerNumberModel(100, 100, Integer.MAX_VALUE, 1));\n m_imageHeightSpinner = new JSpinner(new SpinnerNumberModel(100, 100, Integer.MAX_VALUE, 1));\n m_gridColorChooser = new DialogComponentColorChooser(\n new SettingsModelColor(\"gridColor\", null), \"Grid color: \", true);\n m_dataAreaColorChooser = new DialogComponentColorChooser(\n new SettingsModelColor(\"dataAreaColor\", null), \"Data area color: \", true);\n m_backgroundColorChooser = new DialogComponentColorChooser(\n new SettingsModelColor(\"backgroundColor\", null), \"Background color: \", true);\n\n m_showWarningInViewCheckBox = new JCheckBox(\"Show warnings in view\");\n m_reportOnMissingValuesCheckBox = new JCheckBox(\"Report on missing values\");\n\n m_enableViewConfigCheckBox.addChangeListener(new ChangeListener() {\n\n @Override\n public void stateChanged(final ChangeEvent e) {\n enableViewControls();\n }\n });\n m_showCrosshairCheckBox.addChangeListener(new ChangeListener() {\n\n @Override\n public void stateChanged(final ChangeEvent e) {\n enableCrosshairControls();\n }\n });\n m_enableSelectionCheckBox.addChangeListener(new ChangeListener() {\n\n @Override\n public void stateChanged(final ChangeEvent e) {\n enableSelectionControls();\n }\n });\n m_showGridCheckBox.addChangeListener(new ChangeListener() {\n\n @Override\n public void stateChanged(final ChangeEvent e) {\n m_gridColorChooser.getModel().setEnabled(m_showGridCheckBox.isSelected());\n\n }\n });\n\n m_dateTimeFormats = new DialogComponentDateTimeOptions(\n new SettingsModelDateTimeOptions(ScatterPlotViewConfig.DATE_TIME_FORMATS), \"Date and Time formatter\");\n\n addTab(\"Options\", initOptionsPanel());\n addTab(\"Axis Configuration\", initAxisPanel());\n addTab(\"General Plot Options\", initGeneralPanel());\n addTab(\"View Controls\", initControlsPanel());\n }", "title": "" }, { "docid": "de37b522467465c3a38f43ad2ee90c46", "score": "0.5940341", "text": "@Override\n\tpublic void init(){\n\t\tisActive = false;\n\t\tbeenden = new Button (\"Beenden!\");\n\t\tinfo = new Button (\"Info!\");\n\t\tsimuliere = new Button (\"Simuliere!\");\n\t\tsimulieren = new CheckBox (\"Simuliere!\");\n\t\t\n\t\t//Setup feste GUI Bedienelemente\n\t\tgrid = new GridPane();\n\t\tgrid.setHgap(5d);\n\t\tgrid.setVgap(5d);\n\t\tgrid.add(beenden, 1, 0);\n\t\tgrid.add(info, 1, 1);\n\t\tgrid.add(simuliere, 0, 0);\n\t\tgrid.add(simulieren, 0, 1);\n\t\t\n\t\tsim = erzeugeSimulationsszene();\n\t\tsetInitObjects(sim);\n\t}", "title": "" }, { "docid": "97fd51ce5285ac49762aa9ccc310f36a", "score": "0.5936545", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tcheckBoxFederaciones = new JCheckBox(\"\");\r\n\t\tcheckBoxFederaciones.setEnabled(false);\r\n\t\tcheckBoxFederaciones.setBounds(143, 60, 97, 23);\r\n\t\tframe.getContentPane().add(checkBoxFederaciones);\r\n\t\t\r\n\t\tcheckBoxDirectorio = new JCheckBox(\"\");\r\n\t\tcheckBoxDirectorio.setFont(new Font(\"Tahoma\", Font.PLAIN, 8));\r\n\t\tcheckBoxDirectorio.setEnabled(false);\r\n\t\tcheckBoxDirectorio.setBounds(143, 96, 285, 23);\r\n\t\tframe.getContentPane().add(checkBoxDirectorio);\r\n\t\t\r\n\t\tbtnLetsGo = new JButton(\"LET'S GO\");\r\n\t\tbtnLetsGo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tUpdater updater = new Updater();\r\n\t\t\t\tupdater.setFederaciones(feds);\r\n\t\t\t\tupdater.setDestino(checkBoxDestino.getText());\r\n\t\t\t\tupdater.setDirectorioBase(checkBoxDirectorio.getText());\r\n\t\t\t\tint exito = -1;\r\n\t\t\t\ttry {\r\n\t\t\t\t\texito = updater.update();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(exito == 0) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"APLICACIÓN ACTUALIZADA CON ÉXITO\");\r\n\t\t\t\t}else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"ERROR\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLetsGo.setEnabled(false);\r\n\t\tbtnLetsGo.setBounds(187, 214, 89, 23);\r\n\t\tframe.getContentPane().add(btnLetsGo);\r\n\t\t\r\n\t\tcheckBoxDestino = new JCheckBox(\"\");\r\n\t\tcheckBoxDestino.setFont(new Font(\"Tahoma\", Font.PLAIN, 8));\r\n\t\tcheckBoxDestino.setEnabled(false);\r\n\t\tcheckBoxDestino.setBounds(143, 130, 285, 23);\r\n\t\tframe.getContentPane().add(checkBoxDestino);\r\n\t\t\r\n\t\tJButton btnFederaciones = new JButton(\"Federaciones\");\r\n\t\tbtnFederaciones.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tSelectorFederaciones selector = new SelectorFederaciones();\r\n\t\t\t\tselector.setVisible(true);\r\n\t\t\t\tselector.addWindowListener(new WindowAdapter()\r\n\t\t {\r\n\t\t @Override\r\n\t\t public void windowClosing(WindowEvent e)\r\n\t\t {\r\n\t\t ArrayList<JCheckBox> checks = selector.checks;\r\n\t\t for (int i = 0; i < checks.size(); i++) {\r\n\t\t\t\t\t\t\tif(checks.get(i).isSelected()) {\r\n\t\t\t\t\t\t\t\tfeds.add(selector.federaciones.get(i));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t //System.out.println(feds);\r\n\t\t if(feds.size()>0) {\r\n\t\t \tcheckBoxFederaciones.setSelected(true);\r\n\t\t }else {\r\n\t\t \tcheckBoxFederaciones.setSelected(false);\r\n\t\t }\r\n\t\t checkButtons();\r\n\t\t e.getWindow().dispose();\r\n\t\t }\r\n\t\t });\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFederaciones.setBounds(10, 60, 127, 23);\r\n\t\tframe.getContentPane().add(btnFederaciones);\r\n\t\t\r\n\t\tJButton btnDirectorioRaz = new JButton(\"Modelo base\");\r\n\t\tbtnDirectorioRaz.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t chooser.setCurrentDirectory(new java.io.File(\".\"));\r\n\t\t\t chooser.setDialogTitle(\"choosertitle\");\r\n\t\t\t chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t chooser.setAcceptAllFileFilterUsed(false);\r\n\r\n\t\t\t if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t \tString directory = chooser.getSelectedFile().getAbsolutePath();\r\n\t\t\t \tcheckBoxDirectorio.setSelected(true);\r\n\t\t\t \tcheckBoxDirectorio.setText(directory);\r\n\t\t\t \t//System.out.println(directory);\r\n\t\t\t }else {\r\n\t\t\t \tcheckBoxDirectorio.setSelected(false);\r\n\t\t\t \tcheckBoxDirectorio.setText(\"\");\r\n\t\t\t }\r\n\t\t\t checkButtons();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnDirectorioRaz.setBounds(10, 96, 127, 23);\r\n\t\tframe.getContentPane().add(btnDirectorioRaz);\r\n\t\t\r\n\t\tbtnNewButton = new JButton(\"Guardar en\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t chooser.setCurrentDirectory(new java.io.File(\".\"));\r\n\t\t\t chooser.setDialogTitle(\"choosertitle\");\r\n\t\t\t chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t chooser.setAcceptAllFileFilterUsed(false);\r\n\r\n\t\t\t if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t \tString directory = chooser.getSelectedFile().getAbsolutePath();\r\n\t\t\t \tcheckBoxDestino.setSelected(true);\r\n\t\t\t \tcheckBoxDestino.setText(directory);\r\n\t\t\t \t//System.out.println(directory);\r\n\t\t\t }else {\r\n\t\t\t \tcheckBoxDestino.setSelected(false);\r\n\t\t\t \tcheckBoxDestino.setText(\"\");\r\n\t\t\t }\r\n\t\t\t checkButtons();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(10, 130, 127, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d97a5e0cb52ac1bef6cf3add4646671f", "score": "0.59243405", "text": "private void init() {\n- setLayout(new BorderLayout());\n+ setLayout(new BorderLayout(0, 5));\n+\n setBorder(makeBorder());\n \n add(makeTitlePanel(), BorderLayout.NORTH);\n+ VerticalPanel workBenchPropsPanel = new VerticalPanel(5, 0);\n+\n+ saveWorkBench = new JCheckBox(JMeterUtils.getResString(\"save_workbench\"));\n+ workBenchPropsPanel.add(saveWorkBench);\n+ add(workBenchPropsPanel, BorderLayout.CENTER);\n }", "title": "" }, { "docid": "c5f3f2cfa88477501109ff2b525b71f9", "score": "0.59207207", "text": "private void initDefaultValuesForTools() {\n\t\tshowNodeNameCheckBox.setSelected(true);\n\t\tshowNodeIdCheckBox.setSelected(true);\n\t\tbuildingLevelTextField.setColumns(10);\n\t\tcurrentPosTextField.setColumns(10);\n\t\t\n\t}", "title": "" }, { "docid": "9a15aeee8dd3d6c7316c7020d8f6e7a4", "score": "0.59118104", "text": "private void initComponents() {\n\n settingPopupMenu = new javax.swing.JPopupMenu();\n addserverMenuItem = new javax.swing.JMenuItem();\n editServerMenuItem = new javax.swing.JMenuItem();\n deleteServerMenuItem = new javax.swing.JMenuItem();\n jScrollPane1 = new javax.swing.JScrollPane();\n tree = new javax.swing.JTree();\n jToolBar1 = new javax.swing.JToolBar();\n expandTreeButton = new javax.swing.JButton();\n collapseButton = new javax.swing.JButton();\n exportSettingsButton = new javax.swing.JButton();\n importSettingsButton = new javax.swing.JButton();\n\n addserverMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/github/quantrresearch/sharepoint/online/icon/add.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(addserverMenuItem, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.addserverMenuItem.text\")); // NOI18N\n addserverMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addserverMenuItemActionPerformed(evt);\n }\n });\n settingPopupMenu.add(addserverMenuItem);\n\n editServerMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/github/quantrresearch/sharepoint/online/icon/pencil.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(editServerMenuItem, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.editServerMenuItem.text\")); // NOI18N\n editServerMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editServerMenuItemActionPerformed(evt);\n }\n });\n settingPopupMenu.add(editServerMenuItem);\n\n deleteServerMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/github/quantrresearch/sharepoint/online/icon/cross.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(deleteServerMenuItem, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.deleteServerMenuItem.text\")); // NOI18N\n deleteServerMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteServerMenuItemActionPerformed(evt);\n }\n });\n settingPopupMenu.add(deleteServerMenuItem);\n\n setLayout(new java.awt.BorderLayout());\n\n tree.setRowHeight(24);\n tree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n treeMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(tree);\n\n add(jScrollPane1, java.awt.BorderLayout.CENTER);\n\n jToolBar1.setRollover(true);\n\n org.openide.awt.Mnemonics.setLocalizedText(expandTreeButton, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.expandTreeButton.text\")); // NOI18N\n expandTreeButton.setFocusable(false);\n expandTreeButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n expandTreeButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n expandTreeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n expandTreeButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(expandTreeButton);\n\n org.openide.awt.Mnemonics.setLocalizedText(collapseButton, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.collapseButton.text\")); // NOI18N\n collapseButton.setFocusable(false);\n collapseButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n collapseButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n collapseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n collapseButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(collapseButton);\n\n org.openide.awt.Mnemonics.setLocalizedText(exportSettingsButton, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.exportSettingsButton.text\")); // NOI18N\n exportSettingsButton.setFocusable(false);\n exportSettingsButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n exportSettingsButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n exportSettingsButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exportSettingsButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(exportSettingsButton);\n\n org.openide.awt.Mnemonics.setLocalizedText(importSettingsButton, org.openide.util.NbBundle.getMessage(SharePointTopComponent.class, \"SharePointTopComponent.importSettingsButton.text\")); // NOI18N\n importSettingsButton.setFocusable(false);\n importSettingsButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n importSettingsButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n importSettingsButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n importSettingsButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(importSettingsButton);\n\n add(jToolBar1, java.awt.BorderLayout.PAGE_START);\n }", "title": "" }, { "docid": "56219111c63c035db298373b433be87e", "score": "0.5910441", "text": "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents()\n\t{\n\n\t\tjPanel1 = new javax.swing.JPanel();\n\t\tjCheckBox1 = new javax.swing.JCheckBox();\n\t\tjCheckBox2 = new javax.swing.JCheckBox();\n\t\tjCheckBox3 = new javax.swing.JCheckBox();\n\t\tjCheckBox4 = new javax.swing.JCheckBox();\n\t\tjCheckBox5 = new javax.swing.JCheckBox();\n\t\tjCheckBox6 = new javax.swing.JCheckBox();\n\t\tjCheckBox7 = new javax.swing.JCheckBox();\n\t\tjCheckBox8 = new javax.swing.JCheckBox();\n\t\tjCheckBox9 = new javax.swing.JCheckBox();\n\t\tjCheckBox10 = new javax.swing.JCheckBox();\n\t\tjCheckBox11 = new javax.swing.JCheckBox();\n\t\tjCheckBox12 = new javax.swing.JCheckBox();\n\t\tjCheckBox13 = new javax.swing.JCheckBox();\n\t\tjCheckBox14 = new javax.swing.JCheckBox();\n\t\tjCheckBox15 = new javax.swing.JCheckBox();\n\t\tjCheckBox16 = new javax.swing.JCheckBox();\n\t\tjCheckBox17 = new javax.swing.JCheckBox();\n\t\tjPanel2 = new javax.swing.JPanel();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\t\tsetTitle(\"Bin Selector\");\n\n\t\tjPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Select Local Angle (alpha) Bins\",\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,\n\t\t\t\tnew java.awt.Font(\"Lucida Grande\", 0, 13), new java.awt.Color(0, 102, 0))); // NOI18N\n\n\t\tjCheckBox1.setText(\"( -55,-45)\");\n\t\tjCheckBox1.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox2.setText(\"( -45,-35)\");\n\t\tjCheckBox2.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox2ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox3.setText(\"( -35,-25)\");\n\t\tjCheckBox3.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox3ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox4.setText(\"( -25,-20)\");\n\t\tjCheckBox4.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox4ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox5.setText(\"(-20,-15)\");\n\t\tjCheckBox5.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox5ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox6.setText(\"(-15,-10)\");\n\t\tjCheckBox6.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox6ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox7.setText(\"(-10,-6)\");\n\t\tjCheckBox7.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox7ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox8.setText(\"(-6,-2)\");\n\t\tjCheckBox8.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox8ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox9.setText(\"(-2,2)\");\n\t\tjCheckBox9.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox9ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox10.setText(\"(2,6)\");\n\t\tjCheckBox10.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox10ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox11.setText(\"(6,10)\");\n\t\tjCheckBox11.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox11ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox12.setText(\"(10,15)\");\n\t\tjCheckBox12.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox12ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox13.setText(\"(15,20)\");\n\t\tjCheckBox13.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox13ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox14.setText(\"(20,25)\");\n\t\tjCheckBox14.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox14ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox15.setText(\"(25,35)\");\n\t\tjCheckBox15.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox15ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox16.setText(\"(35,45)\");\n\t\tjCheckBox16.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox16ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjCheckBox17.setText(\"(45,55)\");\n\t\tjCheckBox17.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjCheckBox17ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n\t\tjPanel1.setLayout(jPanel1Layout);\n\t\tjPanel1Layout.setHorizontalGroup(\n\t\t\t\tjPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox10)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox12, javax.swing.GroupLayout.PREFERRED_SIZE, 123,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(100, 100, 100))\n\t\t\t\t\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\tjPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox5)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox6)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox11))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox7))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(26, 26, 26))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox14)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(90, 90, 90)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox15)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(39, 39, 39)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox16)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.LayoutStyle.ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t45, Short.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox17)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox4)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox13)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox8))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())))\n\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(jCheckBox9)\n\t\t\t\t\t\t\t\t.addGap(220, 220, 220)));\n\t\tjPanel1Layout.setVerticalGroup(\n\t\t\t\tjPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(jPanel1Layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox1)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox2)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox3)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox4))\n\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox5)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox6)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox7)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox8))\n\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t.addComponent(jCheckBox9)\n\t\t\t\t\t\t\t\t.addGap(18, 18, 18)\n\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox10)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox11)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox12)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox13))\n\t\t\t\t\t\t\t\t.addGap(27, 27, 27)\n\t\t\t\t\t\t\t\t.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox14)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox15)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox16)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jCheckBox17))\n\t\t\t\t\t\t\t\t.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\n\t\tjPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Select B-field Bins\",\n\t\t\t\tjavax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,\n\t\t\t\tnew java.awt.Font(\"Lucida Grande\", 0, 13), new java.awt.Color(0, 102, 0))); // NOI18N\n\n\t\tjavax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n\t\tjPanel2.setLayout(jPanel2Layout);\n\t\tjPanel2Layout.setHorizontalGroup(\n\t\t\t\tjPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGap(0, 0, Short.MAX_VALUE));\n\t\tjPanel2Layout.setVerticalGroup(\n\t\t\t\tjPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGap(0, 115, Short.MAX_VALUE));\n\n\t\tjButton1.setText(\"OK\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt)\n\t\t\t{\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n\t\t\t\t\t\t.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t.addComponent(jButton1)\n\t\t\t\t\t\t\t\t.addGap(53, 53, 53)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t.addComponent(jButton1)\n\t\t\t\t\t\t\t\t.addContainerGap(12, Short.MAX_VALUE)));\n\n\t\tjPanel1.getAccessibleContext().setAccessibleName(\"Select Local Angle (Alpha) Bins\");\n\n\t\tpack();\n\t}", "title": "" }, { "docid": "edb90a8dd0ffa177ca13d3e9b744f508", "score": "0.5909812", "text": "private void initialize() {\n\t\tthis.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetNomQuete(\"Quête inconnue\");\n\t\tthis.add(getPan_description(), null);\n\t\tthis.add(getPan_responsable(), null);\n\t\tthis.add(initChapitres(), null);\n\t\tif(!mode)\n\t\t\tpan_scroll.setVisible(false);\n\t}", "title": "" }, { "docid": "0608d1f3ec1fc72d335f3132d40dc87c", "score": "0.5905106", "text": "private void setCheckBox()\r\n\t{\r\n\t\tairplaneCB = new JCheckBox(\"Airplane\", true);\r\n\t\tboatCB = new JCheckBox(\"Boat\");\r\n\t\tclockCB = new JCheckBox(\"Clock\");\r\n\t\t\r\n\t\tcheckBoxPanel = new JPanel();\r\n\t\tcheckBoxPanel.setLayout(new GridLayout(3,0));\r\n\t\t\r\n\t\tcheckBoxPanel.add(airplaneCB);\r\n\t\tcheckBoxPanel.add(boatCB);\r\n\t\tcheckBoxPanel.add(clockCB);\r\n\t}", "title": "" }, { "docid": "8d94c19105a80d17821e9efde22fc060", "score": "0.5880815", "text": "private OptionsFrame() {\n initComponents();\n DEFAULT_CHECKBOX_VALUES = new boolean[]{\n Vehicle.RANDOM, Vehicle.DRAW_BOUNDING_BOX,\n Environment.COLLISION_DETECTION, Room.DRAW_WALLS,\n Room.DRAW_BOUNDING_BOX, HeatSource.DRAW_GRADIENT\n };\n DEFAULT_SELECTION_MODE = Selection.MODE;\n }", "title": "" }, { "docid": "93f27c9016515c9095e3d05553563319", "score": "0.58748984", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n taMessage = new javax.swing.JTextArea();\n cbReserved = new javax.swing.JCheckBox();\n bRecentMessages = new javax.swing.JButton();\n cbNonMaster = new javax.swing.JCheckBox();\n\n jLabel1.setLabelFor(taMessage);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.jLabel1.text\")); // NOI18N\n\n taMessage.setColumns(20);\n taMessage.setRows(5);\n taMessage.setToolTipText(org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.taMessage.toolTipText\")); // NOI18N\n taMessage.setWrapStyleWord(true);\n jScrollPane1.setViewportView(taMessage);\n\n org.openide.awt.Mnemonics.setLocalizedText(cbReserved, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbReserved.text\")); // NOI18N\n cbReserved.setToolTipText(org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbReserved.toolTipText\")); // NOI18N\n cbReserved.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbReservedActionPerformed(evt);\n }\n });\n\n bRecentMessages.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/netbeans/modules/clearcase/resources/icons/recent_messages.png\"))); // NOI18N\n bRecentMessages.setToolTipText(org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.bRecentMessages.toolTipText\")); // NOI18N\n bRecentMessages.setBorderPainted(false);\n bRecentMessages.setIconTextGap(0);\n bRecentMessages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bRecentMessagesActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(cbRecursive, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbRecursive.text\")); // NOI18N\n cbRecursive.setToolTipText(org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbRecursive.toolTipText\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(cbNonMaster, org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbNonMaster.text\")); // NOI18N\n cbNonMaster.setToolTipText(org.openide.util.NbBundle.getMessage(CheckoutPanel.class, \"CheckoutPanel.cbNonMaster.toolTipText\")); // NOI18N\n cbNonMaster.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbNonMasterActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbRecursive)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 315, Short.MAX_VALUE)\n .addComponent(bRecentMessages))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 505, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(cbReserved)\n .addGap(18, 18, 18)\n .addComponent(cbNonMaster)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(bRecentMessages))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cbReserved)\n .addComponent(cbNonMaster))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cbRecursive)\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "c74130457764e6cd5ad49df5254ea509", "score": "0.5871806", "text": "private void initialize() {\r\n\t\tthis.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\r\n\t\tthis.setSize(365, 50);\r\n\t\tthis.setAlignmentX(0.5F);\r\n\t\tthis.setMinimumSize(new java.awt.Dimension(365,50));\r\n\t\tthis.setMaximumSize(new java.awt.Dimension(365,50));\r\n\t\tthis.setBorder(javax.swing.BorderFactory.createEmptyBorder(1,0,1,0));\r\n\t\tthis.setPreferredSize(new java.awt.Dimension(365,50));\r\n\t\tthis.add(getOnOffPanel(),null);\r\n\t\tthis.add(getContents(), null);\r\n\t\tthis.add(getControls(), null);\r\n\t}", "title": "" }, { "docid": "96a7ea938bdb13f77417730a81330846", "score": "0.58690596", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jCheckBox5 = new javax.swing.JCheckBox();\n jCheckBox6 = new javax.swing.JCheckBox();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Options\");\n setLocationByPlatform(true);\n\n jCheckBox1.setSelected(true);\n jCheckBox1.setText(\"Vehicle randomness\");\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jCheckBox2.setText(\"Show bounding boxes for vehicles\");\n jCheckBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox2ActionPerformed(evt);\n }\n });\n\n jCheckBox3.setSelected(true);\n jCheckBox3.setText(\"Collision detection\");\n jCheckBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox3ActionPerformed(evt);\n }\n });\n\n jCheckBox4.setSelected(true);\n jCheckBox4.setText(\"Show walls\");\n jCheckBox4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox4ActionPerformed(evt);\n }\n });\n\n jCheckBox5.setText(\"Show bounding boxes for walls\");\n jCheckBox5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox5ActionPerformed(evt);\n }\n });\n\n jCheckBox6.setSelected(true);\n jCheckBox6.setText(\"Show temperature gradient\");\n jCheckBox6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox6ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Selection mode\");\n\n jComboBox1.setModel(new DefaultComboBoxModel(SelectionMode.values()));\n jComboBox1.setSelectedItem(nl.tue.win.vcp.virtualbreitenbergenvironment.model.Selection.MODE);\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Restore defaults\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addComponent(jCheckBox2)\n .addComponent(jCheckBox3)\n .addComponent(jCheckBox4)\n .addComponent(jCheckBox5)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jCheckBox6)\n .addComponent(jButton1))\n .addContainerGap(126, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(34, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "1b9a631794b3b344f88f1097466fa67c", "score": "0.5854719", "text": "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTree = new javax.swing.JTree();\n toolbar = new javax.swing.JToolBar();\n btnCollapse = new javax.swing.JButton();\n btnColorLatest = new javax.swing.JToggleButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n btnTarget = new javax.swing.JButton();\n\n setLayout(new java.awt.BorderLayout());\n\n jTree.setModel(model);\n jTree.setCellRenderer(new TreeCellRenderer());\n jTree.setRootVisible(false);\n jTree.setShowsRootHandles(true);\n jScrollPane1.setViewportView(jTree);\n\n add(jScrollPane1, java.awt.BorderLayout.CENTER);\n\n toolbar.setBackground(new java.awt.Color(226, 226, 226));\n toolbar.setFloatable(false);\n toolbar.setRollover(true);\n toolbar.setOpaque(false);\n\n btnCollapse.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/piraso/ui/base/icons/gh-icon-collapse.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(btnCollapse, org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnCollapse.text\")); // NOI18N\n btnCollapse.setToolTipText(org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnCollapse.toolTipText\")); // NOI18N\n btnCollapse.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 7, 7));\n btnCollapse.setFocusable(false);\n btnCollapse.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnCollapse.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnCollapse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCollapseActionPerformed(evt);\n }\n });\n toolbar.add(btnCollapse);\n\n btnColorLatest.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/piraso/ui/base/icons/time.png\"))); // NOI18N\n btnColorLatest.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(btnColorLatest, org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnColorLatest.text\")); // NOI18N\n btnColorLatest.setToolTipText(org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnColorLatest.toolTipText\")); // NOI18N\n btnColorLatest.setFocusable(false);\n btnColorLatest.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnColorLatest.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnColorLatest.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnColorLatestActionPerformed(evt);\n }\n });\n toolbar.add(btnColorLatest);\n toolbar.add(jSeparator1);\n\n btnTarget.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/piraso/ui/base/icons/target_arrow.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(btnTarget, org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnTarget.text\")); // NOI18N\n btnTarget.setToolTipText(org.openide.util.NbBundle.getMessage(RequestTreeTopComponent.class, \"RequestTreeTopComponent.btnTarget.toolTipText\")); // NOI18N\n btnTarget.setBorder(javax.swing.BorderFactory.createEmptyBorder(7, 7, 7, 7));\n btnTarget.setFocusable(false);\n btnTarget.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTarget.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTarget.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTargetActionPerformed(evt);\n }\n });\n toolbar.add(Box.createHorizontalGlue());\n toolbar.add(btnTarget);\n\n add(toolbar, java.awt.BorderLayout.NORTH);\n }", "title": "" }, { "docid": "bbe61427bb1f2725b974370708c77e74", "score": "0.5854682", "text": "public void init() {\r\n cbg=new CheckboxGroup();\r\n cb=new CheckboxGroup();\r\n\r\n a=new Checkbox(\"1\",cbg,true);\r\n b=new Checkbox(\"2\",cbg,false);\r\n c=new Checkbox(\"3\",cb,true);\r\n d=new Checkbox(\"4\",cb,false);\r\n add(a);\r\n add(b);\r\n add(c);\r\n add(d);\r\n a.addItemListener(this);\r\n b.addItemListener(this);\r\n c.addItemListener(this);\r\n d.addItemListener(this);\r\n }", "title": "" }, { "docid": "93ddf20992a3739c100bcede14f64eff", "score": "0.5834261", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n popupMenu1 = new java.awt.PopupMenu();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jCheckBox4 = new javax.swing.JCheckBox();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jCheckBox5 = new javax.swing.JCheckBox();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jCheckBox6 = new javax.swing.JCheckBox();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jCheckBox7 = new javax.swing.JCheckBox();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jCheckBox8 = new javax.swing.JCheckBox();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n\n popupMenu1.setLabel(\"popupMenu1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton2.setText(\"Volver\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel1.setText(\"Bocadillo de Pavo\");\n\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\bocalamares.png\")); // NOI18N\n jLabel2.setText(\"jLabel2\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel3.setText(\"Bocadillo de Calamares\");\n\n jButton1.setText(\"Terminar pedido\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\OIP.jpg\")); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel4.setText(\"Bocadillo de Salchichón\");\n\n jLabel6.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\pavooooooo.jpg\")); // NOI18N\n jLabel6.setText(\"jLabel6\");\n\n jCheckBox1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox1MouseClicked(evt);\n }\n });\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jCheckBox2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox2MouseClicked(evt);\n }\n });\n\n jCheckBox3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox3MouseClicked(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel7.setText(\"3.50€ \");\n\n jLabel8.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel8.setText(\"2.90€ \");\n\n jLabel9.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel9.setText(\"3.00€ \");\n\n jLabel11.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel11.setText(\"5.50€ \");\n\n jCheckBox4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox4MouseClicked(evt);\n }\n });\n jCheckBox4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox4ActionPerformed(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel10.setText(\"Bocadillo de Atún Lechuga\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel12.setText(\"Bocadillo de Tortilla\");\n\n jLabel13.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel13.setText(\"3.25€ \");\n\n jCheckBox5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox5MouseClicked(evt);\n }\n });\n jCheckBox5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox5ActionPerformed(evt);\n }\n });\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel14.setText(\"Bocadillo de Milanesa\");\n\n jLabel15.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel15.setText(\"3.50€ \");\n\n jCheckBox6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox6MouseClicked(evt);\n }\n });\n jCheckBox6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox6ActionPerformed(evt);\n }\n });\n\n jLabel16.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\atunlechu.jpg\")); // NOI18N\n jLabel16.setText(\"jLabel16\");\n\n jLabel17.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\TORTI.jpg\")); // NOI18N\n jLabel17.setText(\"jLabel17\");\n\n jLabel18.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\mila.jpg\")); // NOI18N\n jLabel18.setText(\"jLabel18\");\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel19.setText(\"COMPLEMENTOS\");\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel20.setText(\"Patatas fritas\");\n\n jLabel21.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel21.setText(\"2.00€ \");\n\n jCheckBox7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox7MouseClicked(evt);\n }\n });\n\n jLabel22.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\Batata_frita.jpg\")); // NOI18N\n jLabel22.setText(\"jLabel22\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel23.setText(\"Croquetas\");\n\n jLabel24.setFont(new java.awt.Font(\"Yu Gothic UI Semibold\", 0, 14)); // NOI18N\n jLabel24.setText(\"2.25€ \");\n\n jCheckBox8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox8MouseClicked(evt);\n }\n });\n\n jLabel25.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\xxxsi\\\\Desktop\\\\croquetas.jpg\")); // NOI18N\n jLabel25.setText(\"jLabel25\");\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel26.setForeground(new java.awt.Color(255, 51, 0));\n jLabel26.setText(\"CESTA\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox1))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9)))))\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(45, 45, 45)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox5))\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox6)\n .addGap(16, 16, 16))\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 419, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox4)\n .addGap(64, 64, 64)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jCheckBox2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(jLabel20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox7))\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox3)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel23)\n .addGap(18, 18, 18)\n .addComponent(jLabel24)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jCheckBox8)\n .addGap(143, 143, 143))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 419, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(145, 145, 145))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel29, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(420, 420, 420))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addComponent(jCheckBox2)\n .addComponent(jCheckBox4))\n .addComponent(jCheckBox7, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 50, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21))))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox5)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox3)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jCheckBox6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(44, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24))\n .addComponent(jCheckBox8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\n pack();\n }", "title": "" }, { "docid": "065c5a3c0ff89855286a9bcc9f1b6100", "score": "0.5823416", "text": "private JCheckBox getJCheckBoxTopoGauss() {\r\n\t\tif (jCheckBoxTopoGauss == null) {\r\n\t\t\tjCheckBoxTopoGauss = new JCheckBox(\"Gaussian smoothing\");\r\n\t\t}\r\n\t\treturn jCheckBoxTopoGauss;\r\n\t}", "title": "" }, { "docid": "e7c9d1d06f63196da49a730f3f41cd43", "score": "0.5817564", "text": "private void initialize() {\r\n\ttry {\r\n\t\t// user code begin {1}\r\n\t\t// user code end\r\n\t\tsetName(\"BioModelMetaDataPanel\");\r\n\t\tsetLayout(new BorderLayout());\r\n//\t\tsetSize(379, 460);\r\n\r\n\t\tadd(new JScrollPane(getJTree1()), BorderLayout.CENTER);\r\n\t\tinitConnections();\r\n\t\tToolTipManager.sharedInstance().registerComponent(getJTree1());\r\n\t} catch (java.lang.Throwable ivjExc) {\r\n\t\thandleException(ivjExc);\r\n\t}\r\n\t// user code begin {2}\r\n\t// user code end\r\n}", "title": "" }, { "docid": "442b9a161e2372463e7290172db2f474", "score": "0.5817042", "text": "private void initComponents() {\n\n\t\tjava.awt.GridBagConstraints gridBagConstraints;\n\n\t\tmetadataOnly_JCheckBox = new javax.swing.JCheckBox();\n\t\tmetadataOnly_JLabel = new javax.swing.JLabel();\n\t\tobjectType_JLabel = new javax.swing.JLabel();\n\t\tobjectType_JComboBox = new javax.swing.JComboBox();\n\t\tReportType_JLabel = new javax.swing.JLabel();\n\t\texportType_JLabel = new javax.swing.JLabel();\n\t\tReportType_JPanel = new javax.swing.JPanel();\n\t\tcsv_JRadioButton = new javax.swing.JRadioButton();\n\t\txls_JRadioButton = new javax.swing.JRadioButton();\n\t\txml_JRadioButton = new javax.swing.JRadioButton();\n\t\texportType_JPanel = new javax.swing.JPanel();\n\t\tboth_JRadioButton = new javax.swing.JRadioButton();\n\t\trendition_JRadioButton = new javax.swing.JRadioButton();\n\t\tnative_JRadioButton = new javax.swing.JRadioButton();\n\t\tallVersion_JLabel = new javax.swing.JLabel();\n\t\tallVersions_JCheckBox = new javax.swing.JCheckBox();\n\t\texportInZip_JLabel = new JLabel();\n\t\texportInZip_JCheckBox = new JCheckBox();\n\n\t\tsetOpaque(false);\n\t\tsetPreferredSize(new java.awt.Dimension(330, 355));\n\t\tsetLayout(new java.awt.GridBagLayout());\n\n\t\tmetadataOnly_JCheckBox.setOpaque(false);\n\t\tmetadataOnly_JCheckBox.setPreferredSize(new java.awt.Dimension(20, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 4;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tadd(metadataOnly_JCheckBox, gridBagConstraints);\n\n\t\tmetadataOnly_JLabel.setOpaque(false);\n\t\tmetadataOnly_JLabel.setText(\"Metadata Only\");\n\t\tmetadataOnly_JLabel.setPreferredSize(new java.awt.Dimension(85, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 4;\n\t\tadd(metadataOnly_JLabel, gridBagConstraints);\n\n\t\tobjectType_JLabel.setOpaque(false);\n\t\tobjectType_JLabel.setText(\"Object Type\");\n\t\tobjectType_JLabel.setPreferredSize(new java.awt.Dimension(85, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 0;\n\t\tadd(objectType_JLabel, gridBagConstraints);\n\n\t\t// objectType_JComboBox.setOpaque(false);\n\t\tobjectType_JComboBox.setOpaque(false);\n\t\tobjectType_JComboBox.setPreferredSize(new java.awt.Dimension(200, 20));\n\t\t/*objectType_JComboBox.addActionListener(new java.awt.event.ActionListener() {\n\t public void actionPerformed(java.awt.event.ActionEvent evt) {\n\t jComboBox1ActionPerformed(evt);\n\t }\n\t });*/\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 0;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tadd(objectType_JComboBox, gridBagConstraints);\n\n\t\tReportType_JLabel.setOpaque(false);\n\t\tReportType_JLabel.setText(\"Report Type\");\n\t\tReportType_JLabel.setPreferredSize(new java.awt.Dimension(80, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 1;\n\t\tadd(ReportType_JLabel, gridBagConstraints);\n\n\t\texportType_JLabel.setText(\"Export Type\");\n\t\texportType_JLabel.setPreferredSize(new java.awt.Dimension(80, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 2;\n\t\tadd(exportType_JLabel, gridBagConstraints);\n\n\t\tReportType_JPanel.setOpaque(false);\n\t\tReportType_JPanel.setLayout(new java.awt.GridBagLayout());\n\n\t\tcsv_JRadioButton.setOpaque(false);\n\t\tcsv_JRadioButton.setText(\"CSV\");\n\t\tcsv_JRadioButton.setPreferredSize(new java.awt.Dimension(65, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 0;\n\t\tReportType_JPanel.add(csv_JRadioButton, gridBagConstraints);\n\n\t\txls_JRadioButton.setOpaque(false);\n\t\txls_JRadioButton.setText(\"Excel\");\n\t\txls_JRadioButton.setPreferredSize(new java.awt.Dimension(85, 20));\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 0;\n\t\tReportType_JPanel.add(xls_JRadioButton, gridBagConstraints);\n\n\t\txml_JRadioButton.setOpaque(false);\n\t\txml_JRadioButton.setText(\"XML\");\n\t\txml_JRadioButton.setPreferredSize(new java.awt.Dimension(65, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 3;\n\t\tgridBagConstraints.gridy = 0;\n\t\tReportType_JPanel.add(xml_JRadioButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 1;\n\t\tadd(ReportType_JPanel, gridBagConstraints);\n\n\t\texportType_JPanel.setLayout(new java.awt.GridBagLayout());\n\t\texportType_JPanel.setOpaque(false);\n\n\t\tboth_JRadioButton.setOpaque(false);\n\t\tboth_JRadioButton.setText(\"Both\");\n\t\tboth_JRadioButton.setPreferredSize(new java.awt.Dimension(65, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 3;\n\t\tgridBagConstraints.gridy = 0;\n\t\texportType_JPanel.add(both_JRadioButton, gridBagConstraints);\n\n\t\trendition_JRadioButton.setOpaque(false);\n\t\trendition_JRadioButton.setText(\"Renditions\");\n\t\trendition_JRadioButton.setPreferredSize(new java.awt.Dimension(85, 20));\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 2;\n\t\tgridBagConstraints.gridy = 0;\n\t\texportType_JPanel.add(rendition_JRadioButton, gridBagConstraints);\n\n\t\tnative_JRadioButton.setOpaque(false);\n\t\tnative_JRadioButton.setText(\"Native\");\n\t\tnative_JRadioButton.setPreferredSize(new java.awt.Dimension(65, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 0;\n\t\texportType_JPanel.add(native_JRadioButton, gridBagConstraints);\n\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 2;\n\t\tadd(exportType_JPanel, gridBagConstraints);\n\n\t\tallVersion_JLabel.setText(\"All Version\");\n\t\tallVersion_JLabel.setPreferredSize(new java.awt.Dimension(85, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 3;\n\t\tadd(allVersion_JLabel, gridBagConstraints);\n\n\t\tallVersions_JCheckBox.setOpaque(false);\n\t\tallVersions_JCheckBox.setPreferredSize(new java.awt.Dimension(20, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 3;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tadd(allVersions_JCheckBox, gridBagConstraints);\n\n\t\texportInZip_JLabel.setText(\"Compress Content\");\n\t\texportInZip_JLabel.setPreferredSize(new java.awt.Dimension(110, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 5;\n\t\tadd(exportInZip_JLabel, gridBagConstraints);\n\t\texportInZip_JCheckBox.setOpaque(false);\n\t\texportInZip_JCheckBox.setPreferredSize(new java.awt.Dimension(20, 20));\n\t\tgridBagConstraints = new java.awt.GridBagConstraints();\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 5;\n\t\tgridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n\t\tgridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);\n\t\tadd(exportInZip_JCheckBox, gridBagConstraints);\t\n\t}", "title": "" }, { "docid": "ac2282cd183d514495eea3d63a14c5e1", "score": "0.5809579", "text": "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n isDragImage = new javax.swing.JCheckBox();\n isAlphaFloating = new javax.swing.JCheckBox();\n isSnapping = new javax.swing.JCheckBox();\n isDragImageAlpha = new javax.swing.JCheckBox();\n isSnapScreenEdges = new javax.swing.JCheckBox();\n\n setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));\n setLayout(new java.awt.GridBagLayout());\n\n org.openide.awt.Mnemonics.setLocalizedText(isDragImage, org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"LBL_DragWindowImage\")); // NOI18N\n isDragImage.setToolTipText(org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"IsDragWindowTooltip\")); // NOI18N\n isDragImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n isDragImageActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n add(isDragImage, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(isAlphaFloating, org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"LBL_TransparentFloatingWindows\")); // NOI18N\n isAlphaFloating.setToolTipText(org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"IsAlphaFloatingTooltip\")); // NOI18N\n isAlphaFloating.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n isAlphaFloatingActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(20, 0, 0, 0);\n add(isAlphaFloating, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(isSnapping, org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"LBL_SnapFloatingWindows\")); // NOI18N\n isSnapping.setToolTipText(org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"IsSnappingTooltip\")); // NOI18N\n isSnapping.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n isSnappingActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 25, 0, 0);\n add(isSnapping, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(isDragImageAlpha, org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"LBL_TransparentDragWindow\")); // NOI18N\n isDragImageAlpha.setToolTipText(org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"IsAlphaDragTooltip\")); // NOI18N\n isDragImageAlpha.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n isDragImageAlphaActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n add(isDragImageAlpha, gridBagConstraints);\n\n org.openide.awt.Mnemonics.setLocalizedText(isSnapScreenEdges, org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"LBL_SnapToScreenEdges\")); // NOI18N\n isSnapScreenEdges.setToolTipText(org.openide.util.NbBundle.getMessage(WinSysPanel.class, \"IsSnapScreenEdgesTooltip\")); // NOI18N\n isSnapScreenEdges.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n isSnapScreenEdgesActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 25, 0, 0);\n add(isSnapScreenEdges, gridBagConstraints);\n }", "title": "" }, { "docid": "a5877c6a127fd7944a91cf0a9dfea317", "score": "0.58056957", "text": "private static void setUpWindowComponents(JFrame f) {\r\n\t\t\r\n\t\t//Create and initialise a JLabel object for the information about the Options\r\n\t\tJLabel optionsLabel = new JLabel(\"Options\");\r\n\t\t//Set bounds for the optionsLabel\r\n\t\toptionsLabel.setBounds(850, 30, 200, 25);\r\n\t\t\r\n\t\t//Create and initialise JCheckBox object for the user to specify whether to allow diagonal path finding\r\n\t\tfinal JCheckBox checkBoxAllowDiagonalPathFinding = new JCheckBox(\"Allow Diagonal\");\r\n\t\t//Set the checkBoxAllowDiagonalPathFinding to be either ticked or unticked. By default it's ticked.\r\n\t\tif (allowDiagonalPathFinding) {\r\n\t\t\tcheckBoxAllowDiagonalPathFinding.setSelected(true);\r\n\t\t} else {\r\n\t\t\tcheckBoxAllowDiagonalPathFinding.setSelected(false);\r\n\t\t}\r\n\t\t//Set the bounds for checkBoxAllowDiagonalPathFinding\r\n\t\tcheckBoxAllowDiagonalPathFinding.setBounds(850, 50, 200, 25);\r\n\t\t\r\n\t\t//Create and initialise JCheckBox object for the user to specify whether he wants to be shown with the visited nodes\r\n\t\tfinal JCheckBox checkBoxVisitedNodes = new JCheckBox(\"Show Visited Nodes\");\r\n\t\t//Set the checkBoxVisitedNodes to be either ticked or unticked. By default it's ticked.\r\n\t\tif (showVisitedNodes) {\r\n\t\t\tcheckBoxVisitedNodes.setSelected(true);\r\n\t\t} else {\r\n\t\t\tcheckBoxVisitedNodes.setSelected(false);\r\n\t\t}\r\n\t\t//Set the bounds for checkBoxVisitedNodes\r\n\t\tcheckBoxVisitedNodes.setBounds(850, 80, 200, 25);\r\n\t\t\r\n\t\t//Declare and intialize a JLabel object for the information of the algorithm selection\r\n\t\tJLabel algorithmSelectionInfoLabel = new JLabel(\"Algorithm selection:\");\r\n\t\t//Set the bounds of the algorithmSelectionInfoLabel\r\n\t\talgorithmSelectionInfoLabel.setBounds(850, 115, 200, 25);\r\n\t\t\r\n\t\t//Declare and initialize a JCheckBox object for selection of the A* Algorithm\r\n\t\tfinal JCheckBox aStarAlgorithmCheckbox = new JCheckBox(\"A* Algorithm\");\r\n\t\t//Set the bounds of the aStarAlgorithmSelection\r\n\t\taStarAlgorithmCheckbox.setBounds(850, 140, 200, 25);\r\n\t\t//Set the aStarAlgorithmSelection checkbox as ticked by default (Since A* algorithm is the default algorithm of the program)\r\n\t\taStarAlgorithmCheckbox.setSelected(true);\r\n\t\t\r\n\t\t//Declare and initialize a JCheckBox object for the selection of the Dijkstra Algorithm\r\n\t\tfinal JCheckBox dijkstraAlgorithmCheckbox = new JCheckBox(\"Dijkstra Algorithm\");\r\n\t\t//Set the bounds of the dijkstraAlgorithmCheckbox\r\n\t\tdijkstraAlgorithmCheckbox.setBounds(850, 170, 200, 25);\r\n\t\t\r\n\t\t//Declare and initialize a JLabel object for the information of the Heuristics selection\r\n\t\tJLabel heuristicsSelectionInfoLabel = new JLabel(\"Heuristics selection:\");\r\n\t\t//Set the bounds of the heuristicsSelectionInfoLabel\r\n\t\theuristicsSelectionInfoLabel.setBounds(850, 200, 200, 25);\r\n\t\t\r\n\t\t//Declare and initialize a JCheckBox object for selection of the Manhattan Heuristics\r\n\t\tfinal JCheckBox manhattanHeuristicsCheckbox = new JCheckBox(\"Manhattan\");\r\n\t\t//Set the bounds of the manhattanHeuristicsCheckbox\r\n\t\tmanhattanHeuristicsCheckbox.setBounds(850, 225, 200, 25);\r\n\t\t//Set the manhattanHeuristicsCheckbox as ticked by default\r\n\t\tmanhattanHeuristicsCheckbox.setSelected(true);\r\n\t\t\r\n\t\t//Declare and initialize a JCheckBox object for selection of the Chebyshev Heuristics\r\n\t\tfinal JCheckBox chebyshevHeuristicsCheckbox = new JCheckBox(\"Chebyshev\");\r\n\t\tchebyshevHeuristicsCheckbox.setBounds(850, 255, 200, 25);\r\n\t\t\r\n\t\t//Declare and initialize a JLabel object for the information that Dijkstra doesn't use a heuristics\r\n\t\tfinal JLabel dijkstraHeuristicInfoLabel = new JLabel(\"<html><font color=red> Dijkstra doesn't use any heuristics</font></html>\");\r\n\t\t//Set the bounds of the dijkstraHeuristicInfoLabel\r\n\t\tdijkstraHeuristicInfoLabel.setBounds(825, 225, 200, 25);\r\n\t\t//Set the label to not visible by default\r\n\t\tdijkstraHeuristicInfoLabel.setVisible(false);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about operations\r\n\t\toperationsLabel = new JLabel(\"\");\r\n\t\t//Set the bounds of the operationsLabel\r\n\t\toperationsLabel.setBounds(850, 290, 200, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about visited nodes\r\n\t\tvisitedNodesLabel = new JLabel(\"\");\r\n\t\t//Set the bounds of the visitedNodesLabel\r\n\t\tvisitedNodesLabel.setBounds(850, 320, 200, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about path being found\r\n\t\tpathFoundLabel = new JLabel(\"\");\r\n\t\t//Set the bounds of the pathFound\r\n\t\tpathFoundLabel.setBounds(850, 350, 200, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about tracing back\r\n\t\ttracingBackLabel = new JLabel(\"\");\r\n\t\t//Set the bounds of the tracingBackLabel\r\n\t\ttracingBackLabel.setBounds(850, 380, 200, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about tracing forward\r\n\t\ttracingForwardLabel = new JLabel(\"\");\r\n\t\t//Set the bounds of the tracingForwardLabel\r\n\t\ttracingForwardLabel.setBounds(850, 410, 200, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the information about the grid being loaded\r\n\t\tgridLoadingLabel = new JLabel(\"Please wait while the grid is being loaded...\");\r\n\t\t//Set the bounds of the gridLoadingLabel\r\n\t\tgridLoadingLabel.setBounds(100, 600, 300, 25);\r\n\t\t\r\n\t\t//Initialize a JLabel object for the legends label info\r\n\t\tlegendsInfoLabel = new JLabel(\"Legends:\");\r\n\t\tlegendsInfoLabel.setBounds(25, 610, 200, 25);\r\n\t\tlegendsInfoLabel.setVisible(false);\r\n\t\t\r\n\t\tstartNodeLabel.setBounds(120, 635, 36, 25);\r\n\t\tstartNodeLabel.setVisible(false);\r\n\t\t\r\n\t\tgoalNodeImageLegend.setVisible(false);\r\n\t\tgoalNodeLabel.setBounds(175, 635, 36, 25);\r\n\t\tgoalNodeLabel.setVisible(false);\r\n\t\t\r\n\t\tobstacleNodeImageLegend.setVisible(false);\r\n\t\tobstacleNodeLabel.setBounds(235, 635, 60, 25);\r\n\t\tobstacleNodeLabel.setVisible(false);\r\n\t\t\r\n\t\tvisitedNodeImageLegend.setVisible(false);\r\n\t\tvisitedNodeLabel.setBounds(310, 635, 60, 25);\r\n\t\tvisitedNodeLabel.setVisible(false);\r\n\t\t\r\n\t\ttraversedNodeImageLegend.setVisible(false);\r\n\t\ttraversedNodeLabel.setBounds(380, 635, 60, 25);\r\n\t\ttraversedNodeLabel.setVisible(false);\r\n\t\t//TODO\r\n\t\t\r\n\t\t\r\n\t\t//Declare and initialize a JButton object for the calculation path.\r\n\t\tJButton calculatePathButton = new JButton(\"Calculate Path\");\r\n\t\t//Set bounds of the calculatePathButton\r\n\t\tcalculatePathButton.setBounds(850, 450, 150, 50);\r\n\t\t\r\n\t\t//Declare and initialize a JButton object for creating new grid.\r\n\t\tJButton createNewGridButton = new JButton(\"New Grid\");\r\n\t\t//Set bounds of the createNewGridButton\r\n\t\tcreateNewGridButton.setBounds(850, 510, 150, 50);\r\n\t\t\r\n\t\t//Add an action listener for the checkBoxAllowDiagonalPathFinding\r\n\t\tcheckBoxAllowDiagonalPathFinding.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (checkBoxAllowDiagonalPathFinding.isSelected()) {\r\n\t\t\t\t\tSystem.out.println(\"Setting the allowDiagonalPathFinding to true\");\r\n\t\t\t\t\tallowDiagonalPathFinding = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Setting the allowDiagonalPathFinding to false\");\r\n\t\t\t\t\tallowDiagonalPathFinding = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});//End of ActionListener for checkBoxAllowDiagonalPathFinding\r\n\t\t\r\n\t\t//Add an action listener to the checkBoxVisitedNodes\r\n\t\tcheckBoxVisitedNodes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (checkBoxVisitedNodes.isSelected()) {\r\n\t\t\t\t\tSystem.out.println(\"Setting the showVisitedNodes to true\");\r\n\t\t\t\t\tshowVisitedNodes = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Setting the showVisitedNodes to false\");\r\n\t\t\t\t\tshowVisitedNodes = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});//End of ActionListener for checkBoxVisitedNodes\r\n\t\t\r\n\t\t//Add the action listener for the aStarAlgorithmCheckbox\r\n\t\taStarAlgorithmCheckbox.addActionListener(new ActionListener(){\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (aStarAlgorithmCheckbox.isSelected()) {\r\n\t\t\t\t\tdijkstraAlgorithmCheckbox.setSelected(false);\r\n\t\t\t\t\talgorithmType = \"astar\";\r\n\t\t\t\t\tmanhattanHeuristicsCheckbox.setVisible(true);\r\n\t\t\t\t\tchebyshevHeuristicsCheckbox.setVisible(true);\r\n\t\t\t\t\tdijkstraHeuristicInfoLabel.setVisible(false);\r\n\t\t\t\t} else {\r\n\t\t\t\t\taStarAlgorithmCheckbox.setSelected(true);\r\n\t\t\t\t\talgorithmType = \"astar\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});//End of action listener for aStarAlgorithmCheckbox\r\n\t\t\r\n\t\t//Add the action listener for the dijkstraAlgorithmCheckbox\r\n\t\tdijkstraAlgorithmCheckbox.addActionListener(new ActionListener(){\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (dijkstraAlgorithmCheckbox.isSelected()) {\r\n\t\t\t\t\taStarAlgorithmCheckbox.setSelected(false);\r\n\t\t\t\t\talgorithmType = \"dijkstra\";\r\n\t\t\t\t\tmanhattanHeuristicsCheckbox.setVisible(false);\r\n\t\t\t\t\tchebyshevHeuristicsCheckbox.setVisible(false);\r\n\t\t\t\t\tdijkstraHeuristicInfoLabel.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdijkstraAlgorithmCheckbox.setSelected(true);\r\n\t\t\t\t\talgorithmType = \"dijkstra\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});//End of action listener for dijkstraAlgorithmCheckbox\r\n\t\t\r\n\t\t//Add the action listener for the manhattanHeuristicsCheckbox\r\n\t\tmanhattanHeuristicsCheckbox.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (manhattanHeuristicsCheckbox.isSelected()) {\r\n\t\t\t\t\tchebyshevHeuristicsCheckbox.setSelected(false);\r\n\t\t\t\t\theuristicsType = \"manhattan\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmanhattanHeuristicsCheckbox.setSelected(true);\r\n\t\t\t\t\theuristicsType = \"manhattan\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});//End of action listener for manhattanHeuristicsCheckbox\r\n\t\t\r\n\t\t//Add the action listener for the chebyshevHeuristicsCheckbox\r\n\t\tchebyshevHeuristicsCheckbox.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (chebyshevHeuristicsCheckbox.isSelected()) {\r\n\t\t\t\t\tmanhattanHeuristicsCheckbox.setSelected(false);\r\n\t\t\t\t\theuristicsType = \"chebyshev\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tchebyshevHeuristicsCheckbox.setSelected(true);\r\n\t\t\t\t\theuristicsType = \"chebyshev\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});//End of action listener for chebyshevHeuristicsCheckbox\r\n\t\t\r\n\t\t//Add action listener for the calculatePathButton\r\n\t\tcalculatePathButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t//Clear the information regarding algorithm steps/operations\r\n\t\t\t\tPathfindingGUI.operationsLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.operationsLabel.paintImmediately(PathfindingGUI.operationsLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.visitedNodesLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.visitedNodesLabel.paintImmediately(PathfindingGUI.visitedNodesLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.pathFoundLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.pathFoundLabel.paintImmediately(PathfindingGUI.pathFoundLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.tracingBackLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.tracingBackLabel.paintImmediately(PathfindingGUI.tracingBackLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.tracingForwardLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.tracingForwardLabel.paintImmediately(PathfindingGUI.tracingForwardLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tif (threadGUI.pathCalculated) {\r\n\t\t\t\t\t//Loop through the nodeList length for the nodes in columns\r\n\t\t\t\t\tfor (int i = 0; i < nodeList.length; i++) {\r\n\t\t\t\t\t\t//Inner loop through the nodeList length for nodes in rows\r\n\t\t\t\t\t\tfor (int n = 0; n < nodeList[i].length; n++) {\r\n\t\t\t\t\t\t\tif (nodeList[i][n].getNodeVisited()) {\r\n\t\t\t\t\t\t\t\tnodeList[i][n].setNodeVisited(false);\r\n\t\t\t\t\t\t\t} else if (nodeList[i][n].isTheGoal()) {\r\n\t\t\t\t\t\t\t\tnodeList[i][n].setGoalNodeReached(false);\r\n\t\t\t\t\t\t\t} else if (nodeList[i][n].isTheStart()) {\r\n\t\t\t\t\t\t\t\tnodeList[i][n].setShowImageAtStartNode(true);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//If the start or goal node is null\r\n\t\t\t\tif (PathfindingGUI.start == null || PathfindingGUI.goal == null) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"In order to calculate the path, remember to allocate the start and goal nodes.\", \"No start or goal node\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//If the selected algorithm is A* algorithm\r\n\t\t\t\tif (algorithmType.equals(\"astar\")) {\r\n\t\t\t\t\t \r\n\t\t\t\t\t//Initialise the AStarAlgorithm object\r\n\t\t\t\t\taStar = new AStarAlgorithm(start, goal, allowDiagonalPathFinding, msDelayBetweenRobotMovement, showVisitedNodes, msDelayBetweenVisitingNodes, heuristicsType);\r\n\t\t\t\t\t//Call the method of aStar object to calculate the path\r\n\t\t\t\t\taStar.calculatePath();\r\n\t\t\t\t\tthreadGUI.pathCalculated = true;\r\n\t\t\t\t} else if (algorithmType.equals(\"dijkstra\")) {\r\n\t\t\t\t\t//initialise the DijkstraAlgorithm object\r\n\t\t\t\t\tdijkstra = new DijkstraAlgorithm(start, goal, allowDiagonalPathFinding, msDelayBetweenRobotMovement, showVisitedNodes, msDelayBetweenVisitingNodes);\r\n\t\t\t\t\t//Call the method of dijkstra to calculate the path\r\n\t\t\t\t\tdijkstra.calculatePath();\r\n\t\t\t\t\tthreadGUI.pathCalculated = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});//End of action listener for calculatePathButton\r\n\t\t\r\n\t\t//Add an action listener for the createNewGridButton\r\n\t\tcreateNewGridButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent args0) {\r\n\t\t\t\t//Clear the information regarding algorithm steps/operations\r\n\t\t\t\tPathfindingGUI.operationsLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.operationsLabel.paintImmediately(PathfindingGUI.operationsLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.visitedNodesLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.visitedNodesLabel.paintImmediately(PathfindingGUI.visitedNodesLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.pathFoundLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.pathFoundLabel.paintImmediately(PathfindingGUI.pathFoundLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.tracingBackLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.tracingBackLabel.paintImmediately(PathfindingGUI.tracingBackLabel.getVisibleRect());\r\n\t\t\t\t\r\n\t\t\t\tPathfindingGUI.tracingForwardLabel.setText(\"\");\r\n\t\t\t\tPathfindingGUI.tracingForwardLabel.paintImmediately(PathfindingGUI.tracingForwardLabel.getVisibleRect());\r\n\t\t\t\tthreadGUI.initialiseNodesOnGrid();\r\n\t\t\t\tthreadGUI.pathCalculated = false;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//Add the components to the frame\r\n\t\tf.add(algorithmSelectionInfoLabel);\r\n\t\tf.add(aStarAlgorithmCheckbox);\r\n\t\tf.add(dijkstraAlgorithmCheckbox);\r\n\t\tf.add(heuristicsSelectionInfoLabel);\r\n\t\tf.add(manhattanHeuristicsCheckbox);\r\n\t\tf.add(chebyshevHeuristicsCheckbox);\r\n\t\tf.add(dijkstraHeuristicInfoLabel);\r\n\t\tf.add(checkBoxAllowDiagonalPathFinding);\r\n\t\tf.add(optionsLabel);\r\n\t\tf.add(checkBoxVisitedNodes);\r\n\t\tf.add(operationsLabel);\r\n\t\tf.add(visitedNodesLabel);\r\n\t\tf.add(pathFoundLabel);\r\n\t\tf.add(tracingBackLabel);\r\n\t\tf.add(tracingForwardLabel);\r\n\t\tf.add(calculatePathButton);\r\n\t\tf.add(createNewGridButton);\r\n\t\tf.add(gridLoadingLabel);\r\n\t\tf.add(legendsInfoLabel);\r\n\t\tf.add(startNodeLabel);\r\n\t\tf.add(goalNodeImageLegend);\r\n\t\tf.add(goalNodeLabel);\r\n\t\tf.add(obstacleNodeImageLegend);\r\n\t\tf.add(obstacleNodeLabel);\r\n\t\tf.add(visitedNodeImageLegend);\r\n\t\tf.add(visitedNodeLabel);\r\n\t\tf.add(traversedNodeImageLegend);\r\n\t\tf.add(traversedNodeLabel);\r\n\t\t//TODO\r\n\t}", "title": "" }, { "docid": "abf03e24d3184c10f3877abcd6f42021", "score": "0.5804667", "text": "public BooleanOptionPanel() {\n initComponents();\n }", "title": "" }, { "docid": "9d0e9d08a107634ed0350cafe86a84ef", "score": "0.58002007", "text": "public void init() {\r\n a=new Checkbox(\"A\",null,true);\r\n b=new Checkbox(\"B\");\r\n c=new Checkbox(\"C\");\r\n add(a);\r\n add(b);\r\n add(c);\r\n a.addItemListener(this);\r\n b.addItemListener(this);\r\n c.addItemListener(this);\r\n }", "title": "" }, { "docid": "1f0dfe67c82c5761c343075c86143846", "score": "0.5791981", "text": "private void initTaskCheckBox() {\n\t\tthis.taskCheckBox = new CheckBox();\n\t\tthis.taskCheckBox.getStyleClass().add(STYLECLASS_TASK_CHECKBOX);\n\t\tif (this.task.isCompleted()) {\n\t\t\tthis.taskCheckBox.setSelected(true);\n\t\t}\n\t}", "title": "" }, { "docid": "5435fb8217676d572c216d6972fa05f6", "score": "0.57717", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n chk3 = new javax.swing.JCheckBox();\n chk11 = new javax.swing.JCheckBox();\n chk15 = new javax.swing.JCheckBox();\n chk12 = new javax.swing.JCheckBox();\n chk9 = new javax.swing.JCheckBox();\n chk4 = new javax.swing.JCheckBox();\n chk8 = new javax.swing.JCheckBox();\n chk14 = new javax.swing.JCheckBox();\n chk7 = new javax.swing.JCheckBox();\n chk5 = new javax.swing.JCheckBox();\n chk10 = new javax.swing.JCheckBox();\n chk2 = new javax.swing.JCheckBox();\n chk1 = new javax.swing.JCheckBox();\n chk6 = new javax.swing.JCheckBox();\n chk13 = new javax.swing.JCheckBox();\n jPanel2 = new javax.swing.JPanel();\n chk18 = new javax.swing.JCheckBox();\n chk26 = new javax.swing.JCheckBox();\n chk30 = new javax.swing.JCheckBox();\n chk27 = new javax.swing.JCheckBox();\n chk24 = new javax.swing.JCheckBox();\n chk19 = new javax.swing.JCheckBox();\n chk23 = new javax.swing.JCheckBox();\n chk29 = new javax.swing.JCheckBox();\n chk22 = new javax.swing.JCheckBox();\n chk20 = new javax.swing.JCheckBox();\n chk25 = new javax.swing.JCheckBox();\n chk17 = new javax.swing.JCheckBox();\n chk16 = new javax.swing.JCheckBox();\n chk21 = new javax.swing.JCheckBox();\n chk28 = new javax.swing.JCheckBox();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(153, 153, 153));\n\n jPanel1.setBackground(new java.awt.Color(153, 153, 153));\n\n chk3.setText(\"..\");\n chk3.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk3ItemStateChanged(evt);\n }\n });\n chk3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk3ActionPerformed(evt);\n }\n });\n\n chk11.setText(\"..\");\n chk11.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk11ItemStateChanged(evt);\n }\n });\n\n chk15.setText(\"..\");\n chk15.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk15ItemStateChanged(evt);\n }\n });\n\n chk12.setText(\"..\");\n chk12.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk12ItemStateChanged(evt);\n }\n });\n chk12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk12ActionPerformed(evt);\n }\n });\n\n chk9.setText(\"..\");\n chk9.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk9ItemStateChanged(evt);\n }\n });\n\n chk4.setText(\"..\");\n chk4.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk4ItemStateChanged(evt);\n }\n });\n\n chk8.setText(\"..\");\n chk8.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk8ItemStateChanged(evt);\n }\n });\n\n chk14.setText(\"..\");\n chk14.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk14ItemStateChanged(evt);\n }\n });\n chk14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk14ActionPerformed(evt);\n }\n });\n\n chk7.setText(\"..\");\n chk7.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk7ItemStateChanged(evt);\n }\n });\n\n chk5.setText(\"..\");\n chk5.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk5ItemStateChanged(evt);\n }\n });\n\n chk10.setText(\"..\");\n chk10.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk10ItemStateChanged(evt);\n }\n });\n chk10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk10ActionPerformed(evt);\n }\n });\n\n chk2.setText(\"..\");\n chk2.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk2ItemStateChanged(evt);\n }\n });\n chk2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk2ActionPerformed(evt);\n }\n });\n\n chk1.setText(\"..\");\n chk1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk1ItemStateChanged(evt);\n }\n });\n\n chk6.setText(\"..\");\n chk6.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk6ItemStateChanged(evt);\n }\n });\n\n chk13.setText(\"..\");\n chk13.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk13ItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chk1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk15, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chk1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chk4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk15)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel2.setBackground(new java.awt.Color(153, 153, 153));\n\n chk18.setText(\"..\");\n chk18.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk18ItemStateChanged(evt);\n }\n });\n chk18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk18ActionPerformed(evt);\n }\n });\n\n chk26.setText(\"..\");\n chk26.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk26ItemStateChanged(evt);\n }\n });\n\n chk30.setText(\"..\");\n chk30.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk30ItemStateChanged(evt);\n }\n });\n\n chk27.setText(\"..\");\n chk27.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk27ItemStateChanged(evt);\n }\n });\n\n chk24.setText(\"..\");\n chk24.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk24ItemStateChanged(evt);\n }\n });\n chk24.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk24ActionPerformed(evt);\n }\n });\n\n chk19.setText(\"..\");\n chk19.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk19ItemStateChanged(evt);\n }\n });\n\n chk23.setText(\"..\");\n chk23.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk23ItemStateChanged(evt);\n }\n });\n chk23.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk23ActionPerformed(evt);\n }\n });\n\n chk29.setText(\"..\");\n chk29.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk29ItemStateChanged(evt);\n }\n });\n chk29.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk29ActionPerformed(evt);\n }\n });\n\n chk22.setText(\"..\");\n chk22.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk22ItemStateChanged(evt);\n }\n });\n chk22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chk22ActionPerformed(evt);\n }\n });\n\n chk20.setText(\"..\");\n chk20.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk20ItemStateChanged(evt);\n }\n });\n\n chk25.setText(\"..\");\n chk25.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk25ItemStateChanged(evt);\n }\n });\n\n chk17.setText(\"..\");\n chk17.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk17ItemStateChanged(evt);\n }\n });\n\n chk16.setText(\"..\");\n chk16.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk16ItemStateChanged(evt);\n }\n });\n\n chk21.setText(\"..\");\n chk21.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk21ItemStateChanged(evt);\n }\n });\n\n chk28.setText(\"..\");\n chk28.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n chk28ItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chk23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(chk30, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(chk16)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chk19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk24)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk25)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk26)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk27)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk28)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk29)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(chk30)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton1.setText(\"Set\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setText(\"Reset\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n jButton3.setText(\"Test\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3)\n .addGap(39, 39, 39))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addComponent(jButton3))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n setSize(new java.awt.Dimension(427, 590));\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "c178108bab0c9e17749a73f2652f0419", "score": "0.57664025", "text": "private void initComponents() {\n\n topPanel = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n LUaCheckBox = new javax.swing.JCheckBox();\n LUbCheckBox = new javax.swing.JCheckBox();\n LUcCheckBox = new javax.swing.JCheckBox();\n jPanel4 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n resolutionComboBox = new javax.swing.JComboBox<String>();\n mainPanel = new javax.swing.JPanel();\n\n jPanel3.setLayout(new java.awt.GridLayout(1, 3));\n\n LUaCheckBox.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(LUaCheckBox, org.openide.util.NbBundle.getMessage(LUHistoryLineChartTopComponent.class, \"LUHistoryLineChartTopComponent.LUaCheckBox.text\")); // NOI18N\n LUaCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n LUaCheckBoxStateChanged(evt);\n }\n });\n jPanel3.add(LUaCheckBox);\n\n LUbCheckBox.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(LUbCheckBox, org.openide.util.NbBundle.getMessage(LUHistoryLineChartTopComponent.class, \"LUHistoryLineChartTopComponent.LUbCheckBox.text\")); // NOI18N\n LUbCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n LUbCheckBoxStateChanged(evt);\n }\n });\n jPanel3.add(LUbCheckBox);\n\n LUcCheckBox.setSelected(true);\n org.openide.awt.Mnemonics.setLocalizedText(LUcCheckBox, org.openide.util.NbBundle.getMessage(LUHistoryLineChartTopComponent.class, \"LUHistoryLineChartTopComponent.LUcCheckBox.text\")); // NOI18N\n LUcCheckBox.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n LUcCheckBoxStateChanged(evt);\n }\n });\n jPanel3.add(LUcCheckBox);\n\n jPanel4.setPreferredSize(new java.awt.Dimension(250, 20));\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(LUHistoryLineChartTopComponent.class, \"LUHistoryLineChartTopComponent.jLabel1.text\")); // NOI18N\n\n resolutionComboBox.setModel(new javax.swing.DefaultComboBoxModel<String>(new String[] { \"2 seconds\", \"10 seconds\", \"30 seconds\", \"5 minutes\" }));\n resolutionComboBox.setSelectedIndex(0);\n resolutionComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resolutionComboBoxActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(resolutionComboBox, 0, 170, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(resolutionComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel);\n topPanel.setLayout(topPanelLayout);\n topPanelLayout.setHorizontalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 530, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n topPanelLayout.setVerticalGroup(\n topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(topPanelLayout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(38, 38, 38))\n );\n\n mainPanel.setLayout(new java.awt.BorderLayout());\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(topPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(topPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE))\n );\n }", "title": "" }, { "docid": "a1531db86f9b849fce08f08394331adf", "score": "0.5759139", "text": "public ChecklistPanel() {\n initComponents();\n }", "title": "" }, { "docid": "0a6f46fa4356def2bf2da53d9689595a", "score": "0.57491654", "text": "public CheckboxTree() {\n\tsuper(getDefaultTreeModel());\n\tinitialize();\n }", "title": "" }, { "docid": "0c8808dc3d4237e75b5736847e6a1903", "score": "0.5746487", "text": "@FXML\r\n\tprivate void initialize() {\r\n\r\n\t\tfor(int i = 0; i<flags.length; i++)\r\n\t\t\tflags[i] = false;\r\n\r\n\t\tinitializeBrowserCheck();\r\n\t\tinitializeTosAgree();\r\n\t\tinitializeCookiesExport();\r\n\t\tinitializeBookmarksExport();\r\n\t\tinitializeHistoryExport();\r\n\t\tinitializePublicIPExport();\r\n\t\tinitializeGenderChoiceBox();\r\n\t\tinitializeUserInfoExport();\r\n\r\n\t\tinitializeMailer();\r\n\t}", "title": "" }, { "docid": "6b967229051c828793db7bfb4563f31a", "score": "0.57397634", "text": "public void init() {\n super.init();\n\n // Initialise node properties\n setDefaultInputNodes(1);\n setMinimumInputNodes(1);\n setMaximumInputNodes(1);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(0);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n // Initialise parameter update policy and output policy\n setParameterUpdatePolicy(PROCESS_UPDATE);\n setOutputPolicy(CLONE_MULTIPLE_OUTPUT);\n\n // Initialise pop-up description and help file location\n setPopUpDescription(\"\");\n setHelpFileLocation(\"OneSide.html\");\n }", "title": "" }, { "docid": "8da463eae5a53e21a7addb080cce7beb", "score": "0.57331955", "text": "@Override\n public void init() {\n\n\t// default conditions like ignore non experimental items, wrong answers etc\n\tif (!ignoreIncorrectResponseItems.isSelected()) {\n\t this.ignoreIncorrectResponseItems.setSelected(true);\n\t FilterControlsPanelHandler.checkFilterIncorrectResponseCheckBox();\n\t}\n\n\tif (!ignoreNonExpItemsCheckBox.isSelected()) {\n\t this.ignoreNonExpItemsCheckBox.setSelected(true);\n\t FilterControlsPanelHandler.checkIgnoreNonExpItemsCheckBox();\n\n\t}\n\n\tif (!ignoreNonCtlRelItemsCheckBox.isSelected()) {\n\t this.ignoreNonCtlRelItemsCheckBox.setSelected(true);\n\n\t}\n\n\tif (!ignoreReactionTimeAboveCheckBox.isSelected()) {\n\t this.ignoreReactionTimeAboveCheckBox.setSelected(false);\n\t}\n\n\tif (!ignoreReactionTimeBelowCheckBox.isSelected()) {\n\t this.ignoreReactionTimeBelowCheckBox.setSelected(false);\n\t}\n\n\tif (!ignoreReactionTimeAboveTextField.isEnabled()) {\n\t this.ignoreReactionTimeAboveTextField.setEnabled(false);\n\t}\n\n\tif (!ignoreReactionTimeBelowTextField.isEnabled()) {\n\t this.ignoreReactionTimeBelowTextField.setEnabled(false);\n\t}\n\n\tif (insertMeanColumnCheckbox.isSelected()) {\n\t this.insertMeanColumnCheckbox.setSelected(false);\n\t}\n\tif (insertMeanColumnCheckbox.isEnabled() == false) {\n\t insertMeanColumnCheckbox.setEnabled(true);\n\t}\n\tif (insertStandardDeviationsColumnCheckBox.isSelected()) {\n\t this.insertStandardDeviationsColumnCheckBox.setSelected(false);\n\t}\n\tif (insertZScoreColumnCheckBox.isSelected()) {\n\t this.insertZScoreColumnCheckBox.setSelected(false);\n\t}\n\n }", "title": "" }, { "docid": "66354757ea9546571d977d98f1925e71", "score": "0.57238925", "text": "private void initComponents() {\n\n lineBtn = new javax.swing.JToggleButton();\n rectBtn = new javax.swing.JToggleButton();\n ovalBtn = new javax.swing.JToggleButton();\n polyBtn = new javax.swing.JToggleButton();\n rectFillBtn = new javax.swing.JToggleButton();\n ovalFillBtn = new javax.swing.JToggleButton();\n polyFillBtn = new javax.swing.JToggleButton();\n textBtn = new javax.swing.JToggleButton();\n lineWidthCombo = new javax.swing.JComboBox();\n colorBtn = new javax.swing.JButton();\n undoBtn = new javax.swing.JButton();\n clearBtn = new javax.swing.JButton();\n canvasPanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n titleFld = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n roleCombo = new javax.swing.JComboBox();\n okBtn = new javax.swing.JButton();\n cancelBtn = new javax.swing.JButton();\n selectBtn = new javax.swing.JToggleButton();\n openPathBtn = new javax.swing.JToggleButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n lineBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/LineOff.gif\"))); // NOI18N\n lineBtn.setToolTipText(\"直線を描きます。\");\n lineBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n rectBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/RectOff.gif\"))); // NOI18N\n rectBtn.setToolTipText(\"四角形を描きます。\");\n rectBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n ovalBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/OvalOff.gif\"))); // NOI18N\n ovalBtn.setToolTipText(\"楕円を描きます。\");\n ovalBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n polyBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/PolyOff.gif\"))); // NOI18N\n polyBtn.setToolTipText(\"閉じたパスを描きます。\");\n polyBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n rectFillBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/FillRectOff.gif\"))); // NOI18N\n rectFillBtn.setToolTipText(\"塗りつぶしの四角形を描きます。\");\n rectFillBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n ovalFillBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/FillOvalOff.gif\"))); // NOI18N\n ovalFillBtn.setToolTipText(\"塗りつぶしの楕円を描きます。\");\n ovalFillBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n polyFillBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/FillPolyOff.gif\"))); // NOI18N\n polyFillBtn.setToolTipText(\"塗りつぶしのポリゴンを描きます。\");\n polyFillBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n textBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/TextOff.gif\"))); // NOI18N\n textBtn.setToolTipText(\"テキストを入力します。\");\n textBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n lineWidthCombo.setToolTipText(\"描画線の太さを選びます。\");\n\n colorBtn.setToolTipText(\"塗りつぶしの色を選択します\");\n colorBtn.setMaximumSize(new java.awt.Dimension(32, 29));\n colorBtn.setMinimumSize(new java.awt.Dimension(32, 29));\n colorBtn.setPreferredSize(new java.awt.Dimension(32, 29));\n\n undoBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/undo_32.png\"))); // NOI18N\n undoBtn.setToolTipText(\"やり直しをします。\");\n\n clearBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/empty_32.png\"))); // NOI18N\n clearBtn.setToolTipText(\"クリアします。\");\n\n canvasPanel.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setText(\"タイトル:\");\n\n jLabel2.setText(\"用途:\");\n\n roleCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[]{\"検体検査\", \"内視鏡検査\", \"単純レントゲン写真\", \"上部消化管造影検査\", \"バリウム注腸検査\", \"CTスキャン注腸検査\", \"MRI\", \"R画像検査\", \"血管造影\", \"その他の放射線学的検査\", \"エコー\", \"心電図\", \"脳波\", \"筋電図\", \"心電図\", \"肺機能検査\", \"その他の生理学的検査\", \"処方箋\", \"熱型表\", \"理学的所見(図など)\", \"麻酔経過表\", \"病理検査(画像など)\", \"手術記録\", \"参考文献\", \"参考図\", \"処置(指示、記録など)\", \"上記に含まれないもの\"}));\n\n okBtn.setText(\"カルテに展開\");\n\n cancelBtn.setText(\"取消し\");\n\n selectBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/move_32.png\"))); // NOI18N\n selectBtn.setToolTipText(\"図形を選択し移動します。\");\n\n openPathBtn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/open/dolphin/impl/schema/resources/PolyLineOff.gif\"))); // NOI18N\n openPathBtn.setToolTipText(\"開いたパスを描きます。\");\n openPathBtn.setMargin(new java.awt.Insets(4, 4, 3, 3));\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(lineBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(rectBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(ovalBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(openPathBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(polyBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(rectFillBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(ovalFillBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(polyFillBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(textBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(lineWidthCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 78, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(colorBtn, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(selectBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(undoBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(clearBtn)\n .add(18, 18, 18))\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(titleFld, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 125, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jLabel2)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(roleCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(cancelBtn)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(okBtn))\n .add(org.jdesktop.layout.GroupLayout.LEADING, canvasPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 731, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(lineBtn)\n .add(rectBtn)\n .add(ovalBtn)\n .add(openPathBtn)\n .add(polyBtn)\n .add(rectFillBtn)\n .add(ovalFillBtn)\n .add(polyFillBtn)\n .add(textBtn)\n .add(colorBtn, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(undoBtn)\n .add(selectBtn)\n .add(clearBtn)\n .add(lineWidthCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(canvasPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(titleFld, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 28, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel2)\n .add(roleCombo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(cancelBtn)\n .add(okBtn))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "daca6f1bede9b4552e18d37d0f7ad66c", "score": "0.572265", "text": "private void initComponents() {\n\t\tjListGraph = new JList(listModel);\n\t\tjComboBoxLeft = new JComboBox(comboModelLeft);\n\t\tjComboBoxRight = new JComboBox(comboModelRight);\n\t\tjListMarker = new JList(listModelMarker);\n\t\tjTable2 = new javax.swing.JTable();\n\t\tjMenu1 = new javax.swing.JMenu();\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n\t\tjComboBoxLeft.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjComboBoxLeftActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjComboBoxRight.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjComboBoxRightActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjTable2.setModel(modeltable);\n\n\n\t\tjMenu1.setText(\"File\");\n\n\t\tJMenuItem jMenuItem1 = new JMenuItem();\n\t\tjMenuItem1.setText(\"Open Directory\");\n\t\tjMenuItem1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\topenDirectoryAction(evt);\n\t\t\t}\n\t\t});\n\n\t\tJMenuItem jMenuItem2 = new JMenuItem();\n\t\tjMenuItem2.setText(\"Add a reference Graph\");\n\t\tjMenuItem2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tjMenuItemaddGraphActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tJMenuItem jMenuItem3 = new JMenuItem();\n\t\tjMenuItem3.setText(\"set Graph color\");\n\t\tjMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjMenuItemChangecolorActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tJMenuItem jMenuItem4 = new JMenuItem();\n\t\tjMenuItem4.setText(\"save config file\");\n\t\tjMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjMenuItemSaveConfigFileActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\tjMenu1.add(jMenuItem1);\n\t\tjMenu1.add(jMenuItem2);\n\t\tjMenu1.add(jMenuItem3);\n\t\tjMenu1.add(jMenuItem4);\n\n\t\tJMenuBar jMenuBar1 = new JMenuBar();\n\t\tjMenuBar1.add(jMenu1);\n\n\t\tsetJMenuBar(jMenuBar1);\n\n\t\t\n\t\t //organise JFRAME\n JPanel mainpanel = (JPanel) getContentPane();\n mainpanel.setLayout(new BorderLayout());\n \n mainpanel.add(chartPanel, BorderLayout.CENTER);\n \n \n JPanel toolPanel = new JPanel();\n toolPanel.setLayout(new FlowLayout());\n \n toolPanel.add(jComboBoxLeft);\n \n Box graphbox = Box.createVerticalBox();\n graphbox.add(new JLabel(\"List of Graph \"));\n JScrollPane jspaneGraph = new JScrollPane();\n jspaneGraph.setViewportView(jListGraph);\n jspaneGraph.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n jspaneGraph.setPreferredSize(new Dimension(150,100));\n \n graphbox.add( jspaneGraph );\n // graphbox.setBorder(BorderFactory.createLineBorder(Color.black));\n toolPanel.add(graphbox);\n \n Box markerbox = Box.createVerticalBox();\n markerbox.add(new JLabel(\"List of Marker\"));\n JScrollPane jspaneMarker = new JScrollPane();\n jspaneMarker.setViewportView(jListMarker);\n jspaneMarker.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n jspaneMarker.setPreferredSize(new Dimension(150,100));\n markerbox.add(jspaneMarker );\n // markerbox.setBorder(BorderFactory.createLineBorder(Color.black));\n toolPanel.add(markerbox);\n \n JScrollPane jspane = new JScrollPane();\n jspane.setViewportView(jTable2);\n jspane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n jspane.setPreferredSize(new Dimension(300,100));\n toolPanel.add(jspane );\n toolPanel.add(jComboBoxRight);\n \n mainpanel.add(toolPanel, BorderLayout.NORTH);\n \n\n\t\tpack();\n\t}", "title": "" }, { "docid": "c7d229b17926fbbc5b5cc743e84aadf4", "score": "0.5689093", "text": "private void initComponents() {\n\n popupJMenu = new javax.swing.JPopupMenu();\n editJMenuItem = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JSeparator();\n moveUpJMenuItem = new javax.swing.JMenuItem();\n moveDownJMenuItem = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JSeparator();\n deleteSelectedRowJMenuItem = new javax.swing.JMenuItem();\n popupMenu = new javax.swing.JPopupMenu();\n deleteJMenuItem = new javax.swing.JMenuItem();\n identificationTypeButtonGroup = new javax.swing.ButtonGroup();\n nextJButton = new javax.swing.JButton();\n backJButton = new javax.swing.JButton();\n cancelJButton = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jPanel1 = new javax.swing.JPanel();\n jLabel21 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n protocolStepsJTable = new javax.swing.JTable();\n addJButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n namesJComboBox = new javax.swing.JComboBox();\n deleteJButton = new javax.swing.JButton();\n helpJButton = new javax.swing.JButton();\n aboutJButton = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n gelFreeJRadioButton = new javax.swing.JRadioButton();\n twoDimmensionalGelJRadioButton = new javax.swing.JRadioButton();\n\n editJMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));\n editJMenuItem.setMnemonic('E');\n editJMenuItem.setText(\"Edit\");\n editJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editJMenuItemActionPerformed(evt);\n }\n });\n popupJMenu.add(editJMenuItem);\n popupJMenu.add(jSeparator3);\n\n moveUpJMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK));\n moveUpJMenuItem.setMnemonic('U');\n moveUpJMenuItem.setText(\"Move Up\");\n moveUpJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n moveUpJMenuItemActionPerformed(evt);\n }\n });\n popupJMenu.add(moveUpJMenuItem);\n\n moveDownJMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));\n moveDownJMenuItem.setMnemonic('D');\n moveDownJMenuItem.setText(\"Move Down\");\n moveDownJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n moveDownJMenuItemActionPerformed(evt);\n }\n });\n popupJMenu.add(moveDownJMenuItem);\n popupJMenu.add(jSeparator4);\n\n deleteSelectedRowJMenuItem.setMnemonic('L');\n deleteSelectedRowJMenuItem.setText(\"Delete\");\n deleteSelectedRowJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteSelectedRowJMenuItemActionPerformed(evt);\n }\n });\n popupJMenu.add(deleteSelectedRowJMenuItem);\n\n deleteJMenuItem.setText(\"Delete Protocol\");\n deleteJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteJMenuItemActionPerformed(evt);\n }\n });\n popupMenu.add(deleteJMenuItem);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Protocol Properties - Step 5 of 8\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n nextJButton.setText(\"Next >\");\n nextJButton.setPreferredSize(new java.awt.Dimension(81, 23));\n nextJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nextJButtonActionPerformed(evt);\n }\n });\n\n backJButton.setText(\"< Back\");\n backJButton.setPreferredSize(new java.awt.Dimension(81, 23));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n cancelJButton.setText(\"Cancel\");\n cancelJButton.setPreferredSize(new java.awt.Dimension(81, 23));\n cancelJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelJButtonActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(jLabel3.getFont().deriveFont((jLabel3.getFont().getStyle() | java.awt.Font.ITALIC), jLabel3.getFont().getSize()-2));\n jLabel3.setText(\"Select a protocol from the list, or create your own, and click on 'Next' to continue.\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Protocol\"));\n\n jLabel21.setText(\"Name:\");\n\n protocolStepsJTable.setFont(protocolStepsJTable.getFont());\n protocolStepsJTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \" \", \"CV Terms\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n protocolStepsJTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n protocolStepsJTableMouseClicked(evt);\n }\n });\n protocolStepsJTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n protocolStepsJTableKeyReleased(evt);\n }\n });\n jScrollPane2.setViewportView(protocolStepsJTable);\n\n addJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/no/uib/prideconverter/icons/ols_transparent.GIF\"))); // NOI18N\n addJButton.setText(\"Add Protocol Step\");\n addJButton.setEnabled(false);\n addJButton.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);\n addJButton.setMaximumSize(new java.awt.Dimension(151, 23));\n addJButton.setMinimumSize(new java.awt.Dimension(151, 23));\n addJButton.setPreferredSize(new java.awt.Dimension(151, 23));\n addJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addJButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Protocol Steps:\");\n\n namesJComboBox.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n namesJComboBoxMouseClicked(evt);\n }\n });\n namesJComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n namesJComboBoxItemStateChanged(evt);\n }\n });\n namesJComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n namesJComboBoxActionPerformed(evt);\n }\n });\n\n deleteJButton.setFont(new java.awt.Font(\"Arial\", 1, 11));\n deleteJButton.setText(\"X\");\n deleteJButton.setToolTipText(\"Delete Selected Protocol\");\n deleteJButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n deleteJButton.setIconTextGap(0);\n deleteJButton.setMargin(new java.awt.Insets(1, 6, 1, 6));\n deleteJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteJButtonActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 554, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1Layout.createSequentialGroup()\n .add(jLabel21)\n .add(18, 18, 18)\n .add(namesJComboBox, 0, 468, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(deleteJButton))\n .add(org.jdesktop.layout.GroupLayout.LEADING, addJButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 554, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel1))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)\n .add(namesJComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(deleteJButton))\n .add(18, 18, 18)\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(addJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .add(jPanel1Layout.createSequentialGroup()\n .add(3, 3, 3)\n .add(jLabel21)\n .add(346, 346, 346))\n );\n\n jPanel1Layout.linkSize(new java.awt.Component[] {deleteJButton, namesJComboBox}, org.jdesktop.layout.GroupLayout.VERTICAL);\n\n helpJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/no/uib/prideconverter/icons/help.GIF\"))); // NOI18N\n helpJButton.setToolTipText(\"Help\");\n helpJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n helpJButtonActionPerformed(evt);\n }\n });\n\n aboutJButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/no/uib/prideconverter/icons/prideConverter_16.GIF\"))); // NOI18N\n aboutJButton.setToolTipText(\"About\");\n aboutJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aboutJButtonActionPerformed(evt);\n }\n });\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Identifications\"));\n\n jLabel2.setText(\"Identification Type:\");\n\n identificationTypeButtonGroup.add(gelFreeJRadioButton);\n gelFreeJRadioButton.setText(\"Other\");\n gelFreeJRadioButton.setToolTipText(\"Everything that's not 2D gel based\");\n\n identificationTypeButtonGroup.add(twoDimmensionalGelJRadioButton);\n twoDimmensionalGelJRadioButton.setText(\"2D Gel\");\n\n org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jLabel2)\n .add(18, 18, 18)\n .add(twoDimmensionalGelJRadioButton)\n .add(18, 18, 18)\n .add(gelFreeJRadioButton)\n .addContainerGap(294, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel2)\n .add(gelFreeJRadioButton)\n .add(twoDimmensionalGelJRadioButton))\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(layout.createSequentialGroup()\n .add(helpJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 23, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(aboutJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 267, Short.MAX_VALUE)\n .add(backJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(nextJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(cancelJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(org.jdesktop.layout.GroupLayout.LEADING, jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 590, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, jLabel3))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(jLabel3)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(7, 7, 7)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(cancelJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(backJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(nextJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(layout.createSequentialGroup()\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(helpJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(aboutJButton, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 24, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "540ffe499e76450c884fa2a9864b75c0", "score": "0.56844854", "text": "public void orclconn(JCheckBox checkbox)\r\n\t{\r\n\t\tOracleDBConn orl = new OracleDBConn(checkbox);\r\n\t\torl.oranGUI();\r\n\t\torl.setVisible(true);\r\n\t}", "title": "" }, { "docid": "f97b22f7218baf5648c3f7de22f0f008", "score": "0.5678446", "text": "private void setUpComponents() {\n jcbIsStandard.setVisible(Session.getInstance().getUser().isSuperUser());\n }", "title": "" }, { "docid": "e62d4329b15486d5a350ec574f609055", "score": "0.56753075", "text": "private void initialize() {\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Extended Depth of Field\");\r\n\t\tgetPreferences();\r\n\t\trepaint();\r\n\t}", "title": "" }, { "docid": "52d81d0d6a993575a43080d820689858", "score": "0.5675109", "text": "private void initComponents() {\n \n folderViewToolbar = new javax.swing.JToolBar();\n folderViewPanel = new javax.swing.JPanel();\n jScrollPane1 = new BeanTreeView();\n \n setLayout(new java.awt.BorderLayout());\n \n folderViewToolbar.setFloatable(false);\n folderViewToolbar.setRollover(true);\n add(folderViewToolbar, java.awt.BorderLayout.NORTH);\n \n folderViewPanel.setLayout(new java.awt.BorderLayout());\n folderViewPanel.add(jScrollPane1, java.awt.BorderLayout.CENTER);\n \n add(folderViewPanel, java.awt.BorderLayout.CENTER);\n }", "title": "" }, { "docid": "44d0545e3402d10ab3ddeb801f6958dd", "score": "0.56720644", "text": "private void initialize() {\n\t\tprops = new Properties();\n\t\tprops.setProperty(\"colorSwitch\", \"off\");\n\t\tsetSelectedColor(JSortTable.SELECTED_NODE);\n\t\tsetSelectedColor(JSortTable.SELECTED_EDGE);\n\t}", "title": "" }, { "docid": "39a0ff244398a27dbb4e6982db67b4aa", "score": "0.5671705", "text": "@FXML\n private void initialize() {\n// clippedCheckBox.setSelected(currentInfo.clipped);\n LocChoiceBox.setItems(locations);\n LocChoiceBox.setOnAction(e-> locationSelector());\n }", "title": "" }, { "docid": "bd863dabbc037459a3c5573de7b30b9a", "score": "0.56651497", "text": "private void iniciarMisComponentes() {\n jCheckBoxTodos.setName(\"Todos\");\n jCheckBoxAlumnos.setName(\"Alumno\");\n jCheckBoxPadres.setName(\"PadreMadre\");\n jCheckBoxPersonalNoDocente.setName(\"PersonaNoDocente\");\n jCheckBoxProfesores.setName(\"Profesor\");\n jButtonEliminarAsociado.setEnabled(false);\n jButtonVerAsociados.setEnabled(false);\n jTextAreaMuestraAsociados.setText(\"Elige un empleado para ver sus datos.\\nElige un tipo para ver los asociados\");\n jListListaAsociados.addListSelectionListener(new gestorLista());\n jButtonEliminarAsociado.addMouseListener(new gestorEliminarEmpleado());\n jButtonVerAsociados.addMouseListener(new gestorVerDatos());\n // jCheckBoxTodos.addMouseListener(new gestorCheckBox());\n// for (int i = 0; i < jPanelTipoAsociados.getComponentCount(); i++) {\n// Component c = jPanelTipoAsociados.getComponent(i);\n// if (c instanceof JCheckBox) {\n// c.setVisible(false);\n// c.addMouseListener(new gestorCheckBox());\n// }\n// }\n CheckBoxVisibilidad();\n }", "title": "" }, { "docid": "16cfbe09fb972e115929a9c019996113", "score": "0.5659169", "text": "private void initComponents() {\n\n beanTreeView1 = new org.openide.explorer.view.BeanTreeView();\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(beanTreeView1, javax.swing.GroupLayout.DEFAULT_SIZE, 424, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(beanTreeView1, javax.swing.GroupLayout.DEFAULT_SIZE, 424, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "62d06179dfd0055e25a9562950d86f6d", "score": "0.56546456", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 797, 455);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJCheckBox chckbxPayable = new JCheckBox(\"Payable\");\r\n\t\tchckbxPayable.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxPayable.setBounds(17, 25, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxPayable);\r\n\t\t\r\n\t\tJCheckBox chckbxReceivable = new JCheckBox(\"Receivable\");\r\n\t\tchckbxReceivable.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tchckbxReceivable.setBounds(150, 27, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxReceivable);\r\n\t\t\r\n\t\tJScrollPane scrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(17, 131, 738, 274);\r\n\t\tframe.getContentPane().add(scrollPane);\r\n\t}", "title": "" }, { "docid": "8fc02e63a61adddab28cf78fdd318fed", "score": "0.5649957", "text": "public void init()\n \t{\n \t\tsetOn();\n \t}", "title": "" }, { "docid": "ab2ce71c91fe0ff74e2b616f03feadf1", "score": "0.5642188", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n color = new javax.swing.JCheckBox();\n armamento = new javax.swing.JCheckBox();\n art = new javax.swing.JCheckBox();\n manejable = new javax.swing.JCheckBox();\n jLabel2 = new javax.swing.JLabel();\n id = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n color.setForeground(new java.awt.Color(255, 255, 0));\n color.setText(\"COLOR_LLAMATIVO\");\n getContentPane().add(color, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 110, 180, -1));\n\n armamento.setForeground(new java.awt.Color(255, 255, 0));\n armamento.setText(\"ARMAMENTO_FUNCIONAL\");\n getContentPane().add(armamento, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 150, 180, -1));\n\n art.setForeground(new java.awt.Color(255, 255, 0));\n art.setText(\"ART_PERSONALIZADO\");\n getContentPane().add(art, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 190, 180, -1));\n\n manejable.setForeground(new java.awt.Color(255, 255, 0));\n manejable.setText(\"MANEJABLE\");\n getContentPane().add(manejable, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 230, 180, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"INGRESE EL ID DE LA OBSERVACION QUE DESEA MODIFICAR\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1));\n getContentPane().add(id, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 120, -1));\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 0));\n jLabel3.setText(\"ELIJA NUEVAS OBSERVACIONES\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(104, 80, 190, 20));\n\n jButton1.setText(\"ACEPTAR\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 270, -1, -1));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fond.jpg\"))); // NOI18N\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 300));\n\n pack();\n }", "title": "" }, { "docid": "3aac41ed501f558ec19a9341947f4f37", "score": "0.56409603", "text": "private void initComponents() {\n\treloadButton = new ReloadButton();\n\texportButton = new ExportButton();\n\tfilterButton = new FilterButton();\n\texpRowButton = new JToggleButton(\"Expand/collapse row\");\n\texpColumnButton = new JToggleButton(\"Expand/collapse column\");\n\tpivotTable = new PivotTable();\n\tpivotTableButtonsPanel = new JPanel();\n\n }", "title": "" }, { "docid": "6a29b0464a76f8a9caf5cd9d587e44c2", "score": "0.56364125", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 1000, 1000);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Select the tables you want to temporalise :\");\n\t\tbtnNext = new JButton(\"Next\");\n\t\t\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(55)\n\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t.addContainerGap(637, Short.MAX_VALUE))\n\t\t\t\t.addGroup(Alignment.TRAILING, groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(873, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t.addGap(61))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(35)\n\t\t\t\t\t.addComponent(lblNewLabel)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 887, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t.addGap(38))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\n\t\tint x=50, y=50, width=200, height=60; //choose whatever you want\n jCheckBox = new JCheckBox[displayTables.size()];\n for(int i=0; i<displayTables.size(); i++, y+=40) {\n jCheckBox[i] = new JCheckBox(displayTables.get(i));\n jCheckBox[i].setBounds(x, y, width, height);\n frame.getContentPane().add(jCheckBox[i]);\n }\n\t}", "title": "" }, { "docid": "c0a47ee085b2061d8f2b141991dc9088", "score": "0.5633703", "text": "private JCheckBox getJCheckBoxTopology3dView() {\r\n\t\tif (jCheckBoxTopology3dView == null) {\r\n\t\t\tjCheckBoxTopology3dView = new JCheckBox(\"Show 3-D View\", false);\r\n\t\t}\r\n\t\treturn jCheckBoxTopology3dView;\r\n\t}", "title": "" }, { "docid": "6b1dcd79586c2aeb7d90049e019d4dea", "score": "0.56324273", "text": "private void initComponents() {\n\n emcButtonGroup = new javax.swing.ButtonGroup();\n enableMIMEContentCB = new javax.swing.JCheckBox();\n\n enableMIMEContentCB.setMnemonic(java.util.ResourceBundle.getBundle(\"org/netbeans/modules/websvc/customization/multiview/Bundle\").getString(\"MNEMONIC_ENABLE_MIME_CONTENT\").charAt(0));\n enableMIMEContentCB.setText(org.openide.util.NbBundle.getBundle(BindingPanel.class).getString(\"LBL_ENABLE_MIME_CONTENT\")); // NOI18N\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"org/netbeans/modules/websvc/customization/multiview/Bundle\"); // NOI18N\n enableMIMEContentCB.setToolTipText(bundle.getString(\"TOOLTIP_ENABLE_MIME\")); // NOI18N\n enableMIMEContentCB.setActionCommand(bundle.getString(\"LBL_ENABLE_MIME_CONTENT\")); // NOI18N\n enableMIMEContentCB.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n enableMIMEContentCB.setContentAreaFilled(false);\n enableMIMEContentCB.setMargin(new java.awt.Insets(0, 0, 0, 0));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(enableMIMEContentCB)\n .addContainerGap(409, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(enableMIMEContentCB)\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n enableMIMEContentCB.getAccessibleContext().setAccessibleName(bundle.getString(\"LBL_ENABLE_MIME_CONTENT\")); // NOI18N\n enableMIMEContentCB.getAccessibleContext().setAccessibleDescription(bundle.getString(\"LBL_ENABLE_MIME_CONTENT\")); // NOI18N\n }", "title": "" }, { "docid": "0428d479f07be16fa26558a339d1cb64", "score": "0.5627224", "text": "private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n entornoCobolLocalPanel1 = new es.cvjpy.cobol.EntornoCobolLocalPanel();\n jPanel2 = new javax.swing.JPanel();\n jCheckBox2 = new javax.swing.JCheckBox();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n setTitle(\"Configuración de la aplicación\");\n setLocationByPlatform(true);\n setModal(true);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n closeDialog(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"alfalit\"); // NOI18N\n jLabel1.setText(bundle.getString(\"Puerto_cobol\")); // NOI18N\n\n org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${datos.entornoCobol.entornoRemoto.puertoCob}\"), jTextField1, org.jdesktop.beansbinding.BeanProperty.create(\"text\"));\n bindingGroup.addBinding(binding);\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel2.setText(bundle.getString(\"Puerto_java\")); // NOI18N\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${datos.entornoCobol.entornoRemoto.puertoSys}\"), jTextField2, org.jdesktop.beansbinding.BeanProperty.create(\"text\"));\n bindingGroup.addBinding(binding);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(298, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${datos.entornoCobol.entornoLocal}\"), entornoCobolLocalPanel1, org.jdesktop.beansbinding.BeanProperty.create(\"datos\"));\n bindingGroup.addBinding(binding);\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(entornoCobolLocalPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 532, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(entornoCobolLocalPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n jCheckBox2.setText(bundle.getString(\"Mostrar_este_dialogo_al_iniciar\")); // NOI18N\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${datos.mostrarInicial}\"), jCheckBox2, org.jdesktop.beansbinding.BeanProperty.create(\"selected\"));\n bindingGroup.addBinding(binding);\n\n jPanel2.add(jCheckBox2);\n\n jButton3.setText(bundle.getString(\"Cancelar\")); // NOI18N\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton3);\n\n jButton4.setText(bundle.getString(\"Aceptar\")); // NOI18N\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton4);\n\n getContentPane().add(jPanel2, java.awt.BorderLayout.SOUTH);\n\n bindingGroup.bind();\n\n pack();\n }", "title": "" }, { "docid": "3088c13dad3fec488a39555767ecf588", "score": "0.56175625", "text": "private void initComponents() {\n\n jlbCommunication = new javax.swing.JLabel();\n jtfServiceURL = new javax.swing.JTextField();\n jbtCancel = new javax.swing.JButton();\n jbtOK = new javax.swing.JButton();\n jtfLogin = new javax.swing.JTextField();\n jlbLogin = new javax.swing.JLabel();\n jlbPassword = new javax.swing.JLabel();\n jpfPasword = new javax.swing.JPasswordField();\n jcbFlags = new javax.swing.JComboBox();\n jlbLanguage = new javax.swing.JLabel();\n jcbRememberMe = new javax.swing.JCheckBox();\n\n setTitle(\"Communication settings\");\n setModal(true);\n setResizable(false);\n setUndecorated(true);\n\n jlbCommunication.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jlbCommunication.setText(\"Communication settings :\");\n\n jtfServiceURL.setText(\"http://localhost/service.php?wsdl\");\n jtfServiceURL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtfServiceURLActionPerformed(evt);\n }\n });\n\n jbtCancel.setText(\"Cancel\");\n jbtCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtCancelActionPerformed(evt);\n }\n });\n\n jbtOK.setText(\"OK\");\n jbtOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtOKActionPerformed(evt);\n }\n });\n\n jtfLogin.setText(\"lord bojo\");\n jtfLogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jtfLoginActionPerformed(evt);\n }\n });\n\n jlbLogin.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jlbLogin.setText(\"Login : \");\n\n jlbPassword.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jlbPassword.setText(\"Password : \");\n\n jpfPasword.setText(\"lancie\");\n\n jcbFlags.setMaximumSize(new java.awt.Dimension(220, 70));\n jcbFlags.setMinimumSize(new java.awt.Dimension(220, 70));\n jcbFlags.setPreferredSize(new java.awt.Dimension(220, 70));\n\n jlbLanguage.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jlbLanguage.setText(\"Language : \");\n\n jcbRememberMe.setText(\"Remember me\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jbtCancel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jbtOK)\n .addGap(21, 21, 21))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jlbLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfLogin))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jlbPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jpfPasword, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jcbRememberMe))\n .addGap(12, 12, 12)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 156, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlbLanguage, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jcbFlags, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jlbCommunication, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jtfServiceURL, javax.swing.GroupLayout.DEFAULT_SIZE, 382, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlbCommunication)\n .addComponent(jtfServiceURL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlbLogin)\n .addComponent(jtfLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jlbPassword)\n .addComponent(jpfPasword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jcbRememberMe)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jcbFlags, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jlbLanguage))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jbtCancel)\n .addComponent(jbtOK))\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "d156d31af61a093f797e402e2f64e48e", "score": "0.5616417", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCheckBox1 = new javax.swing.JCheckBox();\n mainP = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n jCheckBox1.setText(\"jCheckBox1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(480, 320));\n setResizable(false);\n setType(java.awt.Window.Type.UTILITY);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n mainP.setBackground(new java.awt.Color(253, 193, 0));\n mainP.setMaximumSize(new java.awt.Dimension(480, 320));\n mainP.setMinimumSize(new java.awt.Dimension(480, 320));\n mainP.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Century Gothic\", 3, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(80, 80, 80));\n jLabel1.setText(\"Контакты\");\n mainP.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 63, -1, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(36, 29, 112));\n jLabel2.setText(\"Для получания дополнительной информации \");\n mainP.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(84, 105, -1, -1));\n\n jLabel3.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(36, 29, 112));\n jLabel3.setText(\"Телефон:\");\n mainP.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(85, 179, -1, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(36, 29, 112));\n jLabel7.setText(\"пожалуйста, свяжитесь с координаторами\");\n mainP.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(84, 142, -1, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(36, 29, 112));\n jLabel9.setText(\"7(922)-920-46-03\");\n mainP.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(179, 179, -1, -1));\n\n jLabel15.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(36, 29, 112));\n jLabel15.setText(\"eMail:\");\n mainP.add(jLabel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(109, 209, -1, -1));\n\n jLabel16.setFont(new java.awt.Font(\"Century Gothic\", 3, 14)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(36, 29, 112));\n jLabel16.setText(\"Cjlenouuu@gmail.com\");\n mainP.add(jLabel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(179, 209, -1, -1));\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/materials/icon/cross-icon - копия.png\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n mainP.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 10, 45, 45));\n\n getContentPane().add(mainP, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 500, 330));\n\n pack();\n }", "title": "" }, { "docid": "e296e420c42bf0bee055ae430294e6c3", "score": "0.5612643", "text": "public XCheckBox() {\n super();\n }", "title": "" }, { "docid": "46d24c6bfa8e2be39387ad462c8df3c7", "score": "0.5609649", "text": "private void initComponents() {\r\n\r\n }", "title": "" }, { "docid": "4004d6d32488872a002a9cc7b9f9f67d", "score": "0.5604226", "text": "protected void initialiseState() {\n // Set default flags\n setFlags(\n Window.WFLAG_IS_DIRTY | \n Window.WFLAG_CAN_HAVE_FOCUS\n );\n }", "title": "" }, { "docid": "9fb914fff58c4ff15b542408e39c5eb6", "score": "0.5603288", "text": "private void initialize() {\r\n\t\t// commenter cette ligne lorsque l'on run\r\n\t\t// on en a besoin pour acceder au design\r\n\t\t// frame = new JFrame();\r\n\t\tframe.setBounds(0, 0, 1920 / 2, 1080 / 2);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\r\n\t\tJLabel lblB = new JLabel(\"8 AMERICAIN : Réglage de la Partie\");\r\n\t\tlblB.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblB.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\r\n\t\tlblB.setBounds(0, 13, 942, 36);\r\n\t\tframe.getContentPane().add(lblB);\r\n\r\n\t\tJCheckBox ordi1 = new JCheckBox(\"Ordi 1\");\r\n\t\tordi1.setEnabled(false);\r\n\t\tordi1.setSelected(true);\r\n\t\tordi1.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi1.setBounds(66, 174, 97, 23);\r\n\t\tframe.getContentPane().add(ordi1);\r\n\t\tordis.put(\"ordi1\", ordi1);\r\n\r\n\t\tJRadioButton ordi1n = new JRadioButton(\"Normal\");\r\n\t\tordi1n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_1.add(ordi1n);\r\n\t\tordi1n.setSelected(true);\r\n\t\tordi1n.setBounds(210, 174, 109, 23);\r\n\t\tframe.getContentPane().add(ordi1n);\r\n\t\tdifficults.put(\"ordi1n\", ordi1n);\r\n\r\n\t\tJRadioButton ordi1d = new JRadioButton(\"Difficile\");\r\n\t\tordi1d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_1.add(ordi1d);\r\n\t\tordi1d.setBounds(321, 174, 109, 23);\r\n\t\tframe.getContentPane().add(ordi1d);\r\n\t\tdifficults.put(\"ordi1d\", ordi1d);\r\n\r\n\t\tJCheckBox ordi2 = new JCheckBox(\"Ordi 2\");\r\n\t\tordi2.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi2.setBounds(66, 200, 97, 23);\r\n\t\tframe.getContentPane().add(ordi2);\r\n\t\tordis.put(\"ordi2\", ordi2);\r\n\r\n\t\tJRadioButton ordi2n = new JRadioButton(\"Normal\");\r\n\t\tordi2n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_2.add(ordi2n);\r\n\t\tordi2n.setBounds(210, 200, 109, 23);\r\n\t\tframe.getContentPane().add(ordi2n);\r\n\t\tdifficults.put(\"ordi2n\", ordi2n);\r\n\r\n\t\tJRadioButton ordi2d = new JRadioButton(\"Difficile\");\r\n\t\tordi2d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_2.add(ordi2d);\r\n\t\tordi2d.setBounds(321, 200, 109, 23);\r\n\t\tframe.getContentPane().add(ordi2d);\r\n\t\tdifficults.put(\"ordi2d\", ordi2d);\r\n\r\n\t\tJCheckBox ordi3 = new JCheckBox(\"Ordi 3\");\r\n\t\tordi3.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi3.setBounds(66, 226, 97, 23);\r\n\t\tframe.getContentPane().add(ordi3);\r\n\t\tordis.put(\"ordi3\", ordi3);\r\n\r\n\t\tJRadioButton ordi3n = new JRadioButton(\"Normal\");\r\n\t\tordi3n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_3.add(ordi3n);\r\n\t\tordi3n.setBounds(210, 226, 109, 23);\r\n\t\tframe.getContentPane().add(ordi3n);\r\n\t\tdifficults.put(\"ordi3n\", ordi3n);\r\n\r\n\t\tJRadioButton ordi3d = new JRadioButton(\"Difficile\");\r\n\t\tordi3d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_3.add(ordi3d);\r\n\t\tordi3d.setBounds(321, 226, 109, 23);\r\n\t\tframe.getContentPane().add(ordi3d);\r\n\t\tdifficults.put(\"ordi3d\", ordi3d);\r\n\r\n\t\tJCheckBox ordi4 = new JCheckBox(\"Ordi 4\");\r\n\t\tordi4.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi4.setBounds(66, 252, 97, 23);\r\n\t\tframe.getContentPane().add(ordi4);\r\n\t\tordis.put(\"ordi4\", ordi4);\r\n\r\n\t\tJRadioButton ordi4n = new JRadioButton(\"Normal\");\r\n\t\tordi4n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_4.add(ordi4n);\r\n\t\tordi4n.setBounds(210, 252, 109, 23);\r\n\t\tframe.getContentPane().add(ordi4n);\r\n\t\tdifficults.put(\"ordi4n\", ordi4n);\r\n\r\n\t\tJRadioButton ordi4d = new JRadioButton(\"Difficile\");\r\n\t\tordi4d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_4.add(ordi4d);\r\n\t\tordi4d.setBounds(321, 252, 109, 23);\r\n\t\tframe.getContentPane().add(ordi4d);\r\n\t\tdifficults.put(\"ordi4d\", ordi4d);\r\n\r\n\t\tJCheckBox ordi5 = new JCheckBox(\"Ordi 5\");\r\n\t\tordi5.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi5.setBounds(66, 278, 97, 23);\r\n\t\tframe.getContentPane().add(ordi5);\r\n\t\tordis.put(\"ordi5\", ordi5);\r\n\r\n\t\tJRadioButton ordi5n = new JRadioButton(\"Normal\");\r\n\t\tordi5n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_5.add(ordi5n);\r\n\t\tordi5n.setBounds(210, 278, 109, 23);\r\n\t\tframe.getContentPane().add(ordi5n);\r\n\t\tdifficults.put(\"ordi5n\", ordi5n);\r\n\r\n\t\tJRadioButton ordi5d = new JRadioButton(\"Difficile\");\r\n\t\tordi5d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_5.add(ordi5d);\r\n\t\tordi5d.setBounds(321, 278, 109, 23);\r\n\t\tframe.getContentPane().add(ordi5d);\r\n\t\tdifficults.put(\"ordi5d\", ordi5d);\r\n\r\n\t\tJCheckBox ordi6 = new JCheckBox(\"Ordi 6\");\r\n\t\tordi6.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tordi6.setBounds(66, 304, 97, 23);\r\n\t\tframe.getContentPane().add(ordi6);\r\n\t\tordis.put(\"ordi6\", ordi6);\r\n\r\n\t\tJRadioButton ordi6n = new JRadioButton(\"Normal\");\r\n\t\tordi6n.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_6.add(ordi6n);\r\n\t\tordi6n.setBounds(210, 304, 109, 23);\r\n\t\tframe.getContentPane().add(ordi6n);\r\n\t\tdifficults.put(\"ordi6n\", ordi6n);\r\n\r\n\t\tJRadioButton ordi6d = new JRadioButton(\"Difficile\");\r\n\t\tordi6d.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup_6.add(ordi6d);\r\n\t\tordi6d.setBounds(321, 304, 109, 23);\r\n\t\tframe.getContentPane().add(ordi6d);\r\n\t\tdifficults.put(\"ordi6d\", ordi6d);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Ordinateur(s)\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblNewLabel.setBounds(66, 144, 109, 23);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\r\n\t\tJLabel lblDifficult = new JLabel(\"Difficult\\u00E9\");\r\n\t\tlblDifficult.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblDifficult.setBounds(270, 144, 99, 23);\r\n\t\tframe.getContentPane().add(lblDifficult);\r\n\r\n\t\tJRadioButton rdbtnAucunEffet = new JRadioButton(\"Aucun effet\");\r\n\t\tbuttonGroup_7.add(rdbtnAucunEffet);\r\n\t\trdbtnAucunEffet.setSelected(true);\r\n\t\trdbtnAucunEffet.setBounds(434, 121, 97, 25);\r\n\t\tframe.getContentPane().add(rdbtnAucunEffet);\r\n\t\tvariantes.put(\"variante0\", rdbtnAucunEffet);\r\n\r\n\t\tJRadioButton rdbtnMinimale = new JRadioButton(\"Minimale\");\r\n\t\tbuttonGroup_7.add(rdbtnMinimale);\r\n\t\trdbtnMinimale.setBounds(434, 151, 79, 25);\r\n\t\tframe.getContentPane().add(rdbtnMinimale);\r\n\t\tvariantes.put(\"variante1\", rdbtnMinimale);\r\n\r\n\t\tJRadioButton rdbtnMonclar = new JRadioButton(\"Monclar\");\r\n\t\tbuttonGroup_7.add(rdbtnMonclar);\r\n\t\trdbtnMonclar.setBounds(648, 121, 79, 25);\r\n\t\tframe.getContentPane().add(rdbtnMonclar);\r\n\t\tvariantes.put(\"variante2\", rdbtnMonclar);\r\n\r\n\t\tJRadioButton rdbtnCarteEtMaou = new JRadioButton(\"Carte et maou\");\r\n\t\tbuttonGroup_7.add(rdbtnCarteEtMaou);\r\n\t\trdbtnCarteEtMaou.setBounds(535, 122, 118, 25);\r\n\t\tframe.getContentPane().add(rdbtnCarteEtMaou);\r\n\t\tvariantes.put(\"variante3\", rdbtnCarteEtMaou);\r\n\r\n\t\tJRadioButton rdbtnVariante = new JRadioButton(\"Variante 5\");\r\n\t\tbuttonGroup_7.add(rdbtnVariante);\r\n\t\trdbtnVariante.setBounds(648, 151, 87, 25);\r\n\t\tframe.getContentPane().add(rdbtnVariante);\r\n\t\tvariantes.put(\"variante4\", rdbtnVariante);\r\n\r\n\t\tJRadioButton rdbtnManEtResta = new JRadioButton(\"Man et resta\");\r\n\t\tbuttonGroup_7.add(rdbtnManEtResta);\r\n\t\trdbtnManEtResta.setBounds(535, 152, 114, 25);\r\n\t\tframe.getContentPane().add(rdbtnManEtResta);\r\n\t\tvariantes.put(\"variante5\", rdbtnManEtResta);\r\n\r\n\t\tJRadioButton rdbtnCourteAmicale = new JRadioButton(\"Courte Amicale (32 cartes)\");\r\n\t\tbuttonGroup_7.add(rdbtnCourteAmicale);\r\n\t\trdbtnCourteAmicale.setBounds(739, 122, 183, 25);\r\n\t\tframe.getContentPane().add(rdbtnCourteAmicale);\r\n\t\tvariantes.put(\"variante6\", rdbtnCourteAmicale);\r\n\r\n\t\tJRadioButton rdbtnVariante_1 = new JRadioButton(\"Variante 7 (32 cartes)\");\r\n\t\tbuttonGroup_7.add(rdbtnVariante_1);\r\n\t\trdbtnVariante_1.setBounds(739, 152, 154, 25);\r\n\t\tframe.getContentPane().add(rdbtnVariante_1);\r\n\t\tvariantes.put(\"variante7\", rdbtnVariante_1);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setEditable(false);\r\n\t\ttextField_1.setBounds(452, 252, 470, 25);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextFields.put(\"textField1\", textField_1);\r\n\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setEditable(false);\r\n\t\ttextField_2.setBounds(452, 289, 470, 25);\r\n\t\tframe.getContentPane().add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\t\ttextFields.put(\"textField2\", textField_2);\r\n\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setEditable(false);\r\n\t\ttextField_3.setBounds(452, 327, 226, 25);\r\n\t\tframe.getContentPane().add(textField_3);\r\n\t\ttextField_3.setColumns(10);\r\n\t\ttextFields.put(\"textField3\", textField_3);\r\n\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setEditable(false);\r\n\t\ttextField_4.setBounds(696, 327, 226, 25);\r\n\t\tframe.getContentPane().add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\t\ttextFields.put(\"textField4\", textField_4);\r\n\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setEditable(false);\r\n\t\ttextField_5.setBounds(452, 364, 226, 25);\r\n\t\tframe.getContentPane().add(textField_5);\r\n\t\ttextField_5.setColumns(10);\r\n\t\ttextFields.put(\"textField5\", textField_5);\r\n\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setEditable(false);\r\n\t\ttextField_6.setBounds(696, 365, 226, 25);\r\n\t\tframe.getContentPane().add(textField_6);\r\n\t\ttextField_6.setColumns(10);\r\n\t\ttextFields.put(\"textField6\", textField_6);\r\n\r\n\t\tJLabel lblEffetsDeLa = new JLabel(\"Effets de la variante\");\r\n\t\tlblEffetsDeLa.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblEffetsDeLa.setBounds(584, 201, 170, 19);\r\n\t\tframe.getContentPane().add(lblEffetsDeLa);\r\n\r\n\t\tValider = new JButton(\"Valider\");\r\n\t\tValider.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\r\n\t\tValider.setBounds(386, 422, 151, 47);\r\n\t\tframe.getContentPane().add(Valider);\r\n\r\n\t\tJLabel lblModeComptage = new JLabel(\"Comptage des points:\");\r\n\t\tlblModeComptage.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tlblModeComptage.setBounds(66, 357, 164, 36);\r\n\t\tframe.getContentPane().add(lblModeComptage);\r\n\r\n\t\tnegatif = new JRadioButton(\"N\\u00E9gatif\");\r\n\t\tnegatif.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup.add(negatif);\r\n\t\tnegatif.setSelected(true);\r\n\t\tnegatif.setBounds(238, 364, 109, 23);\r\n\t\tframe.getContentPane().add(negatif);\r\n\r\n\t\tpositif = new JRadioButton(\"Positif\");\r\n\t\tpositif.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\tbuttonGroup.add(positif);\r\n\r\n\t\tpositif.setBounds(350, 364, 109, 23);\r\n\t\tframe.getContentPane().add(positif);\r\n\r\n\t\tJLabel lblVotreNom = new JLabel(\"Votre nom: \");\r\n\t\tlblVotreNom.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblVotreNom.setBounds(111, 85, 97, 15);\r\n\t\tframe.getContentPane().add(lblVotreNom);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\r\n\t\ttextField.setBounds(222, 81, 134, 23);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\ttextFields.put(\"textField0\", textField);\r\n\r\n\t\tJLabel lblVariante = new JLabel(\"Variante\");\r\n\t\tlblVariante.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblVariante.setBounds(702, 83, 72, 18);\r\n\t\tframe.getContentPane().add(lblVariante);\r\n\r\n\t}", "title": "" }, { "docid": "1215f4d3b456d4e1dd8aa2812b3d2c00", "score": "0.55867386", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox5 = new javax.swing.JCheckBox();\n jCheckBox14 = new javax.swing.JCheckBox();\n jCheckBox8 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jCheckBox18 = new javax.swing.JCheckBox();\n jCheckBox20 = new javax.swing.JCheckBox();\n jCheckBox11 = new javax.swing.JCheckBox();\n jCheckBox21 = new javax.swing.JCheckBox();\n jCheckBox27 = new javax.swing.JCheckBox();\n jCheckBox30 = new javax.swing.JCheckBox();\n jCheckBox19 = new javax.swing.JCheckBox();\n jCheckBox29 = new javax.swing.JCheckBox();\n jCheckBox13 = new javax.swing.JCheckBox();\n jCheckBox28 = new javax.swing.JCheckBox();\n jCheckBox6 = new javax.swing.JCheckBox();\n jCheckBox23 = new javax.swing.JCheckBox();\n jCheckBox25 = new javax.swing.JCheckBox();\n jCheckBox15 = new javax.swing.JCheckBox();\n jCheckBox9 = new javax.swing.JCheckBox();\n jCheckBox10 = new javax.swing.JCheckBox();\n jCheckBox17 = new javax.swing.JCheckBox();\n jCheckBox12 = new javax.swing.JCheckBox();\n jCheckBox7 = new javax.swing.JCheckBox();\n jCheckBox24 = new javax.swing.JCheckBox();\n jCheckBox26 = new javax.swing.JCheckBox();\n jCheckBox16 = new javax.swing.JCheckBox();\n jCheckBox22 = new javax.swing.JCheckBox();\n jCheckBox31 = new javax.swing.JCheckBox();\n jCheckBox32 = new javax.swing.JCheckBox();\n Close = new javax.swing.JLabel();\n Submit = new javax.swing.JLabel();\n Minimize = new javax.swing.JLabel();\n Home = new javax.swing.JLabel();\n Bookapp = new javax.swing.JLabel();\n chat = new javax.swing.JLabel();\n Logout = new javax.swing.JLabel();\n Profile = new javax.swing.JLabel();\n BG = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setUndecorated(true);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jCheckBox1.setText(\"Recurring_fever\");\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox1, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 320, -1, -1));\n\n jCheckBox2.setText(\"Sweating\");\n jCheckBox2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox2ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox2, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 320, -1, -1));\n\n jCheckBox3.setText(\"Diarrhea\");\n jCheckBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox3ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox3, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 320, -1, -1));\n\n jCheckBox5.setText(\"Fatigue\");\n jCheckBox5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox5ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox5, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 320, -1, -1));\n\n jCheckBox14.setText(\"Abdominal_cramps\");\n jCheckBox14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox14ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox14, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 420, -1, -1));\n\n jCheckBox8.setText(\"Nausea\");\n jCheckBox8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox8ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox8, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 370, -1, -1));\n\n jCheckBox4.setText(\"Rapid_weight_loss\");\n jCheckBox4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox4ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox4, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 320, -1, -1));\n\n jCheckBox18.setText(\"Blood_in_vomit\");\n jCheckBox18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox18ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox18, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 470, -1, -1));\n\n jCheckBox20.setText(\"Back_pain\");\n jCheckBox20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox20ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox20, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 470, -1, 20));\n\n jCheckBox11.setText(\"Weight_loss\");\n jCheckBox11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox11ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox11, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 420, -1, -1));\n\n jCheckBox21.setText(\"Chills\");\n jCheckBox21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox21ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox21, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 520, -1, -1));\n\n jCheckBox27.setText(\"Blood_in_cough\");\n jCheckBox27.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox27ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox27, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 570, -1, -1));\n\n jCheckBox30.setText(\"Bleeding_from_rectum\");\n jCheckBox30.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox30ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox30, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 570, -1, -1));\n\n jCheckBox19.setText(\"Rashes\");\n jCheckBox19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox19ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox19, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 470, -1, -1));\n\n jCheckBox29.setText(\"Lots_of_appetite\");\n jCheckBox29.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox29ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox29, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 570, -1, -1));\n\n jCheckBox13.setText(\"Dehydration\");\n jCheckBox13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox13ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox13, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 420, -1, -1));\n\n jCheckBox28.setText(\"Cough_over_3_weeks\");\n jCheckBox28.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox28ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox28, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 570, -1, -1));\n\n jCheckBox6.setText(\"Severe_headache\");\n jCheckBox6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox6ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox6, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 370, -1, -1));\n\n jCheckBox23.setText(\"Cough\");\n jCheckBox23.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox23ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox23, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 520, -1, -1));\n\n jCheckBox25.setText(\"Body_pain\");\n jCheckBox25.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox25ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox25, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 520, -1, -1));\n\n jCheckBox15.setText(\"Pain_in_joints\");\n jCheckBox15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox15ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox15, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 420, -1, -1));\n\n jCheckBox9.setText(\"Bloody_stools\");\n jCheckBox9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox9ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox9, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 370, -1, -1));\n\n jCheckBox10.setText(\"Vomiting\");\n jCheckBox10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox10ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox10, new org.netbeans.lib.awtextra.AbsoluteConstraints(920, 370, -1, -1));\n\n jCheckBox17.setText(\"Fast_pulse\");\n jCheckBox17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox17ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox17, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 470, -1, -1));\n\n jCheckBox12.setText(\"Low_blood_pressure\");\n jCheckBox12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox12ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox12, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 420, -1, -1));\n\n jCheckBox7.setText(\"Loose_stools\");\n jCheckBox7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox7ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox7, new org.netbeans.lib.awtextra.AbsoluteConstraints(490, 370, -1, -1));\n\n jCheckBox24.setText(\"Sore_throat\");\n jCheckBox24.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox24ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox24, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 520, -1, -1));\n\n jCheckBox26.setText(\"Chest_pain\");\n jCheckBox26.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox26ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox26, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 570, -1, -1));\n\n jCheckBox16.setText(\"Pain_in_eyes\");\n jCheckBox16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox16ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox16, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 470, -1, -1));\n\n jCheckBox22.setText(\"Running_nose\");\n jCheckBox22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox22ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox22, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 520, -1, -1));\n\n jCheckBox31.setText(\"Stomach_pain\");\n jCheckBox31.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox31ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox31, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 620, -1, -1));\n\n jCheckBox32.setText(\"Fever\");\n jCheckBox32.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox32ActionPerformed(evt);\n }\n });\n getContentPane().add(jCheckBox32, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 620, -1, -1));\n\n Close.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Close.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n CloseMouseClicked(evt);\n }\n });\n getContentPane().add(Close, new org.netbeans.lib.awtextra.AbsoluteConstraints(1300, 10, 30, 40));\n\n Submit.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Submit.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n SubmitMouseClicked(evt);\n }\n });\n getContentPane().add(Submit, new org.netbeans.lib.awtextra.AbsoluteConstraints(1000, 600, 80, 80));\n\n Minimize.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n MinimizeMouseClicked(evt);\n }\n });\n getContentPane().add(Minimize, new org.netbeans.lib.awtextra.AbsoluteConstraints(1250, 10, 30, 40));\n\n Home.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Home.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n HomeMouseClicked(evt);\n }\n });\n getContentPane().add(Home, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 100, 70, 20));\n\n Bookapp.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Bookapp.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BookappMouseClicked(evt);\n }\n });\n getContentPane().add(Bookapp, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 100, 270, 20));\n\n chat.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n chat.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n chatMouseClicked(evt);\n }\n });\n getContentPane().add(chat, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 100, 270, 20));\n\n Logout.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Logout.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n LogoutMouseClicked(evt);\n }\n });\n getContentPane().add(Logout, new org.netbeans.lib.awtextra.AbsoluteConstraints(1190, 190, 70, 20));\n\n Profile.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n Profile.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n ProfileMouseClicked(evt);\n }\n });\n getContentPane().add(Profile, new org.netbeans.lib.awtextra.AbsoluteConstraints(1170, 100, 110, 20));\n\n BG.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/air/med/PREDICTION1.jpg\"))); // NOI18N\n BG.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n getContentPane().add(BG, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1500, -1));\n\n pack();\n }", "title": "" }, { "docid": "ee70066778c6ea7d58faeac9b332cff4", "score": "0.55853003", "text": "private void initComponents() {\r\n\t\tDimension screen = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tsetLocation((screen.width - 723) / 2, (screen.height - 259) / 4);\r\n\t\tjPanel1 = new javax.swing.JPanel();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jComboBox1 = new javax.swing.JComboBox();\r\n jButton5 = new javax.swing.JButton();\r\n jLabel4 = new javax.swing.JLabel();\r\n jCheckBox4 = new javax.swing.JCheckBox();\r\n jSeparator2 = new javax.swing.JSeparator();\r\n jPanel3 = new javax.swing.JPanel();\r\n jCheckBox1 = new javax.swing.JCheckBox();\r\n jLabel1 = new javax.swing.JLabel();\r\n jCheckBox2 = new javax.swing.JCheckBox();\r\n jLabel2 = new javax.swing.JLabel();\r\n jCheckBox3 = new javax.swing.JCheckBox();\r\n jLabel3 = new javax.swing.JLabel();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n setTitle(\"Options\");\r\n setResizable(false);\r\n\r\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\r\n jPanel1.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 14));\r\n\r\n jButton1.setBackground(new java.awt.Color(102, 102, 102));\r\n jButton1.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jButton1.setForeground(new java.awt.Color(255, 153, 0));\r\n jButton1.setText(\"Save\");\r\n jButton1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 0), 2, true));\r\n jButton1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n jButton1MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n jButton1MouseExited(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n jButton1MousePressed(evt);\r\n }\r\n });\r\n\r\n jButton2.setBackground(new java.awt.Color(102, 102, 102));\r\n jButton2.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jButton2.setForeground(new java.awt.Color(255, 153, 0));\r\n jButton2.setText(\"Cancel\");\r\n jButton2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 0), 2, true));\r\n jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n jButton2MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n jButton2MouseExited(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n jButton2MousePressed(evt);\r\n }\r\n });\r\n\r\n jPanel2.setBackground(new java.awt.Color(51, 51, 51));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 12));\r\n jLabel5.setForeground(new java.awt.Color(255, 153, 51));\r\n jLabel5.setText(\"Add user address:\");\r\n\r\n jTextField1.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n\r\n jButton3.setBackground(new java.awt.Color(102, 102, 102));\r\n jButton3.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jButton3.setForeground(new java.awt.Color(255, 153, 0));\r\n jButton3.setText(\"Add Next Email\");\r\n jButton3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 0), 2, true));\r\n jButton3.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n jButton3MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n jButton3MouseExited(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n jButton3MousePressed(evt);\r\n }\r\n });\r\n\r\n jButton4.setBackground(new java.awt.Color(102, 102, 102));\r\n jButton4.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jButton4.setForeground(new java.awt.Color(255, 153, 0));\r\n jButton4.setText(\"Add\");\r\n jButton4.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 0), 2, true));\r\n jButton4.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n jButton4MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n jButton4MouseExited(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n jButton4MousePressed(evt);\r\n }\r\n });\r\n\r\n jSeparator1.setBackground(new java.awt.Color(102, 102, 102));\r\n jSeparator1.setForeground(new java.awt.Color(102, 102, 102));\r\n\r\n jComboBox1.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n\r\n jButton5.setBackground(new java.awt.Color(102, 102, 102));\r\n jButton5.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 11));\r\n jButton5.setForeground(new java.awt.Color(255, 153, 0));\r\n jButton5.setText(\"Remove\");\r\n jButton5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 153, 0), 2, true));\r\n jButton5.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseEntered(java.awt.event.MouseEvent evt) {\r\n jButton5MouseEntered(evt);\r\n }\r\n public void mouseExited(java.awt.event.MouseEvent evt) {\r\n jButton5MouseExited(evt);\r\n }\r\n public void mousePressed(java.awt.event.MouseEvent evt) {\r\n jButton5MousePressed(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(jLabel5.getFont());\r\n jLabel4.setForeground(jLabel5.getForeground());\r\n jLabel4.setText(\"Enable user filtering:\");\r\n\r\n jCheckBox4.setBackground(jPanel2.getBackground());\r\n jCheckBox4.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n jCheckBox4ItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jSeparator2.setBackground(new java.awt.Color(102, 102, 102));\r\n jSeparator2.setForeground(new java.awt.Color(102, 102, 102));\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jComboBox1, 0, 306, Short.MAX_VALUE)\r\n .addGap(10, 10, 10)\r\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel4)\r\n .addGap(18, 18, 18)\r\n .addComponent(jCheckBox4)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jCheckBox4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE))\r\n .addGap(18, 18, 18)\r\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\r\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap())\r\n );\r\n\r\n jPanel3.setBackground(new java.awt.Color(51, 51, 51));\r\n\r\n jCheckBox1.setBackground(jPanel3.getBackground());\r\n jCheckBox1.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n jCheckBox1ItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel1.setBackground(new java.awt.Color(255, 153, 51));\r\n jLabel1.setFont(new java.awt.Font(\"MS Reference Sans Serif\", 1, 12));\r\n jLabel1.setForeground(new java.awt.Color(255, 153, 51));\r\n jLabel1.setText(\"Save username:\");\r\n\r\n jCheckBox2.setBackground(jCheckBox1.getBackground());\r\n jCheckBox2.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n jCheckBox2ItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel2.setFont(jLabel1.getFont());\r\n jLabel2.setForeground(jLabel1.getForeground());\r\n jLabel2.setText(\"Save password:\");\r\n\r\n jCheckBox3.setBackground(jCheckBox1.getBackground());\r\n\r\n jLabel3.setFont(jLabel1.getFont());\r\n jLabel3.setForeground(jLabel1.getForeground());\r\n jLabel3.setText(\"Connect when program starts:\");\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addComponent(jLabel1)\r\n .addGap(18, 18, 18)\r\n .addComponent(jCheckBox1))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addComponent(jLabel2)\r\n .addGap(18, 18, 18)\r\n .addComponent(jCheckBox2))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addComponent(jLabel3)\r\n .addGap(18, 18, 18)\r\n .addComponent(jCheckBox3)))\r\n .addContainerGap())\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 21, Short.MAX_VALUE)\r\n .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jCheckBox2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jCheckBox3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addContainerGap())\r\n );\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(18, 18, 18)\r\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap())\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGap(18, 18, 18)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\r\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))))\r\n .addContainerGap())\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n );\r\n\t\t\r\n customInitiate();\r\n\t\t\r\n\t\tpack();\r\n\t}", "title": "" }, { "docid": "e7c3c4d25d4b7e3238f58bdeb3bf17de", "score": "0.55837077", "text": "public Exemple4JRadioButtonEtJCheckBox() {\n init(); \n }", "title": "" }, { "docid": "53a73f3d16ad6615f373a52189a5b532", "score": "0.55730176", "text": "private void initialize() {\n\t\ttextArea_treePrint.setFont(new Font(\"Courier New\", Font.PLAIN, 12));\n\t\taction.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tfrmHwGenomics = new JFrame();\n\t\tfrmHwGenomics.setResizable(false);\n\t\tfrmHwGenomics.setTitle(\"HW2 Genomics\");\n\t\tfrmHwGenomics.setBounds(100, 100, 800, 600);\n\t\tfrmHwGenomics.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJLayeredPane layeredPane_1 = new JLayeredPane();\n\t\tJLabel lblMSAScore = new JLabel(\"MSA Score:\");\n\t\tlblMSAScore.setToolTipText(\"MSA Score:\");\n\t\tJLabel lblCS_Score = new JLabel(\"CenterStar Score:\");\n\t\tlblCS_Score.setToolTipText(\"CenterStar Score:\");\n\t\tJButton btnLoadMatrix = new JButton(\"Load Matrix\");\n\t\tbtnLoadMatrix.setAction(action_1);\n\t\tJLabel lblSubMatrix = new JLabel(\"Substitution Matrix:\");\n\t\tlblSubMatrix.setToolTipText(\"Substitution Matrix:\");\n\t\tlblMSAScore.setBounds(10, 20, 86, 14);\n\t\tlayeredPane_1.add(lblMSAScore);\n\t\tJLayeredPane layeredPane = new JLayeredPane();\n\t\tlayeredPane.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Select Method\", TitledBorder.LEFT, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tJButton btnShowTree = new JButton(\"Show Tree\");\n\t\t\n\t\t\n\t\tJLabel lblShowDistance = new JLabel(\"Show Pairs:\");\n\t\tlblShowDistance.setToolTipText(\"Show pairs and distance between them\");\n\t\tlblShowDistance.setEnabled(false);\n\t\tlblShowDistance.setBounds(270, 20, 86, 14);\n\t\tlayeredPane_1.add(lblShowDistance);\n\t\t\n\t\tJButton btnShowDistance = new JButton(\"Show Pairs\");\n\t\tbtnShowDistance.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//showPairsDistanceDialog(frmHwGenomics);\n\t\t\t}\n\t\t});\n\t\tbtnShowDistance.setAction(action_3);\n\t\tbtnShowDistance.setToolTipText(\"shows pairs and their distance\");\n\t\tbtnShowDistance.setEnabled(false);\n\t\tbtnShowDistance.setBounds(270, 49, 90, 50);\n\t\tlayeredPane_1.add(btnShowDistance);\n\t\t\n\t\tJLabel lblShowTree = new JLabel(\"Show Tree:\");\n\t\tlblShowTree.setToolTipText(\"Show Tree:\");\n\t\tlblShowTree.setEnabled(false);\n\t\tlblShowTree.setBounds(140, 20, 86, 14);\n\t\tlayeredPane_1.add(lblShowTree);\n\t\t\n\t\tJRadioButton rdbtnCenterStar = new JRadioButton(\"Center Star\");\n\t\trdbtnCenterStar.setToolTipText(\"Center Star Algorithm\");\n\t\trdbtnCenterStar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblMSAScore.setEnabled(false);\n\t\t\t\ttextField_MSAScore.setEnabled(false);\n\t\t\t\ttextField_CS_Score.setEnabled(true);\n\t\t\t\tlblCS_Score.setEnabled(true);\n\t\t\t\tlblSubMatrix.setEnabled(true);\n\t\t\t\tbtnLoadMatrix.setEnabled(true);\n\t\t\t\tbtnShowTree.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\tbuttonGroup.add(rdbtnCenterStar);\n\t\trdbtnCenterStar.setBounds(10, 30, 109, 23);\n\t\tlayeredPane.add(rdbtnCenterStar);\n\t\t\n\t\t\n\t\t\n\t\tbtnLoadMatrix.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser fs = new JFileChooser(new File(\"c:\\\\\"));\n\t\t\t\tfs.setDialogTitle(\"Open a File\");\t\n\t\t\t\tfs.showOpenDialog(null);\n\t\t\t\tFile fi =fs.getSelectedFile();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(fi.getPath()));\t\t\t\t\t\n\t\t\t\t\tString line =\"\";\t\t\t\t\t\n\t\t\t\t\twhile((line = br.readLine())!= null){\n\t\t\t\t\t\tfile+=line;\n\t\t\t\t\t}\n\t\t\t\t\tif(br !=null)\n\t\t\t\t\t\tbr.close();\t\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tfileSelected=false;\n\t\t\t\t\t//JOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t\t\t}\n\t\t\t\t//initMatrix();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tJRadioButton rdbtnMsa = new JRadioButton(\"Progressive Aligment\");\n\t\trdbtnMsa.setToolTipText(\"Progressive Aligment Algorithm\");\n\t\trdbtnMsa.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlblMSAScore.setEnabled(true);\n\t\t\t\ttextField_MSAScore.setEnabled(true);\n\t\t\t\ttextField_CS_Score.setEnabled(false);\n\t\t\t\tlblCS_Score.setEnabled(false);\n\t\t\t\tlblSubMatrix.setEnabled(false);\n\t\t\t\tbtnLoadMatrix.setEnabled(false);\n\t\t\t\tbtnShowTree.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\tbuttonGroup.add(rdbtnMsa);\n\t\trdbtnMsa.setBounds(10, 60, 125, 23);\n\t\tlayeredPane.add(rdbtnMsa);\n\t\t\n\t\t//JLayeredPane layeredPane_1 = new JLayeredPane();\n\t\tlayeredPane_1.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \" \", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\t\n\t\tJLayeredPane layeredPane_2 = new JLayeredPane();\n\t\tlayeredPane_2.setToolTipText(\"Please enter sequences starting with '>' symbol\");\n\t\tlayeredPane_2.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Sequences\", TitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\t\n\t\t\n\t\ttextField_MSAScore = new JTextField();\n\t\ttextField_MSAScore.setToolTipText(\"MSA Algorithm Score\");\n\t\ttextField_MSAScore.setText(\"0\");\n\t\ttextField_MSAScore.setFont(new Font(\"Tahoma\", Font.PLAIN, 27));\n\t\ttextField_MSAScore.setBounds(10, 49, 90, 50);\n\t\tlayeredPane_1.add(textField_MSAScore);\n\t\ttextField_MSAScore.setColumns(10);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setToolTipText(\"\");\n\t\tscrollPane.setViewportBorder(null);\n\t\tlayeredPane_2.setLayer(scrollPane, 0);\n\t\tscrollPane.setBounds(10, 21, 774, 370);\n\t\tlayeredPane_2.add(scrollPane);\n\t\t\n\t\tJTextArea txtrSequences = new JTextArea();\n\t\ttxtrSequences.setText(\"Please enter sequences starting with '>' symbol\");\n\t\ttxtrSequences.addFocusListener(new FocusAdapter() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\tif(txtrSequences.getText().trim().equals(\"Please enter sequences starting with '>' symbol\"))\n\t\t\t\t\ttxtrSequences.setText(\"\");\n\t\t\t\telse{}\n\t\t\t //do nothing\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t if(txtrSequences.getText().trim().equals(\"\")){\n\t\t\t\t\t txtrSequences.setText(\"Please enter sequences starting with '>' symbol\");\n\t\t\t\t }\n\t\t\t}\n\t\t});\n\t\ttxtrSequences.setToolTipText(\"\");\n\t\tscrollPane.setViewportView(txtrSequences);\n\t\ttxtrSequences.setWrapStyleWord(true);\n\t\ttxtrSequences.setLineWrap(true);\n\t\t//textArea.setDropMode(DropMode.ON);\n\t\tlayeredPane_2.setLayer(txtrSequences, 1);\n\t\ttxtrSequences.setFont(new Font(\"Courier New\", Font.PLAIN, 12));\n\t\tlayeredPane_2.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{txtrSequences}));\n\t\tGroupLayout groupLayout = new GroupLayout(frmHwGenomics.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(layeredPane, GroupLayout.PREFERRED_SIZE, 152, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(layeredPane_1))\n\t\t\t\t\t\t.addComponent(layeredPane_2, GroupLayout.PREFERRED_SIZE, 794, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t.addComponent(layeredPane_1)\n\t\t\t\t\t\t.addComponent(layeredPane, GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(layeredPane_2, GroupLayout.DEFAULT_SIZE, 444, Short.MAX_VALUE))\n\t\t);\n\t\t\n\t\t\n\t\tlblCS_Score.setBounds(400, 20, 100, 14);\n\t\tlayeredPane_1.add(lblCS_Score);\n\t\t\n\t\ttextField_CS_Score = new JTextField();\n\t\ttextField_CS_Score.setToolTipText(\"Center Star algorithm score\");\n\t\ttextField_CS_Score.setText(\"0\");\n\t\ttextField_CS_Score.setFont(new Font(\"Tahoma\", Font.PLAIN, 27));\n\t\ttextField_CS_Score.setColumns(10);\n\t\ttextField_CS_Score.setBounds(400, 49, 90, 50);\n\t\tlayeredPane_1.add(textField_CS_Score);\n\t\t\n\t\tJButton btnRun = new JButton(\"Run\");\n\t\tbtnRun.setAction(action);\n\t\tbtnRun.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdistancesList.clear();\n\t\t\t\tif(buttonGroup.getSelection() == rdbtnMsa.getModel()){\n\t\t\t\t\tmsaIsSelected = true;\n\t\t\t\t\tString data = txtrSequences.getText().trim();\n\t\t\t\t\tint lineNum = countLines(data);\n\t\t\t\t\t\n\t\t\t\t\tif(!(lineNum < 2)){\n\t\t\t\t\t\tfor (String line : txtrSequences.getText().split(\"\\\\n\")) strList.add(line);\n\t\t\t\t\t\tProgAligment temp = new ProgAligment(strList);\n\t\t\t\t\t\tresultList = temp.kekList;\n\t\t\t\t\t\tdistancesList = temp.distancesList;\n\t\t\t\t\t\ttextField_MSAScore.setText(String.valueOf(temp.finalScore));\n\t\t\t\t\t\ttry(PrintWriter out = new PrintWriter(\"tree.txt\")){\n\t\t\t\t\t\t\t \n\t\t\t\t } catch (IOException e1) {\n\t\t\t\t\t\t\te1.printStackTrace(); \n\t\t\t\t\t\t}\n\t\t\t\t\t\ttemp.finalNode.print();\n\t\t\t\t\t\tbtnShowTree.setEnabled(true);\n\t\t\t\t\t\tbtnShowDistance.setEnabled(true);\n\t\t\t\t\t\tlblShowTree.setEnabled(true);\n\t\t\t\t\t\tlblShowDistance.setEnabled(true);\n } else{\n \tJOptionPane.showMessageDialog(frmHwGenomics, \"Please enter sequences!\", \"No Sequences!\", JOptionPane.ERROR_MESSAGE);\n \terrorMsg=true;\n } \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else if(buttonGroup.getSelection() == rdbtnCenterStar.getModel()){\n\t\t\t\t\tmsaIsSelected = false;\n\t\t\t\t\tif(file == \"\"){\n\t\t\t\t\t\terrorMsg=true;\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmHwGenomics,\"File needs to be choose first!\", \"No File Selected\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tString data = txtrSequences.getText().trim();\n\t\t\t\t\t\tint lineNum = countLines(data);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!(lineNum < 2)){\n\t\t\t\t\t\t\tfor (String line : txtrSequences.getText().split(\"\\\\n\")) strList.add(line);\n\t\t\t\t\t\t\tfor (int i=0;i<strList.size();i++){\n\t\t\t\t\t\t\t\tCenterStar.sequence[i]=strList.get(i);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t \tJOptionPane.showMessageDialog(frmHwGenomics, \"Please enter sequences!\", \"No Sequences!\", JOptionPane.ERROR_MESSAGE);\n\t \terrorMsg=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else{\n \tJOptionPane.showMessageDialog(frmHwGenomics, \"Please select method!\", \"No Method\", JOptionPane.ERROR_MESSAGE);\n \terrorMsg=true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnRun.setBounds(364, 402, 89, 23);\n\t\tlayeredPane_2.add(btnRun);\n\t\t\n\t\tJLabel lblAbout = new JLabel(\"About\");\n\t\tlblAbout.setForeground(SystemColor.controlHighlight);\n\t\tlblAbout.setBounds(745, 426, 39, 14);\n\t\tlayeredPane_2.add(lblAbout);\n\t\tlblAbout.addMouseListener(new MouseAdapter() \n\t\t{ \n\t\t public void mouseClicked(MouseEvent e) \n\t\t { \n\t\t // you can open a new frame here as\n\t\t // i have assumed you have declared \"frame\" as instance variable\n\t\t JOptionPane.showMessageDialog(frmHwGenomics, \"garay made it\",\"very important message\",JOptionPane.INFORMATION_MESSAGE);\n\t\t \n\n\t\t } \n\t\t}); \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tbtnLoadMatrix.setBounds(530, 49, 90, 50);\n\t\tlayeredPane_1.add(btnLoadMatrix);\n\t\t\n\n\t\tlblSubMatrix.setBounds(530, 20, 100, 14);\n\t\tlayeredPane_1.add(lblSubMatrix);\n\t\t\n\t\t\n\t\tbtnShowTree.setAction(action_2);\n\t\tbtnShowTree.setEnabled(false);\n\t\tbtnShowTree.setBounds(140, 49, 90, 50);\n\t\tlayeredPane_1.add(btnShowTree);\n\t\t\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Set all disabled at start\n\t\t\t\tlblMSAScore.setEnabled(false);\n\t\t\t\ttextField_MSAScore.setEnabled(false);\n\t\t\t\ttextField_CS_Score.setEnabled(false);\n\t\t\t\tlblCS_Score.setEnabled(false);\n\t\t\t\tlblSubMatrix.setEnabled(false);\n\t\t\t\tbtnLoadMatrix.setEnabled(false);\n\t\t\t\tbtnShowTree.setEnabled(false);\n\t\t\t\tlblShowTree.setEnabled(false);\n\t\t\t\tbtnShowDistance.setEnabled(false);\n\t\t\t\tlblShowDistance.setEnabled(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\n\t\t\n\t\tfrmHwGenomics.getContentPane().setLayout(groupLayout);\n\t\t\n\n\t}", "title": "" }, { "docid": "824b2c827171d48026a1e9724ba32dbc", "score": "0.5564337", "text": "public void init() {\n\n\t\tboolGrid = new CellGrid(HEIGHT, WIDTH);\n\n\t\tpopulate();\n\n\t}", "title": "" }, { "docid": "2e0e4903f91f87ef9a5f0b55655c9ab9", "score": "0.5564038", "text": "private void initComponents() {\r\n }", "title": "" }, { "docid": "81683ba8e99fda3f42c4ff2ea1029683", "score": "0.55592036", "text": "public CheckboxTree(TreeModel treemodel) {\n\tsuper(treemodel);\n\tinitialize();\n }", "title": "" }, { "docid": "c5cfba750e4c6ae5104b2f1feac7d5e4", "score": "0.55570763", "text": "private void initialize() {\r\n\t\tthis.setSize(new java.awt.Dimension(611,413));\r\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(\"./fondos/miniLogo.gif\"));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"Administrativos\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.addWindowListener(new java.awt.event.WindowAdapter() {\r\n\t\t\tpublic void windowClosing(java.awt.event.WindowEvent e) {\r\n\t\t\t\tcdor.actionCerrar();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "a85801bb340f9c7076894ccdd40a8a51", "score": "0.5556065", "text": "private void initializeComponent() throws Exception {\n this.checkActive = new System.Windows.Forms.CheckBox();\n this.textReaction = new System.Windows.Forms.TextBox();\n this.labelReaction = new System.Windows.Forms.Label();\n this.labelAllergy = new System.Windows.Forms.Label();\n this.comboAllergies = new System.Windows.Forms.ComboBox();\n this.textDate = new System.Windows.Forms.TextBox();\n this.label1 = new System.Windows.Forms.Label();\n this.label2 = new System.Windows.Forms.Label();\n this.textSnomedReaction = new System.Windows.Forms.TextBox();\n this.butNoneSnomedReaction = new OpenDental.UI.Button();\n this.butSnomedReactionSelect = new OpenDental.UI.Button();\n this.butCancel = new OpenDental.UI.Button();\n this.butOK = new OpenDental.UI.Button();\n this.butDelete = new OpenDental.UI.Button();\n this.SuspendLayout();\n //\n // checkActive\n //\n this.checkActive.Checked = true;\n this.checkActive.CheckState = System.Windows.Forms.CheckState.Checked;\n this.checkActive.Location = new System.Drawing.Point(59, 153);\n this.checkActive.Name = \"checkActive\";\n this.checkActive.RightToLeft = System.Windows.Forms.RightToLeft.Yes;\n this.checkActive.Size = new System.Drawing.Size(100, 24);\n this.checkActive.TabIndex = 11;\n this.checkActive.Text = \"Is Active\";\n this.checkActive.UseVisualStyleBackColor = true;\n //\n // textReaction\n //\n this.textReaction.Location = new System.Drawing.Point(144, 74);\n this.textReaction.Multiline = true;\n this.textReaction.Name = \"textReaction\";\n this.textReaction.Size = new System.Drawing.Size(272, 53);\n this.textReaction.TabIndex = 10;\n //\n // labelReaction\n //\n this.labelReaction.Location = new System.Drawing.Point(7, 74);\n this.labelReaction.Name = \"labelReaction\";\n this.labelReaction.Size = new System.Drawing.Size(134, 20);\n this.labelReaction.TabIndex = 9;\n this.labelReaction.Text = \"Reaction Description\";\n this.labelReaction.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // labelAllergy\n //\n this.labelAllergy.Location = new System.Drawing.Point(60, 18);\n this.labelAllergy.Name = \"labelAllergy\";\n this.labelAllergy.Size = new System.Drawing.Size(81, 20);\n this.labelAllergy.TabIndex = 12;\n this.labelAllergy.Text = \"Allergy\";\n this.labelAllergy.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // comboAllergies\n //\n this.comboAllergies.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n this.comboAllergies.FormattingEnabled = true;\n this.comboAllergies.Location = new System.Drawing.Point(144, 19);\n this.comboAllergies.Name = \"comboAllergies\";\n this.comboAllergies.Size = new System.Drawing.Size(272, 21);\n this.comboAllergies.TabIndex = 13;\n //\n // textDate\n //\n this.textDate.Location = new System.Drawing.Point(144, 133);\n this.textDate.Name = \"textDate\";\n this.textDate.Size = new System.Drawing.Size(100, 20);\n this.textDate.TabIndex = 15;\n //\n // label1\n //\n this.label1.Location = new System.Drawing.Point(4, 132);\n this.label1.Name = \"label1\";\n this.label1.Size = new System.Drawing.Size(137, 20);\n this.label1.TabIndex = 16;\n this.label1.Text = \"Date Adverse Reaction\";\n this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // label2\n //\n this.label2.Location = new System.Drawing.Point(0, 46);\n this.label2.Name = \"label2\";\n this.label2.Size = new System.Drawing.Size(141, 20);\n this.label2.TabIndex = 26;\n this.label2.Text = \"SNOMED CT Reaction\";\n this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;\n //\n // textSnomedReaction\n //\n this.textSnomedReaction.Location = new System.Drawing.Point(144, 46);\n this.textSnomedReaction.Name = \"textSnomedReaction\";\n this.textSnomedReaction.ReadOnly = true;\n this.textSnomedReaction.Size = new System.Drawing.Size(272, 20);\n this.textSnomedReaction.TabIndex = 25;\n //\n // butNoneSnomedReaction\n //\n this.butNoneSnomedReaction.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butNoneSnomedReaction.setAutosize(true);\n this.butNoneSnomedReaction.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butNoneSnomedReaction.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butNoneSnomedReaction.setCornerRadius(4F);\n this.butNoneSnomedReaction.Location = new System.Drawing.Point(449, 46);\n this.butNoneSnomedReaction.Name = \"butNoneSnomedReaction\";\n this.butNoneSnomedReaction.Size = new System.Drawing.Size(51, 22);\n this.butNoneSnomedReaction.TabIndex = 28;\n this.butNoneSnomedReaction.Text = \"None\";\n this.butNoneSnomedReaction.Click += new System.EventHandler(this.butNoneSnomedReaction_Click);\n //\n // butSnomedReactionSelect\n //\n this.butSnomedReactionSelect.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butSnomedReactionSelect.setAutosize(true);\n this.butSnomedReactionSelect.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butSnomedReactionSelect.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butSnomedReactionSelect.setCornerRadius(4F);\n this.butSnomedReactionSelect.Location = new System.Drawing.Point(421, 46);\n this.butSnomedReactionSelect.Name = \"butSnomedReactionSelect\";\n this.butSnomedReactionSelect.Size = new System.Drawing.Size(22, 22);\n this.butSnomedReactionSelect.TabIndex = 27;\n this.butSnomedReactionSelect.Text = \"...\";\n this.butSnomedReactionSelect.Click += new System.EventHandler(this.butSnomedReactionSelect_Click);\n //\n // butCancel\n //\n this.butCancel.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butCancel.setAutosize(true);\n this.butCancel.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butCancel.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butCancel.setCornerRadius(4F);\n this.butCancel.Location = new System.Drawing.Point(427, 215);\n this.butCancel.Name = \"butCancel\";\n this.butCancel.Size = new System.Drawing.Size(75, 24);\n this.butCancel.TabIndex = 14;\n this.butCancel.Text = \"&Cancel\";\n this.butCancel.Click += new System.EventHandler(this.butCancel_Click);\n //\n // butOK\n //\n this.butOK.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butOK.setAutosize(true);\n this.butOK.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butOK.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butOK.setCornerRadius(4F);\n this.butOK.Location = new System.Drawing.Point(346, 215);\n this.butOK.Name = \"butOK\";\n this.butOK.Size = new System.Drawing.Size(75, 24);\n this.butOK.TabIndex = 3;\n this.butOK.Text = \"&OK\";\n this.butOK.Click += new System.EventHandler(this.butOK_Click);\n //\n // butDelete\n //\n this.butDelete.setAdjustImageLocation(new System.Drawing.Point(0, 0));\n this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\n this.butDelete.setAutosize(true);\n this.butDelete.setBtnShape(OpenDental.UI.enumType.BtnShape.Rectangle);\n this.butDelete.setBtnStyle(OpenDental.UI.enumType.XPStyle.Silver);\n this.butDelete.setCornerRadius(4F);\n this.butDelete.Image = Resources.getdeleteX();\n this.butDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;\n this.butDelete.Location = new System.Drawing.Point(19, 215);\n this.butDelete.Name = \"butDelete\";\n this.butDelete.Size = new System.Drawing.Size(75, 24);\n this.butDelete.TabIndex = 2;\n this.butDelete.Text = \"&Delete\";\n this.butDelete.Click += new System.EventHandler(this.butDelete_Click);\n //\n // FormAllergyEdit\n //\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;\n this.ClientSize = new System.Drawing.Size(514, 251);\n this.Controls.Add(this.butNoneSnomedReaction);\n this.Controls.Add(this.butSnomedReactionSelect);\n this.Controls.Add(this.label2);\n this.Controls.Add(this.textSnomedReaction);\n this.Controls.Add(this.label1);\n this.Controls.Add(this.textDate);\n this.Controls.Add(this.butCancel);\n this.Controls.Add(this.comboAllergies);\n this.Controls.Add(this.labelAllergy);\n this.Controls.Add(this.checkActive);\n this.Controls.Add(this.textReaction);\n this.Controls.Add(this.labelReaction);\n this.Controls.Add(this.butOK);\n this.Controls.Add(this.butDelete);\n this.Name = \"FormAllergyEdit\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.Text = \"Allergy Edit\";\n this.Load += new System.EventHandler(this.FormAllergyEdit_Load);\n this.ResumeLayout(false);\n this.PerformLayout();\n }", "title": "" }, { "docid": "6b364dd594d4256d49ae249ef3a31944", "score": "0.5552542", "text": "private void initialize() {\r\n\t\tthis.setSize(315, 131);\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setModal(true);\r\n\t\tthis.setTitle(\"KI-Einstellungen\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "title": "" }, { "docid": "6c85565d34c6d33ad4fd18b662d0c634", "score": "0.5549659", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel_Show = new javax.swing.JPanel();\n jPanel_Control = new javax.swing.JPanel();\n jButtonOpen = new javax.swing.JButton();\n jCheckBox_wppm = new javax.swing.JCheckBox();\n jCheckBox_wppmZero = new javax.swing.JCheckBox();\n jCheckBox_wvtr = new javax.swing.JCheckBox();\n jCheckBox_flux = new javax.swing.JCheckBox();\n jCheckBox_celltemp = new javax.swing.JCheckBox();\n jCheckBox_ambitemp = new javax.swing.JCheckBox();\n jCheckBox_status = new javax.swing.JCheckBox();\n jFormattedTextField_temp = new javax.swing.JFormattedTextField();\n jCheckBox_fitting = new javax.swing.JCheckBox();\n jCheckBox_fitting2 = new javax.swing.JCheckBox();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n\n org.jdesktop.layout.GroupLayout jPanel_ShowLayout = new org.jdesktop.layout.GroupLayout(jPanel_Show);\n jPanel_Show.setLayout(jPanel_ShowLayout);\n jPanel_ShowLayout.setHorizontalGroup(\n jPanel_ShowLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 884, Short.MAX_VALUE)\n );\n jPanel_ShowLayout.setVerticalGroup(\n jPanel_ShowLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 520, Short.MAX_VALUE)\n );\n\n jPanel_Control.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jButtonOpen.setText(\"绘制\");\n jButtonOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpenActionPerformed(evt);\n }\n });\n\n jCheckBox_wppm.setSelected(true);\n jCheckBox_wppm.setText(\"Wppm\");\n jCheckBox_wppm.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_wppmActionPerformed(evt);\n }\n });\n\n jCheckBox_wppmZero.setSelected(true);\n jCheckBox_wppmZero.setText(\"Wppm-Zero\");\n jCheckBox_wppmZero.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_wppmZeroActionPerformed(evt);\n }\n });\n\n jCheckBox_wvtr.setSelected(true);\n jCheckBox_wvtr.setText(\"wvtr\");\n jCheckBox_wvtr.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_wvtrActionPerformed(evt);\n }\n });\n\n jCheckBox_flux.setSelected(true);\n jCheckBox_flux.setText(\"flux\");\n jCheckBox_flux.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_fluxActionPerformed(evt);\n }\n });\n\n jCheckBox_celltemp.setSelected(true);\n jCheckBox_celltemp.setText(\"cell temp.\");\n jCheckBox_celltemp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_celltempActionPerformed(evt);\n }\n });\n\n jCheckBox_ambitemp.setSelected(true);\n jCheckBox_ambitemp.setText(\"ambi.temp.\");\n jCheckBox_ambitemp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_ambitempActionPerformed(evt);\n }\n });\n\n jCheckBox_status.setSelected(true);\n jCheckBox_status.setText(\"status\");\n jCheckBox_status.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_statusActionPerformed(evt);\n }\n });\n\n jFormattedTextField_temp.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(java.text.NumberFormat.getIntegerInstance())));\n jFormattedTextField_temp.setText(\"30\");\n\n jCheckBox_fitting.setSelected(true);\n jCheckBox_fitting.setText(\"fitting\");\n jCheckBox_fitting.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_fittingActionPerformed(evt);\n }\n });\n\n jCheckBox_fitting2.setSelected(true);\n jCheckBox_fitting2.setText(\"fitting2\");\n jCheckBox_fitting2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox_fitting2ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel_ControlLayout = new org.jdesktop.layout.GroupLayout(jPanel_Control);\n jPanel_Control.setLayout(jPanel_ControlLayout);\n jPanel_ControlLayout.setHorizontalGroup(\n jPanel_ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel_ControlLayout.createSequentialGroup()\n .addContainerGap()\n .add(jButtonOpen)\n .add(18, 18, 18)\n .add(jCheckBox_wppm)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_wppmZero)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_wvtr)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_flux)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_celltemp)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_ambitemp)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_status)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_fitting)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jCheckBox_fitting2)\n .add(29, 29, 29)\n .add(jFormattedTextField_temp, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel_ControlLayout.setVerticalGroup(\n jPanel_ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel_ControlLayout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel_ControlLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButtonOpen)\n .add(jCheckBox_wppm)\n .add(jCheckBox_wppmZero)\n .add(jCheckBox_wvtr)\n .add(jCheckBox_flux)\n .add(jCheckBox_celltemp)\n .add(jCheckBox_ambitemp)\n .add(jCheckBox_status)\n .add(jFormattedTextField_temp, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jCheckBox_fitting)\n .add(jCheckBox_fitting2))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel_Control, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel_Show, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jPanel_Show, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel_Control, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n\n pack();\n }", "title": "" }, { "docid": "1dabf666730b418e02629148b89fa93b", "score": "0.5541094", "text": "public void initAdvControls() {\n for (String k : this.fieldOptionMap.keySet()) {\n if (k.equals(\"--stoplist-file\")) {\n this.advFieldMap.put(k, this.accessor.getStopFileField());\n } else {\n JTextField tempField = new JTextField(this.fieldOptionMap.get(k).getDefaultVal());\n this.advFieldMap.put(k, tempField);\n }\n }\n\n for (String k : this.checkBoxOptionMap.keySet()) {\n JCheckBox tempCheckBox = new JCheckBox(this.checkBoxOptionMap.get(k).getDescription());\n if(this.checkBoxOptionMap.get(k).getDefaultVal()) {\n tempCheckBox.setSelected(true);\n }\n\n this.advCheckBoxMap.put(k, tempCheckBox);\n\n if (k.equals(\"--remove-stopwords\")) {\n this.stopBox = tempCheckBox;\n }\n }\n }", "title": "" }, { "docid": "56ea57542567f64398773136901294d8", "score": "0.55379266", "text": "public void initialize() {\r\n\t\tif(_VBoxCentral==null)\r\n\t\t\tSystem.out.println(\"_VBoxCentral=null\");\r\n\r\n\t\t_checkA1.setSelected(true);\r\n\t\tloaderFXML(fxmlURLAgencementUn);\r\n\t}", "title": "" }, { "docid": "02c47973e5704c1126194ffd5d8bc18e", "score": "0.55371124", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jPanel3 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n jButton4 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton10 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton9 = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem7 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem4 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem5 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem6 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem8 = new javax.swing.JCheckBoxMenuItem();\n jMenu2 = new javax.swing.JMenu();\n jCheckBoxMenuItem10 = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItem11 = new javax.swing.JCheckBoxMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(204, 204, 255));\n jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jPanel1.setPreferredSize(new java.awt.Dimension(1095, 531));\n\n jPanel2.setBackground(new java.awt.Color(204, 204, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jScrollPane1.setBackground(new java.awt.Color(204, 204, 255));\n jScrollPane1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setMaximumSize(new java.awt.Dimension(1024, 940));\n\n jPanel5.setBackground(new java.awt.Color(204, 204, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/numerology.jpg\"))); // NOI18N\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/yreport.jpg\"))); // NOI18N\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/daily.jpg\"))); // NOI18N\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n\n jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/monthly.jpg\"))); // NOI18N\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/cover.jpg\"))); // NOI18N\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/bg.jpg\"))); // NOI18N\n\n jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/professionaleventforcaster/imgs/mcompactible.jpg\"))); // NOI18N\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(93, 93, 93)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(105, 105, 105)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(15, 15, 15)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 118, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))\n .addComponent(jLabel1))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(131, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 445, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(70, Short.MAX_VALUE))\n );\n\n jScrollPane1.setViewportView(jPanel3);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1095, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 483, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(20, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jMenuBar1.setBackground(new java.awt.Color(255, 255, 255));\n jMenuBar1.setForeground(new java.awt.Color(102, 102, 102));\n jMenuBar1.setFont(new java.awt.Font(\"Shonar Bangla\", 1, 18)); // NOI18N\n jMenuBar1.setPreferredSize(new java.awt.Dimension(56, 36));\n\n jMenu1.setForeground(new java.awt.Color(102, 102, 102));\n jMenu1.setText(\"File\");\n jMenu1.setFont(new java.awt.Font(\"Segoe UI Emoji\", 1, 14)); // NOI18N\n\n jCheckBoxMenuItem2.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem2.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem2.setText(\"Create New Report\");\n jCheckBoxMenuItem2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem2.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem2.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem2.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem2);\n\n jCheckBoxMenuItem7.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem7.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem7.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem7.setText(\"Close\");\n jCheckBoxMenuItem7.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem7.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem7.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem7.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem7ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem7);\n\n jCheckBoxMenuItem4.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem4.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem4.setText(\"Print\");\n jCheckBoxMenuItem4.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem4.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem4.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem4.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem4ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem4);\n\n jCheckBoxMenuItem5.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem5.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem5.setText(\"Copy\");\n jCheckBoxMenuItem5.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem5.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem5.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem5.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem5ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem5);\n\n jCheckBoxMenuItem6.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem6.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem6.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem6.setText(\"Select\");\n jCheckBoxMenuItem6.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem6.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem6.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem6.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem6ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem6);\n\n jCheckBoxMenuItem8.setBackground(new java.awt.Color(255, 255, 255));\n jCheckBoxMenuItem8.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem8.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem8.setText(\"Exit\");\n jCheckBoxMenuItem8.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, java.awt.Color.darkGray, java.awt.Color.white, java.awt.Color.white, java.awt.Color.darkGray));\n jCheckBoxMenuItem8.setMargin(new java.awt.Insets(1, 1, 1, 1));\n jCheckBoxMenuItem8.setMinimumSize(new java.awt.Dimension(1, 1));\n jCheckBoxMenuItem8.setPreferredSize(new java.awt.Dimension(209, 30));\n jCheckBoxMenuItem8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem8ActionPerformed(evt);\n }\n });\n jMenu1.add(jCheckBoxMenuItem8);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setForeground(new java.awt.Color(102, 102, 102));\n jMenu2.setText(\"Edit\");\n jMenu2.setFont(new java.awt.Font(\"Segoe UI Emoji\", 1, 14)); // NOI18N\n\n jCheckBoxMenuItem10.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem10.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem10.setText(\"Print All\");\n jCheckBoxMenuItem10.setPreferredSize(new java.awt.Dimension(179, 30));\n jCheckBoxMenuItem10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem10ActionPerformed(evt);\n }\n });\n jMenu2.add(jCheckBoxMenuItem10);\n\n jCheckBoxMenuItem11.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jCheckBoxMenuItem11.setForeground(new java.awt.Color(102, 102, 102));\n jCheckBoxMenuItem11.setText(\" Copy All\");\n jCheckBoxMenuItem11.setPreferredSize(new java.awt.Dimension(179, 30));\n jCheckBoxMenuItem11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItem11ActionPerformed(evt);\n }\n });\n jMenu2.add(jCheckBoxMenuItem11);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setForeground(new java.awt.Color(102, 102, 102));\n jMenu3.setText(\"About Us\");\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setText(\"Read Me\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem1);\n\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1184, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 537, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "2b1096f10607eea0a7c64a1feadeb871", "score": "0.5529355", "text": "public cros() {\n initComponents();\n }", "title": "" }, { "docid": "a090a87a209e8e599928d0abb1261a62", "score": "0.5528305", "text": "private JCheckBox getJCheckBoxTopoMedian() {\r\n\t\tif (jCheckBoxTopoMedian == null) {\r\n\t\t\tjCheckBoxTopoMedian = new JCheckBox(\"Median Filter\");\r\n\t\t}\r\n\t\treturn jCheckBoxTopoMedian;\r\n\t}", "title": "" }, { "docid": "2c6b52487e714e0c70c3299045002d8b", "score": "0.5523802", "text": "@FXML\n\tprivate void initialize()\n\t{\n\t\tmainSim=new ConfigCreatorSim();//Create a new sim for the config creator\n\t\t\n\t\t//Get all the possible objects that can be used in config creation\n\t\tFile dir = new File(\"objects\");\n \tFile[] files= dir.listFiles(\n \tnew FilenameFilter() \n \t{ \n \t\tpublic boolean accept(File dir, String filename)\n \t { \n \t\t\treturn filename.endsWith(\".obj\"); \n \t }\n \t});\n \tArrayList<String> filenames = new ArrayList<String>();\n \tfor(int i=0; i<files.length; i++)\n \t{\n \t\tfilenames.add(files[i].getName());\n \t}\n \tpossibleObjects=filenames;\n \t//Remove all the low poly objects as they are just used for physics\n \tint k=0;\n \twhile(k<possibleObjects.size())\n \t{\n \t\tif(possibleObjects.get(k).substring(0,7).matches(\"lowPoly\"))\n \t\t{\n \t\t\tpossibleObjects.remove(k);\n \t\t\tk--;\n \t\t}\n \t\tk++;\t\n \t}\n \t//Add the possible objects to the add object box\n \tfor(int i=0;i<possibleObjects.size();i++)\n \t{\n \t\t\taddObjectBox.getItems().add(possibleObjects.get(i));\n \t}\n \t//Pre load the objects\n \tpreLoadPossibleObjects();\n \t//Setup the actions for the various buttons and menus\n\t\tsetActions();\n\t\topenTestWindow();\n\t\t\n\t}", "title": "" }, { "docid": "0d872f5613ee6a966fa6b9186ff00088", "score": "0.5515462", "text": "protected void initialize() {\n this.setVisible(true);\n }", "title": "" }, { "docid": "ec0bb7ff58308f27e4f25b481de07b3c", "score": "0.55137944", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n stateGroupMenu = new javax.swing.ButtonGroup();\n stateGroupButtons = new javax.swing.ButtonGroup();\n viewEdgeLabelGroup = new javax.swing.ButtonGroup();\n viewNodeLabelGroup = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jToolBar2 = new javax.swing.JToolBar();\n newFreeButton = new javax.swing.JButton();\n newMazeButton = new javax.swing.JButton();\n openButton = new javax.swing.JButton();\n saveButton = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n pickStateButton = new javax.swing.JToggleButton();\n editStateButton = new javax.swing.JToggleButton();\n zoomStateButton = new javax.swing.JToggleButton();\n cardPanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n fileMenu = new javax.swing.JMenu();\n newFreeMenu = new javax.swing.JMenuItem();\n newMazeMenu = new javax.swing.JMenuItem();\n openMenu = new javax.swing.JMenuItem();\n saveMenu = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n exitMenu = new javax.swing.JMenuItem();\n viewMenu = new javax.swing.JMenu();\n jMenu2 = new javax.swing.JMenu();\n viewNodeLabel = new javax.swing.JCheckBoxMenuItem();\n viewNodeHeuritic = new javax.swing.JCheckBoxMenuItem();\n viewNodeLabelAndHeuritic = new javax.swing.JCheckBoxMenuItem();\n viewNodeNone = new javax.swing.JCheckBoxMenuItem();\n jMenu1 = new javax.swing.JMenu();\n viewEdgeOperator = new javax.swing.JCheckBoxMenuItem();\n viewEdgeWeight = new javax.swing.JCheckBoxMenuItem();\n viewEdgeNone = new javax.swing.JCheckBoxMenuItem();\n stateMenu = new javax.swing.JMenu();\n pickStateMenu = new javax.swing.JCheckBoxMenuItem();\n editStateMenu = new javax.swing.JCheckBoxMenuItem();\n zoomStateMenu = new javax.swing.JCheckBoxMenuItem();\n paramMenu = new javax.swing.JMenu();\n operatorsMenus = new javax.swing.JMenuItem();\n algorithmMenu = new javax.swing.JMenu();\n dfsMenu = new javax.swing.JMenuItem();\n bfsMenu = new javax.swing.JMenuItem();\n greedyMenu = new javax.swing.JMenuItem();\n astarMenu = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Graphix\");\n\n jToolBar2.setFloatable(false);\n jToolBar2.setRollover(true);\n\n newFreeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/new24.png\"))); // NOI18N\n newFreeButton.setToolTipText(\"Νέος κενός χώρος αναζήτησης\");\n newFreeButton.setFocusable(false);\n newFreeButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n newFreeButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n newFreeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newFreeButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(newFreeButton);\n\n newMazeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/newmaze24.png\"))); // NOI18N\n newMazeButton.setToolTipText(\"Νέος χώρος αναζήτησης από λαβύρινθο\");\n newMazeButton.setFocusable(false);\n newMazeButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n newMazeButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n newMazeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newMazeButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(newMazeButton);\n\n openButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/open.png\"))); // NOI18N\n openButton.setToolTipText(\"Άνοιγμα\");\n openButton.setFocusable(false);\n openButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n openButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n openButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(openButton);\n\n saveButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/save.png\"))); // NOI18N\n saveButton.setToolTipText(\"Αποθήκευση\");\n saveButton.setFocusable(false);\n saveButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n saveButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n saveButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(saveButton);\n jToolBar2.add(jSeparator2);\n\n stateGroupButtons.add(pickStateButton);\n pickStateButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/pick24.png\"))); // NOI18N\n pickStateButton.setToolTipText(\"Επιλογή\");\n pickStateButton.setFocusable(false);\n pickStateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n pickStateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n pickStateButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pickStateButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(pickStateButton);\n\n stateGroupButtons.add(editStateButton);\n editStateButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/edit24.png\"))); // NOI18N\n editStateButton.setSelected(true);\n editStateButton.setToolTipText(\"Εισαγωγή κόμβων/ακμών\");\n editStateButton.setFocusable(false);\n editStateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n editStateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n editStateButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editStateButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(editStateButton);\n\n stateGroupButtons.add(zoomStateButton);\n zoomStateButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/move24.png\"))); // NOI18N\n zoomStateButton.setToolTipText(\"Zoom\");\n zoomStateButton.setFocusable(false);\n zoomStateButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n zoomStateButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n zoomStateButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n zoomStateButtonActionPerformed(evt);\n }\n });\n jToolBar2.add(zoomStateButton);\n\n cardPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n cardPanel.setLayout(new java.awt.CardLayout());\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"© ΕΑΠ 2016 - ΠΛΗ31 - ΤΣΑΚΙΡΙΔΗΣ ΣΩΤΗΡΗΣ (sotiris@serres.gr)\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 678, Short.MAX_VALUE)\n .addContainerGap())\n .addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cardPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n fileMenu.setText(\"Αρχείο\");\n\n newFreeMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/new24.png\"))); // NOI18N\n newFreeMenu.setText(\"Δημιουργία κενού χώρου αναζήτησης\");\n newFreeMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newFreeMenuActionPerformed(evt);\n }\n });\n fileMenu.add(newFreeMenu);\n\n newMazeMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/newmaze24.png\"))); // NOI18N\n newMazeMenu.setText(\"Δημιουργία από λαβύρινθο\");\n newMazeMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newMazeMenuActionPerformed(evt);\n }\n });\n fileMenu.add(newMazeMenu);\n\n openMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/open.png\"))); // NOI18N\n openMenu.setText(\"Άνοιγμα χώρου αναζήτησης\");\n openMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openMenuActionPerformed(evt);\n }\n });\n fileMenu.add(openMenu);\n\n saveMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/save.png\"))); // NOI18N\n saveMenu.setText(\"Αποθήκευση χώρου αναζήτησης\");\n saveMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveMenuActionPerformed(evt);\n }\n });\n fileMenu.add(saveMenu);\n fileMenu.add(jSeparator1);\n\n exitMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/exit.png\"))); // NOI18N\n exitMenu.setText(\"Έξοδος\");\n exitMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitMenuActionPerformed(evt);\n }\n });\n fileMenu.add(exitMenu);\n\n jMenuBar1.add(fileMenu);\n\n viewMenu.setText(\"Προβολή\");\n\n jMenu2.setText(\"Ετικέτες κόμβων\");\n\n viewNodeLabelGroup.add(viewNodeLabel);\n viewNodeLabel.setSelected(true);\n viewNodeLabel.setText(\"Ονομασία κόμβου\");\n viewNodeLabel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewNodeLabelActionPerformed(evt);\n }\n });\n jMenu2.add(viewNodeLabel);\n\n viewNodeLabelGroup.add(viewNodeHeuritic);\n viewNodeHeuritic.setText(\"Τιμή ευρετικού\");\n viewNodeHeuritic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewNodeHeuriticActionPerformed(evt);\n }\n });\n jMenu2.add(viewNodeHeuritic);\n\n viewNodeLabelGroup.add(viewNodeLabelAndHeuritic);\n viewNodeLabelAndHeuritic.setText(\"Όνομα και τιμή ευρετικού\");\n viewNodeLabelAndHeuritic.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewNodeLabelAndHeuriticActionPerformed(evt);\n }\n });\n jMenu2.add(viewNodeLabelAndHeuritic);\n\n viewNodeLabelGroup.add(viewNodeNone);\n viewNodeNone.setText(\"Καμμία\");\n viewNodeNone.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewNodeNoneActionPerformed(evt);\n }\n });\n jMenu2.add(viewNodeNone);\n\n viewMenu.add(jMenu2);\n\n jMenu1.setText(\"Ετικέτες ακμών\");\n\n viewEdgeLabelGroup.add(viewEdgeOperator);\n viewEdgeOperator.setText(\"Τελεστής δράσης\");\n viewEdgeOperator.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewEdgeOperatorActionPerformed(evt);\n }\n });\n jMenu1.add(viewEdgeOperator);\n\n viewEdgeLabelGroup.add(viewEdgeWeight);\n viewEdgeWeight.setText(\"Βάρος ακμής\");\n viewEdgeWeight.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewEdgeWeightActionPerformed(evt);\n }\n });\n jMenu1.add(viewEdgeWeight);\n\n viewEdgeLabelGroup.add(viewEdgeNone);\n viewEdgeNone.setSelected(true);\n viewEdgeNone.setText(\"Καμμία\");\n viewEdgeNone.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewEdgeNoneActionPerformed(evt);\n }\n });\n jMenu1.add(viewEdgeNone);\n\n viewMenu.add(jMenu1);\n\n jMenuBar1.add(viewMenu);\n\n stateMenu.setText(\"Κατάσταση\");\n\n stateGroupMenu.add(pickStateMenu);\n pickStateMenu.setText(\"Επιλογή\");\n pickStateMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pickStateMenuActionPerformed(evt);\n }\n });\n stateMenu.add(pickStateMenu);\n\n stateGroupMenu.add(editStateMenu);\n editStateMenu.setSelected(true);\n editStateMenu.setText(\"Σχεδίαση\");\n editStateMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editStateMenuActionPerformed(evt);\n }\n });\n stateMenu.add(editStateMenu);\n\n stateGroupMenu.add(zoomStateMenu);\n zoomStateMenu.setText(\"Μετακίνηση/Ζουμ\");\n zoomStateMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n zoomStateMenuActionPerformed(evt);\n }\n });\n stateMenu.add(zoomStateMenu);\n\n jMenuBar1.add(stateMenu);\n\n paramMenu.setText(\"Παράμετροι\");\n\n operatorsMenus.setText(\"Τελεστές δράσης...\");\n operatorsMenus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n operatorsMenusActionPerformed(evt);\n }\n });\n paramMenu.add(operatorsMenus);\n\n jMenuBar1.add(paramMenu);\n\n algorithmMenu.setText(\"Αλγόριθμοι\");\n\n dfsMenu.setText(\"Αναζήτηση κατά βάθος (DFS)\");\n dfsMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dfsMenuActionPerformed(evt);\n }\n });\n algorithmMenu.add(dfsMenu);\n\n bfsMenu.setText(\"Αναζήτηση κατά πλάτος (BFS)\");\n bfsMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bfsMenuActionPerformed(evt);\n }\n });\n algorithmMenu.add(bfsMenu);\n\n greedyMenu.setText(\"Άπληστη αναζήτηση\");\n greedyMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n greedyMenuActionPerformed(evt);\n }\n });\n algorithmMenu.add(greedyMenu);\n\n astarMenu.setText(\"Αναζήτηση Α*\");\n astarMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n astarMenuActionPerformed(evt);\n }\n });\n algorithmMenu.add(astarMenu);\n\n jMenuBar1.add(algorithmMenu);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "47e53d90010c40a11e8cf2d5b9232863", "score": "0.55079025", "text": "private void initialize() {\r\n\t\tthis.setBounds(100, 100, 345, 300);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setSize(400,442);\r\n\t\tthis.setContentPane(getCreatePanel());\r\n\t\t\r\n\t\tbtnOk = new JButton(\"ok\");\r\n\t\tbtnOk.setBounds(165, 300, 89, 23);\r\n\t\tpanel.add(btnOk);\r\n\t\t\r\n panel.add(getLblwarningMessage());\r\n panel.add(getwarningIcon());\r\n\t\t\r\n\t\tbtnCancel = new JButton(\"cancel\");\r\n\t\tbtnCancel.setBounds(68, 300, 89, 23);\r\n\t\tpanel.add(btnCancel);\r\n\t\tsetJtree();\r\n\t\tpanel.add(tree);\r\n\t\t\r\n\t\tlabel = new JLabel();\r\n\t\tlabel.setIcon(new ImageIcon(createNewFolderGUI.class.getResource(\"/view/long.jpg\")));\r\n\t\tlabel.setBounds(0, 0, 384, 403);\r\n\t\tpanel.add(label);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "775ae74f6cbd7f7ab800a78af401a482", "score": "0.55072325", "text": "@SuppressWarnings(\"unchecked\")\n\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jCheckBox5 = new javax.swing.JCheckBox();\n jCheckBox6 = new javax.swing.JCheckBox();\n jCheckBox7 = new javax.swing.JCheckBox();\n jCheckBox8 = new javax.swing.JCheckBox();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jToggleButton1 = new javax.swing.JToggleButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 204, 0));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"BENTO, SA\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Muna\", 1, 18), new java.awt.Color(255, 0, 0))); // NOI18N\n jPanel1.setToolTipText(\"\");\n\n jLabel1.setText(\"Nome\");\n\n jLabel7.setFont(new java.awt.Font(\"Muna\", 1, 14)); // NOI18N\n jLabel7.setText(\"Visitante para \");\n\n jLabel2.setFont(new java.awt.Font(\"Muna\", 1, 24)); // NOI18N\n jLabel2.setText(\"FrontDesk\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 519, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(254, 254, 254)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(82, 82, 82))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 204, 0));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"DESCRIÇÃO\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Muna\", 1, 12))); // NOI18N\n\n jCheckBox1.setText(\"Telefonou\");\n jCheckBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox1ActionPerformed(evt);\n }\n });\n\n jCheckBox2.setText(\"Veio cá\");\n\n jCheckBox3.setText(\"Volta a Telefonar\");\n jCheckBox3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox3ActionPerformed(evt);\n }\n });\n\n jCheckBox4.setText(\"Volta cá\");\n jCheckBox4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox4ActionPerformed(evt);\n }\n });\n\n jCheckBox5.setText(\"Deseja falar-lhe\");\n jCheckBox5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox5ActionPerformed(evt);\n }\n });\n\n jCheckBox6.setText(\"Pede para Telefonar\");\n jCheckBox6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBox6ActionPerformed(evt);\n }\n });\n\n jCheckBox7.setText(\"Deseja vê-lo\");\n\n jCheckBox8.setText(\"URGENTE\");\n\n jLabel5.setFont(new java.awt.Font(\"Muna\", 1, 14)); // NOI18N\n jLabel5.setText(\"Visitante:\");\n\n jLabel6.setText(\"Mensagem: \");\n\n jLabel8.setText(\"Nome:\");\n\n jLabel9.setText(\"Apelido\");\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton2.setBackground(new java.awt.Color(0, 0, 0));\n jButton2.setFont(new java.awt.Font(\"Muna\", 1, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(204, 0, 0));\n jButton2.setText(\"ENVIAR\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setBackground(new java.awt.Color(0, 0, 0));\n jButton1.setForeground(new java.awt.Color(255, 0, 0));\n jButton1.setText(\"Sair\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jToggleButton1.setText(\"Limpar\");\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE)\n .addComponent(jTextField5))\n .addGap(569, 569, 569))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addComponent(jCheckBox2))\n .addGap(275, 275, 275)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox4)\n .addComponent(jCheckBox3)))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addComponent(jCheckBox7)\n .addGap(258, 258, 258)\n .addComponent(jCheckBox8))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 365, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(jToggleButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jCheckBox5)\n .addGap(237, 237, 237)\n .addComponent(jCheckBox6)))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(0, 17, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox3, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox2, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox6, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBox7)\n .addComponent(jCheckBox8))\n .addGap(18, 18, 18)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(23, 23, 23))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jToggleButton1)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 708, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(554, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(111, 111, 111))\n );\n\n pack();\n }", "title": "" }, { "docid": "c20cd59b9eda0ac3dcb14001b559ee7c", "score": "0.5507117", "text": "private void initialize() {\r\n\t\tthis.setSize(800, 273);\r\n\t\tthis.setLocationRelativeTo(getParent());\r\n\t\tthis.setTitle(\"Traitement des duplicatas\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setVisible(true);\r\n\t}", "title": "" }, { "docid": "d2863c5ce363c22c0f671de4c39cd217", "score": "0.55064595", "text": "private void preInit() {\n\n // KeyNamePair[] trees = DB.getKeyNamePairs(MRole.getDefault().addAccessSQL(\n // \"SELECT AD_Tree_ID, Name FROM AD_Tree WHERE TreeType NOT IN ('BB','PC') ORDER BY 2\",\n // \"AD_Tree\", MRole.SQL_NOTQUALIFIED, MRole.SQL_RW), false);\n // treeField = new CComboBox(trees);\n MLookup\tm_fieldProduct\t= MLookupFactory.get(Env.getCtx(), m_WindowNo, 0, 3668, DisplayType.Search);\n\n fieldProduct\t= new VLookup(\"M_Product_ID\", false, false, true, m_fieldProduct);\n\n // fieldProduct.addVetoableChangeListener(this);\n fieldProduct.addActionListener(this);\n loadTableBOM();\n splitPane.add(new JScrollPane(dataPane), JSplitPane.RIGHT);\n dataPane.getViewport().add(tableBOM, null);\n\n DefaultMutableTreeNode\tparent\t= new DefaultMutableTreeNode(Msg.translate(Env.getCtx(), \"BOM\"));\n\n m_tree\t= new JTree(parent);\n splitPane.add(m_tree, JSplitPane.LEFT);\n\n // treeField.addActionListener(this);\n\n //\n // centerTree = new VTreePanel (m_WindowNo, false, true);\n // centerTree.addPropertyChangeListener(VTreePanel.NODE_SELECTION, this);\n }", "title": "" }, { "docid": "29d19b0a6c351f7990695acedf897a52", "score": "0.55027956", "text": "public void set_select_init() {\r\n\t\tfor (chapter = 0; chapter < 3; chapter++) {\r\n\t\t\tfor (sub = 0; sub < 2; sub++) {\r\n\t\t\t\tfor (q = 0; q < 3; q++) {\r\n\t\t\t\t\tfor (a = 0; a < 3; a++) {\r\n\t\t\t\t\t\tJCheckBox im = new JCheckBox();\r\n\r\n\t\t\t\t\t\tim.setSelected(false);\r\n\t\t\t\t\t\tim.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\t\t\t\t\tim.setIcon(quiz_black[chapter][sub][q][a]); // black-tone image\r\n\t\t\t\t\t\tim.setSelectedIcon(quiz_red[chapter][sub][q][a]); // red-tone image\r\n\t\t\t\t\t\tim.setText(String.valueOf(TorF[chapter][sub][q][a]));\r\n\t\t\t\t\t\tim.setForeground(bs_elem.get_content_panel_Color());\r\n\t\t\t\t\t\tthis.select[chapter][sub][q][a] = im;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7e3c3c42b54dc74e21559fd2ffaa7747", "score": "0.5499645", "text": "public CHECKIN() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "1c620dca4bc425a6da58cf6cc991c2e1", "score": "0.5496653", "text": "public void init() {\n super.init();\n\n setDefaultInputNodes(0);\n setMinimumInputNodes(0);\n setMaximumInputNodes(0);\n\n setDefaultOutputNodes(1);\n setMinimumOutputNodes(0);\n setMaximumOutputNodes(Integer.MAX_VALUE);\n\n myWindow = new TwoDWindow();\n myWindow.setObject(this);\n }", "title": "" }, { "docid": "d5617b7c093e1282d7d6e246c8250cf3", "score": "0.5494799", "text": "private void initialize() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 956, 628);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tdesktopPane = new JDesktopPane();\r\n\t\tframe.getContentPane().add(desktopPane, BorderLayout.CENTER);\r\n\t\tdesktopPane.setDragMode(desktopPane.OUTLINE_DRAG_MODE);\r\n\t\t\r\n\t\tOrderPanel orderPanel = new OrderPanel();\r\n\t\torderPanel.setBounds(10, 28, 600, 305);\r\n\t\tdesktopPane.add(orderPanel);\r\n\t\t\r\n\t\tSystem.err.println(orderPanel.getLocation());\r\n\t\tdesktopPane.setVisible(true);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6f559eac30738b648f44d8e03e70615d", "score": "0.5493556", "text": "private void initialize() {\n this.setTitle(\"请选择公司\");\n this.setContentPane(getUIPanel());\n this.setSize(491, 299);\n\t\tinitCorp();\n\t}", "title": "" }, { "docid": "4cdcc69e9796004b10b62fa30c6ae221", "score": "0.5485982", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n zaporka = new javax.swing.JPasswordField();\n jLabel4 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n zaporkaPonovno = new javax.swing.JPasswordField();\n naziv = new javax.swing.JTextField();\n naziv1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n checkPromjenaZaporke = new javax.swing.JCheckBox();\n jPanel1 = new javax.swing.JPanel();\n cmdSpremi = new javax.swing.JButton();\n cmdZatvori = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(Acosoft.Processing.Pro3App.class).getContext().getResourceMap(IzmjenaOperatera.class);\n setTitle(resourceMap.getString(\"izmjena-operatera.title\")); // NOI18N\n setMinimumSize(new java.awt.Dimension(600, 300));\n setName(\"izmjena-operatera\"); // NOI18N\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 5, 0, 1));\n jPanel2.setMinimumSize(new java.awt.Dimension(500, 200));\n jPanel2.setName(\"jPanel2\"); // NOI18N\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString(\"jPanel3.border.title\"))); // NOI18N\n jPanel3.setName(\"jPanel3\"); // NOI18N\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanel6.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 15, 10, 10));\n jPanel6.setName(\"jPanel6\"); // NOI18N\n jPanel6.setLayout(new java.awt.GridBagLayout());\n\n zaporka.setMargin(new java.awt.Insets(2, 2, 2, 2));\n zaporka.setName(\"zaporka\"); // NOI18N\n zaporka.setNextFocusableComponent(zaporkaPonovno);\n\n org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, checkPromjenaZaporke, org.jdesktop.beansbinding.ELProperty.create(\"${selected}\"), zaporka, org.jdesktop.beansbinding.BeanProperty.create(\"editable\"));\n bindingGroup.addBinding(binding);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.ipadx = 250;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 15, 0, 0);\n jPanel6.add(zaporka, gridBagConstraints);\n\n jLabel4.setText(resourceMap.getString(\"jLabel4.text\")); // NOI18N\n jLabel4.setName(\"jLabel4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.ABOVE_BASELINE_LEADING;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);\n jPanel6.add(jLabel4, gridBagConstraints);\n\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.ABOVE_BASELINE_LEADING;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);\n jPanel6.add(jLabel2, gridBagConstraints);\n\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.ABOVE_BASELINE_LEADING;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);\n jPanel6.add(jLabel3, gridBagConstraints);\n\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.ABOVE_BASELINE_LEADING;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);\n jPanel6.add(jLabel1, gridBagConstraints);\n\n zaporkaPonovno.setText(resourceMap.getString(\"zaporkaPonovno.text\")); // NOI18N\n zaporkaPonovno.setMargin(new java.awt.Insets(2, 2, 2, 2));\n zaporkaPonovno.setName(\"zaporkaPonovno\"); // NOI18N\n zaporkaPonovno.setNextFocusableComponent(cmdSpremi);\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, checkPromjenaZaporke, org.jdesktop.beansbinding.ELProperty.create(\"${selected}\"), zaporkaPonovno, org.jdesktop.beansbinding.BeanProperty.create(\"editable\"));\n bindingGroup.addBinding(binding);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.ipadx = 250;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 15, 0, 0);\n jPanel6.add(zaporkaPonovno, gridBagConstraints);\n\n naziv.setMargin(new java.awt.Insets(2, 2, 2, 2));\n naziv.setName(\"naziv\"); // NOI18N\n naziv.setNextFocusableComponent(naziv1);\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${operater.name}\"), naziv, org.jdesktop.beansbinding.BeanProperty.create(\"text\"), \"naziv\"); // NOI18N\n bindingGroup.addBinding(binding);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.ipadx = 250;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 15, 0, 0);\n jPanel6.add(naziv, gridBagConstraints);\n\n naziv1.setMargin(new java.awt.Insets(2, 2, 2, 2));\n naziv1.setName(\"naziv1\"); // NOI18N\n naziv1.setNextFocusableComponent(checkPromjenaZaporke);\n\n binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create(\"${operater.oib}\"), naziv1, org.jdesktop.beansbinding.BeanProperty.create(\"text\"), \"oib\");\n bindingGroup.addBinding(binding);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.ipadx = 250;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 15, 0, 0);\n jPanel6.add(naziv1, gridBagConstraints);\n\n jPanel3.add(jPanel6, java.awt.BorderLayout.PAGE_START);\n\n jPanel2.add(jPanel3, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);\n\n jPanel4.setName(\"jPanel4\"); // NOI18N\n jPanel4.setLayout(new java.awt.BorderLayout());\n\n jPanel5.setName(\"jPanel5\"); // NOI18N\n\n checkPromjenaZaporke.setText(resourceMap.getString(\"text\")); // NOI18N\n checkPromjenaZaporke.setMargin(new java.awt.Insets(3, 5, 3, 5));\n checkPromjenaZaporke.setName(\"\"); // NOI18N\n checkPromjenaZaporke.setNextFocusableComponent(zaporka);\n jPanel5.add(checkPromjenaZaporke);\n\n jPanel4.add(jPanel5, java.awt.BorderLayout.LINE_START);\n\n jPanel1.setName(\"jPanel1\"); // NOI18N\n jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(Acosoft.Processing.Pro3App.class).getContext().getActionMap(IzmjenaOperatera.class, this);\n cmdSpremi.setAction(actionMap.get(\"Spremi\")); // NOI18N\n cmdSpremi.setText(resourceMap.getString(\"cmdSpremi.text\")); // NOI18N\n cmdSpremi.setName(\"cmdSpremi\"); // NOI18N\n cmdSpremi.setNextFocusableComponent(cmdZatvori);\n cmdSpremi.setPreferredSize(new java.awt.Dimension(90, 30));\n jPanel1.add(cmdSpremi);\n\n cmdZatvori.setAction(actionMap.get(\"Zatvori\")); // NOI18N\n cmdZatvori.setText(resourceMap.getString(\"cmdZatvori.text\")); // NOI18N\n cmdZatvori.setName(\"cmdZatvori\"); // NOI18N\n cmdZatvori.setNextFocusableComponent(naziv);\n cmdZatvori.setPreferredSize(new java.awt.Dimension(90, 30));\n jPanel1.add(cmdZatvori);\n\n jPanel4.add(jPanel1, java.awt.BorderLayout.LINE_END);\n\n getContentPane().add(jPanel4, java.awt.BorderLayout.PAGE_END);\n\n bindingGroup.bind();\n\n pack();\n }", "title": "" }, { "docid": "4f1ef126ab1ceee56ca5ac5aaeda42a6", "score": "0.5476484", "text": "private void initialize() {\n\t\t\n\t\tinitFrame();\n\t\tinitButtonFile1();\n\t\tinitButtonFile2();\n\t\tinitButtonResult();\n\t\tinitButtonCompare();\n\t\tinitCheckBoxOpen();\n\n\t}", "title": "" }, { "docid": "336045162bb532f325aaedf5dac3398d", "score": "0.54764485", "text": "private JCheckBox getJCheckBoxFoco() {\r\n\t\tif (jCheckBoxFoco == null) {\r\n\t\t\tjCheckBoxFoco = new JCheckBox();\r\n\t\t\tjCheckBoxFoco.setBounds(new Rectangle(40, 101, 76, 36));\r\n\t\t\tjCheckBoxFoco.setText(\"Foco\");\r\n\t\t\tjCheckBoxFoco.setBackground(new Color(204, 255, 204));\r\n\t\t}\r\n\t\treturn jCheckBoxFoco;\r\n\t}", "title": "" }, { "docid": "038b13d272916755aa27dfd138eaebe3", "score": "0.5468397", "text": "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents()\r\n {\r\n\r\n dialogPanel1 = new scri.commons.gui.matisse.DialogPanel();\r\n bOK = new javax.swing.JButton();\r\n bCancel = new javax.swing.JButton();\r\n p2Label = new javax.swing.JLabel();\r\n p1Label = new javax.swing.JLabel();\r\n p1Combo = new javax.swing.JComboBox<>();\r\n p2Combo = new javax.swing.JComboBox<>();\r\n parentsOnly = new javax.swing.JCheckBox();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\r\n bOK.setText(\"OK\");\r\n dialogPanel1.add(bOK);\r\n\r\n bCancel.setText(\"Cancel\");\r\n dialogPanel1.add(bCancel);\r\n\r\n p2Label.setText(\"Select 2nd parent line:\");\r\n p2Label.setToolTipText(\"\");\r\n\r\n p1Label.setText(\"Select 1st parent line:\");\r\n p1Label.setToolTipText(\"\");\r\n\r\n parentsOnly.setText(\"Only list known parental lines (using any imported pedigree information)\");\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(dialogPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(parentsOnly)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(p1Label)\r\n .addComponent(p2Label))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(p2Combo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(p1Combo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(p1Label)\r\n .addComponent(p1Combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(p2Label)\r\n .addComponent(p2Combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addComponent(parentsOnly)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(dialogPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n );\r\n\r\n pack();\r\n }", "title": "" } ]
b8f054e40ed9ac67ea4d2422bec3eb46
Returns the result of interpreting the object as an instance of 'Simple Type'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "af8d115bc80e2c1bc921fcf88c3732d7", "score": "0.69438696", "text": "public T caseSimpleType(SimpleType object) {\n return null;\n }", "title": "" } ]
[ { "docid": "e9dc273317cabfd1c2f1fa4a08bf7680", "score": "0.74333024", "text": "public SimpleType getSimpleType();", "title": "" }, { "docid": "ae00db699cbc4b0a28a65625235e7fd4", "score": "0.70093125", "text": "public T caseSimpleType(SimpleType object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "046c07da1d74dc0ffd3b90798c922a0f", "score": "0.6654899", "text": "public Object caseBasicType(BasicType object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ddad38a2e9f8d6d06502b7e49d7ecec4", "score": "0.65715456", "text": "public T caseType(Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ddad38a2e9f8d6d06502b7e49d7ecec4", "score": "0.65715456", "text": "public T caseType(Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ddad38a2e9f8d6d06502b7e49d7ecec4", "score": "0.65715456", "text": "public T caseType(Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d85fa004c1969eccded6106448100232", "score": "0.65505755", "text": "public T caseSimpleRestrictionType(SimpleRestrictionType object) {\n return null;\n }", "title": "" }, { "docid": "a68c558d5be177a50d86c68fad5c00a8", "score": "0.65098196", "text": "public T caseSimpleContentType(SimpleContentType object) {\n return null;\n }", "title": "" }, { "docid": "462f5928411a57ee9e4738299388f275", "score": "0.6483422", "text": "public Object caseType(Type object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e1e21689bf6bf02c9c0195471d04ace8", "score": "0.64811933", "text": "public T caseType(Type object)\n {\n return null;\n }", "title": "" }, { "docid": "e1e21689bf6bf02c9c0195471d04ace8", "score": "0.64811933", "text": "public T caseType(Type object)\n {\n return null;\n }", "title": "" }, { "docid": "b94a409bc2ac08b79c7e449a9c7081af", "score": "0.6455921", "text": "public T caseSimpleExtensionType(SimpleExtensionType object) {\n return null;\n }", "title": "" }, { "docid": "a09fcb80d520b97eb76daef5394bf2ad", "score": "0.64485276", "text": "public T caseType(Type object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "a09fcb80d520b97eb76daef5394bf2ad", "score": "0.64485276", "text": "public T caseType(Type object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "f86375e6496a6c0cdf623666c688a8fb", "score": "0.6435665", "text": "public T caseLocalSimpleType(LocalSimpleType object) {\n return null;\n }", "title": "" }, { "docid": "585dbf0c47ef898b7c0abb67f9a28b25", "score": "0.64242053", "text": "public T caseSimpleField(SimpleField object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5f981ef7de210efc9bb7aa738783f11b", "score": "0.641791", "text": "public T caseTopLevelSimpleType(TopLevelSimpleType object) {\n return null;\n }", "title": "" }, { "docid": "631daecba2b3b213817fea8e05dc8825", "score": "0.62265015", "text": "ObjectType getType();", "title": "" }, { "docid": "83feaec69b074d73b1bb14b4ac3debfd", "score": "0.617106", "text": "public T caseTypePart(TypePart object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "c81473895866a0f20a9327ec87d2ebda", "score": "0.6167909", "text": "String getReturnedType();", "title": "" }, { "docid": "454b643e5d1dde4fc5ba00ddcc3c7fa9", "score": "0.6116948", "text": "public String getType() {\r\n\t\treturn \"null\";\r\n\t}", "title": "" }, { "docid": "bc63a4878d1aa24a7516fc3acf62dd2f", "score": "0.61059046", "text": "public T caseTypeName(TypeName object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "a6120399461c03632376e91e78cf07c7", "score": "0.6052016", "text": "public XSSimpleType getAnySimpleType() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: ddiv \n // 1: fdiv \n // 2: istore_0 /* this */\n // 3: aconst_null \n // 4: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -------------------------------------\n // 0 5 0 this Lcom/sun/xml/xsom/impl/SchemaSetImpl;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "title": "" }, { "docid": "eedc22ec6fb26bb8417aa62f6a2b6587", "score": "0.6049074", "text": "String getType_();", "title": "" }, { "docid": "a2d7f2f8fe6e9cbf9587002ef4f1150f", "score": "0.60222125", "text": "public abstract String objType();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.6018018", "text": "String type();", "title": "" }, { "docid": "74faf59d0be93910369cfd5f5cc6183f", "score": "0.6009785", "text": "public T casePrimitiveType(PrimitiveType object)\n {\n return null;\n }", "title": "" }, { "docid": "3b69c8cb090caf43ae3d36ee4d38bb33", "score": "0.60084194", "text": "public String getType(){\n return \"Single\";\n }", "title": "" }, { "docid": "4c514f786ec74a1a113f1d101d1a1fda", "score": "0.5991925", "text": "@Override\r\n\tpublic Type getType() {\n\t\treturn Type.nilType;\r\n\t}", "title": "" }, { "docid": "98b15fc8eb60d4b1a7701ec253b5650b", "score": "0.59838235", "text": "public TYPE getType();", "title": "" }, { "docid": "a8e1df0e639d53a7a45616bfc9a7f65b", "score": "0.59708613", "text": "public Type parseType() {\r\n\t\t\tif (check(TokenType.Int)) {\r\n\t\t\t\tmatch(TokenType.Int);\r\n\t\t\t\treturn Type.Int;\r\n\t\t\t}\r\n\t\t\telse if (check(TokenType.Bool)) {\r\n\t\t\t\tmatch(TokenType.Bool);\r\n\t\t\t\treturn Type.Bool;\r\n\t\t\t}\r\n\t\t\telse if (check(TokenType.Void)) {\r\n\t\t\t\tmatch(TokenType.Void);\r\n\t\t\t\treturn Type.Bool;\r\n\t\t\t}\r\n\t\t\tSystem.err.println(\"You goofed up... restart this now! -_-\");\r\n\t\t\tSystem.exit(1);\r\n\t\t\treturn null;\r\n\t\t}", "title": "" }, { "docid": "2f51e7bd385c2fc471c00711699012b3", "score": "0.5963871", "text": "public T caseNamedType(NamedType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8f980d5560ffed40397a240638be8a51", "score": "0.5943331", "text": "protected abstract Object getType();", "title": "" }, { "docid": "b41cfe403ad726d006482bdc61bac988", "score": "0.5931177", "text": "@Override\r\n\tpublic MetaType getTypeOf(Object value) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "63aa417f12ff087ec9e02f5a44273b9d", "score": "0.5927848", "text": "public T caseTypeDef(TypeDef object)\r\n {\r\n return null;\r\n }", "title": "" }, { "docid": "01a5fa26f8d923b3b2322c701406fec5", "score": "0.59273", "text": "@Override\n\tpublic Class<?> getObjectType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "11114d2ad67869114e083572fe701fa6", "score": "0.59135026", "text": "public T caseUnionType(UnionType object) {\n return null;\n }", "title": "" }, { "docid": "59c9261f73cf58b7ed84cfffe1888def", "score": "0.5899668", "text": "public String getType() {\r\n\t\treturn \"Single\";\r\n\t}", "title": "" }, { "docid": "8ffd933f9ff3969b41ce33cf2188654b", "score": "0.5897536", "text": "public String getType() {\n\t\treturn \"Single\";\n\t}", "title": "" }, { "docid": "0be4aec268f4f05a79de1c5ce3a03994", "score": "0.58870703", "text": "public MonoType getType2 ( );", "title": "" }, { "docid": "d27e1b91bb8af6f0eca40e4fde9f37c2", "score": "0.5886593", "text": "public Type toNullable() {\n if (!isNonNull()) {\n return this;\n }\n else if (isPrimitive()) {\n return new Type(mObjectClass);\n }\n else {\n return new Type(mGenericType);\n }\n }", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.5868738", "text": "public Type getType();", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.5868738", "text": "public Type getType();", "title": "" }, { "docid": "dbefbb56b85f206722d15d7231deb164", "score": "0.5868738", "text": "public Type getType();", "title": "" }, { "docid": "7e85f2b285790a9301df61442a54ba85", "score": "0.5862614", "text": "public boolean isSimpleType() {\n return false;\n }", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5846023", "text": "java.lang.String getType();", "title": "" }, { "docid": "c04d56020a1082ae66ec68e8d4b8ae96", "score": "0.583921", "text": "Type getObjectRet();", "title": "" }, { "docid": "9f437f716293944a8f02b0a923249787", "score": "0.5831334", "text": "public T caseBoolType(BoolType object)\n {\n return null;\n }", "title": "" }, { "docid": "21857bc5745a72f0a82fb313e51d50fc", "score": "0.58286107", "text": "Type getFromType();", "title": "" }, { "docid": "1bea179a44023912f060443d16f32774", "score": "0.58284783", "text": "public static Type getType() {\n return getType(false);\n }", "title": "" }, { "docid": "278340cfc1929c210a232ccd126f7286", "score": "0.5804813", "text": "private JSimpleType(JBasicType pType) {\n type = pType;\n\n isPrimitive =\n switch (type) {\n case BOOLEAN, BYTE, INT, SHORT, FLOAT, DOUBLE -> true;\n default -> false;\n };\n }", "title": "" }, { "docid": "5b8ba43144453a55ed2f5b7693276f82", "score": "0.58010244", "text": "public abstract Type getType();", "title": "" }, { "docid": "5b8ba43144453a55ed2f5b7693276f82", "score": "0.58010244", "text": "public abstract Type getType();", "title": "" }, { "docid": "5b8ba43144453a55ed2f5b7693276f82", "score": "0.58010244", "text": "public abstract Type getType();", "title": "" }, { "docid": "5b8ba43144453a55ed2f5b7693276f82", "score": "0.58010244", "text": "public abstract Type getType();", "title": "" }, { "docid": "c2b1f05884bd05d63bf600b9ba7563ad", "score": "0.5799213", "text": "public T caseUdtType(UdtType object)\n {\n return null;\n }", "title": "" }, { "docid": "7ca1e53f635eac293af74b21c4a7ebd9", "score": "0.57956135", "text": "@NotNull Type type();", "title": "" }, { "docid": "b3f605a0dbc3109b6d0a75d9ffd67e5a", "score": "0.57937896", "text": "public java.lang.String getType( );", "title": "" }, { "docid": "e86b799cca52db8bfa5421dedac56e33", "score": "0.57842726", "text": "protected final String convertType(Object modelElement) {\n String sName = Model.getFacade().getName(modelElement).trim();\n\n if (sName.equals(\"void\")) {\n return null;\n }\n\n if (sName.equals(\"char\")) {\n return \"string\";\n }\n\n if (sName.equals(\"boolean\")) {\n return \"bool\";\n }\n if (sName.equals(\"bool\")) {\n return \"bool\";\n }\n\n if (sName.equals(\"int\")) {\n return \"int\";\n }\n if (sName.equals(\"byte\")) {\n return \"int\";\n }\n if (sName.equals(\"short\")) {\n return \"int\";\n }\n if (sName.equals(\"long\")) {\n return \"int\";\n }\n\n if (sName.equals(\"float\")) {\n return \"float\";\n }\n if (sName.equals(\"double\")) {\n return \"float\";\n }\n\n /* user defined type string, not (java.lang.)String */\n if (sName.equals(\"string\")) {\n return \"string\";\n }\n\n /* user defined type array */\n if (sName.equals(\"array\")) {\n return \"array\";\n }\n\n return null;\n }", "title": "" }, { "docid": "ad29a49f190e1386ee060c3fd87ce62c", "score": "0.57833415", "text": "public T caseEType(EType object)\n {\n return null;\n }", "title": "" }, { "docid": "34e6ae9e63dc23dea865e4cae3c512a8", "score": "0.5781035", "text": "@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "34e6ae9e63dc23dea865e4cae3c512a8", "score": "0.5781035", "text": "@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "65cb54152fab06a6f396b239d8361c8e", "score": "0.5771447", "text": "java.lang.String getStructuretype();", "title": "" }, { "docid": "65cb54152fab06a6f396b239d8361c8e", "score": "0.5771447", "text": "java.lang.String getStructuretype();", "title": "" }, { "docid": "65cb54152fab06a6f396b239d8361c8e", "score": "0.5771447", "text": "java.lang.String getStructuretype();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.57607657", "text": "String getType();", "title": "" }, { "docid": "6c7eae16b6e8371eefe9c5429f3e5a2f", "score": "0.57443136", "text": "ClassInfo getRawType();", "title": "" }, { "docid": "09f69b8624583ede07fe77ce5428e57a", "score": "0.572375", "text": "Type getType();", "title": "" } ]
0f63be24b186c6c883a4dc142f76f635
Called once after isFinished returns true
[ { "docid": "68eb9a4b5ff72c15a0fe62c5c91dd0ce", "score": "0.0", "text": "@Override\n protected void end() {\n Robot.carriageinfeed.feedStop();\n Robot.carriageinfeed.carriageOverrideMove(0);\n }", "title": "" } ]
[ { "docid": "ba1e21b3099c65117f344aef57a2c9b0", "score": "0.8583928", "text": "@Override\n protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "ba1e21b3099c65117f344aef57a2c9b0", "score": "0.8583928", "text": "@Override\n protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "ba1e21b3099c65117f344aef57a2c9b0", "score": "0.8583928", "text": "@Override\n protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "eeead65e86058e7c150e5ec57bf3adf4", "score": "0.856328", "text": "@Override\n protected boolean isFinished()\n {\n return true;\n }", "title": "" }, { "docid": "67460340fd88b60bcf32e8738600472f", "score": "0.85534513", "text": "@Override\n protected boolean isFinished() \n {\n return true;\n }", "title": "" }, { "docid": "c351b443111fad5b5e2db88123cc605b", "score": "0.84049207", "text": "@Override\n\tprotected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "2de8bba33a87b39051a25060267e1a07", "score": "0.8390898", "text": "@Override\r\n public boolean isFinished() {\r\n return true;\r\n }", "title": "" }, { "docid": "ae3b5250c89e76665ca3b7affbce0805", "score": "0.8335386", "text": "@Override\n public boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "9ccc96579ccb03d0f829d3f26d5fc733", "score": "0.8328061", "text": "protected boolean isFinished() \n {\n return true;\n }", "title": "" }, { "docid": "923ff06944989ba62d4862ce05726a74", "score": "0.82985455", "text": "@Override\n public boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "923ff06944989ba62d4862ce05726a74", "score": "0.82985455", "text": "@Override\n public boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "bb0d4d70bde6d2dfe985294f6e345065", "score": "0.82922983", "text": "@Override\r\n protected boolean isFinished() {\r\n return false;\r\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "b3f91029024eb8717e3c45a76405746c", "score": "0.8241762", "text": "@Override\r\n\tprotected boolean isFinished()\r\n\t{\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "0d45df2ea7a486415e742dc033485b41", "score": "0.8230478", "text": "protected boolean isFinished(){\r\n return true;\r\n }", "title": "" }, { "docid": "487bec5195ee967a94aa1f3ea0e16b89", "score": "0.8223696", "text": "@Override\n public boolean isFinished() { return false; }", "title": "" }, { "docid": "143b84eb8b125ff728eeee1a80cfc79a", "score": "0.82155377", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "143b84eb8b125ff728eeee1a80cfc79a", "score": "0.82155377", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "143b84eb8b125ff728eeee1a80cfc79a", "score": "0.82155377", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "bef8b20f6e1d1cf78a79e029b187a8bc", "score": "0.81547195", "text": "@Override\n\t\t public void onFinished() {\n\t\t }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "a325530d9fb8d96023ce8a69b2fe7893", "score": "0.81532925", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "8b3bd629f850cd9b18165fb17dc9b4b5", "score": "0.81455183", "text": "protected boolean isFinished() \n {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "4c30c354f8fc28c133d4cb0dc2e7f0b8", "score": "0.80894065", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "01ce651053d3311fa3cce887c17057d0", "score": "0.8088486", "text": "@Override\n protected boolean isFinished() {\n return finished;\n }", "title": "" }, { "docid": "01ce651053d3311fa3cce887c17057d0", "score": "0.8088486", "text": "@Override\n protected boolean isFinished() {\n return finished;\n }", "title": "" }, { "docid": "6dd1428bea805835c26c3aab21464438", "score": "0.80383325", "text": "@Override\n\t\t\tpublic boolean isFinished() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" } ]
1af63b9c0fc8b979980d22a8e7c6e634
select top 1 from table order by id desc
[ { "docid": "211586d7c38036b2af354faf8f74338c", "score": "0.5565625", "text": "public static int getMaxid(){\r\n\t int id = 1 ;\r\n\t Connection conn = DB.getConn();\r\n\t\tStatement stmt = DB.getStatement(conn);\r\n\t\tString sql = \"select max(id)+1 as id from mdorder\" ;\r\n\t\tResultSet rs = DB.getResultSet(stmt, sql);\r\n\t\ttry {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tid = rs.getInt(\"id\");\r\n\t\t\t\tlogger.info(id);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tDB.close(stmt);\r\n\t\t\tDB.close(rs);\r\n\t\t\tDB.close(conn);\r\n\t\t }\r\n\t\treturn id;\r\n\r\n }", "title": "" } ]
[ { "docid": "91b7d6e6efc5cfafd05744befd187092", "score": "0.6338695", "text": "int getHighestID();", "title": "" }, { "docid": "49c1f82bea0455d44f67097c49241b16", "score": "0.62968284", "text": "long getFirst();", "title": "" }, { "docid": "12cd96c5d42256caffccb7271370d2e2", "score": "0.6004115", "text": "int getLowestID();", "title": "" }, { "docid": "73717f86ed503ae3bf880f4bea3b2328", "score": "0.5915111", "text": "public String selectMaxId();", "title": "" }, { "docid": "02b0f00efce6ce83d5bb1fa6be935616", "score": "0.5854304", "text": "public E top() { return list.first(); }", "title": "" }, { "docid": "7114e3e4352154326478ed9bbf17adc3", "score": "0.5851685", "text": "Number top ();", "title": "" }, { "docid": "e596cd0e7adbeb0bb208e17ffd0a4e0d", "score": "0.58210135", "text": "event findTopByOrderByIdAeventDesc();", "title": "" }, { "docid": "30acbcf26296b4ccc67601c433773bf6", "score": "0.57921517", "text": "@Override\r\n\tpublic String getSelectTopOne(String tbname) {\n\t\treturn \"select * from \\\"\" + tbname + \"\\\" limit 1\";\r\n\t}", "title": "" }, { "docid": "b59663d08ad606e8a42f19bdd05625fc", "score": "0.5772685", "text": "@Transactional\npublic Product getProductWithMaxId() {\n\tList<Product> list = sessionFactory.getCurrentSession().createQuery(\"from Product P where ProductId = (select max(p1.id) from Product p1)\").list();\n\t\n\tif(!list.isEmpty())\n\t{\n\t\treturn list.get(0);\n\t}\n\telse\n\t\treturn null;\n}", "title": "" }, { "docid": "fccebdbd2ae0001cd09f620d5e610375", "score": "0.5760408", "text": "Patient nextMostUrgent();", "title": "" }, { "docid": "76ca3cb0283a9628c1400bd886eb9b2c", "score": "0.5749349", "text": "public QueryBuilder first()\n {\n return limit(1);\n }", "title": "" }, { "docid": "7700d27e78a12d90e27f86191573cf10", "score": "0.57439923", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprivate Long lastOrderId() {\r\n\t\tLong id = 0L;\r\n\t\tList<Order> orders;\r\n\t\tQuery query = entityManager().createQuery(\"SELECT a FROM Order a ORDER BY a.orderId DESC\");\r\n\t\tquery.setMaxResults(1);\r\n\t\torders = (List<Order>) query.getResultList();\r\n\r\n\t\tif(orders.isEmpty()){\r\n\t\t\tid = 0L;\r\n\t\t}else{\r\n\t\t\tid = orders.get(0).getOrderId();\r\n\t\t}\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "6b96377c9367644dda2448fe09867b18", "score": "0.57020247", "text": "@Query(value = \"select * from comic c ORDER BY c.rate DESC Limit 0, 1\",nativeQuery = true)\n List<Comic> findByTop1();", "title": "" }, { "docid": "543a51814fc97088b4b7f1692c259a07", "score": "0.56279767", "text": "int pullHighest();", "title": "" }, { "docid": "bf42abd11fb94651cf1ac9184e5f7515", "score": "0.5613436", "text": "public Object getFirst();", "title": "" }, { "docid": "c2ce3d4871d05143ded37206c6f1c277", "score": "0.5611818", "text": "private Invoice getMostRecent(long vendorId) {\n\t\treturn\n\t\t\t\tlist(Query.forList()\n\t\t\t\t\t\t.setFilters(Filter.of(\"vendor_id\", vendorId))\n\t\t\t\t\t\t.setOrderBys(OrderBy.of(\"id\", true))\n\t\t\t\t\t\t.setLimit(1))\n\t\t\t\t.getItems()\n\t\t\t\t.stream()\n\t\t\t\t.findFirst()\n\t\t\t\t.orElse(null);\n\t}", "title": "" }, { "docid": "1944c053267339b99a858f768360745f", "score": "0.5580808", "text": "public int top() {\n // Write your code here\n int ret = 0;\n\t int cur = list.get(0).isEmpty() ? 1 : 0;\n\t int alter = 1 - cur;\n\t while (list.get(cur).size() > 1) {\n\t \tlist.get(alter).add(list.get(cur).poll());\n\t }\n\t ret = list.get(cur).poll();\n\t list.get(alter).offer(ret);\n\t return ret;\n }", "title": "" }, { "docid": "5fca10d079fce16ccaf293c4d47e9b51", "score": "0.5575004", "text": "E top();", "title": "" }, { "docid": "5fca10d079fce16ccaf293c4d47e9b51", "score": "0.5575004", "text": "E top();", "title": "" }, { "docid": "8459276cc6d45f28f828fa2f1e19a637", "score": "0.557444", "text": "public int getLatestId()\n\t{\n\t\t++latestId;\n\t\tsaveIdCounter();\n\t\treturn latestId;\n\t}", "title": "" }, { "docid": "05e0d0832ea8538e5f27552f67df14f8", "score": "0.5550625", "text": "public EscalaTarifa findTopByOrderByIdDesc();", "title": "" }, { "docid": "0ddcb107173f06613a3094e745788c94", "score": "0.55274874", "text": "T getFull(PK id);", "title": "" }, { "docid": "e119c3b59df8b869492751e83a0a1247", "score": "0.5523054", "text": "public T getFirst();", "title": "" }, { "docid": "5409637873758ecf5316a644de7ef4ba", "score": "0.5520821", "text": "long getFirstSeen();", "title": "" }, { "docid": "5409637873758ecf5316a644de7ef4ba", "score": "0.5520783", "text": "long getFirstSeen();", "title": "" }, { "docid": "5409637873758ecf5316a644de7ef4ba", "score": "0.5520783", "text": "long getFirstSeen();", "title": "" }, { "docid": "d9e7c779f0868d150976ada98798acaa", "score": "0.5506924", "text": "public int getLastTuVung(){\n db = this.context.openOrCreateDatabase(DATABASE_NAME, Context.MODE_PRIVATE, null);\n Cursor cursor = db.rawQuery(\n \"select * from tuvung order by id desc limit 1\",null);\n TuVung tuVung = null;\n while (cursor.moveToNext())\n {\n tuVung = new TuVung(\n cursor.getInt(0),\n cursor.getString(1),\n cursor.getString(2),\n cursor.getString(3),\n cursor.getString(4)\n );\n }\n cursor.close();\n db.close();\n return tuVung.getId();\n }", "title": "" }, { "docid": "3cdd16ae2490ae94e94badde55d9372d", "score": "0.5497183", "text": "private static int getNextId() throws SQLException{\r\n int id;\r\n String insertStatement = \"SELECT MAX(countryId) AS maxId FROM country\";\r\n DBQuery.setPreparedStatement(CONN, insertStatement);\r\n \r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n \r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n \r\n if(rs.next()){\r\n id = rs.getInt(\"maxId\") + 1;\r\n return id;\r\n }else{\r\n return 1;\r\n }\r\n }", "title": "" }, { "docid": "b154f17677823df9a0d57d914c80ddbc", "score": "0.5496896", "text": "public Cursor getLastRow(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query = \"SELECT * FROM \" + TABLE_NAME + \" ORDER BY ID DESC LIMIT 1\";\n Cursor data = db.rawQuery(query, null);\n return data;\n }", "title": "" }, { "docid": "d7302035bf808a579bd57eee1bd82811", "score": "0.54961586", "text": "Object first ();", "title": "" }, { "docid": "7e7db17042ab5e5dd276b51d0ab8b8b9", "score": "0.54950345", "text": "public int getFirst() {\n if(!isEmpty()) {\n int x = q[head - 1];\n return x;\n }\n return 0;\n }", "title": "" }, { "docid": "bb92ffd2776a1f60fccff59bfbe62b84", "score": "0.54773414", "text": "public int getFirst(){return first;}", "title": "" }, { "docid": "2231e37ccc69cfe4544cdfda75ac6900", "score": "0.5472866", "text": "protected long lastEntryId(String tableName) {\n\t\tSession session = factory.openSession();\n\t\tQuery<Long> query = session.createQuery(\"select max(id) from \" + tableName);\n\t\tList<Long> list = query.list();\n\t\tsession.close();\n\t\tif (list == null || list.isEmpty() || list.get(0) == null)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn list.get(0);\n\t}", "title": "" }, { "docid": "2ddc191b902b17dfeb018cbbffa2406a", "score": "0.5459408", "text": "KType top();", "title": "" }, { "docid": "806d3faf0d3ed177dcaf98e5b3b1deac", "score": "0.5451788", "text": "public Cursor getFirstRow(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query = \"SELECT * FROM \" + TABLE_NAME + \" ORDER BY ID ASC LIMIT 1\"; // returns the first row on the table\n Cursor data = db.rawQuery(query, null);\n return data;\n\n }", "title": "" }, { "docid": "f572f95178becd85e2c41f6407f2bab9", "score": "0.5450363", "text": "public long getFirst() {\n return 0;\n }", "title": "" }, { "docid": "9105e414f05730ec835749abb8692f0f", "score": "0.54455525", "text": "public int getHighest(int id) {\r\n\t\tint Highest = 0;\r\n\t\ttry {\r\n\t\t\tConnection conn = DBConn.getINSTANCE().getConnection();\r\n\r\n\t\t\tString sql = \"select * from camerainfo where id=?\";\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tHighest = rs.getInt(\"highest\");\r\n\t\t\t}\r\n\t\t\tDBConn.closeConnection(conn, ps, rs);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn Highest;\r\n\t}", "title": "" }, { "docid": "93f28519fb741143bfab769f8abf1242", "score": "0.5405849", "text": "default T fetchOne() {\n if (hasNext()) {\n return next();\n }\n return null;\n }", "title": "" }, { "docid": "9158adfc163892138b1c1cf20f825786", "score": "0.5390628", "text": "public T first() {\n return null;\n }", "title": "" }, { "docid": "ce2089305ebbf1b015c99b51cbb9499f", "score": "0.5352775", "text": "Optional<Invoice> findTop1ByClient(Client client, Sort sort);", "title": "" }, { "docid": "e37a6fe93a5999fa14fd16a962d40a45", "score": "0.5345399", "text": "public void first();", "title": "" }, { "docid": "f9fd8802a34009fc4dbb6b472b52aec8", "score": "0.53452855", "text": "Record queryLastest();", "title": "" }, { "docid": "6e08c5b8d54f9165cbacc72c60c36319", "score": "0.5344973", "text": "Jedi findTopByName(String name);", "title": "" }, { "docid": "dc2f407f9a8c16bf1052ea76ff43d8a3", "score": "0.5317558", "text": "public int getHighestID() {\n final String MY_QUERY = \"SELECT last_insert_rowid()\";\n Cursor cur = this.getWritableDatabase().rawQuery(MY_QUERY, null);\n cur.moveToFirst();\n int ID = cur.getInt(0);\n Log.d(\"Errore\", \"L'ultimo id inserito è \" + ID);\n cur.close();\n return ID;\n }", "title": "" }, { "docid": "061a128b3d5e6960f18947567d11a497", "score": "0.5314679", "text": "TOrder selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "f957947245559ccaec90532e65ca66c9", "score": "0.5314526", "text": "public Object first() {\r\n \t\t\treturn list.get(0);\r\n \t\t}", "title": "" }, { "docid": "f3cbad6370a66835223f93a0c399644b", "score": "0.5306501", "text": "U first();", "title": "" }, { "docid": "5e36d95d3cbcacc2cc798a3fc8c12c19", "score": "0.5304024", "text": "int top();", "title": "" }, { "docid": "3bd2ed1d235d996a0b360f59c272e477", "score": "0.5294909", "text": "public T top() {\n\t\tT top = data.find_biggest().getElement();\n\t\treturn top;\n\t}", "title": "" }, { "docid": "8b202a9023e31a04ba7a7a4c1663a112", "score": "0.5290072", "text": "public final TaskRecord topTask() {\n int size = this.mTaskHistory.size();\n if (size > 0) {\n return this.mTaskHistory.get(size - 1);\n }\n return null;\n }", "title": "" }, { "docid": "43cd96a5351afe0a4b7307b6614dc47a", "score": "0.52642494", "text": "public int top() {\n return last;\n }", "title": "" }, { "docid": "43cd96a5351afe0a4b7307b6614dc47a", "score": "0.52642494", "text": "public int top() {\n return last;\n }", "title": "" }, { "docid": "9f6781f0b4c7234cfc2576aef6b381ff", "score": "0.5240546", "text": "public OrdenVentaEscala findTopByOrderByIdDesc();", "title": "" }, { "docid": "cbfffefb10fa3ac0b49afb31c6d72a50", "score": "0.5237018", "text": "public static int getLatestDatasourceId() {\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n int id=0;\n try {\n conn = ConnectionManager.getConnection();\n stmt = conn.prepareStatement(\"SELECT datasourceId FROM datasource ORDER BY datasourceId DESC LIMIT 1;\");\n \n rs = stmt.executeQuery();\n \n while(rs.next()){\n id=rs.getInt(\"datasourceId\");\n }\n return id;\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return 0;\n } finally {\n ConnectionManager.close(conn, stmt, rs);\n }\n }", "title": "" }, { "docid": "a86f97ab5d20264a96861d300a1f0668", "score": "0.5213151", "text": "@Override\r\n\tpublic long selectId() {\n\t\tlong b=orderInfoMapper.selectNextSEQ();\r\n\t\treturn b;\r\n\t}", "title": "" }, { "docid": "ac337edf56422fc1e4080a27e6fa09d3", "score": "0.52116734", "text": "public int getId(){\n // get the database\n SQLiteDatabase db = this.getReadableDatabase();\n cursor = db.rawQuery(\"SELECT MAX(id) FROM events\", new String[]{});\n cursor.moveToFirst();\n return Integer.parseInt(cursor.getString(0));\n }", "title": "" }, { "docid": "0a20b3275ca2b03825395485341e16af", "score": "0.52080303", "text": "private Seat getHighest() {\n\t\tint lowest = Integer.MIN_VALUE;\n\t\tSeat current = null;\n\t\tfor (Seat s : seats) {\n\t\t\tif (s.isPending() && s.votes() > lowest) {\n\t\t\t\tlowest = s.votes();\n\t\t\t\tcurrent = s;\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}", "title": "" }, { "docid": "d8bf2ea06986b3475430f4c086262363", "score": "0.52068293", "text": "public E top();", "title": "" }, { "docid": "5286f0d1c921f55c6a7fa54a7cd6dd50", "score": "0.52064884", "text": "Person findMostRecentPersonByIdPerson(Collection<Integer> idPersonList);", "title": "" }, { "docid": "a96bc093dde30466debc67c893409492", "score": "0.5193712", "text": "public Bid getLastBid() {\n int lastIndex = (this.bids.size() - ONEI);\n return this.bids.get(lastIndex);\n }", "title": "" }, { "docid": "6686ff55ad5a778784b6ea114070818b", "score": "0.5192949", "text": "Ingredient findFirstByOrderByIngredientCodeDesc();", "title": "" }, { "docid": "1ef45f245e7058ec4ce853d72a2d2494", "score": "0.5192791", "text": "public int getLastIdForTable(String table) throws SQLException, ServerException {\n ResultSet resultSet = query(\"SELECT MAX(ID) FROM '\" +table+ \"';\" );\n if(resultSet.next()) return resultSet.getInt(1);\n\n return -1;\n }", "title": "" }, { "docid": "f94abef18d861f72cce731bfe5dc2888", "score": "0.5192186", "text": "public K getOldest() {\n return last == null ? null : last.key;\n }", "title": "" }, { "docid": "224a75ad74a52af6294db1305a1d26eb", "score": "0.5176733", "text": "E first();", "title": "" }, { "docid": "224a75ad74a52af6294db1305a1d26eb", "score": "0.5176733", "text": "E first();", "title": "" }, { "docid": "3ff231666b1132956fceaa39c5fc3738", "score": "0.51730675", "text": "public Auto getAuto(final int id) {\r\n\t\tfinal Auto[] entity = new Auto[1];\r\n\t\texecuteInTransaction(new ICommand() {\r\n\t\t\t\r\n\t\t\tpublic void execute(IDBOperations operations) {\r\n\t\t\t\tentity[0] = operations.getAuto(id);\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn entity[0];\r\n\t}", "title": "" }, { "docid": "06a00634fb3ec31b8b44c78440cd4498", "score": "0.51591104", "text": "@Override\r\n\tpublic Pageable first() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "275a10922273af051cc31b5b68f30a81", "score": "0.51541835", "text": "public int top() {\n while(queue.size()!=1){\n temp.addLast(queue.removeFirst());\n }\n int result = queue.removeFirst();\n temp.addLast(result);\n while(temp.size()!=0){\n queue.addLast(temp.removeFirst());\n }\n return result;\n }", "title": "" }, { "docid": "d6f8d85a157afc1f8a793309c0cb19f4", "score": "0.5153853", "text": "E last();", "title": "" }, { "docid": "d6f8d85a157afc1f8a793309c0cb19f4", "score": "0.5153853", "text": "E last();", "title": "" }, { "docid": "ae4eefd505a0f6fda7d8d2cf0a6a8c89", "score": "0.5140613", "text": "public E first();", "title": "" }, { "docid": "651e1eb333af8f812fe5bcfb8f6ce92b", "score": "0.5132303", "text": "public String getLastId(){\n String[][] data = ldb.getData(\"SELECT * FROM papers\");\n for(int i=0; i < data.length; i++){ \n lastId = data[i][0]; //go through all the ids\n }\n return lastId;//return the last id number\n }", "title": "" }, { "docid": "07271c30867b7254a960e0dc470ef259", "score": "0.5128462", "text": "OrderJbb selectByPrimaryKey(Long id);", "title": "" }, { "docid": "a6f2fcdc437d68f63ae03456d9090c21", "score": "0.51244754", "text": "public E readLatest() {\n if (head < 0) {\n return null;\n }\n return get(head);\n }", "title": "" }, { "docid": "ad9e8e26c9d18bded62bebd323494cd8", "score": "0.51234615", "text": "public final int first() {\r\n\r\n final int pt = intVect[ptr].lastElement(); // / Get most recent (LIFO)\r\n intVect[ptr].removeLastElement();\r\n\r\n // int pt = intVect[ptr].firstElement(); /// FIFO - very inefficient method\r\n // intVect[ptr].removeElementAt(0);\r\n // int pt = intVect[ptr].smallestElement();\r\n\r\n while (intVect[ptr].isEmpty()) {\r\n ptr++;\r\n\r\n if (ptr == MAX) {\r\n return pt;\r\n }\r\n }\r\n\r\n return pt;\r\n }", "title": "" }, { "docid": "c4c648bcd1ef9724d32470ba99e21774", "score": "0.5121583", "text": "public StockRecord getLargestHigh() {\n\n StockRecord highest = records.get(0);\n for (StockRecord record : records) {\n if (record.getHigh() > highest.getHigh()) {\n highest = record;\n }\n\n }\n return highest;\n }", "title": "" }, { "docid": "99aee0965d16a3ff1c45702b72f7510e", "score": "0.5120905", "text": "LazyGQuery<T> last();", "title": "" }, { "docid": "8751e4864370301334feb876f7083587", "score": "0.510127", "text": "private Transaction findHighestValTransaction() {\n final List<Transaction> allTransactions = TRANS_CLIENT.getTransactions();\n Transaction higTransaction = allTransactions.get(0);\n for (final Transaction transaction : allTransactions) {\n if (transaction.getValue() > higTransaction.getValue()) {\n higTransaction = transaction;\n }\n }\n return higTransaction;\n }", "title": "" }, { "docid": "0b34538f19a8ba994e70cedd89cade41", "score": "0.50823313", "text": "public synchronized E maxSelect ( )\n \t{\n \t\tArrayList<E> list = this.list;\n \t\tint size = list.size();\n \t\tif (size == 0)\n \t\t\treturn null;\n \t\tsortIfWeShould();\n \t\treturn list.remove(--size);\n \t}", "title": "" }, { "docid": "c6cd5130861aca6d38d1192286bdf063", "score": "0.5081193", "text": "Object last ();", "title": "" }, { "docid": "b544dc13f9509019a1d5b08272dc2a1e", "score": "0.5079788", "text": "public Query<E> last();", "title": "" }, { "docid": "9e04bf0e04933270c4466efc5fffd7ad", "score": "0.50757855", "text": "@Repository\npublic interface ReportRepository extends JpaRepository<Report, Integer>{\n Report findTopByOrderById();\n\n @Query(\"select max(r.reportNumber) from Report r \")\n int findLast();\n}", "title": "" }, { "docid": "31edbbbfa2a2b530be77009451a79490", "score": "0.5074766", "text": "@Transactional(readOnly = true)\n public LatestActivity findOne(Long id) {\n log.debug(\"Request to get LatestActivity : {}\", id);\n return latestActivityRepository.findOne(id);\n }", "title": "" }, { "docid": "b625295dc6a1208f9e8b01dc1c5becd1", "score": "0.5073331", "text": "public int top() {\n while(q1.size()>1)\n q2.offer(q1.poll());\n \n int x=q1.poll();\n q2.offer(x);\n temp=q1;\n q1=q2;\n q2=temp;\n return x;\n }", "title": "" }, { "docid": "4d7dab97aebf2c0592c7a8a5b064b0bd", "score": "0.50626194", "text": "public static int getNextPhotoPrimaryKey() {\n\n try {\n\n // Create a new session\n Session session = sessionFactory.openSession();\n\n // Create criteria to get the last photo primary key, ###Be careful with query case!!!!###\n Criteria criteria = session.createCriteria(Photos.class);\n criteria.addOrder(Order.desc(\"photoId\"));\n criteria.setMaxResults(1);\n List<Photos> maxIDPhoto = (List<Photos>)criteria.list();\n\n // Close the session\n session.close();\n\n // +1 because we want the next ID.\n return maxIDPhoto.get(0).getPhotoId() + 1;\n }\n catch (IndexOutOfBoundsException e) {\n // If it gets here, then the table is likely empty\n System.out.println(\"Photos has zero entries\");\n // TODO: change the auto_increment back to 0.\n e.printStackTrace();\n return 1;\n }\n catch (Exception e) {\n System.out.println(\"Error getting last Photos primary key!\");\n e.printStackTrace();\n return -1; // -1 for error\n }\n }", "title": "" }, { "docid": "17d5ef38b84938f7501b3d278fff448e", "score": "0.50564396", "text": "OrderInfo selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "0b3de23e6d36bf668011dd5281fea332", "score": "0.50548613", "text": "DemandOrder selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "699639ab4377c9faafd14afdb4e9e748", "score": "0.50538003", "text": "@Override\n\tpublic Order read(Long id) {\n\t\treturn readLatest();\n\t}", "title": "" }, { "docid": "719f89f8970e60698d40b2d39c06e9d5", "score": "0.5053391", "text": "@Override\r\n\tpublic Options getFeedback() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"from Options o ORDER BY o.id DESC LIMIT 1\");\r\n\t\tquery.setMaxResults(1);\r\n\t\t\r\n\t\treturn (Options) query.uniqueResult();\r\n\t}", "title": "" }, { "docid": "bb6346b9f331996177e089aa0fc8d35e", "score": "0.50404596", "text": "public int top() {\n if(queue.size() == 0)\n return -1;\n int result = -1;\n while(queue.size() > 1){\n backup.offer(queue.poll());\n }\n result = queue.poll();\n while(backup.size() > 0){\n queue.offer(backup.poll());\n }\n queue.offer(result);\n return result;\n }", "title": "" }, { "docid": "a256e48749cde83a0b633ffa6c4b2406", "score": "0.5035117", "text": "private static final int getNextId() {\n\t\treturn highestId.incrementAndGet();\n\t}", "title": "" }, { "docid": "7f54ce5720ed197a281a8288a33ca04f", "score": "0.5035014", "text": "public Task fetchOne(int id) {\n Connection connection = ConnectionDAO.getConnection();\n \n String sql = \"select * from task where id = ?\";\n \n PreparedStatement pstm = null;\n ResultSet resultSet = null;\n \n try {\n pstm = connection.prepareStatement(sql);\n pstm.setInt(1, id);\n resultSet = pstm.executeQuery();\n \n // vai para o próximo registro\n resultSet.next();\n \n Task task = TaskTransformer.transform(resultSet);\n \n ConnectionDAO.closeConnection(connection, pstm, resultSet);\n\n return task;\n } catch(SQLException ex) {\n ex.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "69e039b10890ed81d7ef3290df0f9468", "score": "0.5033966", "text": "public T qOneById(ID id){\n\t\tif(meta.getPrimaryColumn() == null) throw new NullPointerException(\"Entity \"+meta.getEntityClass().getName()+\" does not have a primary column defined\");\n\t\treturn hc.entity(meta, selectQueryById.clone().withValue(id));\t\t\n\t}", "title": "" }, { "docid": "cdd253f27e3339aab278a271bfa8af40", "score": "0.5032536", "text": "public int getHead(int id) {\n\t\tint[] personPreferences = preferences[id];\n\t\tfor (int i = 0; i < personPreferences.length; i++) {\n\t\t\tint head = personPreferences[i];\n\t\t\tif (head != -1) {\n\t\t\t\treturn head;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "1cea80c540018c4c6386f1eab6972b51", "score": "0.50324947", "text": "public int top() {\n int ret = ppop();\n queue.add(ret);\n return ret;\n }", "title": "" }, { "docid": "7ad8d8f2dca731b84f70d831e7afa7fa", "score": "0.50319374", "text": "public int getFirstRow();", "title": "" }, { "docid": "e744727c7a300bcb2b42dd512a1d4957", "score": "0.50257814", "text": "public Integer getMaxFirstId() {\r\n return _maxFirstId;\r\n }", "title": "" }, { "docid": "06bc2e759be97fde150ae176be4deb49", "score": "0.50230014", "text": "public T getFirst() {\n\t\treturn (T) this.head.getData();\n\t}", "title": "" }, { "docid": "9fca92011ffb6483ae8b3fa0e6f5f380", "score": "0.50226545", "text": "public int peekFirst() {\n return 0;\n }", "title": "" }, { "docid": "59179ffd105398eeb0af2833773bd27c", "score": "0.501534", "text": "public HistoryEntry getLastEntry() {\r\n\t\tif(entries.size()<=0)\r\n\t\t\treturn null;\r\n\t\treturn getEntry(entries.size()-1);\r\n\t}", "title": "" } ]
638b8126f4dff3caaa7ce5a38bee868e
The Action Processor is responsible for actions within this lov Actions can include buttons being pressed, check boxes being selected or prepost query methods etc.
[ { "docid": "3438a17ebf022fec7f2201e2a446427c", "score": "0.0", "text": "public String getActionProcessorClassName()\n {\n return _actionProcessorClassName;\n }", "title": "" } ]
[ { "docid": "d40386ede98d210fdd3dd4e65fad402a", "score": "0.6937852", "text": "public void actions() { }", "title": "" }, { "docid": "ad50e9d85c83dcf51a580a8164ab209f", "score": "0.6864898", "text": "protected abstract void selectActions();", "title": "" }, { "docid": "8b6f52c8a11e20a5098019694b23db72", "score": "0.6661835", "text": "@Override\n\tprotected void init_actions() {\n\t\taction_obj = new CUP$parser$actions(this);\n\t}", "title": "" }, { "docid": "2e873afe35d23b9cd71cb21fee42bb40", "score": "0.66086936", "text": "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "title": "" }, { "docid": "2e873afe35d23b9cd71cb21fee42bb40", "score": "0.66086936", "text": "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "title": "" }, { "docid": "aeb1a0c74188575f46e43cb9ff1ff7db", "score": "0.65892524", "text": "protected abstract void executeAction();", "title": "" }, { "docid": "10cb0a87357aa133f6d5ec355fedc2ba", "score": "0.6577553", "text": "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "title": "" }, { "docid": "575b28e01f50e6995d5329b1824576d2", "score": "0.65374064", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "575b28e01f50e6995d5329b1824576d2", "score": "0.65374064", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "575b28e01f50e6995d5329b1824576d2", "score": "0.65374064", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "575b28e01f50e6995d5329b1824576d2", "score": "0.65374064", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "575b28e01f50e6995d5329b1824576d2", "score": "0.65374064", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "b6e987f8296ad6c2062c8c24203f1713", "score": "0.65340006", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (action != null) {\n\t\t\taction.execute();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "982b429153062d34f0ebea56a18ce7c2", "score": "0.6531301", "text": "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser2$actions(this);\r\n }", "title": "" }, { "docid": "13edbcbc466226fa1587fc41c5561a4e", "score": "0.6523723", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "title": "" }, { "docid": "8c69d752d248a8c3168eb2e694761674", "score": "0.65109", "text": "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "title": "" }, { "docid": "8c69d752d248a8c3168eb2e694761674", "score": "0.65109", "text": "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "title": "" }, { "docid": "8c69d752d248a8c3168eb2e694761674", "score": "0.65109", "text": "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "title": "" }, { "docid": "8c69d752d248a8c3168eb2e694761674", "score": "0.65109", "text": "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "title": "" }, { "docid": "25e09b8068ee22340f3e4c02a0169bd2", "score": "0.6499994", "text": "@Override\n\t\tpublic void action() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "10208548f2a7c812e2e114cd597dd1c5", "score": "0.64949423", "text": "public void menuAction() {//GEN-END:|429-action|0|429-preAction\n // enter pre-action user code here\n String __selectedString = getMenu().getString(getMenu().getSelectedIndex());//GEN-BEGIN:|429-action|1|470-preAction\n if (__selectedString != null) {\n if (__selectedString.equals(\"Open book\")) {//GEN-END:|429-action|1|470-preAction\n // write pre-action user code here\n openLibrary();//GEN-LINE:|429-action|2|470-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Table of contents\")) {//GEN-LINE:|429-action|3|469-preAction\n // write pre-action user code here\n showToc();//GEN-LINE:|429-action|4|469-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Bookmarks\")) {//GEN-LINE:|429-action|5|936-preAction\n // write pre-action user code here\n bookCanvas.setupNewBookmark();\n switchDisplayable(null, getBookmarks());//GEN-LINE:|429-action|6|936-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Book details\")) {//GEN-LINE:|429-action|7|734-preAction\n // write pre-action user code here\n showBookInfo();//GEN-LINE:|429-action|8|734-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Setup hyphenation\")) {//GEN-LINE:|429-action|9|1045-preAction\n // write pre-action user code here\n switchDisplayable(null, getLanguages());//GEN-LINE:|429-action|10|1045-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Set encoding\")) {//GEN-LINE:|429-action|11|1046-preAction\n // write pre-action user code here\n switchDisplayable(null, getEncodings());//GEN-LINE:|429-action|12|1046-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Lookup word\")) {//GEN-LINE:|429-action|13|471-preAction\n // write pre-action user code here\n setEntryForLookup(\"\");\n enterWord();//GEN-LINE:|429-action|14|471-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Convert number\")) {//GEN-LINE:|429-action|15|472-preAction\n // write pre-action user code here\n setEntryForLookup(\"\");\n enterNumber();//GEN-LINE:|429-action|16|472-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Font size\")) {//GEN-LINE:|429-action|17|473-preAction\n // write pre-action user code here\n setFontSize();//GEN-LINE:|429-action|18|473-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Switch day / night\")) {//GEN-LINE:|429-action|19|474-preAction\n // write pre-action user code here\n bookCanvas.cycleColorSchemes();\n switchDisplayable(null, bookCanvas);//GEN-LINE:|429-action|20|474-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Choose colors\")) {//GEN-LINE:|429-action|21|475-preAction\n // write pre-action user code here\n setColorScheme();//GEN-LINE:|429-action|22|475-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Screen mode\")) {//GEN-LINE:|429-action|23|476-preAction\n // write pre-action user code here\n setSreenMode();//GEN-LINE:|429-action|24|476-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Page interaction\")) {//GEN-LINE:|429-action|25|588-preAction\n // write pre-action user code here\n setScrollingOptions();//GEN-LINE:|429-action|26|588-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Page layout\")) {//GEN-LINE:|429-action|27|935-preAction\n // write pre-action user code here\n switchDisplayable(null, getPageSettings());//GEN-LINE:|429-action|28|935-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Set dictionary folder\")) {//GEN-LINE:|429-action|29|477-preAction\n // write pre-action user code here\n switchDisplayable(null, getFolderBrowser());//GEN-LINE:|429-action|30|477-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Switch Native / Bitmap Fonts\")) {//GEN-LINE:|429-action|31|1136-preAction\n // write pre-action user code here\n switchNativeFonts();//GEN-LINE:|429-action|32|1136-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"About\")) {//GEN-LINE:|429-action|33|478-preAction\n // write pre-action user code here\n switchDisplayable(null, getShowLicense());//GEN-LINE:|429-action|34|478-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Quit\")) {//GEN-LINE:|429-action|35|479-preAction\n // write pre-action user code here\n quit();//GEN-LINE:|429-action|36|479-postAction\n // write post-action user code here\n }//GEN-BEGIN:|429-action|37|429-postAction\n }//GEN-END:|429-action|37|429-postAction\n // enter post-action user code here\n }", "title": "" }, { "docid": "17b119e6fa26d4b80451c9ae8b27d83d", "score": "0.6468746", "text": "public abstract Object performAction();", "title": "" }, { "docid": "2b24799cfbae9a2538024b8515e67eb8", "score": "0.6460432", "text": "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3b047e68a0da36e5ad34ea2f085c743", "score": "0.6457689", "text": "public void dispatch(String action) {\r\n\r\n }", "title": "" }, { "docid": "b810315b61402d59529eb5b3a2423ac3", "score": "0.644526", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n checkKeys() ;\r\n }", "title": "" }, { "docid": "ac4438e323cac74400a21201ffa2418c", "score": "0.63951015", "text": "@Override\n\tprotected void doProcessAction(ActionRequest actionRequest, ActionResponse actionResponse) throws Exception {\n\n\t\tString cmd = ParamUtil.getString(actionRequest, Constants.CMD);\n\t\t\n\t\tSystem.out.println(\"CMD= \" + cmd);\n\t\t\n\t\t_mvcActionCommand.processAction(actionRequest, actionResponse);\n\t\t\n\t}", "title": "" }, { "docid": "8db99c61a56ae913015e0d4c8e55595c", "score": "0.63842547", "text": "protected void init_actions()\n {\n action_obj = new CUP$CupObjeto$actions(this);\n }", "title": "" }, { "docid": "ed8d7321032f41d5234927ef2ad74ed9", "score": "0.6376035", "text": "protected void init_actions()\n {\n action_obj = new CUP$parser$actions();\n }", "title": "" }, { "docid": "7d0118498df7c8d1c586e2c103bca7f3", "score": "0.6372895", "text": "private void makeActions() {\r\n\r\n\t\teditAction = new VehicleTableEditAction(this.viewer);\r\n\t\tdetachAction = new VehicleTableDetachAllStaffMembersAction(this.viewer);\r\n\t\treadyStatus = new VehicleTableSetReadyAction(this.viewer);\r\n\t\trepairStatus = new VehicleTableSetRepairStatusAction(this.viewer);\r\n\t\tvehicleAtStationAction = new VehicleTableAtStationAction(this.viewer);\r\n\t}", "title": "" }, { "docid": "e8edf1465f5e6dac2b1fa6eda56b4508", "score": "0.6370027", "text": "protected void makeActions() {\n\t\thistoryAction = new Action() {\n\t\t\tpublic void run() {\n\t\t\t\tif (historyStack.size() > 0) {\n\t\t\t\t\tObject o = historyStack.pop();\n\t\t\t\t\tforwardStack.push(currentProvider.getSelectedNode());\n\t\t\t\t\tforwardAction.setEnabled(true);\n\t\t\t\t\tfocusOn(o, false);\n\t\t\t\t\tif (historyStack.size() <= 0) {\n\t\t\t\t\t\thistoryAction.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// @tag action : History action\n\t\thistoryAction.setText(\"Back\");\n\t\thistoryAction.setToolTipText(\"Previous\");\n\t\thistoryAction.setEnabled(false);\n\t\thistoryAction.setImageDescriptor(PDEVizImages.DESC_BACKWARD_ENABLED);\n\n\t\tforwardAction = new Action() {\n\t\t\tpublic void run() {\n\t\t\t\tif (forwardStack.size() > 0) {\n\t\t\t\t\tObject o = forwardStack.pop();\n\t\t\t\t\tfocusOn(o, true);\n\t\t\t\t\tif (forwardStack.size() <= 0) {\n\t\t\t\t\t\tforwardAction.setEnabled(false);\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tforwardAction.setText(\"Forward\");\n\t\tforwardAction.setToolTipText(\"Go forward\");\n\t\tforwardAction.setEnabled(false);\n\t\tforwardAction.setImageDescriptor(PDEVizImages.DESC_FORWARD_ENABLED);\n\t\t\n\t\tif(this instanceof SingleDependencyView){\n\t\t\trefreshAction = new Action() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tperformRefresh();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t};\n\n\t\t\trefreshAction.setText(\"Refresh\");\n\t\t\trefreshAction.setToolTipText(\"Refresh\");\n\t\t\trefreshAction.setEnabled(false);\n\t\t\tASTViewImages.setImageDescriptors(refreshAction, ASTViewImages.REFRESH);\n\t\t} else {\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cfea0d03d21b078993f9434e9d1232d4", "score": "0.6366169", "text": "protected void init_actions()\n {\n action_obj = new CUP$ParserAva$actions(this);\n }", "title": "" }, { "docid": "7040cfd3b85c35a163d6858486481550", "score": "0.63469136", "text": "ActionClick createActionClick();", "title": "" }, { "docid": "ba3ed02c50bdacea0ce2a1557cd8062b", "score": "0.6339906", "text": "public void touchContextMenuAction() {//GEN-END:|1095-action|0|1095-preAction\n // enter pre-action user code here\n switch (getTouchContextMenu().getSelectedIndex()) {//GEN-BEGIN:|1095-action|1|1101-preAction\n case 0://GEN-END:|1095-action|1|1101-preAction\n // write pre-action user code here\n addBookmarkAutomatically();//GEN-LINE:|1095-action|2|1101-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|1095-action|3|1102-preAction\n case 1://GEN-END:|1095-action|3|1102-preAction\n // write pre-action user code here\n lookupWordOrNumber();//GEN-LINE:|1095-action|4|1102-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|1095-action|5|1095-postAction\n }//GEN-END:|1095-action|5|1095-postAction\n // enter post-action user code here\n }", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.6327958", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.6327958", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "58620c90ad7dc6ceeaccb20703234021", "score": "0.6327958", "text": "public void act() \r\n {\r\n // Add your action code here.\r\n }", "title": "" }, { "docid": "6dea1d6980d0779f86239649fc600ee7", "score": "0.63120264", "text": "Action getAction();", "title": "" }, { "docid": "5149ae88bbe37dd06615a44ebc5c5b1a", "score": "0.6301478", "text": "public\t\tboolean\t\tprocessAction(MiiAction action)\n\t\t{\n\t\tif (action.hasActionType(Mi_SELECTED_ACTION))\n\t\t\t{\n\t\t\tif (action.getActionSource() instanceof MiMenuItem)\n\t\t\t\tprocessCommand((String )action.getActionUserInfo());\n\t\t\t}\n\t\treturn(super.processAction(action));\n\t\t}", "title": "" }, { "docid": "d323702f8cf8935d991a8bbc50e3b57a", "score": "0.6300283", "text": "protected void init_actions()\n {\n action_obj = new CUP$CICSParser$actions(this);\n }", "title": "" }, { "docid": "8104bbc7bfef77e76d31d2e6be7eeca0", "score": "0.6297501", "text": "protected void init_actions()\n {\n action_obj = new CUP$TemplateParser$actions(this);\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.62800986", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.62800986", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "54fa38948f1606738e97ffec9897ccd1", "score": "0.62800986", "text": "public void act() \n {\n // Add your action code here.\n }", "title": "" }, { "docid": "4e9a26cbbbaf522ebde4248ce073c5eb", "score": "0.62558466", "text": "public Action getAction();", "title": "" }, { "docid": "3b486065d4701d1ffcb0d45a8c929d06", "score": "0.62542236", "text": "protected void init_actions()\n {\n action_obj = new CUP$PHPAstParser$actions(this);\n }", "title": "" }, { "docid": "ef0ea6442e0e399fd2c9b310c9707718", "score": "0.6253912", "text": "public void handleRequest(String action) {\n if (commands.containsKey(action))\n {\n try {\n ICommand command = commands.get(action);\n command.execute();\n }\n catch (NullPointerException e)\n {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "d43af6bcedd2a0da5ff9f16cbe83ed2d", "score": "0.62498105", "text": "public String action(String action);", "title": "" }, { "docid": "4127935835347bb9e503db4a3a637077", "score": "0.6225757", "text": "protected void processAgentActions(){\n\t\tList<String> toexec = agentState.getAllActions();\n\t\tfor (String action : toexec) {\n\t\t\tlogger.fine(\"[ process actions]UAS id=\"+this.ID+\" doing:\"+ action);\n\t\t\tif (action.equals(\"turn(left)\")) //TODO: make these MOD 2 pi ? \n\t\t\t\tthis.compasAngle -= Math.PI/16.0;\n\t\t\t\t//Normalize compass angle between 0 and 2 Pi\n\t\t\t\tif(compasAngle<0) compasAngle+=2*Math.PI;\n\t\t\telse if (action.equals(\"turn(right)\"))\t\t\t\t\n\t\t\t\tthis.compasAngle += Math.PI/16.0;\n\t\t\t\t//Normalize compass angle between 0 and 2 Pi\n\t\t\t\tif(compasAngle>2*Math.PI) compasAngle-=2*Math.PI;\n\t\t\telse if (action.equals(\"thrust(on)\"))\n\t\t\t\tthis.speedVal = SPEED;\n\t\t\telse if (action.equals(\"thrust(off)\")) \n\t\t\t\tthis.speedVal = 0;\n\t\t\telse if (action.equals(\"thrust(up)\")) \n\t\t\t\tthis.verticalSpeedVal = VERTICAL_SPEED;\n\t\t\telse if (action.equals(\"thrust(down)\")) \n\t\t\t\tthis.verticalSpeedVal = -VERTICAL_SPEED;\n\t\t\telse if (action.equals(\"hover\")) \n\t\t\t\tthis.verticalSpeedVal = 0;\n\t\t\t\t\n\t\t}\t\t\t\t\t\n\t}", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "111647dda18c3262c03dafa5d1a06d05", "score": "0.62205076", "text": "protected void init_actions()\n {\n action_obj = new CUP$MJParser$actions(this);\n }", "title": "" }, { "docid": "20f9c370b7b343fdc27982748ce6bd82", "score": "0.6209079", "text": "public void dispatch() {\n if (action != null) {\n action.DO();\n }\n }", "title": "" }, { "docid": "4db6f3de73263fce2d5b20d51295660a", "score": "0.62018996", "text": "protected void init_actions()\n {\n action_obj = new CUP$mj$actions(this);\n }", "title": "" }, { "docid": "11f74b5d283f894182fcdd4547187741", "score": "0.6200584", "text": "protected void action() { }", "title": "" }, { "docid": "71ef646b4627e4848145916e5cb23aef", "score": "0.6198799", "text": "public void chapterPositionsAction() {//GEN-END:|354-action|0|354-preAction\n // enter pre-action user code here\n String __selectedString = getChapterPositions().getString(getChapterPositions().getSelectedIndex());//GEN-BEGIN:|354-action|1|364-preAction\n if (__selectedString != null) {\n if (__selectedString.equals(\"Where I was last time\")) {//GEN-END:|354-action|1|364-preAction\n // write pre-action user code here\n//GEN-LINE:|354-action|2|364-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Start of chapter\")) {//GEN-LINE:|354-action|3|365-preAction\n // write pre-action user code here\n//GEN-LINE:|354-action|4|365-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"End of chapter\")) {//GEN-LINE:|354-action|5|366-preAction\n // write pre-action user code here\n//GEN-LINE:|354-action|6|366-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"Go to percent\")) {//GEN-LINE:|354-action|7|608-preAction\n // write pre-action user code here\n switchDisplayable(null, getChapterPositions());//GEN-LINE:|354-action|8|608-postAction\n // write post-action user code here\n }//GEN-BEGIN:|354-action|9|354-postAction\n }//GEN-END:|354-action|9|354-postAction\n // enter post-action user code here\n }", "title": "" }, { "docid": "76e612b83ca44cbdc8926106ef3f1209", "score": "0.61959624", "text": "public void processRequestButton(ActionEvent actionEvent) {\n\n switch ((String) selectionComboBox.getValue()) {\n case \"Insert\":\n insertStudentRecord();\n break;\n case \"Delete\":\n deleteStudentRecord();\n break;\n case \"Find\":\n findStudentRecord();\n break;\n case \"Update\":\n updateStudentRecord();\n break;\n default: // Default value set unused\n break;\n } // end switch\n }", "title": "" }, { "docid": "ea46213702cd689ecaf12c59abc0f82e", "score": "0.6193576", "text": "protected void init_actions()\n {\n action_obj = new CUP$AnalizadorSIntactico$actions(this);\n }", "title": "" }, { "docid": "8f78a7b670fc8abeefcd09d7ba8093a8", "score": "0.61857057", "text": "public void onActionPerformed(\n ActionEvent ae) throws Exception \n { \n if (ae.getActionCommand().equals(clearAction)) \n { clear(); }\n else if (ae.getActionCommand().equals(loadConstructsAction)) \n { loadConstructs(); }\n else if (ae.getActionCommand().equals(loadBatchAction)) \n { loadBatch(); }\n else if (ae.getActionCommand().equals(setDirectoryAction)) \n { setDirectory(); }\n else if (ae.getActionCommand().equals(resetAction))\n { reset(); }\n else if (ae.getActionCommand().equals(runAction))\n { run(); }\n else if (ae.getActionCommand().equals(stepAction))\n { step(); }\n else if (ae.getActionCommand().equals(haltRulesAction))\n { haltRules(); }\n else if (ae.getActionCommand().equals(haltExecutionAction)) \n { haltExecution(); }\n else if (ae.getActionCommand().equals(clearScrollbackAction)) \n { clearScrollback(); }\n }", "title": "" }, { "docid": "61042c3acb5992582daa7cf9a6f93c73", "score": "0.6173742", "text": "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "4efc060b8fdd91f33733fc10d10522d8", "score": "0.6171299", "text": "void performAction();", "title": "" }, { "docid": "a929cd4c370bf9fc546f7aef06a14637", "score": "0.6170139", "text": "private Actions() {}", "title": "" }, { "docid": "4527b6eab1baceb990a0f6266b229829", "score": "0.6165541", "text": "void onAction(Action action, ReactMouseEvent event);", "title": "" }, { "docid": "7fbb1f7cf2f6986e9827f68f4e9b689e", "score": "0.6158381", "text": "public void screenModesAction() {//GEN-END:|590-action|0|590-preAction\n // enter pre-action user code here\n switch (getScreenModes().getSelectedIndex()) {//GEN-BEGIN:|590-action|1|602-preAction\n case 0://GEN-END:|590-action|1|602-preAction\n // write pre-action user code here\n//GEN-LINE:|590-action|2|602-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|590-action|3|603-preAction\n case 1://GEN-END:|590-action|3|603-preAction\n // write pre-action user code here\n//GEN-LINE:|590-action|4|603-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|590-action|5|604-preAction\n case 2://GEN-END:|590-action|5|604-preAction\n // write pre-action user code here\n//GEN-LINE:|590-action|6|604-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|590-action|7|606-preAction\n case 3://GEN-END:|590-action|7|606-preAction\n // write pre-action user code here\n//GEN-LINE:|590-action|8|606-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|590-action|9|605-preAction\n case 4://GEN-END:|590-action|9|605-preAction\n // write pre-action user code here\n//GEN-LINE:|590-action|10|605-postAction\n // write post-action user code here\n break;//GEN-BEGIN:|590-action|11|590-postAction\n }//GEN-END:|590-action|11|590-postAction\n // enter post-action user code here\n }", "title": "" }, { "docid": "4811e65a2c328054c56172b5b07b3a57", "score": "0.6153593", "text": "@Override\r\n \t\tpublic void actionPerformed( ActionEvent arg0 )\r\n \t\t{\n \r\n \t\t}", "title": "" }, { "docid": "0d265ff27633e218e29b68d163ad1ef5", "score": "0.6148841", "text": "@Override\n\tpublic void eventAction() {\n\t\tactionable.doAction();\n\t}", "title": "" }, { "docid": "334018698789212f67b6acebba303efb", "score": "0.6141477", "text": "private void createActions() {\n\n\t\tselectAction = new MakeProgramSelectionAction(this, provider.getTable());\n\t\ttool.addLocalAction(provider, selectAction);\n\n\t\tfilterAction = new FilterAction(this);\n\t\tfilterAction.setEnabled(currentProgram != null);\n\t\ttool.addLocalAction(provider, filterAction);\n\n\t\tDockingAction selectionAction = new SelectionNavigationAction(this, provider.getTable());\n\t\ttool.addLocalAction(provider, selectionAction);\n\t}", "title": "" }, { "docid": "ecc00549aa61331dd60b2bd598893986", "score": "0.61335486", "text": "void bindActions();", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "94ca8c1c7cce29587bba7200a8751144", "score": "0.61234456", "text": "public void setAction(String action) {\n this.action = action;\n }", "title": "" }, { "docid": "655f68fc4eff2aa04559b932d26ca8a9", "score": "0.6120047", "text": "public void setAction(int action) {\n this.action = action;\n }", "title": "" }, { "docid": "655f68fc4eff2aa04559b932d26ca8a9", "score": "0.6120047", "text": "public void setAction(int action) {\n this.action = action;\n }", "title": "" }, { "docid": "5aef9c4d64073b8a38be57b0f494ab0f", "score": "0.6114805", "text": "private void addActions()\n {\n ActionSelectionDialog dlg = new ActionSelectionDialog(getSite().getShell());\n if (dlg.open() == Window.OK)\n {\n for(ServerAction a : dlg.getSelection())\n actions.put(a.getId(), a);\n actionViewer.setInput(actions.values().toArray());\n setModified();\n }\n }", "title": "" }, { "docid": "03fcf3e2957fe38f5ee22c988b1ee1cd", "score": "0.61136615", "text": "public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction\n // write pre-action user code here\n if (displayable == DistrictList) {//GEN-BEGIN:|7-commandAction|1|61-preAction\n if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|1|61-preAction\n // write pre-action user code here\n DistrictListAction();//GEN-LINE:|7-commandAction|2|61-postAction\n // write post-action user code here\n } else if (command == backCommand) {//GEN-LINE:|7-commandAction|3|64-preAction\n // write pre-action user code here\n//GEN-LINE:|7-commandAction|4|64-postAction\n // write post-action user code here\n switchDisplayable(null, getDivisionList());\n\n\n\n\n } else if (command == okCommand3) {//GEN-LINE:|7-commandAction|5|66-preAction\n // write pre-action user code here\n\n\n List c1 = getDistrictList();\n StringItem message[] = new StringItem[c1.size()];\n boolean get[] = new boolean[c1.size()];\n c1.getSelectedFlags(get);\n for (int i = 0; i < get.length; i++) {\n System.out.println(\"index : \" + i);\n if (get[i]) {\n System.out.println(\"found index : \" + i);\n currentDistrictId = ((AreaModel) (vector.elementAt(i))).id;\n utility u = new utility();\n\n try {\n Response = u.sendPostRequest(currentType + \"\", currentDistrictId + \"\");\n System.out.println(\"the response is : \" + Response);\n textBox=null;\n switchDisplayable(null, getTextBox());\n } catch (Exception e) {\n }\n\n\n }\n }\n\n\n\n\n//GEN-LINE:|7-commandAction|6|66-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|7|49-preAction\n } else if (displayable == DivisionList) {\n if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|7|49-preAction\n // write pre-action user code here\n DivisionListAction();//GEN-LINE:|7-commandAction|8|49-postAction\n // write post-action user code here\n } else if (command == backCommand2) {//GEN-LINE:|7-commandAction|9|53-preAction\n // write pre-action user code here\n switchDisplayable(null, getAllStationList());\n//GEN-LINE:|7-commandAction|10|53-postAction\n // write post-action user code here\n } else if (command == okCommand2) {//GEN-LINE:|7-commandAction|11|55-preAction\n // write pre-action user code here\n\n List c1 = getDivisionList();\n StringItem message[] = new StringItem[c1.size()];\n boolean get[] = new boolean[c1.size()];\n c1.getSelectedFlags(get);\n for (int i = 0; i < get.length; i++) {\n if (get[i]) {\n currentDivision = i;\n DistrictList=null;\n switchDisplayable(null, getDistrictList());\n break;\n\n\n }\n }\n\n\n\n\n\n\n\n\n//GEN-LINE:|7-commandAction|12|55-postAction\n /* // write post-action user code here\n//GEN-BEGIN:|7-commandAction|13|24-preAction\n }\n } else if (displayable == allStationList) {\n if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|13|24-preAction\n // write pre-action user code here\n \n//GEN-BEGIN:|7-commandAction|14|24-postAction\n allStationListAction ();//GEN-END:|7-commandAction|14|24-postAction\n // write post-action user code here\n \n//GEN-BEGIN:|7-commandAction|15|58-preAction\n } else if (command == exitCommand) {//GEN-END:|7-commandAction|15|58-preAction\n // write pre-action user code here\n */\n }\n } else if (displayable == allStationList) {\n if (command == exitCommand) {\n\n notifyDestroyed();\n\n//GEN-LINE:|7-commandAction|16|58-postAction\n // write post-action user code here\n } else if (command == okCommand) {//GEN-LINE:|7-commandAction|17|32-preAction\n // write pre-action user code here\n currentStation = 1;\n System.out.println(\"clicjed\");\n //switchDisplayable(null, getList1()); \n\n List c1 = getAllStationList();\n StringItem message[] = new StringItem[c1.size()];\n boolean get[] = new boolean[c1.size()];\n c1.getSelectedFlags(get);\n for (int i = 0; i < get.length; i++) {\n if (get[i]) {\n\n if (c1.getString(i).equals(\"Police Station\")) {\n\n currentType = 1;\n System.out.println(\"it is working .....|_|_\");\n DivisionList=null;\n switchDisplayable(null, getDivisionList());\n// policeStaionList=null;\n// switchDisplayable(null, getPoliceStaionList());\n } else if (c1.getString(i).equals(\"Fire Station\")) {\n // showInput(); \n currentType = 2;\n System.out.println(\"it is working .....|_|_\");\n DivisionList=null;\n switchDisplayable(null, getDivisionList());\n \n }\n\n\n }\n }\n\n\n//GEN-LINE:|7-commandAction|18|32-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|19|68-preAction\n } else if (displayable == detailsStationInfo) {\n if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|19|68-preAction\n // write pre-action user code here\n detailsStationInfoAction();//GEN-LINE:|7-commandAction|20|68-postAction\n // write post-action user code here\n } else if (command == backCommand) {//GEN-LINE:|7-commandAction|21|71-preAction\n // write pre-action user code here\n switchDisplayable(null, getDistrictList());\n\n//GEN-LINE:|7-commandAction|22|71-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|23|34-preAction\n } else if (displayable == policeStaionList) {\n if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|23|34-preAction\n // write pre-action user code here\n policeStaionListAction();//GEN-LINE:|7-commandAction|24|34-postAction\n // write post-action user code here\n } else if (command == backCommand) {//GEN-LINE:|7-commandAction|25|37-preAction\n // write pre-action user code here\n switchDisplayable(null, getAllStationList());\n\n//GEN-LINE:|7-commandAction|26|37-postAction\n // write post-action user code here\n } else if (command == okCommand2) {//GEN-LINE:|7-commandAction|27|75-preAction\n // write pre-action user code here\n//GEN-LINE:|7-commandAction|28|75-postAction\n // write post-action user code here\n List c1 = getDivisionList();\n StringItem message[] = new StringItem[c1.size()];\n boolean get[] = new boolean[c1.size()];\n c1.getSelectedFlags(get);\n for (int i = 0; i < get.length; i++) {\n if (get[i]) {\n currentDivision = i;\n DistrictList=null;\n switchDisplayable(null, getDistrictList());\n\n\n }\n }\n }//GEN-BEGIN:|7-commandAction|29|74-preAction\n } else if (displayable == textBox) {\n if (command == backCommand4) {//GEN-END:|7-commandAction|29|74-preAction\n // write pre-action user code here\n\n switchDisplayable(null, getDistrictList());\n\n//GEN-LINE:|7-commandAction|30|74-postAction\n // write post-action user code here\n }//GEN-BEGIN:|7-commandAction|31|7-postCommandAction\n }//GEN-END:|7-commandAction|31|7-postCommandAction\n // write post-action user code here\n }", "title": "" }, { "docid": "bc6a5505a990ff426317ac3cda147caf", "score": "0.61108214", "text": "public void actionPerformed(ActionEvent actionEvent) {\n\t\tif (eventsLogic.getItemSelected() == \"PAPER\") {\n\t\t\tJButton clickedButton = (JButton)actionEvent.getSource();\n\t\t\tbuttonReact(actionEvent, clickedButton);\n\t\t} else {\n\t\t\teventsGUI.getMessageWindow().setText(\"<html><font color = white>Pressing that button didn't seem to do anything...</font></html>\");\n\t\t}\n\t}", "title": "" }, { "docid": "291ff54b26a7e301bbe13a0aa670c05d", "score": "0.6107708", "text": "public String getAction();", "title": "" }, { "docid": "291ff54b26a7e301bbe13a0aa670c05d", "score": "0.6107708", "text": "public String getAction();", "title": "" }, { "docid": "3c4584cd1a7a358ea836e4bed82ea9fa", "score": "0.610693", "text": "public void selectAction(Actions action){\n currentAction.put(currentActivePlayer,action);\n serverViews.get(currentServerView).sendActionResponse(action);\n switch (action){\n case MARKETACTION:\n case USEPRODUCTION:\n case BUYDEVELOPMENTCARD: {\n numOfActions.put(currentActivePlayer,true);\n break;\n }\n case DISCARDLEADERCARD:\n case PLAYLEADERCARD:{\n break;\n }\n }\n }", "title": "" }, { "docid": "c0994c7247d441b44f92261f21250ba5", "score": "0.61059296", "text": "private void submitAction() {\n String choice = null;\n switch (actionState.getCheckedRadioButtonId()) {\n case R.id.zombie_action_military:\n choice = Zombie.ZACTION_MILITARY;\n break;\n case R.id.zombie_action_cure:\n choice = Zombie.ZACTION_CURE;\n break;\n case R.id.zombie_action_horde:\n choice = Zombie.ZACTION_ZOMBIE;\n break;\n }\n\n if (zombieData != null && choice != null && !choice.equals(zombieData.action)) {\n ((ZombieControlActivity) getActivity()).startSubmitAction(choice);\n }\n }", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.6104623", "text": "String getAction();", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.6104623", "text": "String getAction();", "title": "" }, { "docid": "b27108768a1246664d04a821f911aef3", "score": "0.6104623", "text": "String getAction();", "title": "" }, { "docid": "51bd5959d04d419bcad61b8a409bfa6a", "score": "0.61042905", "text": "public void customAction() {}", "title": "" }, { "docid": "15fc93dc49ff51f62d473ae58d827d7a", "score": "0.61040795", "text": "public void setAction() {\n actionType = COMMAND_WORD;\n }", "title": "" }, { "docid": "241e169c84687d197a24ec981ab7b32f", "score": "0.6096132", "text": "protected void init_actions()\n {\n action_obj = new CUP$ResponseParser$actions(this);\n }", "title": "" }, { "docid": "ff4d64f412317be3a70aa90736e1a536", "score": "0.60957664", "text": "public int getAction() {\n return action_;\n }", "title": "" }, { "docid": "ff4d64f412317be3a70aa90736e1a536", "score": "0.60957664", "text": "public int getAction() {\n return action_;\n }", "title": "" }, { "docid": "ff4d64f412317be3a70aa90736e1a536", "score": "0.60957664", "text": "public int getAction() {\n return action_;\n }", "title": "" }, { "docid": "7784675b28b663ddcf78febc43a987f0", "score": "0.6085657", "text": "public java.lang.String getAction();", "title": "" }, { "docid": "7784675b28b663ddcf78febc43a987f0", "score": "0.6085657", "text": "public java.lang.String getAction();", "title": "" }, { "docid": "f4107eda5252a0721af93be46a747dc3", "score": "0.6084584", "text": "protected void init_actions()\n {\n action_obj = new CUP$SintacticoGD$actions(this);\n }", "title": "" }, { "docid": "c5321e60ff274b9c122ededa873ad225", "score": "0.6075397", "text": "@Override\r\n\tpublic void onPerformActionEvent(Action<Game> action, Game game) {\n\t}", "title": "" }, { "docid": "1f691420456a30c22d40df9b67e21ecc", "score": "0.6072643", "text": "public void DivisionListAction() {//GEN-END:|48-action|0|48-preAction\n // enter pre-action user code here\n String __selectedString = getDivisionList().getString(getDivisionList().getSelectedIndex());//GEN-BEGIN:|48-action|1|51-preAction\n if (__selectedString != null) {\n if (__selectedString.equals(\"Barisal Divsion\")) {//GEN-END:|48-action|1|51-preAction\n // write pre-action user code here\n//GEN-LINE:|48-action|2|51-postAction\n // write post-action user code here\n } else if (__selectedString.equals(\"List Element 2\")) {//GEN-LINE:|48-action|3|59-preAction\n // write pre-action user code here\n//GEN-LINE:|48-action|4|59-postAction\n // write post-action user code here\n }//GEN-BEGIN:|48-action|5|48-postAction\n }//GEN-END:|48-action|5|48-postAction\n // enter post-action user code here\n }", "title": "" }, { "docid": "b2dadfd768851d38f61108c3eb9cffb6", "score": "0.6071599", "text": "public void cActionPerformed(CActionEvent action) {\n\n\t}", "title": "" }, { "docid": "242a907dd1ffe376784190f526f2379d", "score": "0.60694814", "text": "public void setAction(String Action) {\n this.Action = Action;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a3e0a3810a05be7bb06315a848bdbebf", "score": "0.0", "text": "@Override\n\tpublic void read() {\n\t\tSystem.out.println(\"Invoice read()\");\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
851f8482b4bbcf98db432607378e3733
slow solution Runtime: 28 ms, faster than 5.45%
[ { "docid": "c52a17888bbff3a28a917a2428b7eba0", "score": "0.0", "text": "public boolean judgeCircle2(String moves) {\n List<Character> cList = new ArrayList<>();\n\n char[] cArr = moves.toCharArray();\n for (char c : cArr) {\n if (c == 'U'){\n if (cList.contains('D')){\n cList.remove(new Character('D'));\n }else {\n cList.add(c);\n }\n }else if (c == 'D'){\n if (cList.contains('U')){\n cList.remove(new Character('U'));\n }else {\n cList.add(c);\n }\n }else if (c == 'L'){\n if (cList.contains('R')){\n cList.remove(new Character('R'));\n }else {\n cList.add(c);\n }\n }else if (c == 'R'){\n if (cList.contains('L')){\n cList.remove(new Character('L'));\n }else {\n cList.add(c);\n }\n }\n }\n\n return cList.isEmpty();\n }", "title": "" } ]
[ { "docid": "c62886d03098510fd75b8825b9ebc96f", "score": "0.64385587", "text": "static long[] solve()\n {\n dist = new int[1<<N] ; Arrays.fill(dist,9999) ;\n ways = new long[1<<N] ; Arrays.fill(ways,(long)0) ;\n dist[0] = 0 ; ways[0] = 1 ;\n Queue<ez> q = new LinkedList<ez>() ;\n ez cur = new ez(0,1,0) ;\n q.offer(cur) ;\n while(!q.isEmpty())\n {\n cur = q.poll() ;\n n = 0 ;\n mask = cur.mask ;\n fNM(cur.mask,0,-1,-1) ;\n for (int i = 0 ; i < n ; i ++)\n {\n if (dist[nextMasks[i]] > cur.cost + 1)\n {\n ways[nextMasks[i]] += ways[cur.mask] ;\n ways[nextMasks[i]] %= mod ;\n dist[nextMasks[i]] = cur.cost + 1 ;\n q.offer(new ez(cur.cost + 1 ,0,nextMasks[i] )) ; // LOL forget the counting part..\n }\n else if (dist[nextMasks[i]] == cur.cost + 1)\n {\n ways[nextMasks[i]] += ways[cur.mask] ;\n ways[nextMasks[i]] %= mod ;\n }\n }\n }\n \n long[] res = new long[2] ;\n res[0] = dist[(1<<N) - 1] ;\n res[1] = ways[(1<<N) - 1] % mod ;\n return res ;\n }", "title": "" }, { "docid": "e9022645e7c0da486f23e3815f0e5b0b", "score": "0.6227801", "text": "private static void calculateSolution(SearchAlgorithm algorithm, long startTime) {\n solutionRepresentation = createWorstSolution();\n\n switch (algorithm) {\n case BLIND_RANDOM_SEARCH ->\n useBlindRandomSearchOnSolution();\n case LOCAL_SEARCH ->\n useLocalSearchOnSolution();\n case SIMULATED_ANNEALING_SEARCH ->\n useSimulatedAnnealingOnSolution();\n case ADAPTIVE_METAHEURISTIC_SEARCH ->\n useAdaptiveMetaheuristicOnSolution(startTime);\n default -> log.error(\"Did not recognize the selected algorithm\");\n }\n if (algorithm != SearchAlgorithm.LOCAL_SEARCH) {\n System.out.println(\"cost before local search = \" + calculateCost(solutionRepresentation));\n useLocalSearchOnSolution();\n }//*/\n System.out.println(\"SolutionRepresentation = \" + solutionRepresentation);\n System.out.println(\"Feasible = \" + feasible(solutionRepresentation));\n System.out.println(\"Solution cost = \" + calculateCost(solutionRepresentation));\n\n\n // [7, 7, 5, 5, 0, 0, 0, 6, 6] = 901763\n // [1, 1, 0, 0, 0] = 253136 v\n // [2, 2, 0, 0, 0] = 123912 v\n // [3, 3, 0, 0, 0] = 78456 v\n // [4, 4, 0, 0, 0] = 33847 v\n // [5, 5, 0, 0, 0] = 239956 v\n // [6, 6, 0, 0, 0] = 158919 v\n // [7, 7, 0, 0, 0] = 87914 v\n // [0, 2, 2, 0, 0] = 91265 v\n // [0, 0, 2, 2, 0] = 114594 v\n // [0, 0, 0, 2, 2] = 430790 v\n // [1, 1, 0, 2, 2, 0, 3, 3, 0, 4, 4] = 738471 v\n // [1, 2, 1, 2, 0, 0, 0] = 309704 v false\n // [1, 1, 2, 2, 0, 0, 0] = 383431 v false\n // [1, 1, 2, 2, 3, 3, 0, 0, 0] = 580306 v false\n // [1, 1, 2, 2, 3, 3, 4, 4, 0, 0, 0] = 634306 v false\n // [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 0, 0, 0] = 872235 v false\n // [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 0, 0, 0] = 953849 v false\n // [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 0, 0, 0] = 1164367 v false\n // [7, 7, 5, 5, 0, 2, 2, 0, 3, 4, 4, 3, 1, 1, 0, 6, 6] = 1439159 v false\n /* values = Arrays.asList(1, 7, 0, 1, 0, 6, 6, 0, 7, 3, 2, 5, 2, 4, 3, 4, 5);\n IVectorSolutionRepresentation<Integer> sol3 = new VectorSolutionRepresentation<>(values);\n System.out.println(feasible(sol3));\n System.out.println(calculateCost(sol3));\n*/\n }", "title": "" }, { "docid": "f60808cbe4e283e9f8514fc8e5a5e096", "score": "0.60096765", "text": "void branchAndBound(int sommetCrt, ArrayList<Integer> nonVus, ArrayList<Integer> vus, int coutVus, int[][] cout, int[] duree, long tpsDebut, int tpsLimite, int[][] tmpTempsPassage){\n\t\t if (System.currentTimeMillis() - tpsDebut > tpsLimite){\n\t\t\t tempsLimiteAtteint = true;\n\t\t\t return;\n\t\t }\n\t if (nonVus.size() == 0){ // tous les sommets ont ete visites\n\t \tcoutVus += cout[sommetCrt][cout.length-1];\n\t \tif (coutVus < coutMeilleureSolution){ // on a trouve une solution meilleure que meilleureSolution\n\t \t\tvus.toArray(meilleureSolution);\n\t \t\tcoutMeilleureSolution = coutVus;\n for (int i = 0; i < tempsPassage.length; i++){\n tempsPassage[i][0] = tmpTempsPassage[i][0];\n tempsPassage[i][1] = tmpTempsPassage[i][1];\n }\n\t \t}\n\t } else if (coutVus + bound(sommetCrt, nonVus, cout, duree) < coutMeilleureSolution){\n \n\t Iterator<Integer> it = iterator(sommetCrt, nonVus, cout, duree);\n\t while (it.hasNext()){\n\t \tInteger prochainSommet = it.next();\n\t \tvus.add(prochainSommet); \n\t \tnonVus.remove(prochainSommet);\n tmpTempsPassage[prochainSommet][0] = tmpTempsPassage[sommetCrt][1] + cout[sommetCrt][prochainSommet];\n tmpTempsPassage[prochainSommet][1] = tmpTempsPassage[prochainSommet][0] + duree[prochainSommet];\n \n \n if (plagesHoraires[prochainSommet][0] == -1){\n branchAndBound(prochainSommet, nonVus, vus, coutVus + cout[sommetCrt][prochainSommet] + duree[prochainSommet], cout, duree, tpsDebut, tpsLimite, tmpTempsPassage);\n } else if(plagesHoraires[prochainSommet][1] < tmpTempsPassage[prochainSommet][0]){\n vus.remove(prochainSommet);\n nonVus.add(prochainSommet);\n break;\n } else {\n if (plagesHoraires[prochainSommet][0] > tmpTempsPassage[prochainSommet][0]){ \n int calcul = plagesHoraires[prochainSommet][0] - tmpTempsPassage[prochainSommet][0];\n tmpTempsPassage[prochainSommet][0] = plagesHoraires[prochainSommet][0];\n tmpTempsPassage[prochainSommet][1] = plagesHoraires[prochainSommet][0] + duree[prochainSommet];\n branchAndBound(prochainSommet, nonVus, vus, coutVus + cout[sommetCrt][prochainSommet] + duree[prochainSommet] + calcul, cout, duree, tpsDebut, tpsLimite, tmpTempsPassage);\n } else {\n branchAndBound(prochainSommet, nonVus, vus, coutVus + cout[sommetCrt][prochainSommet] + duree[prochainSommet], cout, duree, tpsDebut, tpsLimite, tmpTempsPassage);\n }\n }\n\t \tvus.remove(prochainSommet);\n\t \tnonVus.add(prochainSommet);\n\t }\t \n\t }\n\t}", "title": "" }, { "docid": "bb1283ef85c7b23353f44769f000976a", "score": "0.5982367", "text": "private static void BruteForceMethod() {\n\t\tlong total = 0;\r\n\t\tint i=0;\r\n\t\tint j=0;\r\n\t\tfor(i=0;i<100000;i++){\r\n\t\t\t\r\n\t\t\tfor(j=i;j<100000;j++){\r\n\t\t\t\tif (array[i]>array[j]){\r\n\t\t\t\t\ttotal++;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(i%1000 == 0){\r\n\t\t\tSystem.out.print(total);\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.print(total);\r\n\t\tSystem.out.print(\"\\n Final total\");\r\n\t}", "title": "" }, { "docid": "ea0abfd77d9ee73f9639250e36266df1", "score": "0.598062", "text": "public static int solve() {\n\t\tint[] X = new int[1000000];\n\t\tint sum = 0;\n\t\tfor (int i = 2; i < X.length; i++)\n\t\t\tX[i] = (i - 1) % 9 + 1;\n\t\tfor (int j = 2; j < 1000000; j++) {\n\t\t\tint drsj = X[j];\n\t\t\tfor (int k = 2, n = j + j; k <= j && n < 1000000; k++, n += j)\n\t\t\t\tX[n] = Math.max(X[n], drsj + X[k]);\n\t\t\tsum += drsj;\n\t\t}\n\t\treturn sum;\n\t}", "title": "" }, { "docid": "680444308503aee8fef45ded5222adfb", "score": "0.59105045", "text": "@Override\n\tpublic void solve() {\n\t\tPrime pr=new Prime();\n\t\tList<Long> primes= pr.getPrimesInRange(1000000);\n\t\tSet<String> primeSet=new HashSet<String>();\n \t\tfor(Long primeNum:primes){\n \t\t\tString primeStr=primeNum.toString();\n \t\t\tif(primeStr.length() <2 || !primeStr.matches(\".*[024568].*\")){\n \t\t\tprimeSet.add(primeNum.toString());\t\n \t\t\t}\n \t\t}\n \t\t\n \t\tint count=0;\n \t\tfor(String primeNum:primeSet){\n \t\t\tSystem.out.println(primeNum);\n \t\t\tString primeStr=primeNum;\n \t\t\tif(primeStr.length()<1){System.out.println(\"singles\"+primeNum); count++;continue;}\n \t\t\tboolean found=true;\n \t\t\tfor(int i=1;i<primeStr.length();i++){\n \t\t\t\tprimeStr =rotate(primeStr);\n \t\t\t\tif(!primeSet.contains(primeStr)){\n \t\t\t\t\tSystem.out.println(\"not found\"+primeNum);\n \t\t\t\t\tfound=false;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(found) count++;\n \t\t}\n \t\t\n \t\tresult=count;\n\t}", "title": "" }, { "docid": "40f9afbf369f95e9d89f3acffd63f2e4", "score": "0.5906919", "text": "boolean checkResult( int[] solution ){\n for( int i = 0; i < this.size; i++ ) { \n for( int j = i + 1; j < this.size; j++ ) { \n for( int k = j + 1; k < this.size; k++ ) { \n int x1 = i;\n int x2 = j;\n int x3 = k;\n int y1 = solution[x1];\n int y2 = solution[x2];\n int y3 = solution[x3];\n\n if( ( x2-x1) * ( y3 -y1 ) == ( x3 - x1 ) * ( y2-y1 ) ) {\n return false;\n }\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "eae6c071b81ec786317b5792caf20b08", "score": "0.5893947", "text": "private void computeSolution() {\n // TODO: add solver parameters as argument\n int maxIterations = 10000;\n double diff_max = 10000;\n double criteriaIndividual = 0.0001;\n double criteriaTotal = 0.001;\n\n\n\n if (verbose) {\n System.out.println(\"Parameters for solver are:\");\n System.out.println(\" - relative individual increment = \" + criteriaIndividual);\n System.out.println(\" - relative total increment = \" + criteriaTotal);\n System.out.println(\" - max iterations = \" + maxIterations);\n System.out.print(\"Started solver iterations...\");\n\n }\n\n // iteration counter\n int iteration = 0;\n double total_diff = 10000;\n\n // Iterative procedure. Two stopping criterion are used:\n // - maximum number of iterations\n // - improvement compared to the previous solution\n while ( (!(diff_max < criteriaIndividual) || !(total_diff < criteriaTotal)) && iteration <= maxIterations ) {\n\n // increment counter\n iteration++;\n\n // update travel times based on current solution\n updateTravelTimes(flowSolution);\n\n // assign flows based on updated travel times\n double[] y = assignFlows();\n\n // Unidimensional search by Golden Section method\n double[] newSolution = GoldenSection.getNewFlow(flowSolution, y, linkIDList, linkMap, nodeIDList);\n\n // check for convergence\n diff_max = 0.0;\n total_diff = 0.0;\n //System.out.println(\"Printing improvements\");\n for (int a = 0; a < L; a++) {\n double diff = 0;\n //System.out.println(newSolution[a] + \", \" + flowSolution[a]);\n if (flowSolution[a] == 0) {\n diff = Math.abs(newSolution[a] - flowSolution[a]);\n } else {\n diff = Math.abs((newSolution[a] - flowSolution[a]) / flowSolution[a]);\n }//if\n //System.out.println(diff + \", \" + total_diff);\n\n total_diff = total_diff + diff;\n if (diff > diff_max) {\n diff_max = diff;\n }\n }\n\n //update solution\n flowSolution = newSolution;\n }// while\n\n if (verbose) {\n System.out.print(\" done ! \\nFinished iterating\");\n System.out.println(\" - number of iterations: \" + String.valueOf(iteration));\n System.out.println(\" - final total improvement: \" + String.valueOf(total_diff));\n }\n }", "title": "" }, { "docid": "1b0e86cf9be0787425422d0912282114", "score": "0.58837926", "text": "public int[] search2(int m, int n, int givenNum){\n int[] b = new int[7];\r\n b[m] = 1;\r\n b[n] = 1;\r\n int a;\r\n if(n > m) {\r\n int temp = n;\r\n n = m;\r\n m = temp;\r\n }\r\n int ind = 0;\r\n int[] c = new int[4];\r\n for(int i = 1; i < 7; ++ i){\r\n if(b[i] == 1) continue;\r\n c[ind] = i;\r\n// System.out.println(c[ind]);\r\n ++ ind;\r\n } //c3 > c2 > c1 >c0\r\n int big1 = constructNum0(m,c[2],c[0]);\r\n int big2 = constructNum0(n,c[3],c[1]);\r\n int big = big1 * big2;\r\n// System.out.println(big1);\r\n// System.out.println(big2);\r\n// System.out.println(big);\r\n\r\n int small1 = constructNum0(m,c[1],c[3]);\r\n int small2 = constructNum0(n,c[0],c[2]);\r\n int small = small1 * small2;\r\n// System.out.println(small1);\r\n// System.out.println(small2);\r\n// System.out.println(small);\r\n\r\n int[] g1 = {1,1};\r\n int[] g2 = {0,0};\r\n int[] g3 = {small1,small2};\r\n int[] g4 = {big1,big2};\r\n// int[] g5 = {0,1};\r\n\r\n int index = 0;\r\n int[][] fa = new int[24][2];\r\n int[] cha = new int[24];\r\n\r\n if(givenNum > big) return g1;\r\n\r\n else if(givenNum < small) return g2;\r\n\r\n else { // givenNum 一定在m[][] * n[][]的范围内\r\n for(int i = 0; i < 3; ++ i){\r\n for(int j = 0; j < 3; ++ j){\r\n if (j == i) continue;\r\n int[] bug = search4(m,n,c[i],c[j],givenNum);\r\n if((bug[0] != g1[0]) && (bug[0] != g2[0])) {\r\n return search4(m,n,c[i],c[j],givenNum);\r\n }\r\n }\r\n\r\n }\r\n }\r\n for(int i = 0; i < 3; ++ i) {\r\n for (int j = 0; j < 3; ++j) {\r\n if (j == i) continue;\r\n fa[index] = search4x(m,n,c[i],c[j],givenNum); //注意: 这是search4x()函数,不是search4(),返回值是2个乘数\r\n cha[index] = Math.abs(fa[index][0] * fa[index][1] - givenNum);\r\n ++ index;\r\n }\r\n }\r\n int minicha = 100000;\r\n int minichaindex = 0;\r\n for(int i = 0; i < index; ++ i){\r\n if(cha[i] < minicha) {\r\n minicha = cha[i];\r\n minichaindex = i;\r\n }\r\n }\r\n return fa[minichaindex];\r\n }", "title": "" }, { "docid": "51856af1275c5e2cfe8f99712118ec11", "score": "0.58508384", "text": "public static void main(String[] args) {\n\t\n\t\t\n\t\tfor (int n=10;n<=500000000;n*=2) {\n\t\t\t\n\t\t\t//let's declare our variables\n\t\t\t\tStopWatch myWatch = new StopWatch();\n\t\t\t\n\t\t\t\tlong timeGenerateArray;\n\t\t\t\tlong timeLinearSearch;\n\t\t\t\tlong timeDuplicate;\n\t\t\t\tlong timeBubbleSort;\n\t\t\t\tlong timeLibrary;\n\t\t\t\tlong timeBinarySearch;\n\n\t\t\t\n\t\t\t//first generate an array with random values of size n,store how long it takes in microseconds\n\t\t\t\tStopWatch.start();\n\t\t\t\tint [] array=ArrayUtilities.generateRandom(n);\n\t\t\t\tStopWatch.stop();\n\t\t\t\ttimeGenerateArray= (StopWatch.getTimeMicro());\n\t\t\t\n\t\t\t//search for the number -1 in the array using linear search method, see how long it takes in microseconds\n\t\t\t\tStopWatch.start();\n\t\t\t\tArrayUtilities.linearSearch(array,-1);\n\t\t\t\tStopWatch.stop();\n\t\t\t\ttimeLinearSearch= (StopWatch.getTimeMicro());\n\n\t\t\t//call duplicate method,store result into new array variable, store how long this takes in microseconds\n\t\t\t\tStopWatch.start();\n\t\t\t\tint[] newArray=ArrayUtilities.copy(array);\n\t\t\t\tStopWatch.stop();\n\t\t\t\ttimeDuplicate=(StopWatch.getTimeMicro());\n\t\t\t\t\n\t\t\t//call bubblesort method, store how long it takes in microseconds\n\t\t\t\t//Add the if statement so program won't crash as n get's too large\n\t\t\t\tif (n<100000){\n\t\t\t\t\tStopWatch.start();\n\t\t\t\t\tarray=ArrayUtilities.sort(array);\n\t\t\t\t\tStopWatch.stop();\n\t\t\t\t\ttimeBubbleSort=(StopWatch.getTimeMicro());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttimeBubbleSort=1;\n\t\t\t\t}\n\t\t\t//call Arrays.sort, pass to duplicated array,store how long this method takes in microseconds\n\t\t\t\tStopWatch.start();\n\t\t\t\tArrays.sort(newArray);\n\t\t\t\tStopWatch.stop();\n\t\t\t\ttimeLibrary=(StopWatch.getTimeMicro());\n\t\t\t\t\n\t\t\t//call method binary search and look for -1 in sorted int[], store how long this takes in microseconds\n\t\t\t\tStopWatch.start();\n\t\t\t\tArrayUtilities.binarySearch(array, -1);\n\t\t\t\tStopWatch.stop();\n\t\t\t\ttimeBinarySearch=(StopWatch.getTimeMicro());\n\t\t\t\n\t\t\t//print all the times of various methods in order\t\t\t\t\n\t\t\t\tSystem.out.println((n)+\",\"+(timeGenerateArray)+\",\"+(timeLinearSearch)+\",\"+(timeDuplicate)+\",\"+(timeBubbleSort)+\",\"+(timeLibrary)+\",\"+(timeBinarySearch));\t\n\t\t\n\t\t}//endloop\n\t}", "title": "" }, { "docid": "ae7f7b53df1ed51c5684a23f159c0cea", "score": "0.58438545", "text": "@SuppressWarnings(\"Main Logic\")\r\n void solve() {\r\n int n = ii(), a[] = iia(n + 1);\r\n for (int Q = ii(); Q > 0; Q--) {\r\n int x = ii();\r\n long ans = 0;\r\n for (int i = 0; i <= n; i++) ans = (ans + a[i] * modpow(x, i, mod)) % mod;\r\n out.println(ans);\r\n }\r\n }", "title": "" }, { "docid": "c9f18bc0ce1522878c447d8993e08067", "score": "0.5824944", "text": "public double solveBruteForce()\r\n\t{\r\n\t\tint total = points.length;\r\n\t\tdouble distanceSq = Double.MAX_VALUE;\r\n\t\t\r\n\t\t\r\n\t\tfor (int i = 0; i < total - 1; i++)\r\n\t\t\tfor (int j = i + 1; j < total; j++)\r\n\t\t\t\tdistanceSq = Math.min(distanceSq, points[j].distance(points[i]));\r\n\t\t\r\n\t\t// Sequence: x(1)=0,x(2)=1,x(3)=3,x(4)=6,x(5)=10,x(6)=15\r\n\t\t// Formula = N(N-1)/2\r\n\t\ttotalComparisons = total * (total - 1) / 2;\r\n\t\t\r\n\t\treturn Math.sqrt(distanceSq);\r\n\t}", "title": "" }, { "docid": "24b998bfc6e69e8bd326ef85ed859950", "score": "0.5799567", "text": "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n\n Map<Integer, int[]> map = new HashMap<Integer, int[]>();\n\n for(int i = 1; i <= n; i++){\n int[] arr = new int[2];\n Arrays.fill(arr, -1);\n map.put(i, arr);\n }\n\n\n int[] arr = new int[n];\n for(int i = 0; i < 2*n; i++){\n int curr = in.nextInt(); \n if(map.get(curr)[0] == -1){\n map.get(curr)[0] = i; \n } else {\n map.get(curr)[1] = i;\n }\n }\n\n long summation = 0;\n int x_prev = 0;\n int y_prev = 0;\n\n // O(N)\n for(int i = 1; i <=n; i++){\n int x_curr = map.get(i)[0];\n int y_curr = map.get(i)[1];\n int distance1 = Math.abs(x_prev-x_curr) + Math.abs(y_prev-y_curr);\n int distance2 = Math.abs(x_prev-y_curr) + Math.abs(y_prev-x_curr);\n\n summation += Math.min(distance1, distance2);\n\n x_prev = x_curr;\n y_prev = y_curr;\n }\n\n // O(2N)\n /*for(int k = 0; k < 2; k++){\n int prevIndex = 0;\n for(int i = 1; i <= n; i++){\n int curr = map.get(i)[k];\n sum += Math.abs(prevIndex - curr);\n prevIndex = curr;\n }\n }*/\n\n System.out.println(summation);\n }", "title": "" }, { "docid": "cea412c7360b1a21a7b007db26bb3701", "score": "0.5783055", "text": "public static int solve() {\n\t\t\n\t\t\n\t\tboolean prime[] = primeSieve(1000000);\n\t\tint total = 0;\n\t\t\n\t\tfor (int i = 0; i < prime.length; i++) {\n\t\t\tif (prime[i]) {\n\t\t\t\tint counter = 0;\n\t\t\t\tString[] rotations = rotations(String.valueOf(i));\n\t\t\t\tfor (int j = 0; j < rotations.length; j++) {\n\t\t\t\t\tif (prime[Integer.valueOf(rotations[j])]) counter++;\n\t\t\t\t}\n\t\t\t\tif (counter == rotations.length) total++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "title": "" }, { "docid": "a4ce66e8afb0bdc7bfdc2d7d2dfafb17", "score": "0.57577634", "text": "public static void main(String... args) {\n final int n = 9;\n final int m = 4;\n final int t0 = 2;\n// final String function = \"6996\";\n// final String function = \"030356c9\";\n// \"faff\" +\n// \"1f0f\";f2df\" +\n// \"4f0fffff1f0f42df\" +\n// \"900f8fff1f0ff2df4f0fffff1f0fa2dfad43\";\n List<List<Long>> gjb = Canteaut.generateFastGJB(n, t0);\n long total = gjb.size();\n double k =0;\n long start = System.currentTimeMillis();\n log.info(gjb.size());\n for (List<Long> currentGJB : gjb) {\n long ut0 = currentGJB.get(t0 - 1);\n long vt0 = Canteaut.nu(ut0, n);\n k = k+1;\n if ((getJ(currentGJB, n) > vt0) && ((getJ(currentGJB, n) - vt0) <= m - vt0 + 1 + t0)) {\n// log.info(currentGJB);\n ScrClass zero = new ScrClass(currentGJB, function, 0, n);\n ScrClass one = new ScrClass(currentGJB, function, 1, n);\n log.info(\"Complete: \" + (k / total)*100);\n combine(zero, one, currentGJB, t0, m, n);\n }\n\n }\n\n log.info(gjb.size());\n final double l = (System.currentTimeMillis() - start)/1000;\n log.info(\"Total time: \" + l + \" sec\");\n log.info(\"Total time: \" + (l/60) + \" min\");\n\n }", "title": "" }, { "docid": "86443af10e0f7ec0cdef93e0d35d0e0d", "score": "0.57539034", "text": "public static int solution(int[] A) {\n\n int length = A.length;\n int[] cost=new int[length +1];\n int idx7=0;\n int idx30=0;\n for (int i = 0; i < length; i++) {\n if(i==0)\n {\n cost[i]= 2;\n\n }\n else if(i>0&&A[i]-A[idx7]<6){\n int amout=cost[i-1]+2;\n cost[i]=amout;\n }else if(A[i]-A[idx7]==6)\n {\n int amout7=0;\n if(idx7==0)\n {amout7 =7;}\n else\n {\n amout7+=cost[idx7];\n }\n idx7++;\n if(amout7<cost[i-1])\n {\n cost[i]=amout7;\n }\n }else if(A[i]-A[idx30]==29)\n {\n\n int amout30=30 ;\n idx30++;\n if(amout30<cost[i-1])\n {\n cost[i]=amout30;\n }\n }else\n {\n cost[i]=cost[i-1]+2;\n }\n\n\n }\n return cost[length];\n }", "title": "" }, { "docid": "a6e86ebf89d3fd8c379df229bc0c0599", "score": "0.57387924", "text": "public long[] check(Point[] pts, long radis) {\n long inf = (long) 4e18;\n for (int i = 0; i < 4; i++) {\n even[i][0] = odd[i][0] = -inf;\n even[i][1] = odd[i][1] = inf;\n }\n\n for (Point pt : pts) {\n //+++\n //---\n long sum1 = pt.x + pt.y + pt.z;\n long sum2 = -pt.x + pt.y + pt.z;\n long sum3 = pt.x - pt.y + pt.z;\n long sum4 = pt.x + pt.y - pt.z;\n\n update(odd[0], sum1 - radis,\n sum1 + radis);\n\n //-++\n //+--\n update(odd[1], sum2 - radis, sum2 + radis);\n\n //+-+\n //-+-\n update(odd[2], sum3 - radis, sum3 + radis);\n\n //++-\n //--+\n update(odd[3], sum4 - radis, sum4 + radis);\n }\n\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 2; j++) {\n even[i][j] = odd[i][j];\n }\n long sub = i == 0 ? 3 : 1;\n even[i][0] = DigitUtils.ceilDiv(even[i][0], 2);\n even[i][1] = DigitUtils.floorDiv(even[i][1], 2);\n odd[i][0] = DigitUtils.ceilDiv(odd[i][0] - sub, 2);\n odd[i][1] = DigitUtils.floorDiv(odd[i][1] - sub, 2);\n }\n\n long[] ans = possible(even);\n if (ans == null) {\n ans = possible(odd);\n if (ans == null) {\n return null;\n }\n for (int i = 0; i < 3; i++) {\n ans[i] = ans[i] * 2 + 1;\n }\n } else {\n for (int i = 0; i < 3; i++) {\n ans[i] = ans[i] * 2;\n }\n }\n\n long a = ans[0];\n long b = ans[1];\n long c = ans[2];\n return new long[]{(b + c) / 2,\n (a + c) / 2,\n (a + b) / 2};\n }", "title": "" }, { "docid": "9c182a9a842be24dbb131ae4dd576b68", "score": "0.57380766", "text": "public static void main(String args[]){\nint count=0;\nint n=30000;\nfor(int j=n;j>0;j--)\nfor(int k=1;k<=j;k=k+k)\ncount++;\n\n//System.out.println(count+\" \"+Math.pow(2,n)+\" \"+n*n+\" \"+ n*Math.log(n)/Math.log(2));\n\nSystem.out.println(funcRiverCrossing(7));\n}", "title": "" }, { "docid": "268a982b74042a40ae80c40440af6127", "score": "0.57288164", "text": "private long solution1(ArrayList<Long> values, long from, long below) {\r\n long sum = 0;\r\n for (long i = from; i < below; i++) {\r\n if (IFCMath.mod(i, values))\r\n sum += i;\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "f6767c23ccb23a05cbc9f533a5ac7f4c", "score": "0.5727238", "text": "void tugOfWarUtil(int[] arr, int n, boolean[] currElements, int no_of_selectedelements, boolean[] sol, Map minDiffMap, int sum, int curr_sum, int cur_position) {\n \n if(cur_position==n){\n return ;//if we are going out of bound return\n }\n \n // checks that the numbers of elements left are not less than the\n // number of elements required to form the solution\n if((n/2-no_of_selectedelements)>(n-cur_position)){\n // n/2 - no_of_selectedelements - Number of elements required to form the subset.\n return ;\n }\n \n //consider the case, when the current element is not included in the subset\n tugOfWarUtil(arr, n, currElements, no_of_selectedelements, sol, minDiffMap, sum, curr_sum, cur_position+1);\n \n //adding the current element to the subset\n currElements[cur_position] = true;\n curr_sum += arr[cur_position];\n no_of_selectedelements++;\n \n if(n/2==no_of_selectedelements){//if we had found that the number of elements required is equal to the selected elements\n \n// System.out.println(\"Current sum \"+curr_sum);\n int min_diff = (Integer)minDiffMap.get(\"Min\");\n if(Math.abs(sum/2-curr_sum)<min_diff){//check if the solution formed is better than the solution found so far.\n // the diff between the current sum and sum/2 is minimal, then the solution exist\n min_diff = Math.abs(sum/2-curr_sum);\n minDiffMap.put(\"Min\",min_diff);//Caller function also should be known that the min diff found , hence updating in the map\n System.out.println(\"Min diff is \"+min_diff);\n for(int i=0;i<n;i++){\n sol[i] = currElements[i];//copy the currelements to solution vector\n }\n }\n \n }else{\n //consider the case, when the currenet element is inlcluded in the subset\n tugOfWarUtil(arr, n, currElements, no_of_selectedelements, sol, minDiffMap, sum, curr_sum, cur_position+1);\n }\n \n currElements[cur_position] = false;//Remove current element, before returning to the caller of this funciton.\n //if the solution is found, then currelements is unnecessary, as we had copied the values to solution vector\n //if the solution is not found, then we need to remove the current element from the set..\n }", "title": "" }, { "docid": "bb34c817d40b96c8533c7a491ec13537", "score": "0.5701767", "text": "public int solve() {\n\t\tlong start = System.currentTimeMillis();\n\t\tsudokuSolveHelper(0);\n\t\tlong end = System.currentTimeMillis();\n\t\telapsedTime = end - start;\n\t\treturn solutions; // YOUR CODE HERE\n\t}", "title": "" }, { "docid": "1e6fd00981da60978c5ac84609c2471c", "score": "0.56986296", "text": "@Override\n int solve(int stepSize) {\n int result = -1;\n int currentPosition = 0;\n for (int i = 1; i <= 50_000_000; i++) {\n currentPosition = (currentPosition + stepSize) % i + 1;\n if (currentPosition == 1) {\n result = i;\n }\n }\n \n return result;\n }", "title": "" }, { "docid": "afbbe4ccb45527bf0d771791df6bd7b0", "score": "0.56949914", "text": "public static int solution(int[] A) {\n int l = A.length;\n boolean[] temp = new boolean[l];\n\n// boolean[] temp = new boolean[100000];\n// if(A[0]>1) return 1;\n// if(A[.length-1]<1) return 1;\n\n for(int i = 0;i<l;i++){\n if(A[i]<=0 || A[i]>l)\n continue;\n else if(temp[A[i]-1]==false){\n temp[A[i]-1] = true;\n }\n }\n for(int i =1;i<=l;i++){\n if(temp[i-1]==false)\n return i;\n }\n return l+1;\n }", "title": "" }, { "docid": "7c5a329180c49701aee088b77b597313", "score": "0.5689491", "text": "private static void findnextvertextotraverse() {\n\t\tscore = 100000000;\r\n\t\tvertextotransverse =0;\r\n\t\tint tailvertex = 1;\r\n\t\tfor(int j = 0;j<exploredarray.size();j++){\r\n\t\t\ttailvertex = exploredarray.get(j);\r\n\t\t\tfindminimumgreedyscorefortailvertex(tailvertex);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cca34f825acadd2a61663e4dc0e5cf07", "score": "0.56545734", "text": "public boolean solvable() {\n int inversions = 0;\n for(int i = 0; i < n * n; i ++){\n for(int j = i + 1; j < n * n; j++){\n if(tiles[i / n][i % n] > tiles[j /n][j % n] % (n * n) || tiles[i / n][i % n] == 0) inversions++;\n }\n }\n //System.out.println(inversions);\n return (inversions % 2 == 0);\n }", "title": "" }, { "docid": "ae7bc00b1d11cd150e9654f5e97ff834", "score": "0.5652506", "text": "void calculate() {\r\n\t\tnb = 4 - n;\r\n\t\tif (n==0) {\r\n\t\t\tb[0] = 1;\r\n\t\t\tb[1] = 1;\r\n\t\t\tb[2] = 3;\r\n\t\t\tb[3] = 3;\r\n\t\t\thasans = true;\r\n\t\t} else if (n==1) {\r\n\t\t\tb[0] = 1*a[0];\r\n\t\t\tb[1] = 3*a[0];\r\n\t\t\tb[2] = 3*a[0];\r\n\t\t\thasans = true;\r\n\t\t} else if (n==2) {\r\n\t\t\tArrays.sort(a);\r\n\t\t\tint aa = a[0];\r\n\t\t\tint bb = a[1];\r\n\t\t\tb[0] = 4*aa - bb;\r\n\t\t\tb[1] = 3*aa;\r\n\t\t\thasans = (b[0]>0 && b[1] > 0);\r\n\t\t} else if (n==3) {\r\n\t\t\tArrays.sort(a);\r\n\t\t\t// check all places; array aa = a and k\r\n\t\t\tint []aa = new int[4]; \r\n\t\t\tint bb=0;\r\n\t\t\thasans = false;\r\n\t\t\tfor (int k=0; k<4; k++) {\r\n\t\t\t\tfor (int i=0; i<4; i++) {\r\n\t\t\t\t\tif (i<k) {\r\n\t\t\t\t\t\taa[i] = a[i];\r\n\t\t\t\t\t} else if (i>k){\r\n\t\t\t\t\t\taa[i] = a[i-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (k==0) {\r\n\t\t\t\t\tbb = aa[k] = a[0] - (a[2] - a[1]);\r\n\t\t\t\t} else if (k==1) {\r\n\t\t\t\t\tbb = aa[k] = a[0] + (a[2] - a[1]);\r\n\t\t\t\t} else if (k==2) {\r\n\t\t\t\t\tbb = aa[k] = a[2] - (a[1] - a[0]);\r\n\t\t\t\t} else if (k==3) {\r\n\t\t\t\t\tbb = aa[k] = a[2] + (a[1] - a[0]);\r\n\t\t\t\t}\r\n\t\t\t\tif (bb<=0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\thasans = isOsob(aa);\r\n\t\t\t\tif (hasans) {\r\n\t\t\t\t\tb[0] = bb;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (n==4) {\r\n\t\t\t// just check that it is osobennoe \r\n\t\t\tArrays.sort(a);\t\t\t\r\n\t\t\thasans = isOsob(a);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43559a16cbe8333f207b82a0cb6fcd3d", "score": "0.56342787", "text": "static long warPossibility(int match, int arya) {\n\n for (int i = r; i >=0 ; i--) {\n for (int j = i; j >=0; j--) {\n int sansa = i-j;\n\n if (j < p * sansa) {\n dp[i][j]=0;\n }\n else if(i==r) {\n dp[i][j]=1;\n }\n else {\n dp[i][j]=(dp[i+1][j+1]%mod + dp[i+1][j]%mod)%mod;\n }\n }\n\n }\n return dp[0][0];\n }", "title": "" }, { "docid": "a2a83460d9287f287fa44608eab02f3b", "score": "0.5626687", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint[] array1= new int[] {1,2,2,1,2}; // K4 lideres 2 y 3 OK\n\t\tint[] array2= new int[] {1,1,1,1,2,2,2}; // k3 1 y 2 KO sigue faltando combinar resultados\n\t\tint[] array3= new int[] {2,1,3,2,3,3,3};\n\t\tint[] array4= new int[] {2,1,3,1,2,2,3};\n\t\tint[] array5= new int[] {2,2,2,1,1,1,1};\n\t\tint[] array6= new int[] {2,2,2,3,1,2,4,4,2,1};\n\t\tint[] array7= new int[] {3,3,4,1,2,2,4,4,2,1,2,2,2,3,1,2,2,2,2,1};\n\t\tint[] array8= new int[] {1,1,2,2,2,1,2,2,1,1,2,2,1,2,1};\n\t\tint[] arrayPruebas = array5;\n\t\t\n\t\tint N = arrayPruebas.length;\n\t\tint K = 2;\n\t\tint M = 3;\n\t\t\n\t\t/*** Construccion array de pruebas automatico, setear a true **/\n\t\tboolean activarPruebaAuto = false;\n\t\tlong tiempoInicio = 0L;\n\t\tlong tiempoFin = 0L;\n\t\tSolution s = new Solution();\n\t\tint [] salida = null;\n\t\t\n\t\tif (activarPruebaAuto) {\n\t\t\tint longitudPrueba = 30;\n\t\t\tint[] arrayPruebasAuto = new int[longitudPrueba];\n\t\t\t\n\t\t\t// Tambien pintamos el array de entrada para poder verlo */\n\t\t\tSystem.out.println(\"Array Generado automaticamente de longitud \"+longitudPrueba);\n\t\t\tSystem.out.print(\"[\");\n\t\t\tfor (int i=0; i<longitudPrueba;i++) {\t\n\t\t\t\t\tarrayPruebasAuto[i] = ThreadLocalRandom.current().nextInt(1, M );\n\t\t\t\t\tif (i!= 0) \n\t\t\t\t\t\tSystem.out.print(\",\");\n\t\t\t\t\tSystem.out.print(arrayPruebasAuto[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"]\");\n\t\t\ttiempoInicio = System.currentTimeMillis();\n\t\t\tsalida = s.solution(K, M, arrayPruebasAuto);\n\t\t\ttiempoFin = System.currentTimeMillis();\t\t\n\t\t}else { System.out.println(\"Array Manual\");\n\t\t\t\tSystem.out.print(\"[\");\n\t\t\t\tfor (int i = 0; i< arrayPruebas.length;i++) {\n\t\t\t\t\tif (i!= 0) \n\t\t\t\t\t\tSystem.out.print(\",\");\n\t\t\t\t\tSystem.out.print(arrayPruebas[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"]\");\n\t\t\t\ttiempoInicio = System.currentTimeMillis();\n\t\t\t\tsalida = s.solution(K, M, arrayPruebas);\n\t\t\t\ttiempoFin = System.currentTimeMillis();\n\t\t}\n\t\t\n\t\t/* Pintamos resultados por pantalla*/\n\t\tSystem.out.println(\"Array de lideres\");\n\t\tSystem.out.print(\"[\");\n\t\t\tfor (int i = 0; i< salida.length;i++) {\n\t\t\t\tif (i!= 0) \n\t\t\t\t\tSystem.out.print(\",\");\n\t\t\t\tSystem.out.print(salida[i]);\n\t\t\t}\n\t\tSystem.out.println(\"]\");\n\t\t\n\t\tSystem.out.println(\"Tiempo de proceso \"+ (tiempoFin-tiempoInicio) +\" milisegundos.\" );\n\t}", "title": "" }, { "docid": "ddc265ce467aa7037b507b0aaa0188d1", "score": "0.5616305", "text": "@Test(timeout = 500)\n public void timeTest() {\n int res = binaryGap.solution(2147483647);\n LOG.info(\"1--->\" + res);\n\n }", "title": "" }, { "docid": "6c1d7582ea76c3de9bb6c54f98cc58cf", "score": "0.5615249", "text": "private long solution2(ArrayList<Long> values, long from, long below) {\r\n long sum = 0;\r\n ArrayList<Long> nV = new ArrayList<>();\r\n for (long value : values) {\r\n long M1 = (from % value == 0) ? from : from + value - from % value;\r\n for (long i = M1; i < below; i += value) {\r\n if (!IFCMath.mod(i, nV)) {\r\n sum += i;\r\n }\r\n }\r\n nV.add(value);\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "c18c840672caa93d22ceb7ba687d1793", "score": "0.5608963", "text": "private int solution2(int[] A) {\n int cnt = 0;\n int totCnt = 0;\n for(int i=0; i<A.length; i++) {\n if(A[i] == 0) {\n cnt++;\n } else {\n totCnt += cnt;\n }\n }\n\n if (totCnt > 1000000000 || totCnt < 0) {\n return -1;\n }\n return totCnt;\n\n\n }", "title": "" }, { "docid": "6edf81c0bcbbc1ca4a370bfc13f860cc", "score": "0.5602413", "text": "public String call() throws Exception {\n debug(\"solving case %d\", caseNumber);\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < M; j++) {\n bestTime[i][j] = Double.POSITIVE_INFINITY;\n }\n }\n int loop = 0;\n bestTime[0][0] = 0;\n queue.add(new Pair(0, 0, 0));\n while (!queue.isEmpty()) {\n loop++;\n Pair pair = queue.poll();\n int i = pair.i;\n int j = pair.j;\n double ceil = ceilings[i][j];\n double floor = floors[i][j];\n visit(queue, pair.i - 1, pair.j, 0, ceil, floor, H, false);\n visit(queue, pair.i + 1, pair.j, 0, ceil, floor, H, false);\n visit(queue, pair.i, pair.j - 1, 0, ceil, floor, H, false);\n visit(queue, pair.i, pair.j + 1, 0, ceil, floor, H, false);\n }\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < M; j++) {\n if (bestTime[i][j] == 0) {\n queue.add(new Pair(0, i, j));\n }\n }\n }\n while (!queue.isEmpty()) {\n loop++;\n Pair pair = queue.poll();\n int i = pair.i;\n int j = pair.j;\n double ceil = ceilings[i][j];\n double floor = floors[i][j];\n visit(queue, pair.i - 1, pair.j, pair.time, ceil, floor, Math.max(0, H - 10*pair.time), true);\n visit(queue, pair.i + 1, pair.j, pair.time, ceil, floor, Math.max(0, H - 10*pair.time), true);\n visit(queue, pair.i, pair.j - 1, pair.time, ceil, floor, Math.max(0, H - 10*pair.time), true);\n visit(queue, pair.i, pair.j + 1, pair.time, ceil, floor, Math.max(0, H - 10*pair.time), true);\n }\n debug(\"loop %d\", loop);\n return String.format(\"%.6f\", bestTime[N - 1][M - 1]);\n }", "title": "" }, { "docid": "4343f78a6daec9dbb0fe871a9949067a", "score": "0.5598111", "text": "public static int solve() {\n\t\tans = 0;\n\t\tint[] temp = new int[n+1];\n\t\tArrays.fill(temp, 1);\n\t\tfor(int i=n-2;i>=0;i--) \n\t\t\tfor(int j = n-1;j>i;j--) {\n\t\t\t\tif(map[i]<map[j]) {\n\t\t\t\t\tif(temp[j]+1>temp[i])\n\t\t\t\t\t\ttemp[i] = temp[j]+1;\n\t\t\t\t\tif(temp[i]>ans)\n\t\t\t\t\t\tans = temp[i];\n\t\t\t\t}\n\t\t\t}\t\t\n\t\treturn ans;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "c91c8d03c38a0bd15b0c0bda14cf74fb", "score": "0.5591819", "text": "private String solve() throws IOException {\r\n int w = nextInt();\r\n int q = nextInt();\r\n char[][] a = new char[w][];\r\n for (int i = 0; i < w; i++) {\r\n a[i] = nextToken().toCharArray();\r\n }\r\n\r\n String[][][] d = new String[w][w][SIZE];\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < w; j++) {\r\n if (a[i][j] >= '0') {\r\n d[i][j][a[i][j] + BASE - '0'] = \"\" + a[i][j];\r\n }\r\n }\r\n }\r\n int count = 0;\r\n while (true) {\r\n count++;\r\n boolean updated = false;\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < w; j++) {\r\n if (a[i][j] >= '0') {\r\n for (int o1 = 0; o1 < 4; o1++) {\r\n if (i + dx[o1] >= 0 && i + dx[o1] < w && j + dy[o1] >= 0 && j + dy[o1] < w) {\r\n int sign = (a[i + dx[o1]][j + dy[o1]] == '-' ? -1 : 1);\r\n for (int o2 = 0; o2 < 4; o2++) {\r\n int newI = i + dx[o1] + dx[o2];\r\n int newJ = j + dy[o1] + dy[o2];\r\n if (newI >= 0 && newI < w && newJ >= 0 && newJ < w) {\r\n for (int v = 0; v < SIZE; v++) {\r\n if (d[i][j][v] != null) {\r\n int newV = v + sign * (a[newI][newJ] - '0');\r\n if (newV >= 0 && newV < SIZE) {\r\n String oldD = d[newI][newJ][newV];\r\n if (oldD == null || d[i][j][v].length() + 2 <= oldD.length()) {\r\n String newD = d[i][j][v] + a[i + dx[o1]][j + dy[o1]] + \"\" + a[newI][newJ];\r\n if (oldD == null || (oldD.length() > newD.length() ||\r\n (oldD.length() == newD.length() && oldD.compareTo(newD) > 0))) {\r\n d[newI][newJ][newV] = newD;\r\n updated = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!updated) {\r\n break;\r\n }\r\n }\r\n System.err.println(count + \" updates\");\r\n String[] ans = new String[SIZE];\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < w; j++) {\r\n for (int v = 0; v < SIZE; v++) {\r\n String oldD = ans[v];\r\n String newD = d[i][j][v];\r\n if (newD == null) {\r\n continue;\r\n }\r\n if (oldD == null || (oldD.length() > newD.length() ||\r\n (oldD.length() == newD.length() && oldD.compareTo(newD) > 0))) {\r\n ans[v] = newD;\r\n }\r\n }\r\n }\r\n }\r\n StringBuilder buf = new StringBuilder();\r\n for (int i = 0; i < q; i++) {\r\n int query = nextInt();\r\n buf.append(\"\\n\").append(ans[query + BASE]);\r\n }\r\n return buf.toString();\r\n }", "title": "" }, { "docid": "f0a1db407eeada45d8580a851d566861", "score": "0.55911994", "text": "private void twoOpt() {\n boolean improvement = true;\n while (improvement) {\n improvement = false;\n int n = tempLookup.length - 1;\n for (int i = 0; i <= n - 3; i++) {\n for (int k = i + 2; k <= n - 1; k++) {\n long delta = -allDistances[tempLookup[i]][tempLookup[i + 1]] -\n allDistances[tempLookup[k]][tempLookup[k + 1]] +\n allDistances[tempLookup[i]][tempLookup[k]] +\n allDistances[tempLookup[i + 1]][tempLookup[k + 1]];\n if (delta < 0) {\n twoOptReverse(i + 1, k);\n improvement = true;\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "64ed6807524ddcf682ab382d2d9743d8", "score": "0.5586626", "text": "public int[] search2x(int m, int n, int givenNum){\n int[] b = new int[7];\r\n b[m] = 1;\r\n b[n] = 1;\r\n int a;\r\n if(n > m) {\r\n int temp = n;\r\n n = m;\r\n m = temp;\r\n }\r\n int ind = 0;\r\n int[] c = new int[4];\r\n for(int i = 1; i < 7; ++ i){\r\n if(b[i] == 1) continue;\r\n c[ind] = i;\r\n ++ ind;\r\n } //c3 > c2 > c1 >c0\r\n int big1 = constructNum0(m,c[2],c[0]);\r\n int big2 = constructNum0(n,c[3],c[1]);\r\n int big = big1 * big2;\r\n\r\n int small1 = constructNum0(m,c[1],c[3]);\r\n int small2 = constructNum0(n,c[0],c[2]);\r\n int small = small1 * small2;\r\n\r\n int[] g1 = {1,1};\r\n int[] g2 = {0,0};\r\n int[] g3 = {small1,small2};\r\n int[] g4 = {big1,big2};\r\n// int[] g5 = {0,1};\r\n\r\n int index = 0;\r\n int[][] fa = new int[24][2];\r\n int[] cha = new int[24];\r\n\r\n if(givenNum > big) return g4;\r\n\r\n else if(givenNum < small) return g3;\r\n\r\n else { // givenNum 一定在m[][] * n[][]的范围内\r\n for(int i = 0; i < 3; ++ i){\r\n for(int j = 0; j < 3; ++ j){\r\n if (j == i) continue;\r\n int[] bug = search4(m,n,c[i],c[j],givenNum);\r\n if((bug[0] != g1[0]) && (bug[0] != g2[0])) {\r\n return search4(m,n,c[i],c[j],givenNum);\r\n }\r\n }\r\n\r\n }\r\n }\r\n for(int i = 0; i < 3; ++ i) {\r\n for (int j = 0; j < 3; ++j) {\r\n if (j == i) continue;\r\n// fa[index] = search4(m,n,c[i],c[j],givenNum);\r\n fa[index] = search4x(m,n,c[i],c[j],givenNum); //注意: 这是search4x()函数,不是search4(),返回值是2个乘数\r\n cha[index] = Math.abs(fa[index][0] * fa[index][1] - givenNum);\r\n ++ index;\r\n }\r\n }\r\n int minicha = 100000;\r\n int minichaindex = 0;\r\n for(int i = 0; i < index; ++ i){\r\n if(cha[i] < minicha) {\r\n minicha = cha[i];\r\n minichaindex = i;\r\n }\r\n }\r\n return fa[minichaindex];\r\n }", "title": "" }, { "docid": "2378cc9bdfdef38fcbd0e7b236c7a659", "score": "0.5583492", "text": "public short[] decimalConvertor(short[] array,int baseOne, int baseTwo){\n int size=array.length;\n int resultSearch=(int)(Math.pow(baseOne, size));\n String[] matches=new String[resultSearch]; //Intializes an array with the size found above in order to store values\n short[] result=new short[resultSearch];//An array that will store the current value being searched for\n String current=\" \";\n Arrays.fill(matches, \" \"); //Fills string array with empty strings to avoid NullPointerException\n int count=0;\n int index=0;\n boolean test=false;\n outerloop:\n for(int i=0;i<resultSearch;i++){ //Will iterate up to the maximum amount of permutations\n count++;\n array=multiplication(array,baseOne,baseTwo); //Stores array as the result of the multiplication by the desired base\n if(array.length>size){ //If the returned value is bigger than the initial value the first number is stored as part of the answer and the remaining 'fractional' digits are saved in matches\n result[i]=array[size];\n array[size]=0;\n array=trimmer(array);\n current=Arrays.toString(array); //Saves current fractional element to string\n }else{\n result[i]=0; \n current=Arrays.toString(array);\n }\n for(int j=0;j<resultSearch;j++){\n if(matches[j].equals(current)){//Searches through previous entries and breaks loop if any are found\n test=true;\n }\n }\n matches[i]=current;\n if(test==true){\n break outerloop;\n }\n }\n int counter=0; //Will be used to count up\n int firstPosition=0; //Will store the first time a match is seen\n int secondPosition=0; //Will store the second time a match is seen\n for(int i=0;i<matches.length;i++){ \n if(matches[i].equals(current)){\n firstPosition=i;\n break;\n }\n }\n for(int i=0;i<matches.length;i++){\n if(matches[i].equals(current)){\n counter++;\n }\n if(counter==2){\n secondPosition=i;\n break;\n }\n }\n int repeating=Math.abs(secondPosition-firstPosition);\n short[] Repeating=new short[repeating];\n result=arraySizer(result,count);\n if(firstPosition<secondPosition){\n Repeating=Arrays.copyOfRange(result, firstPosition+1, secondPosition+1);\n nonRepeating(result,firstPosition);\n }else{\n Repeating=Arrays.copyOfRange(result, secondPosition+1, firstPosition+1);\n nonRepeating(result,firstPosition);\n }\n return (Repeating);\n }", "title": "" }, { "docid": "4632c948df514f660ec3743c745397f7", "score": "0.5576015", "text": "public static void main(String[] args) { q1_h test = new q1_h();\n// test.solution(6, 3);\n// test.solution(7, 3);\n// test.solution(3, 3);\n// test.solution(1, 4);\n// test.solution(5, 6);\n// test.solution(10, 5);\n// test.solution(10, 6);\n// new q1().solution(20, 21);\n//// new q1().solution(96, 99);\n//\n Random random = new Random();\n// q1_temp test = new q1_temp();\n// q1 test = new q1();\n q1_h test = new q1_h();\n\n for (int i = 0; i < 1000; i++) {\n int a = random.nextInt(10);\n int b = 0;\n int min = a % 2 == 0 ? a / 2 - 1 : a / 2;\n while (b > a || b < min) {\n b = random.nextInt(10);\n }\n String res = test.solution(a, b);\n boolean checksize = a + b == res.length();\n boolean check = check(res);\n if (!check || !checksize) {\n System.out.println(\"checksize = \" + checksize + \" - check = \" + check + \" - a = \" + a + \" - b = \" + b + \": \" + res);\n }\n }\n// int a = 9;\n// int b = 9;\n// System.out.println(\"a = \" + a + \" - b = \" + b + \": \" + test.solution(a, b));\n }", "title": "" }, { "docid": "2508d38470efe511203d56b037584203", "score": "0.55749995", "text": "public static void main(String args[]) {\n\n\t\tint arr1[] = { -8, 1, 2, 3, 4, 5, -2, -3 };// index=5\n\t\tint arr2[] = { 8, 10, 20, 80, 100, 200, 400, 500, 3, 2, 1 };// index=7\n\t\tint arr3[] = { -3, 9, 8, 20, 17, 5, 1, 3 };// index=3\n\t\t// int arr4[] = { 5, 6, 7, 8, 9, 10, 1, 2, 3 };// index=5\n\t\t//int arr4[] = { 5, 6, 7, 8, 9, 10, 12, 13, 1, 2, 3 };// index=5\n\n\t\tint arr5[] = { 6, 7, 8, 11, 9, 5, 2, 1 };// index=3\n\t\tint arr6[] = { -3, -2, 4, 6, 10, 8, 7, 1 };// index=4\n\t\tint key = 1;\n\t\tint n, l, r;\n\t\t// n = arr.length;\n\t\t// l = 0;\n\t\t// r = n - 1;\n\n\t\tfindBitonicAndSearchKey(arr1, key, arr1.length, 0, arr1.length - 1);\n\t\tfindBitonicAndSearchKey(arr2, key, arr2.length, 0, arr2.length - 1);\n\t\tfindBitonicAndSearchKey(arr3, key, arr3.length, 0, arr3.length - 1);\n\n\t\t//findBitonicAndSearchKey(arr4, key, arr4.length, 0, arr4.length - 1);\n\n\t\tfindBitonicAndSearchKey(arr5, key, arr5.length, 0, arr5.length - 1);\n\t\tfindBitonicAndSearchKey(arr6, key, arr6.length, 0, arr6.length - 1);\n\t\tint arr[] = {1,2,1,3,5,6,4};\n\t\tfindBitonicAndSearchKey(arr, 6, arr.length, 0, arr.length - 1);\n\t}", "title": "" }, { "docid": "6b8365a76d91129ec58ab01826197179", "score": "0.557197", "text": "private Double extractLiveRatio(Object[] solution) {\n double livecount =0;\n double totalcount=0;\n for (int i=0; i<solution.length; i++) {\n BitVectorElement bv=(BitVectorElement)solution[i];\n totalcount+=bv.size();\n for (int j=0; j<bv.size(); j++)\n\tif (bv.get(j)) livecount++;\n }\n\n if (totalcount==0)\n return new Double(1);\n else\n return new Double(livecount/totalcount);\n }", "title": "" }, { "docid": "ba1d78c82e72fbb974a64a60054a7482", "score": "0.55679345", "text": "void reducedSearch( int xidx ){ \n int yidx = 0;\n int[] deathSet = new int[ ( this.size - xidx) * size ];\n while ( yidx < this.size){\n\n //System.out.println( \"check < \" + xidx + \", \" + yidx + \" > \" );\n if ( ! isInvalid( xidx, yidx ) ) {\n\n this.currentSolution[xidx] = yidx;\n this.solutionMap[ yidx] = xidx;\n this.solutionCrossMap1[ xidx + yidx ] = 1;\n this.solutionCrossMap2[ xidx - yidx + size] = 1;\n\n //System.out.println( \"ok: \"+ xidx +\", \" + yidx );\n if ( xidx < this.size - 1) \n reducedSearch( xidx + 1);\n else {\n if( checkResult( this.currentSolution ) ) {\n this.result.add( this.currentSolution.clone() );\n //dumpSolution( this.currentSolution );\n }\n this.solutionMap[yidx] = -1;\n this.solutionCrossMap1[xidx + yidx ] = 0;\n this.solutionCrossMap2[xidx - yidx + size] = 0;\n return ;\n }\n this.solutionMap[yidx] = -1;\n this.solutionCrossMap1[xidx + yidx ] = 0;\n this.solutionCrossMap2[xidx - yidx + size] = 0;\n }\n\n yidx++;\n }\n /*\n System.out.print( \"<\" );\n for( int i = 0; i < xidx; i++ ) { \n System.out.print( this.currentSolution[i] + \",\" );\n }\n System.out.println( \">\" );\n */\n }", "title": "" }, { "docid": "ea22235c868d0fbeb16f000c4dd5bd5d", "score": "0.55678403", "text": "private void algo(){\n\t\t\n\n\t\tboolean finish = false;\n\t\tArgumentationFramework graph = super.getGraph();\n\n\t\twhile(!finish){\t\n\n\t\t\tfinish = true;\n\t\t\t\n\t\t\tHashMap<String, Double> s = new HashMap<String, Double>();\n\t\t\tHashSet<String> argument_computed = new HashSet<String>();\n\n\t\t\tfor(Argument a : graph.getArguments()){\n\t\t\t\tdouble result = 1.0;\n\n\t\t\t\tArrayList<Argument> attackers = new ArrayList<Argument>();\n\n\t\t\t\tattackers.addAll(a.getAttackers());\n\n\t\t\t\tfor(int i=0; i<attackers.size();i++){\n\t\n\t\t\t\t\tif(argument_computed.contains(attackers.get(i).getId())){\n\t\t\t\t\t\tresult *= (1 - s.get(attackers.get(i).getId()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tresult *= (1 - super.getLastU(attackers.get(i).getId()));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tdouble utility = (1.0/(1.0+this.xhi))*result;\n\t\t\t\tif(super.getLastU(a.getId()) > utility + epsilon || super.getLastU(a.getId()) < utility - epsilon){\n\t\t\t\t\tfinish = false;\n\t\t\t\t}\n\t\t\t\targument_computed.add(a.getId());\n\t\t\t\ts.put(a.getId(), utility);\n\t\t\t}\n\t\t\tsuper.addStep(s);\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "21695af967ab9c7fb70c386b569039db", "score": "0.556254", "text": "public static void main(String[] args) {\n\t\tFastScanner input = new FastScanner();\n\t\tint n = input.nextInt();\n\t\tint m = input.nextInt();\n\t\tboolean[][] arr = new boolean[n][m];\n\t\tfor (int a = 0; a < n; a++) {\n\t\t\tfor (int b = 0; b < m; b++) {\n\t\t\t\tarr[a][b] = input.nextInt() == 1 ? true : false;\n\t\t\t}\n\t\t}\n\t\tint[] leftIdx = new int[n];\n\t\tfor (int a = 0; a < n; a++) {\n\t\t\tleftIdx[a] = Integer.MAX_VALUE;\n\t\t\tfor (int b = 0; b < m; b++) {\n\t\t\t\tif (arr[a][b]) {\n\t\t\t\t\tleftIdx[a] = b;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint[] rightIdx = new int[n];\n\t\tfor (int a = 0; a < n; a++) {\n\t\t\trightIdx[a] = Integer.MIN_VALUE;\n\t\t\tfor (int b = m - 1; b >= 0; b--) {\n\t\t\t\tif (arr[a][b]) {\n\t\t\t\t\trightIdx[a] = b;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint[] upIdx = new int[m];\n\n\t\tfor (int b = 0; b < m; b++) {\n\t\t\tupIdx[b] = Integer.MAX_VALUE;\n\t\t\tfor (int a = 0; a < n; a++) {\n\t\t\t\tif (arr[a][b]) {\n\t\t\t\t\tupIdx[b] = a;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint[] downIdx = new int[m];\n\t\tfor (int b = 0; b < m; b++) {\n\t\t\tdownIdx[b] = Integer.MIN_VALUE;\n\t\t\tfor (int a = n - 1; a >= 0; a--) {\n\t\t\t\tif (arr[a][b]) {\n\t\t\t\t\tdownIdx[b] = a;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int a = 0; a < n; a++) {\n\t\t\tfor(int b = 0; b < m; b++){\n\t\t\t\tif(!arr[a][b]){\n\t\t\t\t\tif(upIdx[b] < a){\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t\tif(downIdx[b] > a){\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t\tif(leftIdx[a] < b){\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t\tif(rightIdx[a] > b){\n\t\t\t\t\t\tsum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t}", "title": "" }, { "docid": "4b05f929b55e5a620d72e410e3f0f191", "score": "0.5556305", "text": "public int findDuplicate2(int[] nums) {\n int slow = 0, fast = 0;\n do{\n slow = nums[slow];\n fast = nums[nums[fast]];\n }while(slow != fast);\n slow = 0;\n while(slow != fast){\n slow = nums[slow];\n fast = nums[fast];\n }\n return slow;\n }", "title": "" }, { "docid": "4cb2db452183ea86d0be633fea2c994b", "score": "0.5553963", "text": "protected void run() {\n InputReader in = new InputReader(System.in);\n OutputWriter out = new OutputWriter(System.out);\n int n1=in.readInt();\n int n=2*n1-1;\n int a[]=new int[n];\n int ans[]=new int[n];\n Arrays.fill(ans, Integer.MAX_VALUE);\n HashSet<Integer> hs=new HashSet();\n HashMap<Integer,Integer> hm=new HashMap();\n for(int i=0;i<n;i++){\n a[i]=in.readInt();\n hs.add(a[i]);\n if(!hm.containsKey(a[i]))\n hm.put(a[i], 0);\n hm.put(a[i], hm.get(a[i])+1);\n }\n if(hs.size()!=n1){\n out.printLine(\"NO\");\n }\n else{\n /* ArrayList<Integer> al=new ArrayList();\n hs=new HashSet();\n for(int i=0;i<n;i++){\n if(!hs.contains(a[i])){\n hs.add(a[i]);\n al.add(a[i]);\n }\n }\n Collections.sort(al);\n build(ans,al,0,0,n1-1);\n for(int i=0;i<n;i++){\n int x=0;\n if(hm.containsKey(ans[i])){\n x=hm.get(ans[i]);\n if(x==1)\n hm.remove(ans[i]);\n else\n hm.put(ans[i], x-1);\n }\n else{\n break;\n }\n }\n\n if(hm.size()==0){\n out.printLine(\"YES\");\n for(int i=0;i<n;i++)\n out.print(ans[i]+\" \");\n out.printLine();\n }\n else\n out.printLine(\"NO\");*/\n\n ArrayList<Integer> al[]=new ArrayList[n1];\n for(int i=0;i<n1;i++)\n al[i]=new ArrayList();\n int len=Integer.numberOfTrailingZeros(n1)+1;\n //System.out.println(len);\n int x=1;\n int z=0;\n int y=0;\n\n Set<java.util.Map.Entry<Integer, Integer>> mapEntries = hm.entrySet();\n ArrayList<java.util.Map.Entry<Integer, Integer>> list=new ArrayList<java.util.Map.Entry<Integer, Integer>>(mapEntries);\n // System.out.println(mapEntries);\n Collections.sort(list, new Comparator<java.util.Map.Entry<Integer, Integer>>(){\n\n @Override\n public int compare(Entry<Integer, Integer> o1, Entry<Integer, Integer> o2) {\n // TODO Auto-generated method stub\n return o2.getValue().compareTo(o1.getValue());\n }\n \n });\n // System.out.println(list);\n int real=len;\n for(java.util.Map.Entry<Integer, Integer> entry:list){\n //System.out.println(entry+\" \"+len+\" \"+x+\" \"+z);\n if(entry.getValue()==len){\n int w=entry.getKey();\n if(!al[real-len].contains(w))\n al[real-len].add(w);\n z++;\n if(x==z){\n len--;\n z=0;\n x=(int) Math.pow(2, y);\n y++;\n }\n }\n else{\n // System.out.println(entry+\" \"+len+\" \"+x+\" \"+z);\n out.printLine(\"NO\");\n out.close();\n System.exit(0);\n }\n }\n\n x=1;\n z=y=0;\n for(int i=0;i<n1;i++){\n Collections.sort(al[i]);\n }\n \n int level=0;\n for(;level<=real-1;level++){\n for(int j=(int) Math.pow(2, level)-1;j<Math.pow(2, level+1)-1;j++){\n if(ans[j]==Integer.MAX_VALUE){\n ans[j]=al[level].get(0);\n al[level].remove(0);\n int m=2*j+1;\n while(m<n){\n ans[m]=ans[j];\n m=2*m+1;\n }\n }\n }\n }\n \n out.printLine(\"YES\");\n for(int i=0;i<n;i++)\n out.print(ans[i]+\" \");\n out.printLine();\n }\n out.flush();\n out.close();\n\n }", "title": "" }, { "docid": "d4a13b3ed2d8d7d533c5e49c6cc897f0", "score": "0.5545457", "text": "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tlong limit = 1000000;\n\t\tlong[] nums = new long[(int) (limit + 1)];\n\t\tfor(int i = 0; i < nums.length; i++) {\n\t\t\tnums[i] = i;\n\t\t}\n\t\tfor(int i = 2; i <= limit; i++) {\n\t\t\tif(nums[i] == i) {\n\t\t\t\tfor(int j = 1; j*i <= limit; j++) {\n\t\t\t\t\tnums[j*i] -= nums[j*i]/i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tMap<Long, Long> map = new HashMap<Long,Long>();\n\t\tmap.put((long) 1,(long) 0);\n\t\tfor(long i = 2; i <= limit; i++) {\n\t\t\tmap.put(i, map.get(i-1) + nums[(int) i]);\n\t\t}\n\t\tSystem.out.println(map.get(limit));\n\t\t//answer is 303963552391\n\t}", "title": "" }, { "docid": "9c99d0e9b98df087ee164643a67fff12", "score": "0.55451244", "text": "private void m1273c() {\n int i;\n C0231c a = this.f1214b.mo1637a();\n int a2 = a.mo1772a();\n int d = a.mo1798d();\n int[] a3 = C0287b.m1996a(d);\n int[] a4 = C0287b.m1996a(d);\n for (int i2 = 0; i2 < a2; i2++) {\n C0287b.m1997b(a3, a.mo1215a(i2).mo1541a());\n }\n int[] iArr = new int[a2];\n int b = this.f1214b.mo1639b();\n int i3 = 0;\n while (b != -1) {\n while (true) {\n C0297k a5 = this.f1214b.mo1638a(i);\n int a6 = a5.mo1784a();\n int i4 = 0;\n while (i4 < a6) {\n int a7 = a5.mo1785a(i4);\n if (C0287b.m1995a(a4, a7)) {\n break;\n } else if (C0287b.m1995a(a3, a7) && a.mo1555b(a7).mo1544d() == i) {\n C0287b.m1997b(a4, a7);\n b = a7;\n } else {\n i4++;\n }\n }\n break;\n }\n while (i != -1) {\n C0287b.m1998c(a3, i);\n C0287b.m1998c(a4, i);\n iArr[i3] = i;\n i3++;\n C0230b b2 = a.mo1555b(i);\n C0230b a8 = a.mo1551a(b2);\n if (a8 == null) {\n break;\n }\n int a9 = a8.mo1541a();\n int d2 = b2.mo1544d();\n if (C0287b.m1995a(a3, a9)) {\n i = a9;\n } else if (d2 == a9 || d2 < 0 || !C0287b.m1995a(a3, d2)) {\n C0297k c = b2.mo1543c();\n int a10 = c.mo1784a();\n int i5 = 0;\n while (true) {\n if (i5 >= a10) {\n i = -1;\n break;\n }\n int a11 = c.mo1785a(i5);\n if (C0287b.m1995a(a3, a11)) {\n i = a11;\n break;\n }\n i5++;\n }\n } else {\n i = d2;\n }\n }\n b = C0287b.m1999d(a3, 0);\n }\n if (i3 != a2) {\n throw new RuntimeException(\"shouldn't happen\");\n }\n this.f1221i = iArr;\n }", "title": "" }, { "docid": "298fa6f2565c5a682f49f5675b098e14", "score": "0.5543292", "text": "private static void randomTest() {\n\n for (int n = 5; n <= 18; n++) {\n for (int m = 0; m <= 4; m++) {\n System.out.println(\"n = \" + n + \" m = \" + m);\n List<Value> values = generate(5000, n, m, new Random(5555));\n for (int i = 0; i < values.size(); i++) {\n Value value = values.get(i);\n //int r1 = BestBruteForce.solve(Arrays.copyOf(value.permutation, value.permutation.length), value.swap);\n int r1 = solve(Arrays.copyOf(value.permutation, value.permutation.length), value.swap);\n int r2 = (int) Codechef.solve(Arrays.copyOf(value.permutation, value.permutation.length), value.swap);\n if (r1 != r2) {\n System.out.println(\"Correct: \" + r1 + \" != \" + r2);\n System.out.println(value);\n //break;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "4e8fd6790b46194bd7a4d37cb93c86c6", "score": "0.55399764", "text": "public static void main(String args[]) throws Exception\t{\n Scanner sc = new Scanner(System.in);\n //Scanner sc = new Scanner(new FileInputStream(\"input.txt\"));\n\n long T = sc.nextInt();\n for(long test_case = 0; test_case < T; test_case++) {\n\n // Answer = 0;\n /////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t/*\n\t\t\t Implement your algorithm here.\n\t\t\t The answer to the case will be stored in variable Answer.\n\t\t\t */\n /////////////////////////////////////////////////////////////////////////////////////////////\n int N = sc.nextInt();\n long [] arr= new long[N];\n\n boolean checker = false;\n Answer = 0;\n long max = Integer.MIN_VALUE;\n long min = Integer.MAX_VALUE;\n long diff[] = new long[N];\n for(int i=0;i<N;i++)\n {\n arr[i] = sc.nextLong();\n if(i!=0)\n {\n max = Math.max((arr[i]-arr[i-1]),max);\n min = Math.min((arr[i] - arr[i-1]),min);\n if(checker)\n {\n if(max != 0)\n {\n Answer = -1;\n }\n }\n if(arr[i] - arr[i-1]== 0)\n {\n checker = true;\n }\n }\n }\n\n if(Answer==-1 && checker)\n {\n Answer++;\n }else\n {\n if(min==max)\n {\n if(min==0)\n Answer++;\n\n while(min!=0 )\n {\n Answer++;\n min=min/2;\n if(min%2 == 1)\n break;\n }\n\n if(min!=0)\n Answer++;\n }else\n {\n if(gcd(min,max)==1)\n Answer=1;\n else {\n min = gcd(min, max);\n if(min==0)\n Answer++;\n\n while(min!=0 )\n {\n Answer++;\n min=min/2;\n if(min%2 == 1)\n break;\n }\n\n if(min!=0)\n Answer++;\n }\n }\n }\n // Prlong the answer to standard output(screen).\n System.out.println(\"Case #\"+(test_case+1));\n System.out.println(Answer);\n }\n\n }", "title": "" }, { "docid": "07236742f952b6acaa78c9bddbf9184b", "score": "0.55378526", "text": "public static void main(String[] args)throws IOException{\n FastScanner fs = new FastScanner();\n PrintWriter out = new PrintWriter(System.out);\n \n //StringTokenizer st = new StringTokenizer(f.readLine());\n \n int n = fs.nextInt();\n int x = fs.nextInt();\n int y = fs.nextInt();\n \n long[] array = new long[x+1];\n long[] array2 = new long[x+1];\n \n //st = new StringTokenizer(f.readLine());\n for(int k = 0; k < n+1; k++){\n int i = fs.nextInt();\n array[i] = 1L;\n array2[x-i] = 1L;\n }\n \n long[] answer = mul(array,array2);\n \n ArrayList<Integer> alist = new ArrayList<Integer>();\n \n for(int k = 1; k <= x; k++){\n if(answer[k+x] > 0){\n alist.add((k + y)*2);\n }\n }\n \n int MAX = 1000005;\n long[] maxes = new long[1000005];\n Arrays.fill(maxes,-1);\n for(int k = 0; k < alist.size(); k++){\n for(int j = alist.get(k); j <= MAX; j+=alist.get(k)){\n maxes[j] = alist.get(k);\n }\n }\n \n \n \n \n \n \n StringJoiner sj = new StringJoiner(\" \");\n int t = fs.nextInt();\n //st = new StringTokenizer(f.readLine());\n for(int q = 0; q < t; q++){\n int num = fs.nextInt();\n \n sj.add(\"\" + maxes[num]);\n }\n \n out.println(sj.toString());\n \n \n \n \n \n \n \n \n \n out.close();\n }", "title": "" }, { "docid": "aee9d20a9a80cb61777c5ab123916713", "score": "0.55375135", "text": "private int solve() {\n\t\tif (q % 2 != 0) {\n\t\t\treturn -1;\n\t\t}\n\t\tdouble pONq = p / q;\n\t\tdouble step = 1;\n\t\tfor (int i = 1; i <= NUM_GENERATIONS; i++) {\n\t\t\tstep /= 2;\n\t\t\tif (pONq >= step) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "0f3777ba182ce07ebf8e3292261bf888", "score": "0.5536664", "text": "public static int solution(int N){\n int count = 0;\n prev = N;\n //System.out.println(\"Start \" + N);\n //System.out.println(\" N \" + Integer.toBinaryString(N));\n //System.out.println(\"~N \" + Integer.toBinaryString(~N));\n if(N % 2 == 0){\n N = (N >> 1);\n //System.out.println(\"% \" + Integer.toBinaryString(N));\n }\n if(~N != 0) {\n N = ((N | N << 1) >> 1);\n if(N != prev)\n count = 1 + solution(N);\n //System.out.println(\"~ \" + Integer.toBinaryString(N));\n }\n\n return count;\n\n /*\n System.out.println(N);\n String bin = Integer.toBinaryString(N);\n System.out.println(bin);\n int loc = 0;\n if(bin.charAt(0) == '1'){\n\n System.out.println(\"loc \" + loc + \" bin: \" + bin);\n bin = bin.substring(1);\n loc = bin.indexOf(\"1\");\n System.out.println(\"loc \" + loc + \" bin: \" + bin);\n if(loc == -1){\n return count;\n }\n if(loc > count) {\n count = loc;\n }\n System.out.println(\"count is \" + count);\n }\n\n int test = Integer.parseInt(bin.substring(loc), 2);\n System.out.println(test);\n\n\n solution(test);\n\n return count;\n */\n /*if(N == 1){\n System.out.println();\n return count;\n }\n\n int len = Integer.toBinaryString(N).length();\n\n System.out.print(\"\\t\" + N + \" \" + len + \" \" + (Math.pow(2,len-1)) + \"-->\");\n\n if(N%(Math.pow(2,len-1)) == 0 && prev){\n System.out.print(\"0\\n\");\n count++;\n }\n else{\n count = 0;\n prev = true;\n System.out.print(\"1\\n\");\n }\n solution(N>>1);\n return count;\n */\n }", "title": "" }, { "docid": "38dd723f02fe54357597dc5f77cbb7bf", "score": "0.5529556", "text": "public static void main(String[] args) {\n\n\t\t\tString s=\"leeeeetcode\";\n\t\t\tString t = \"yyyyylyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyytyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyycyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyoyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyydyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyeyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy\";\n\t\t\t\n\t\t\tSystem.out.println(isSubsequence(s,t));\n\t\t\n\t}", "title": "" }, { "docid": "6ff312f65f680bd640d9af733acee2f0", "score": "0.5529486", "text": "public void calculateSolvable(){\n int total = 0;\n for (int i=0;i<10;i++) {\n int result = numbers.get(i) - numbers.get(i+1);\n if (result > 0){\n total = total + result;\n }\n }\n System.out.println(\"Total = \" + total);\n if((total & 1) == 0){\n solvable = false;\n }else{\n solvable = true;\n }\n }", "title": "" }, { "docid": "56b42af8597dd71722b30471e4c44f85", "score": "0.5526803", "text": "public static void main(String[] args) throws Exception {\n\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter w = new PrintWriter(System.out);\n\t\t\n\t\tariprog ap = new ariprog();\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tint m = Integer.parseInt(r.readLine());\n\t\t\n\t\t\n\t\tint highest = 2*m*m;\n\t\tboolean[] values = new boolean[highest*2];\n\t\t\n\t\t//long startTime = System.currentTimeMillis();\n\t\tfor (int i = 0; i <= m; i++) { //generate all bisquares\n\t\t\tfor (int j = i; j <= m; j++) {\n\t\t\t\tvalues[i*i + j*j] = true;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tlong afterBiSquaresTime = System.currentTimeMillis();\n\t\t//System.out.println(\"time to geenrate bisquares\" + (afterBiSquaresTime-startTime));\n\n\t\tfor (int i = 0; i <= highest - n + 1; i++) { //i is starting number\n\t\t\tif (values[i]) {\n\t\t\t\tfor (int j = highest/(n-1); j>0; j--) {\n\t\t\t\t\tint k;\n\t\t\t\t\tfor (k = n - 1; k >= 0; k--) {\n\t\t\t\t\t\tif (values[i + j * k] == false) break;\n\t\t\t\t\t}\n\t\t\t\t\tif (k == -1) {\n\t\t\t\t\t\tpairs.add(ap.new Pair<>(i, j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tlong afterRecursiveTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"time to recursive\" + (afterRecursiveTime-afterBiSquaresTime));\n\t\t\n\t\tObject[] pairA = pairs.toArray();\n\t\tPair<?>[] pairArray = new Pair[pairA.length];\n\t\tfor (int i = 0; i < pairArray.length; i++) {\n\t\t\tpairArray[i] = (Pair<?>) pairA[i];\n\t\t}\n\t\tArrays.sort(pairArray);\n\t\tfor (int i = 0; i < pairArray.length; i++) {\n\t\t\tw.println(pairArray[i].toString()); \n\t\t}\n\t\t//long afterSort = System.currentTimeMillis();\n\t\t//System.out.println(\"time to sort\" + (afterSort - afterRecursiveTime));\n\t\t\n\t\tif (pairArray.length == 0) {\n\t\t\tw.println(\"NONE\");\n\t\t}\n\t\t\n\t\tw.flush();\n\t\tr.close();\n\t\tw.close();\n\t\tSystem.exit(0);\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "90ed9d06b3b915268144e7a6cb46e5d8", "score": "0.55180305", "text": "private static long[] nttmb(long[] src, int n, boolean inverse, int P, int g)\r\n\t{\r\n\t\tlong[] dst = Arrays.copyOf(src, n);\r\n\t\t\r\n\t\tint h = Integer.numberOfTrailingZeros(n);\r\n\t\tlong K = Integer.highestOneBit(P)<<1;\r\n\t\tint H = Long.numberOfTrailingZeros(K)*2;\r\n\t\tlong M = K*K/P;\r\n\t\t\r\n\t\tint[] wws = new int[1<<h-1];\r\n\t\tlong dw = inverse ? pow(g, P-1-(P-1)/n, P) : pow(g, (P-1)/n, P);\r\n\t\tlong w = (1L<<32)%P;\r\n\t\tfor(int k = 0;k < 1<<h-1;k++){\r\n\t\t\twws[k] = (int)w;\r\n\t\t\tw = modh(w*dw, M, H, P);\r\n\t\t}\r\n\t\tlong J = invl(P, 1L<<32);\r\n\t\tfor(int i = 0;i < h;i++){\r\n\t\t\tfor(int j = 0;j < 1<<i;j++){\r\n\t\t\t\tfor(int k = 0, s = j<<h-i, t = s|1<<h-i-1;k < 1<<h-i-1;k++,s++,t++){\r\n\t\t\t\t\tlong u = (dst[s] - dst[t] + 2*P)*wws[k];\r\n\t\t\t\t\tdst[s] += dst[t];\r\n\t\t\t\t\tif(dst[s] >= 2*P)dst[s] -= 2*P;\r\n//\t\t\t\t\tlong Q = (u&(1L<<32)-1)*J&(1L<<32)-1;\r\n\t\t\t\t\tlong Q = (u<<32)*J>>>32;\r\n\t\t\t\t\tdst[t] = (u>>>32)-(Q*P>>>32)+P;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(i < h-1){\r\n\t\t\t\tfor(int k = 0;k < 1<<h-i-2;k++)wws[k] = wws[k*2];\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0;i < n;i++){\r\n\t\t\tif(dst[i] >= P)dst[i] -= P;\r\n\t\t}\r\n\t\tfor(int i = 0;i < n;i++){\r\n\t\t\tint rev = Integer.reverse(i)>>>-h;\r\n\t\t\tif(i < rev){\r\n\t\t\t\tlong d = dst[i]; dst[i] = dst[rev]; dst[rev] = d;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(inverse){\r\n\t\t\tlong in = invl(n, P);\r\n\t\t\tfor(int i = 0;i < n;i++)dst[i] = modh(dst[i]*in, M, H, P);\r\n\t\t}\r\n\t\t\r\n\t\treturn dst;\r\n\t}", "title": "" }, { "docid": "6bc32b1818f8a3566775c3133bceee2d", "score": "0.5516919", "text": "private void localSearch(Set<Solution> ns, Solution ts) {\n\t\t\n\t\t//just to initialize \n\t\tSolution best = new Solution(this.numVechicles);\n\t\tSolution random = new Solution(this.numVechicles);\n\t\tdouble bestCost = Double.POSITIVE_INFINITY;\n\t\tdouble newCost;\n\t\tRandom rand = new Random();\n\t\tint randomNeighbor = 0;\n\t\tif (ns.size()>0 ) {\n\t\t randomNeighbor = rand.nextInt(ns.size());\t\n\t\t}\n\t\telse {\n\t\t\t//if no neighbors were generated because of constraints, go on with new itereation\n\t\t\treturn;\n\t\t}\n\t\tint r = 0;\n\t\t//find the random and best tasks among the neighbors \n\t\t//for sure best will be an element of ns (if not empty) given the positive_infinity\n\t\t\n\t\tfor (Solution s : ns) {\n\t\t\tnewCost = computeCost(s.array);\n\n\t\t\tif (ns.size() > 0 && r == randomNeighbor) {\n\t\t\t\trandom.array = cloneSolution(s.array);\n\t\t\t}\n\t\t\tif (newCost < bestCost) {\n\t\t\t\tbest = s;\n\t\t\t\tbestCost = newCost;\n\t\t\t}\n\t\t\tr++;\n\t\t}\n\t\t\n\t\tdouble p = rand.nextDouble();\n\t\t\n\t\t//If better solution found, use that w.p. 1\n\t\tif (bestCost < computeCost(ts.array)) {\n\t\t\tts.array = cloneSolution(best.array);\n\t\t\tthis.stuck =0;\n\t\t\tif (bestCost < computeCost(this.solutions.array)) {\n\t\t\t\tthis.solutions.array = cloneSolution(best.array);\n\t\t\t}\n\t\t}\n\t\t//Use that anyway w.p. currentProb\n\t\telse if (p < this.currentProb) {\n\t\t\t\n\t\t\tthis.stuck++;\n\t\t\tts.array = cloneSolution(best.array);\n\t\t}\n\t\t//Jump to a random solution if not improve for a long\n\t\telse if (stuck > jumpWhen){\n\t\t\tts.array = cloneSolution(random.array);\n\t\t\tthis.stuck = 0;\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "205989d5c4a6a700b65da405e44d4924", "score": "0.55138", "text": "private int reversibleUnderBillion()\n {\n int sum = 0;\n for (int i = 1; i < 10; i++)\n {\n if (i%2==0)\n sum+=(20*(Math.pow(30, (i/2)-1)));\n else if (i%4==0)//8 are like 2, 4, and 6\n {}\n else if (i%4==3)\n {\n sum+=(5*20*(Math.pow((25*20),(i/4))));\n }\n }\n return sum;\n }", "title": "" }, { "docid": "1f4df52557a457a2cede543f805ba713", "score": "0.54993427", "text": "public static void main(String[] args) throws IOException {\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n StringTokenizer st = new StringTokenizer(f.readLine());\n int n = Integer.parseInt(st.nextToken());\n int m = Integer.parseInt(st.nextToken());\n int b = Integer.parseInt(st.nextToken());\n MOD = Integer.parseInt(st.nextToken());\n st = new StringTokenizer(f.readLine());\n int[] a = new int[n];\n for(int i = 0; i < n; i++) {\n a[i] = Integer.parseInt(st.nextToken());\n }\n int[][][] dp = new int[2][m+1][b+1];\n dp[0][0][0] = 1;\n for(int i = 1; i <= n; i++) {\n int index = i&1;\n for(int j = 0; j <= m; j++) {\n for(int k = 0; k <= b; k++) {\n dp[index][j][k] = dp[index^1][j][k];\n if(j > 0 && k-a[i-1] >= 0) {\n dp[index][j][k] = add(dp[index][j][k], dp[index][j-1][k-a[i-1]]);\n }\n }\n }\n }\n int ans = 0;\n for(int i = 0; i <= b; i++) {\n ans = add(ans, dp[n&1][m][i]);\n }\n out.println(ans);\n f.close();\n out.close();\n }", "title": "" }, { "docid": "f1217ddd142e50d85c677e6e1babb7a1", "score": "0.5497137", "text": "private static int solution(int n) {\n if( n < 3 || n == 4 ) return -1;\n if( n == 3 || n == 5 ) return 1;\n int[] dp = new int[n + 1];\n Arrays.fill(dp, 5000);\n dp[3] = 1;\n dp[5] = 1;\n for (int i = 6; i < dp.length; i++) {\n dp[i] = Math.min(dp[i - 3], dp[i - 5]) + 1;\n }\n return dp[n] >= 5000 ? -1 : dp[n];\n }", "title": "" }, { "docid": "fe4ec12af0280b67609ff733becde688", "score": "0.54940754", "text": "private static int optimizeApproach(int[][] matrix) {\n int row = matrix.length;\n if(row == 0)\n return 0;\n int col = matrix[0].length;\n\n int dp[][] = new int[row][col];\n \n for(int i=0; i<row; i++){\n Arrays.fill(dp[i], -1);\n }\n \n int mx = 0;\n \n int k=0;\n for(int j=0; j<row*col; j++){\n int J = j%col;\n mx = Math.max(mx, dfs(matrix, k, J, dp, Integer.MIN_VALUE)); \n \n if(J+1 == col) k++; \n }\n \n int temp = mx==Integer.MIN_VALUE ? 0: mx; \n return temp;\n\t}", "title": "" }, { "docid": "87e8743ff734046060b385eda0bf3046", "score": "0.5491809", "text": "private int[][] direzioneVersoIlbassoGeneraMatrice(int [][] pino_return) \t\r\n{\r\n\tany_move=false;\r\n\tfor (int j = 0; j <pino_return.length ; j++) \r\n\t{\r\n\t\tint indice_inserimento=pino_return.length-1;\r\n\t\tint daSommare=0;\r\n\t\t\r\n\t\tfor (int i = pino_return.length-1; i>=0; i--) \r\n\t\t{\r\n\t\t\t\r\n\t\t\t if(pino_return[i][j]!=0)\r\n\t\t\t {\r\n\t\t\t\t if(daSommare==0) {\r\n\t\t\t\t\t daSommare=pino_return[i][j];\r\n\t\t\t\t\t\t if(indice_inserimento !=i)\r\n\t\t\t\t\t\t { \r\n\t\t\t\t\t\t\t any_move=true;\r\n\t\t\t\t\t\t\t pino_return[indice_inserimento][j]=pino_return[i][j];\r\n\t\t\t\t\t\t\t pino_return[i][j]=0;\r\n\t\t\t\t\t }\r\n\t\t\t\t }else if(pino_return[i][j] == daSommare && daSommare!=0)\r\n\t\t\t\t {\r\n\t\t\t\t\t any_sum=true;\r\n pino_return[indice_inserimento][j]+=daSommare;\r\n pino_return[i][j]=0;\r\n daSommare=0;\r\n indice_inserimento--;\r\n\t\t\t\t }\r\n\t\t\t\t else if(pino_return[i][j] != daSommare && daSommare!=0)\r\n\t\t\t\t {\r\n\t\t\t\t\t indice_inserimento--;\r\n\t\t\t\t\t if(indice_inserimento !=i)\r\n\t\t\t\t { \r\n\t\t\t\t\t\t any_move=true;\r\n pino_return[indice_inserimento][j]=pino_return[i][j];\r\n pino_return[i][j]=0;\r\n\t\t\t\t }\r\n daSommare=pino_return[indice_inserimento][j];\r\n }\t \r\n\t\t\t\t \r\n\r\n\t\t\t }//if!=0\r\n\t\t}//for j\r\n\t}//for i\r\n\tif(any_move== true && any_sum ==false)\r\n\t{\r\n\t\tany_sum=true;\r\n\t}\r\n\r\n\r\n\t\r\n\treturn pino_return;\r\n}", "title": "" }, { "docid": "380fb2ff297dc52e9c6b93976d0c084d", "score": "0.548828", "text": "public long problem68() {\n ArrayList<String> outerOptions = Utilities.permutations(\"789A\");\n\n //The innerValues are 1 through 5. \n ArrayList<String> innerOptions = Utilities.permutations(\"12345\");\n\n //The outer values sum 10+9+8+7+6 = 40\n //The inner values sum 1+2+3+4+5=15 and are counted twice so 30 \n //Total \"sum\" is 70 so each value is 14.\n //This lambda will extract the values from a string.\n ToIntBiFunction<String, Integer> readVal = (strValue, position) -> {\n return Integer.valueOf(strValue.substring(position, position + 1), 11);\n };\n\n long longestVal = Long.MIN_VALUE;\n for (String outer : outerOptions) {\n for (String inner : innerOptions) {\n //The values are 067 - 178 - 289 - 395 - 456\n //outer options are 0 (fixed at 6) 1234\n //inner options are 56789\n\n //Checks the sums.\n if (((6 + readVal.applyAsInt(inner, 1) + readVal.applyAsInt(inner, 2)) == 14) //067\n && (((readVal.applyAsInt(outer, 0) + readVal.applyAsInt(inner, 2) + readVal.applyAsInt(inner, 3)) == 14)) // 178\n && (((readVal.applyAsInt(outer, 1) + readVal.applyAsInt(inner, 3) + readVal.applyAsInt(inner, 4)) == 14)) // 289\n && (((readVal.applyAsInt(outer, 2) + readVal.applyAsInt(inner, 4) + readVal.applyAsInt(inner, 0)) == 14)) // 395\n && (((readVal.applyAsInt(outer, 3) + readVal.applyAsInt(inner, 0) + readVal.applyAsInt(inner, 1)) == 14)) // 456\n ) {\n //Valid solution\n long aux = Long.valueOf(\n (\"6\" + inner.charAt(1) + inner.charAt(2)\n + outer.charAt(0) + inner.charAt(2) + inner.charAt(3)\n + outer.charAt(1) + inner.charAt(3) + inner.charAt(4)\n + outer.charAt(2) + inner.charAt(4) + inner.charAt(0)\n + outer.charAt(3) + inner.charAt(0) + inner.charAt(1)).replaceAll(\"A\", \"10\"));\n if (aux > longestVal) {\n longestVal = aux;\n }\n\n }\n\n }\n }\n\n //Filter out the ones on which the \"5-gon\" ring values match\n return longestVal;\n }", "title": "" }, { "docid": "f36de366a0af31b6bc4419551e50071c", "score": "0.54864764", "text": "private void solve() {\n if (solved) return;\n\n mst = new ArrayList<>();\n\n UnionFind uf = new UnionFind(n);\n\n int[] cheapest = new int[n];\n Arrays.fill(cheapest, -1);\n\n // Repeat at most log(n) times or until we have a complete spanning tree.\n // for(int t = 1; t < N && index < n - 1; t = t + t) {\n // for(long t = 1; t <= n && mst.size() != n-1; t = t << 1) {\n for (; mst.size() != n - 1; ) {\n\n // TODO: Remove\n Arrays.fill(cheapest, -1);\n boolean stop = true;\n\n for (int i = 0; i < graph.length; i++) {\n Edge e = graph[i];\n if (e.u == e.v) continue;\n int uc = uf.id[e.u], vc = uf.id[e.v];\n if (uc == vc) continue;\n // if (cheapest[vc] == -1 || e.compareTo(graph[cheapest[vc]]) < 0) { stop = false;\n // cheapest[vc] = i; }\n // if (cheapest[uc] == -1 || e.compareTo(graph[cheapest[uc]]) < 0) { stop = false;\n // cheapest[uc] = i; }\n if (cheapest[vc] == -1 || e.cost < graph[cheapest[vc]].cost) {\n stop = false;\n cheapest[vc] = i;\n }\n if (cheapest[uc] == -1 || e.cost < graph[cheapest[uc]].cost) {\n stop = false;\n cheapest[uc] = i;\n }\n }\n\n if (stop) break;\n\n for (int i = 0; i < n; i++) {\n if (cheapest[i] == -1) continue;\n Edge e = graph[cheapest[i]];\n // cheapest[i] = -1;\n if (uf.connected(e.u, e.v)) continue;\n\n mst.add(e);\n minCostSum += e.cost;\n uf.union(e.u, e.v);\n\n // TODO(williamfiset): Optimization is to remove e from graph.\n }\n }\n\n // if ( (index==n-1) != (uf.size(0) == n) ) throw new NullPointerException();\n\n mstExists = (mst.size() == n - 1); // (uf.size(0) == n);\n solved = true;\n\n // if (!check()) throw new IllegalStateException();\n }", "title": "" }, { "docid": "28c0b4b5f4d677c7dfd4131038cf3c6c", "score": "0.54864275", "text": "public static void main(String[] args)\r\n\t{\n\t\t\r\n\t\tint n = 5;\r\n\t\tlong[] A = {8, 15, 19, 3, 12};\r\n\t\tSystem.out.println(\"A: \");\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(A[i] + \" \");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tint[] pairIndice = closestPairFast2(A);\r\n\t\tSystem.out.println(\"The two values are closest are at indice \" + pairIndice[0] + \" and \" + pairIndice[1]);\r\n\r\n\t\t/*\r\n\t\tn = 500000;\r\n\t\tA = new long[n];\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t{\r\n\t\t\tA[i] = (long) (Math.random() * (1L << 60));\r\n\t\t\t// System.out.print(A[i] + \" \");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tSystem.out.println(\"closestPairFast2:\");\r\n\r\n\t\tlong tic2 = System.currentTimeMillis();\r\n\t\tpairIndice = closestPairFast2(A);\r\n\t\t;\r\n\t\tlong toc2 = System.currentTimeMillis();\r\n\r\n\t\tSystem.out.println(\"The two values are closest are at indice \" + pairIndice[0] + \" and \" + pairIndice[1]);\r\n\t\tSystem.out.printf(\"Time: %.2f seconds\\n\", (double) (toc2 - tic2) / 1000);\r\n\t\t*/\r\n\t}", "title": "" }, { "docid": "057fa8e28210268b102516562ec27d77", "score": "0.5481311", "text": "public void shortOptimization() {\n for (int i = 0; i < places.size(); i++) {\n for (int j = i; j < places.size(); j++) {\n long temp = measure(places.get(i), places.get(j));\n allDistances[i][j] = temp;\n allDistances[j][i] = temp;\n }\n }\n //Checks each starting location\n for (int i = 0; i < places.size(); i++) {\n nearestNeighbor(i);\n }\n places = new ArrayList<>(Arrays.asList(tempPlaces));\n places.remove(places.size() - 1);\n }", "title": "" }, { "docid": "c289ba585a163adb64715ee10d74972a", "score": "0.54735357", "text": "void optimize();", "title": "" }, { "docid": "4e77adcf56f6936d5e427e9aaa9fdeff", "score": "0.5473419", "text": "public static int Main()\n\t{\n\t\tint n = 0;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tint q = 0;\n\t\twhile (q < n)\n\t\t{\n\t\t\tint[][] a = new int[110][110];\n\t\t\t(int)(*p)[110] = a;\n\t\t\tint o = n;\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0;i < n;i++)\n\t\t\t{\n\t\t\t\tfor (int j = 0;j < n;j++)\n\t\t\t\t{\n\t\t\t\t\t*(*(p + i) + j) = ConsoleInput.readToWhiteSpace(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (o > 0)\n\t\t\t{\n\t\t\t\tint[][] min = new int[110][2];\n\t\t\t\t(int)(*q)[2] = min;\n//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'memset' has no equivalent in Java:\n\t\t\t\tmemset(min,10000,(Integer.SIZE / Byte.SIZE));\n\t\t\t\tfor (int i = 0;i < o;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0;j < o;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (*(*(p + i) + j) < *(*(q + i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t*(*(q + i)) = *(*(p + i) + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int i = 0;i < o;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0;j < o;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t*(*(p + i) + j) -= *(*(q + i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int j = 0;j < o;j++)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0;i < o;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (*(*(p + i) + j) < *(*(q + j) + 1))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t*(*(q + j) + 1) = *(*(p + i) + j);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int j = 0;j < o;j++)\n\t\t\t\t{\n\t\t\t\t\tfor (int i = 0;i < o;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\t*(*(p + i) + j) -= *(*(q + j) + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsum += *(*(p + 1) + 1);\n\t\t\t\tfor (int i = 0;i < o;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 1;j < o;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t*(*(p + i) + j) = *(*(p + i) + j + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (int i = 1;i < o;i++)\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0;j < o;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t*(*(p + i) + j) = *(*(p + i + 1) + j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\to--;\n\t\t\t}\n\t\t\tSystem.out.print(sum);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\tq++;\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2b9dac06ec60baac11a9ecae561e6f15", "score": "0.54730666", "text": "public static int solve(int A) {\n\t\t// Time complexity increasing\n\t\t/*\n\t\t * int count = 0; for (int i = 1; i <= A; i++) { int j = i; while (j > 0) {\n\t\t * System.out.println(count + \" : \" + i); count += j & 1; j >>= 1; } }\n\t\t * //count=count&(2^9) return count & 1000000007;\n\t\t */\n\n\t\t// for better TL\n\t\tlong count = 0;\n\t\tA=A+1;\n\t\tlong mod = 1000000007;\n\t\tlong k1, k2;\n\t\tfor (int i = 0; i < 32; i++) {\n\t\t\tk1 = (long) Math.pow(2, i + 1);\n\t\t\tk2 = (long) Math.pow(2, i);\n\t\t\tSystem.out.println(k1 + \" \" + k2);\n\t\t\tcount+=(((A/k1)*k2)%mod)+Math.max(0,(((A%k1)-k2)%mod));\n\n\t\t\t/*count = ( count + ((A / k1) * k2) % mod);\n\t\t\tif ((A % k1) - k2 > 0) {\n\t\t\t\tcount += (A % k1 - k2) % mod;\n\t\t\t}\n*/\n\t\t\tSystem.out.println(count);\n\t\t}\n\t\treturn (int)count;\n\t}", "title": "" }, { "docid": "778bcac3b929a0f4c4643e5125c3f0c6", "score": "0.54712975", "text": "public static int solution(int a) {\r\n\t\tint[] A = {2,-2,-3,3};\r\n\t\tint[] B = {0,0,4,-4};\r\n // write your code in Java SE 8\r\n\t\tint count = 0;\r\n if(A.length==0){\r\n return count;\r\n }\r\n int total = 0;\r\n for(int j=0;j<A.length; j++){\r\n \ttotal = total+A[j];\r\n }\r\n if(total==0){\r\n \treturn 1;\r\n }\r\n \tint leftSum = 0;\r\n \tint rightSum = 0;\r\n for(int i=0;i<A.length; i++){\r\n \tif(leftSum == rightSum){\r\n \t\t int[] B1 = Arrays.copyOfRange(B, 0, i);\r\n int[] B2 = Arrays.copyOfRange(B, i, B.length);\r\n int totalB1 = IntStream.of(B1).sum();\r\n int totalB2 = IntStream.of(B2).sum();\r\n if(leftSum== totalB1 && totalB1==totalB2){\r\n \tcount = count + 1;\r\n }\r\n \t}\r\n \tleftSum +=A[i];\r\n \trightSum = IntStream.of(Arrays.copyOfRange(A, i+1, A.length)).sum();\r\n }\r\n System.out.println(\"count--->\"+count);\r\n \r\n\t\t/*a = 4;\r\n String value =\"red\";\r\n switch(value){\r\n case \"red\":\r\n \t System.out.println(\"fail\");\r\n case \"greeen\":\r\n \t System.out.println(\"ok\");\r\n }*/\r\n return count;\r\n }", "title": "" }, { "docid": "f6c2adccd8e8e17c14699a76784a6e02", "score": "0.54696715", "text": "public long problem51() {\n long primeValue = 2;\n\n HashMap<String, Integer> visitedPatterns = new HashMap<>();\n\n ArrayList<String> patterns;\n\n while (true) {\n\n patterns = findPatterns(primeValue);\n\n for (String p : patterns) {\n if (!visitedPatterns.containsKey(p)) {\n ArrayList<Long> candidates;\n candidates = explodePatterns(p);\n\n int famSize = (int) candidates.stream().filter(Primes::isPrime).count();\n\n if (famSize == 8) {\n //return candidates.stream().filter(Primes::isPrime).min(Comparator.comparing(item -> item)).get();\n //return candidates.stream().filter(Primes::isPrime).mapToLong(i->i).min().getAsLong();\n System.out.println(p);\n return primeValue;\n } else {\n visitedPatterns.put(p, famSize);\n }\n }\n }\n primeValue = Primes.nextPrime(primeValue);\n }\n }", "title": "" }, { "docid": "80b7b478daa5de62bf94d535b0252ca0", "score": "0.5460359", "text": "public int solveProblem() throws OverFlowException, UnderFlowException {\r\n\t\tDequeue<Point> queue = new DequeueListImplementation<>();\r\n\t\tint ans = 0;// stores number of iteration\r\n\t\t// Store all the cells having rotten orange in first time frame\r\n\t\tfor (int i = 0; i < Row; i++) {\r\n\t\t\tfor (int j = 0; j < Col; j++) {\r\n\t\t\t\tif (data[i][j] == 2) {\r\n\t\t\t\t\tqueue.enQueue(new Point(i, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Separate these rotten oranges from the oranges which will rot\r\n\t\t// because of the oranges in first time frame using delimiter which is\r\n\t\t// (-1, -1)\r\n\t\tqueue.enQueue(new Point(-1, -1));\r\n\r\n\t\t// Process the grid while there are rotten oranges in the Queue\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\t// This flag is used to determine whether even a single fresh\r\n\t\t\t// orange gets rotten due to rotten oranges in current time\r\n\t\t\t// frame so we can increase the count of the required time.\r\n\t\t\t/**\r\n\t\t\t * TODO: i have removed this flag .. although it defines a way of\r\n\t\t\t * doing this type of problem\r\n\t\t\t */\r\n\t\t\t// boolean flag = false;\r\n\t\t\tint[] rows = { -1, 0, 1, 0 };\r\n\t\t\tint[] cols = { 0, -1, 0, 1 };\r\n\r\n\t\t\t// Process all the rotten oranges in current time frame.\r\n\t\t\twhile (!queue.getFront().isDelimiter()) {\r\n\t\t\t\tPoint temp = queue.getFront();\r\n\t\t\t\t// spread in all 4 directions\r\n\t\t\t\tfor (int k = 0; k < 4; k++) {\r\n\t\t\t\t\tif (isValid(temp.x + rows[k], temp.y + cols[k])\r\n\t\t\t\t\t\t\t&& data[temp.x + rows[k]][temp.y + cols[k]] == 1) {\r\n\t\t\t\t\t\t// if (!flag) {\r\n\t\t\t\t\t\t// ans++;// increment only once per spread cycle.\r\n\t\t\t\t\t\t// flag = true;\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t\tdata[temp.x + rows[k]][temp.y + cols[k]] = 2;\r\n\t\t\t\t\t\tqueue.enQueue(new Point(temp.x + rows[k], temp.y\r\n\t\t\t\t\t\t\t\t+ cols[k]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tqueue.deQueue();\r\n\t\t\t}\r\n\t\t\t// remove the delimiter\r\n\t\t\tqueue.deQueue();\r\n\t\t\t// If oranges were rotten in current frame then separate the\r\n\t\t\t// rotten oranges using delimiter for the next frame for processing.\r\n\t\t\tif (!queue.isEmpty()) {\r\n\t\t\t\tans++;\r\n\t\t\t\tqueue.enQueue(new Point(-1, -1));\r\n\t\t\t}\r\n\t\t\t// If Queue was empty than no rotten oranges left to process so exit\r\n\t\t}\r\n\t\treturn (verifyAll()) ? -1 : ans;\r\n\t}", "title": "" }, { "docid": "57a5a63e9eca000f37b1db96424b39d9", "score": "0.54584956", "text": "private int solution3(int n) {\n if (n == 0) {\n return 0;\n }\n int[] dp = new int[n + 1];\n dp[0] = 0;\n dp[1] = 1;\n List<Integer> nums = new ArrayList<>();\n for (int i = 1; i <= Math.sqrt(n); i ++) {\n nums.add(i * i);\n }\n for (int k = 2; k <= n; k ++) {\n dp[k] = Integer.MAX_VALUE;\n for (int s : nums) {\n if (k < s) {\n break;\n }\n dp[k] = Math.min(dp[k - s] + 1, dp[k]);\n }\n }\n return dp[n];\n }", "title": "" }, { "docid": "a500c7b1e2b6b922a437315fca107dcf", "score": "0.54582894", "text": "public static double[] solveSing(double[][] A) {\n\t\t//kopieren da A unverändert bleiben soll\n double[][] Acopy = A.clone();\n int length = Acopy.length;\n for(int n = 0 ; n < length ; n++){\n //größten Wert unter Diagonale in aktueller Spalte finden\n double biggestValue = 0;\n int biggestValueLine = -1;\n for(int i = n ; i<length ; i++){\n double a;\n if(Acopy[i][n] < 0){\n a = -1 * Acopy[i][n];\n }\n else {\n a = Acopy[i][n];\n }\n \n if( a > biggestValue) {\n biggestValue = a;\n biggestValueLine = i;\n }\n }\n //kein Pivotelement gefunden\n if(biggestValue < 0.0000000001){\n //T aus Acopy rauskopieren\n double[][] T = new double[n-1][n-1];\n for(int i = 0; i< T.length; i++) {\n for (int j = 0; j< T.length; j++) {\n T[i][j] = Acopy[i][j];\n }\n }\n //v aus Acopy rauskopieren und negieren\n double[] v = new double[n-1];\n for (int i= 0; i< v.length; i++) {\n v[i] = (-1) * Acopy[i][n];\n }\n //x berechnen\n double[] x = backSubst(T , v);\n \n //p zusammenstellen\n double[] p = new double[Acopy.length];\n for (int i= 0; i< p.length; i++) {\n if( i < x.length){\n p[i] = x[i];\n }else if( i == x.length){\n p[i] = 1;\n }else{\n p[i] = 0;\n }\n }\n \n return p;\n }\n \n \n \n //tauschen falls Wert auf Diagonale nicht der größte ist\n if(biggestValueLine != n){\n //Acopy\n double[] tmp = Acopy[n];\n Acopy[n] = Acopy[biggestValueLine];\n Acopy[biggestValueLine] = tmp;\n \n }\n \n //Werte unter dem biggestValue auf 0 bringen\n for (int i = (n+1); i < length; i++) {\n if(Acopy[i][n] != 0){\n double lineFactor = Acopy[i][n] / Acopy[n][n];\n //Pivotzeile mit Faktor abziehen\n for (int j = n; j < length; j++) {\n Acopy[i][j] = Acopy[i][j] - (lineFactor * Acopy[n][j]);\n }\n }\n }\n \n }\n \n //falls regulär, und immer Pivot gefunden wird Nullvektor zurückgeben\n double[] nullVektor = new double[length];\n for (int i = 0; i < length; i ++) {\n nullVektor[i] = 0;\n }\n\t\treturn nullVektor;\n\t}", "title": "" }, { "docid": "28a4edfdce26257b9828cb19dd3d822f", "score": "0.5457939", "text": "public int improve();", "title": "" }, { "docid": "c66e5160037293c83c1ef7b85de1a3b2", "score": "0.54527146", "text": "public static int helper(char[] a, char[] b, int i, int j) {\n\t String key=Integer.toString(i)+\":\"+Integer.toString(j);\r\n \r\n if(map.containsKey(key)){\r\n return map.get(key);\r\n }\r\n if(i<0){\r\n return j;\r\n }\r\n \r\n if(j<0){\r\n return i;\r\n }\r\n \r\n \r\n if(map.containsKey(key)){\r\n return map.get(key);\r\n }\r\n if(a[i]==a[j]){\r\n int val= helper(a,b,i-1,j-1);\r\n map.put(key,val);\r\n return val;\r\n }\r\n else{\r\n int ins= 1+helper(a,b,i,j-1);\r\n int del= 1+helper(a,b,i-1,j);\r\n int rev= 1+helper(a,b,i-1,j-1);\r\n int sol= min(ins,del,rev);\r\n map.put(key,sol);\r\n \r\n return sol;\r\n \r\n }\r\n \r\n}", "title": "" }, { "docid": "345ddbe6b0292e815540fd0dd9328aff", "score": "0.5446218", "text": "public void runBaseline(){\n\t\tint iterationcount=data.queryMap.keySet().size();\n\t\titerationcount=1000/iterationcount;\n\t\tdo{\n\t\tfor(int query:data.queryMap.keySet()){\n\t\t\tHashMap<Double,HashSet<Integer>> scores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tHashMap<Double,HashSet<Integer>> exploratoryscores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tArrayList<Double> weight2 = new ArrayList<Double>();\n\t\t\t\n\t\t\t//step 3: sample unit vector uniformly\n\t\t\tunitvector = getUnifRandUnitVector(unitvector);\n\t\t\t\n\t\t\t//step 4: set w'_t = w_t + delta*unitvector\n\t\t\tfor(int i=0; i<unitvector.size(); i++){\n\t\t\t\tweight2.add(weight.get(i) + delta*unitvector.get(i));\n\t\t\t}\n\t\t\tDouble weight2norm = Math.sqrt(sum(weight2));\n\t\t\tfor(int i=0; i<unitvector.size(); i++){\n\t\t\t\tweight2.set(i, weight2.get(i)/weight2norm);\n\t\t\t}\n\t\t\t\n\t\t\t//step 4.a1: extract scores for weight\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!scores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight)))\n\t\t\t\t\tscores.put(computeDotProduct(data.featureMap.get(qdoc), weight),new HashSet<Integer>());\n\t\t\t\tscores.get(computeDotProduct(data.featureMap.get(qdoc), weight)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t//step 4.a2: generate exploitative sorted list\n\t\t\tArrayList<Integer> sortedList=constructFullSortedList(scores);\n\n\t\t\t\n\t\t\t//step 4.b1: extract scores for weight2\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!exploratoryscores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight2)))\n\t\t\t\t\texploratoryscores.put(computeDotProduct(data.featureMap.get(qdoc), weight2),new HashSet<Integer>());\n\t\t\t\texploratoryscores.get(computeDotProduct(data.featureMap.get(qdoc), weight2)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t//step 4.b2: generate exploratory sorted list based on these scores\n\t\t\tArrayList<Integer> exploratoryList=constructFullSortedList(exploratoryscores);\n\t\t\t\n\t\t\t//step 5: interleave (balanced and probabilistic)\n\t\t\tLinkedHashMap<String, Integer> balancedList = balancedInterleave(sortedList, exploratoryList, kappa);\n\t\t\tList<Integer> balancedListValues = new ArrayList<Integer>(balancedList.values()); \n\t\t\tList<String> balancedListKeys = new ArrayList<String>(balancedList.keySet());\n\t\t\tSystem.out.println(balancedListKeys);\n\t\t\t//step 6-8: assuming click model on first 20 entries, get labeled triples\n\t\t\t//\n\t\t\t//\n\t\t\t\n\t\t\tList<Integer> clicks = getClicks(query, balancedListValues); //interchangeable with probabilisticListValues\n\t\t\t\n\t\t\tArrayList<Integer> listsClicks = computeListClicks(clicks, balancedListKeys); //interchangeable with probabilisticListKeys\n\t\t\tSystem.out.println(clicks);\n\t\t\tSystem.out.println(listsClicks);\n\t\t\t\n\t\t\tif(listsClicks.get(1) < listsClicks.get(0))\n\t\t\t\tcontinue;\n\t\t\telse if(listsClicks.get(1) > listsClicks.get(0))\n\t\t\t\tupdateWeightVector(query, weight2, weight);\n\t\t\n\t\t}\n\n\t\titerationcount--;\n\t\t}while(iterationcount>0);\n\t\t\n\t}", "title": "" }, { "docid": "473860f3ffe62df3d2c612dd920d1265", "score": "0.5442622", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tN = sc.nextInt();\n\t\tM = sc.nextInt();\n\t\tmap = new int[N][M];\n\t\tvisited = new boolean[N][M];\n\t\tanswer =0;\n\t\t\n\t\tpoint = new Point(sc.nextInt(), sc.nextInt(), sc.nextInt(),0);\n\t\tqu = new LinkedList<>();\n\t\tqu.offer(point);\n\t\t\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tmap[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile(!qu.isEmpty()) {\n\t\t\tPoint now = qu.poll();\n\t\n\t\t\tint dir=0;\n\t\t\tint nextI=0;\n\t\t\tint nextJ=0;\n\t\t\t//현재자리 청소\n\t\t\tif(!visited[now.i][now.j]) {\n\t\t\t\tvisited[now.i][now.j]= true;\t\t\t\n\t\t\t\tanswer++;\n\t\t\t}\t\t\t\n\t\t\t//사방이 벽 or 청소한 공간이라면\n\t\t\tif(now.cnt==4) {\n\t\t\t\tdir = (now.dir+2)%4;\n\t\t\t\tnextI = now.i+dI[dir];\n\t\t\t\tnextJ = now.j+dJ[dir];\n\t\t\t\n\t\t\t\t//범위밖으로 나가지 않는다면\n\t\t\t\tif(check(nextI,nextJ)) {\n\t\t\t\t\t//벽이아니라면\n\t\t\t\t\tif(map[nextI][nextJ]==0) {\n\t\t\t\t\t\tqu.offer(new Point(nextI,nextJ,now.dir,0));\n\t\t\t\t\t}\n\t\t\t\t\t//후진하는 곳이 벽이라면 정지\n\t\t\t\t\telse {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//범위밖으로 나간다면\n\t\t\t\telse {\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\n\t\t\t\n\t\t\t\n\t\t\t//현재위치에서 왼쪽이 청소 안되어있다면? \n\t\t\t//i)방향바꾸기\n\t\t\tdir = (now.dir-1);\n\t\t\tif(dir<0)dir =3;\n\t\t\tnextI = now.i+dI[dir];\n\t\t\tnextJ = now.j+dJ[dir];\n\t\n\t\t\t//범위밖으로 나가지 않는다면\n\t\t\tif(check(nextI,nextJ)) {\n\t\t\t\t//빈공간이라면(a)\n\t\t\t\t//그쪽으로 이동\t\t\t\n\t\t\t\tif(!visited[nextI][nextJ] && map[nextI][nextJ]==0) {\n\t\t\t\t\tqu.offer(new Point(nextI,nextJ,dir,0));\n\t\t\t\t}\n\t\t\t\t//청소를했거나 벽이라면(b)\n\t\t\t\t//방향만 전환\n\t\t\t\telse if(visited[nextI][nextJ] || map[nextI][nextJ]==1) {\n\t\t\t\t\tqu.offer(new Point(now.i,now.j,dir,now.cnt+1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//범위밖으로 나간다면 방항만 바꿔주기\n\t\t\telse {\n\t\t\t\tqu.offer(new Point(now.i,now.j,dir,now.cnt+1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(answer);\n\t\t\n\t}", "title": "" }, { "docid": "4361f445da26882954699e0ede9f5563", "score": "0.5440374", "text": "public int solution(int[] A) {\n int sum=0;\n int a=0;\n\n for(int i=0; i<A.length; i++){\n if(A[i]==0){\n a++;\n }else{\n sum=sum+a;\n if(sum>1000000000){\n return -1;\n }\n }\n }\n return sum;\n\n }", "title": "" }, { "docid": "bb6bfe6655e47dca0de50c5c797bbdb8", "score": "0.54379845", "text": "public static long solution()\n\t{\n\t\treturn Combinatorics.combinations(40, 20);\n\t}", "title": "" }, { "docid": "bfc0cfe5bd99a98fb1fbbb69e315b00b", "score": "0.54295915", "text": "void solve() throws IOException {\n int[] nq = ril(2);\n int n = nq[0];\n int q = nq[1];\n\n TreeSet<Integer> unsure = new TreeSet<>();\n for (int i = 0; i < n; i++) unsure.add(i);\n BIT bit = new BIT(n); // definitely healthy\n\n // What is interesting is the NOT SICK information that follows SICK information.\n // Basically, the NOT SICK information can help us prune the SICK ranges.\n\n // Keep track of SICK ranges. How to quickly update all such previous with\n // NOT SICK information?\n // Associated each SICK range with a counter initialized to how many could be sick in range\n\n // start index to shortest SICK segment starting at index\n int[] startToEnd = new int[n];\n Arrays.fill(startToEnd, Integer.MAX_VALUE);\n\n for (int qi = 0; qi < q; qi++) {\n // pw.println(\"CYCLE: \" + qi);\n // pw.println(Arrays.toString(startToEnd));\n // pw.println(unsure);\n // for (int i = 0; i < n; i++) pw.print(bit.query(i) - (i-1>=0?bit.query(i-1):0) + \" \");\n // pw.println();\n\n String[] line = br.readLine().split(\" \");\n int t = Integer.parseInt(line[0]);\n if (t == 0) {\n int l = Integer.parseInt(line[1]) - 1;\n int r = Integer.parseInt(line[2]) - 1;\n boolean hasSick = Integer.parseInt(line[3]) == 1;\n\n if (!hasSick) {\n // Any sick ranges starting in this range should be pushed to\n // the first possible afterwards\n // Want the first-ending sick range that ends AFTER r\n Integer set = null;\n Integer curr = unsure.ceiling(l);\n while (curr != null && curr <= r) {\n if (startToEnd[curr] != -1 && startToEnd[curr] != Integer.MAX_VALUE) {\n if (startToEnd[curr] > r) {\n if (set == null || startToEnd[curr] < set) set = startToEnd[curr];\n }\n }\n bit.add(curr, 1);\n startToEnd[curr] = -1;\n unsure.remove(curr);\n curr = unsure.higher(curr);\n }\n\n Integer next = unsure.higher(r);\n if (set != null && next != null) {\n startToEnd[next] = Math.min(startToEnd[next], set);\n }\n } else {\n Integer start = unsure.ceiling(l);\n if (start != null) l = start;\n startToEnd[l] = Math.min(startToEnd[l], r);\n }\n } else if (t == 1) {\n int j = Integer.parseInt(line[1]) - 1;\n\n if (startToEnd[j] == -1) {\n pw.println(\"NO\");\n } else if (startToEnd[j] == Integer.MAX_VALUE) {\n pw.println(\"N/A\");\n } else {\n int len = startToEnd[j] - j + 1; // sick potentially\n int healthy = bit.query(startToEnd[j]) - (j-1>=0 ? bit.query(j-1) : 0);\n if (len - healthy == 1) {\n pw.println(\"YES\");\n } else {\n pw.println(\"N/A\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f8073839f8a92e30dc63901634a26940", "score": "0.5428564", "text": "public int[] search4x(int m, int n, int p, int q, int givenNum){\n int[] b = new int[7];\r\n b[m] = 1;\r\n b[n] = 1;\r\n b[p] = 1;\r\n b[q] = 1;\r\n int[] a = new int[2];\r\n int ind = 0;\r\n for(int i = 1; i < 7; ++ i){\r\n if(b[i] == 1) continue;\r\n a[ind] = i;\r\n ++ ind;\r\n } //a[1] > a[0]\r\n if(n > m){\r\n int temp = n; n = m; m = temp;\r\n temp = q; q = p; p = temp;\r\n }\r\n int big1 = constructNum0(m,p,a[0]);\r\n int big2 = constructNum0(n,q,a[1]);\r\n int big = big1 * big2;\r\n\r\n int small1 = constructNum0(m,p,a[1]);\r\n int small2 = constructNum0(n,q,a[0]);\r\n int small = small1 * small2;\r\n\r\n// int[] g1 = {1,1};\r\n// int[] g2 = {0,0};\r\n int[] g3 = {small1,small2};\r\n int[] g4 = {big1,big2};\r\n// int[] g5 = {0,1};\r\n\r\n// if(givenNum > big) return g1;\r\n// else if(givenNum < small) return g2;\r\n if(Math.abs(big - givenNum) > Math.abs(givenNum - small)) return g3;\r\n else return g4;\r\n// else return g5;\r\n\r\n }", "title": "" }, { "docid": "6ed6bd625126b17f33d907f27f6fef8d", "score": "0.5426717", "text": "public static void main(String[] args) {\n\t\tInteger[] searchArr={60,50,80,100,65,89,1,3,4,5,6,9,87,64,23};\n\t\tint x=23;\n\t\t\n\t\tlong start1 = System.currentTimeMillis(); \n\t\tint y=searchInRegularWay(searchArr,x);\n\t\t long end1 = System.currentTimeMillis(); \n\t\t System.out.println(\"searchInRegularWay method takes \" + \n (end1 - start1) + \"ms\"); \n\t\t System.out.println(\"Serahced element searchInRegularWay() \"+x+\"'s index is : \"+y);\n\t\t long start2 = System.currentTimeMillis(); \n\t\tint z=searchInBuiltMethod(searchArr,x);\n\t\tlong end2 = System.currentTimeMillis(); \n\t\t System.out.println(\"searchInBuiltMethod method takes \" + \n (end2 - start2) + \"ms\"); \n\t\t System.out.println(\"Serahced element searchInBuiltMethod() \"+x+\"'s index is : \"+z);\n\t\t\n\t}", "title": "" }, { "docid": "e363864c3115ca16d2909b70f005269d", "score": "0.5422437", "text": "public void runProbabilisticBaseline(){\n\t\t//step 2: outer for loop\n\t\tint iterationcount=data.queryMap.keySet().size();\n\t\titerationcount=1000/iterationcount;\n\t\tdo{\n\t\tfor(int query:data.queryMap.keySet()){\n\t\t\tHashMap<Double,HashSet<Integer>> scores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tHashMap<Double,HashSet<Integer>> exploratoryscores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tArrayList<Double> weight2 = new ArrayList<Double>();\n\t\t\tArrayList<Double> weight3 = new ArrayList<Double>();\n\t\t\t//step 3: sample unit vector uniformly\n\t\t\tunitvector = getUnifRandUnitVector(unitvector);\n\t\t\t//System.out.println(unitvector);\n\t\t\t//step 4: set w'_t = w_t + delta*unitvector\n\t\t\tfor(int i=0; i<unitvector.size(); i++){\n\t\t\t\tDouble val = weight.get(i) + delta*unitvector.get(i);\n\t\t\t\tweight2.add(val);\n\t\t\t\tweight3.add(val*val);\n\t\t\t}\n\t\t\tDouble weight2norm = Math.sqrt(sum(weight3));\n\t\t\tfor(int i=0; i<unitvector.size(); i++){\n\t\t\t\tDouble weight2val = weight2.get(i)/weight2norm;\n\t\t\t\tweight2.set(i, weight2val);\n\t\t\t}\n\t\t\t\n\t\t\t//step 4.a1: extract scores for weight\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!scores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight)))\n\t\t\t\t\tscores.put(computeDotProduct(data.featureMap.get(qdoc), weight),new HashSet<Integer>());\n\t\t\t\tscores.get(computeDotProduct(data.featureMap.get(qdoc), weight)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t//step 4.a2: generate exploitative sorted list\n\t\t\tArrayList<Integer> sortedList=constructFullSortedList(scores);\n\n\t\t\t\n\t\t\t//step 4.b1: extract scores for weight2\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!exploratoryscores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight2)))\n\t\t\t\t\texploratoryscores.put(computeDotProduct(data.featureMap.get(qdoc), weight2),new HashSet<Integer>());\n\t\t\t\texploratoryscores.get(computeDotProduct(data.featureMap.get(qdoc), weight2)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t\n\t\t\t//step 4.b2: generate exploratory sorted list based on these scores\n\t\t\tArrayList<Integer> exploratoryList=constructFullSortedList(exploratoryscores);\n\t\t\t\n\t\t\t//step 5: interleave (balanced and probabilistic)\t\t\t\n\t\t\tArrayList<String> probabilisticListKeys = probILKeys(sortedList, exploratoryList, kappa);\n\t\t\tArrayList<Integer> probabilisticListValues = probILVals(sortedList, exploratoryList, probabilisticListKeys); \n\t\t\t\n\t\t\t//step 6-8: assuming click model on first 20 entries, get labeled triples\t\t\n\t\t\tList<Integer> clicks = getClicks(query, probabilisticListValues); \n\t\t\tArrayList<Integer> listsClicks = computeListClicks(clicks, probabilisticListKeys); \n\t\t\t//System.out.println(listsClicks);\n\t\t\t\n\t\t\tif(listsClicks.get(1) < listsClicks.get(0))\n\t\t\t\tcontinue;\n\t\t\telse if(listsClicks.get(1) > listsClicks.get(0))\n\t\t\t\tupdateWeightVector(query, weight2, weight);\n\t\t}\n\t\titerationcount--;\n\t\t}while(iterationcount>0);\n\t\t\n\t}", "title": "" }, { "docid": "9a7738b70d636609c31755c71c5bac14", "score": "0.54184836", "text": "io(boolean z) {\n int nextInt;\n lo.a(ir.class);\n SecureRandom secureRandom = new SecureRandom();\n do {\n nextInt = secureRandom.nextInt(900) + SmsCheckResult.ESCT_NORMAL;\n } while (ae(nextInt));\n this.rK = nextInt;\n int i = this.rK;\n int[] iArr = new int[100];\n double sqrt = Math.sqrt((double) i);\n int i2 = ((int) sqrt) - 1;\n while ((i2 + 1) * (i2 + 1) <= i) {\n i2++;\n }\n iArr[0] = i2;\n if (i2 * i2 != i) {\n int i3 = 0;\n double d = sqrt;\n int i4 = 1;\n int[] iArr2 = new int[5];\n iArr2[1] = 1;\n iArr2[2] = 0;\n iArr2[3] = -iArr[0];\n iArr2[4] = 1;\n int[][] iArr3 = (int[][]) Array.newInstance(Integer.TYPE, new int[]{100, 5});\n int i5 = 0;\n while (i4 < 100) {\n if (iArr2[1] < 0) {\n iArr2[1] = -iArr2[1];\n iArr2[2] = -iArr2[2];\n iArr2[3] = -iArr2[3];\n iArr2[4] = -iArr2[4];\n }\n int k = k(k(k(iArr2[1], Math.abs(iArr2[2])), Math.abs(iArr2[3])), Math.abs(iArr2[4]));\n if (k > 1) {\n iArr2[1] = iArr2[1] / k;\n iArr2[2] = iArr2[2] / k;\n iArr2[3] = iArr2[3] / k;\n iArr2[4] = iArr2[4] / k;\n }\n i3 = 0;\n while (i3 < i5) {\n int[] iArr4 = iArr3[i3];\n if (iArr4[1] == iArr2[1] && iArr4[2] == iArr2[2] && iArr4[3] == iArr2[3] && iArr4[4] == iArr2[4]) {\n break;\n }\n i3++;\n }\n if (i3 < i5) {\n break;\n }\n iArr3[i5][1] = iArr2[1];\n iArr3[i5][2] = iArr2[2];\n iArr3[i5][3] = iArr2[3];\n iArr3[i5][4] = iArr2[4];\n i5++;\n iArr[i4] = (int) Math.floor(a(sqrt, iArr2));\n a(i, iArr2, iArr[i4]);\n i4++;\n }\n int i6 = i4 - 1;\n int i7 = i3;\n long j = 0;\n long j2 = 1;\n int i8 = 1;\n Object obj = null;\n while (true) {\n if ((j < 200 ? 1 : null) != null || obj == null) {\n i8++;\n j = 0;\n j2 = 1;\n i4 = i8 - 1;\n while (i4 >= 0) {\n long j3 = j;\n long j4 = j2 + (((long) (i8 > i6 ? iArr[((i4 - i7) % i6) + i7] : iArr[i4])) * j);\n j2 = j;\n j = j4;\n i4--;\n }\n if ((j < 1000000 ? 1 : null) == null) {\n throw new RuntimeException();\n }\n long j5 = j * j;\n long j6 = j2 * j2;\n long j7 = ((long) i) * j6;\n long j8 = j5 * 1000;\n if ((j < 200 ? 1 : null) == null) {\n if ((999 * j7 >= j8 ? 1 : null) == null) {\n if ((j8 >= 1001 * j7 ? 1 : null) == null && obj == null) {\n if (z) {\n }\n if (!z) {\n if ((j5 <= ((long) i) * j6 ? 1 : null) != null) {\n }\n obj = 1;\n }\n }\n }\n }\n } else {\n b(j, j2);\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "374e2540e7809728753c41c241ed760e", "score": "0.54101974", "text": "double calculateFunction( int[] sol) throws JWNLException, FileNotFoundException, IOException\r\n{\r\n\r\n//OB_fun.Set_thesaurus(syn1,syn2, syn3, syn4);\r\n double r;\r\n int[] array=new int[D];\r\n System.arraycopy(sol,0, array, 0, D);\r\n r=search_Previous_fitness(array);\r\n if(r==-1) {\r\n \r\n \r\n PQ.add(array);\r\n //print_list(PQ);\r\nr=OB_fun.evaluateABC(sol);\r\n\r\n//System.out.println(\"fitness \"+ r );\r\n previous_fitness.add(r);\r\n }\r\n //System.out.println(\" \"+ sol[0]+\", \"+sol[1]+\" fitness = \"+r);\r\n\r\n for(int j=0;j<D;j++)\r\n\t\t{\r\n\t\t\t//System.out.println(\"GlobalParam[%d]: %f\\n\",j+1,GlobalParams[j]);\r\n\t\t\tSystem.out.print(\" \"+ sol[j]+\", \");\r\n\t\t}\r\n\t\t System.out.println(\" fitness = \"+r);\r\n \r\n \r\n return r;\r\n}", "title": "" }, { "docid": "a84893b457a3ebd695b32162b303f552", "score": "0.5408677", "text": "@Override\n\t\tvoid test() {\n\t\t\tfor(long i = 0;i < testCycles; i ++){\n\t\t\t\tfor(int index = 0; index < containerSize; index ++) {\n\t\t\t\t\tresult += result; \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2e61f4986645da387cf765e4ee370c4b", "score": "0.540668", "text": "public void hitungFuzzification(Berita berita) {\r\n double nilaiNKTrue = 0, nilaiNKFalse = 0;\r\n double temp = 0;\r\n String[] lingEmosi = {berita.getLevelEmosi1(), berita.getLevelEmosi2()};\r\n String[] lingProvokasi = {berita.getLevelProvokasi1(), berita.getLevelProvokasi2()};\r\n double[] nilaiEmosi = {berita.getNilaiEmosi1(), berita.getNilaiEmosi2()};\r\n double[] nilaiProvokasi = {berita.getNilaiProvokasi1(), berita.getNilaiProvokasi2()};\r\n \r\n for (int emo = 0; emo < 2; emo++) {\r\n for (int pro = 0; pro < 2; pro++) {\r\n // IF emosi = level 1 and provokasi = level 1 then NK = false\r\n if (lingEmosi[emo] == \"level 1\" && lingProvokasi[pro] == \"level 1\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 1 and provokasi = level 2 then NK = false\r\n if (lingEmosi[emo] == \"level 1\" && lingProvokasi[pro] == \"level 2\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 1 and provokasi = level 3 then NK = false\r\n if (lingEmosi[emo] == \"level 1\" && lingProvokasi[pro] == \"level 3\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 1 and provokasi = level 4 then NK = false\r\n if (lingEmosi[emo] == \"level 1\" && lingProvokasi[pro] == \"level 4\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 1 and provokasi = level 5 then NK = True\r\n if (lingEmosi[emo] == \"level 1\" && lingProvokasi[pro] == \"level 5\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n //-------------------------------------------------------------------------------\r\n // IF emosi = level 2 and provokasi = level 1 then NK = false\r\n if (lingEmosi[emo] == \"level 2\" && lingProvokasi[pro] == \"level 1\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 2 and provokasi = level 2 then NK = false\r\n if (lingEmosi[emo] == \"level 2\" && lingProvokasi[pro] == \"level 2\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 2 and provokasi = level 3 then NK = false\r\n if (lingEmosi[emo] == \"level 2\" && lingProvokasi[pro] == \"level 3\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 2 and provokasi = level 4 then NK = false\r\n if (lingEmosi[emo] == \"level 2\" && lingProvokasi[pro] == \"level 4\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 2 and provokasi = level 5 then NK = True\r\n if (lingEmosi[emo] == \"level 2\" && lingProvokasi[pro] == \"level 5\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n //-------------------------------------------------------------------------------\r\n // IF emosi = level 3 and provokasi = level 1 then NK = false\r\n if (lingEmosi[emo] == \"level 3\" && lingProvokasi[pro] == \"level 1\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 3 and provokasi = level 2 then NK = false\r\n if (lingEmosi[emo] == \"level 3\" && lingProvokasi[pro] == \"level 2\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 3 and provokasi = level 3 then NK = false\r\n if (lingEmosi[emo] == \"level 3\" && lingProvokasi[pro] == \"level 3\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 3 and provokasi = level 4 then NK = false\r\n if (lingEmosi[emo] == \"level 3\" && lingProvokasi[pro] == \"level 4\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 3 and provokasi = level 5 then NK = True\r\n if (lingEmosi[emo] == \"level 3\" && lingProvokasi[pro] == \"level 5\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n //-------------------------------------------------------------------------------\r\n // IF emosi = level 4 and provokasi = level 1 then NK = false\r\n if (lingEmosi[emo] == \"level 4\" && lingProvokasi[pro] == \"level 1\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 4 and provokasi = level 2 then NK = false\r\n if (lingEmosi[emo] == \"level 4\" && lingProvokasi[pro] == \"level 2\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 4 and provokasi = level 3 then NK = false\r\n if (lingEmosi[emo] == \"level 4\" && lingProvokasi[pro] == \"level 3\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n // IF emosi = level 4 and provokasi = level 4 then NK = false\r\n if (lingEmosi[emo] == \"level 4\" && lingProvokasi[pro] == \"level 4\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n // IF emosi = level 4 and provokasi = level 5 then NK = True\r\n if (lingEmosi[emo] == \"level 4\" && lingProvokasi[pro] == \"level 5\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n //-------------------------------------------------------------------------------\r\n // IF emosi = level 5 and provokasi = level 1 then NK = false\r\n if (lingEmosi[emo] == \"level 5\" && lingProvokasi[pro] == \"level 1\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 5 and provokasi = level 2 then NK = false\r\n if (lingEmosi[emo] == \"level 5\" && lingProvokasi[pro] == \"level 2\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKFalse < temp) {\r\n nilaiNKFalse = temp;\r\n }\r\n }\r\n // IF emosi = level 5 and provokasi = level 3 then NK = True\r\n if (lingEmosi[emo] == \"level 5\" && lingProvokasi[pro] == \"level 3\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n // IF emosi = level 5 and provokasi = level 4 then NK = True\r\n if (lingEmosi[emo] == \"level 5\" && lingProvokasi[pro] == \"level 4\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n // IF emosi = level 5 and provokasi = level 5 then NK = True\r\n if (lingEmosi[emo] == \"level 5\" && lingProvokasi[pro] == \"level 5\") {\r\n if (nilaiEmosi[emo] < nilaiProvokasi[pro]) {\r\n temp = nilaiEmosi[emo];\r\n } else\r\n temp = nilaiProvokasi[pro];\r\n if (nilaiNKTrue < temp) {\r\n nilaiNKTrue = temp;\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Masukkan nilai yang di dapat ke Objek berita\r\n berita.setNilaiNKTrue(nilaiNKTrue);\r\n berita.setNilaiNKFalse(nilaiNKFalse);\r\n \r\n }", "title": "" }, { "docid": "3de371cc1b847dae0061bf8826da0d86", "score": "0.54023725", "text": "private static int find2(int n) {\n\n\t\tint ob = 1;\n\t\tint os = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint nb = os;\n\t\t\tint ns = os + ob;\n\n\t\t\tob = nb;\n\t\t\tos = ns;\n\t\t}\n\t\tint t = ob + os;\n\t\tt = t * t; // bcoz ask for both sides of the road/\n\t\treturn t;\n\n\t}", "title": "" }, { "docid": "c34a051be9bbb6d3a1a6645b05cdb6e3", "score": "0.5400863", "text": "public static void main(String[] args) {\n\t\tint n = 8;\n\t\tlong a=System.currentTimeMillis();\n\t\tint magicSum = n * (n * n + 1) / 2;\n\t\tModel m = new Model();\n\t\tIntVar[][] var = new IntVar[n][n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tvar[i][j] = m.intVar(\"var_\" + i + \"_\" + j, 1, n * n);\n\t\t\t}\n\t\t}\n\t\t// differrent all ////////////////\n\t\t/*for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\n\t\t\t\tm.arithm(var[i / n][i % n], \"-\", var[j / n][j % n], \"!=\", 0)\n\t\t\t\t\t\t.post();\n\t\t\t}\n\t\t}*/\n\t\tIntVar[] var_one_line = new IntVar[n * n];\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tvar_one_line[temp] = var[i][j];\n\t\t\t\ttemp++;\n\t\t\t}\n\t\t}\n\t\tm.allDifferent(var_one_line).post();;\n\n\t\t// //////tong cac hang///////\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tm.sum(var[i], \"=\", magicSum).post();;\n\t\t}\n\t\t// ///tong cac cot///////////\n\t\tIntVar[][] varCol = new IntVar[n][n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t// Copy of var in the column order\n\t\t\t\tvarCol[i][j] = var[j][i];\n\t\t\t}\n\t\t\tm.sum(varCol[i], \"=\", magicSum).post();;\n\t\t}\n\t\t/////tong 2 duong cheo chinh////////\n\t\tIntVar[] varDiag1=new IntVar[n];\n\t\tIntVar[] varDiag2=new IntVar[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tvarDiag1[i]=var[i][i];\n\t\t\tvarDiag2[i]=var[i][n-1-i];\n\t\t}\n\t\tm.sum(varDiag1,\"=\", magicSum).post();;\n\t\tm.sum(varDiag2,\"=\", magicSum).post();;\n\t\t///////////solver//////\n\t\tSolver solver=m.getSolver();\n\t\tsolver.solve();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tSystem.out.println(var[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tlong b=System.currentTimeMillis();\n\t\tSystem.out.println(\"time run: \"+ (b-a)/100+ \" x100ms\");\n\t}", "title": "" }, { "docid": "f8ae3c34656001619a74ae1791ea6f8e", "score": "0.53990495", "text": "public void cluserizaTradicional_NaoAcessaBIeSI2(BlockIndex bi2) throws IOException {\r\n Precisao precisao = new Precisao();\r\n precisao.InicializaGoldStandardCD();\r\n //System.out.println(\" Tamanho \" + bi2.getNumeroElementos());\r\n for (Map.Entry<String, ArrayList<Vertice>> entrySet : bi2.getMapaNomes().entrySet()) { //pra cada bloco\r\n String key = entrySet.getKey();\r\n ArrayList<Vertice> value = entrySet.getValue();\r\n for (int i = 0; i < value.size(); i++) {//pra o array de cada bloco da entrada\r\n Vertice get1 = value.get(i);\r\n double limiar = 0.9; //limiar\r\n Vertice verticeMax = null;\r\n\r\n for (int j = i+1; j < value.size(); j++) {//descobrir por instancia sem bloco a instancia de maior similaridade\r\n if (i != j) {\r\n Vertice get2 = value.get(j);\r\n AbstractStringMetric metric = new Levenshtein();\r\n float result = metric.getSimilarity(get1.getConteudoComparacao(), get2.getConteudoComparacao());\r\n if (result > limiar) {\r\n verticeMax = get2;\r\n if (verticeMax.getClusterId() == -1) {\r\n verticeMax.setClusterId(controleClusterId);\r\n get1.setClusterId(controleClusterId);\r\n controleClusterId++;\r\n //Calcular precisao\r\n precisao.inserePairDuplicado(\"cddb\", get1.getId(), \"cddb\", verticeMax.getId());\r\n\r\n } else {\r\n get1.setClusterId(verticeMax.getClusterId());\r\n precisao.inserePairDuplicado(\"cddb\", get1.getId(), \"cddb\", verticeMax.getId());\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n if (verticeMax == null) {\r\n \r\n get1.setClusterId(controleClusterId);\r\n controleClusterId++;\r\n }\r\n }\r\n }//pra cada bloco\r\n System.out.println(\" Precisao Clusters \" + precisao.getPrecisao());\r\n System.out.println(\" Cobertura Clusters \" + precisao.getCobertura());\r\n }", "title": "" }, { "docid": "4182a7646cf26402f6c6cf4bcca2febf", "score": "0.5398537", "text": "public void runBalancedMA(){\n\t\tint iterationcount=data.queryMap.keySet().size();\n\t\titerationcount=1000/iterationcount;\n\t\tdo{\n\t\tfor(int query:data.queryMap.keySet()){\n\t\t\tHashMap<Double,HashSet<Integer>> scores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tHashMap<Double,HashSet<Integer>> exploratoryscores=new HashMap<Double,HashSet<Integer>>(); //for this query and weight, scores hashed to docid set\n\t\t\tArrayList<Double> weight2 = new ArrayList<Double>();\n\t\t\t\n\t\t\t//step 3: sample unit vector uniformly\n\t\t\tunitvector = getUnifRandUnitVector(unitvector);\n\t\t\t\n\t\t\t//step 4: set w'_t = w_t + delta*unitvector\n\t\t\tif(previousWeights.size()==0){\n\t\t\t\tfor(int i=0; i<unitvector.size(); i++){\n\t\t\t\tweight2.add(weight.get(i) + delta*unitvector.get(i));\n\t\t\t\t}\n\t\t\t}else{\n\t\t\tweight2 = movingAverage(weight, unitvector, previousWeights, delta, sigma);\n\t\t\t}\n\t\t\t//step 4.a1: extract scores for weight\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!scores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight)))\n\t\t\t\t\tscores.put(computeDotProduct(data.featureMap.get(qdoc), weight),new HashSet<Integer>());\n\t\t\t\tscores.get(computeDotProduct(data.featureMap.get(qdoc), weight)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t//step 4.a2: generate exploitative sorted list\n\t\t\tArrayList<Integer> sortedList=constructFullSortedList(scores);\n\n\t\t\t\n\t\t\t//step 4.b1: extract scores for weight2\n\t\t\tfor(SimplePair qdoc:data.queryMap.get(query)){\n\t\t\t\tif(!exploratoryscores.containsKey(computeDotProduct(data.featureMap.get(qdoc), weight2)))\n\t\t\t\t\texploratoryscores.put(computeDotProduct(data.featureMap.get(qdoc), weight2),new HashSet<Integer>());\n\t\t\t\texploratoryscores.get(computeDotProduct(data.featureMap.get(qdoc), weight2)).add(qdoc.getItem2());\n\t\t\t}\n\t\t\t//step 4.b2: generate exploratory sorted list based on these scores\n\t\t\tArrayList<Integer> exploratoryList=constructFullSortedList(exploratoryscores);\n\t\t\t\n\t\t\t//step 5: interleave (balanced and probabilistic)\n\t\t\tLinkedHashMap<String, Integer> balancedList = balancedInterleave(sortedList, exploratoryList, kappa);\n\t\t\tList<Integer> balancedListValues = new ArrayList<Integer>(balancedList.values()); \n\t\t\tList<String> balancedListKeys = new ArrayList<String>(balancedList.keySet());\n\t\t\t\n\t\t\t//step 6-8: assuming click model on first 20 entries, get labeled triples\n\t\t\tList<Integer> clicks = getClicks(query, balancedListValues); //interchangeable with probabilisticListValues\n\t\t\tArrayList<Integer> listsClicks = computeListClicks(clicks, balancedListKeys); //interchangeable with probabilisticListKeys\n\t\t\t\n\t\t\tif(listsClicks.get(1) < listsClicks.get(0))\n\t\t\t\tcontinue;\n\t\t\telse if(listsClicks.get(1) > listsClicks.get(0))\n\t\t\t\tupdateWeightVector(query, weight2, weight);\n\t\t\t\n\t\t\tupdatePreviousWeights(weight2, listsClicks, previousWeights);\n\t\t}\n\t\titerationcount--;\n\t\t}while(iterationcount>0);\n\t\t\n\t}", "title": "" }, { "docid": "fd947cff563d65613241f29e4665a19f", "score": "0.5391637", "text": "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString strLimit = scanner.nextLine();\n\t\tscanner.close();\n\t\tSquareDigitChains squareDigitChains = new SquareDigitChains();\n\t\tsquareDigitChains.init();\n\t\tBigDecimal bigFinalIndex = new BigDecimal(strLimit);\n\t\tBigDecimal bigCurrentIndex = BigDecimal.ONE;\n\t\tBigDecimal totalValues = BigDecimal.ZERO;\n\t\tlong startTime = System.currentTimeMillis();\n\t\twhile (bigCurrentIndex.compareTo(bigFinalIndex) == -1) {\n\t\t\tbigCurrentIndex = bigCurrentIndex.add(bigOne);\n\t\t\tif (squareDigitChains.isSquareDigitChainOf89(bigCurrentIndex)) {\n\t\t\t\ttotalValues = totalValues.add(bigOne);\n\t\t\t}\n\t\t}\n\t\tlong dr = (long)Math.pow(10.0, 9.0);\n\t\t\n\t\tlong iLongTotal = (totalValues.longValue()/dr) + 7;\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(totalValues.longValue());\n\t\tSystem.out.println(iLongTotal);\n\t\tSystem.out.println(\"***time:\" + ((endTime - startTime) / 1000));\n\t}", "title": "" }, { "docid": "657ac7ae3aea60991ca42a3f233fe2b0", "score": "0.5389767", "text": "public static int solution(int n) {\n\t\tint x;\n\t\t//int n;\n\t\tint g=0;\n\t\tint count=0;\n\t\tif(n==1){\n\t\t return 0;\n\t\t}\n// \t\tint c=0;\n// \t\tString y=\" \";\n// \t\tint a;\n// \t\tint max=0;\n// \t\tboolean flag=false;\n// \t\tScanner sc=new Scanner(System.in);\n// \t\tn=sc.nextInt();\n\t\tchar bin[]=Integer.toBinaryString(n).toCharArray();\n\t\tString p=Integer.toBinaryString(n);\n\t\tArrayList<Integer>fg=new ArrayList<Integer>();\n\t\tArrayList<Integer>ar=new ArrayList<Integer>();\n// \t\twhile(n>0) {\n// \t\t\ta=n%2;\n for(int i=0;i<bin.length;i++){\n\t\t\tif(bin[i]=='0') {\n\t\t\t\tcount++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//count++;\n\t\t\t\t//ar.add(count);\n\t\t\t\tif(count>g) {\n\t\t\t\t\tg=count;\n\t\t\t\t}\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t\t\n// \t\t\ty=a+\" \"+y;\n// \t\t\tn/=2;\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"Binary number :\"+y);\n// \t\tx=Collections.max(ar);\n// \t\treturn x;\n return g;\n \n\t\t//System.out.println(\"Count of 0:\"+count);\n\t\t\n}", "title": "" }, { "docid": "2fc396b45a715b50f1f1000f50f49305", "score": "0.53888047", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw= new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tN = Integer.parseInt(st.nextToken());\n\t\tfor(int i=1; i<= N; i++)\n\t\t{\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tfor(int j=1; j<= N; j++)\n\t\t\t{\n\t\t\t\tmap[i][j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=1; i<= N; i++)\n\t\t{\n\t\t\tfor(int j=1; j<= N; j++)\n\t\t\t{\n\t\t\t\tif(!isRange(i,j)) continue;\n\t\t\t\t\n\t\t\t\tint sum = map[i-1][j] + map[i][j-1] + map[i+1][j] +map[i][j+1] + map[i][j]; // 5 평 확인 \n\t\t\t\tvisited[i][j] = 1;\n\t\t\t\tvisited[i-1][j] = 1;\n\t\t\t\tvisited[i][j-1] = 1;\n\t\t\t\tvisited[i+1][j] = 1;\n\t\t\t\tvisited[i][j+1] = 1;\n\t\t\t\tsolve(1, sum, i, j );\n\t\t\t\tvisited[i][j] = 0;\n\t\t\t\tvisited[i-1][j] = 0;\n\t\t\t\tvisited[i][j-1] = 0;\n\t\t\t\tvisited[i+1][j] = 0;\n\t\t\t\tvisited[i][j+1] = 0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "d8ef5480a33afadeb1e714d2411a34ea", "score": "0.53886944", "text": "static long arrayManipulation(int n, int[][] queries) {\r\n\r\n\t\tint max=0;\r\n\t\t\r\n\t\tint[] array=new int[n+1];\r\n\t\t\r\n\t\tlong startTime=System.currentTimeMillis();\r\n\t\tArrays.fill(array, 0);\r\n\t\tlong endTime=System.currentTimeMillis();\r\n\t\t\r\n\t\tSystem.out.println(\"Copying zero took ms \"+(endTime-startTime));\r\n\t\t\r\n\t\t//System.out.println(Arrays.toString(array));\r\n\t\tfor(int[] ia: queries){\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint i=ia[0];\r\n\t\t\tint j=ia[1];\r\n\t\t\tint k=ia[2];\r\n\t\t\t\r\n\t\t\t//System.out.println(\"i j k \"+i+\"-\"+j+\"-\"+k);\r\n\t\t\tfor(int index=i;index<=j;index++){\r\n\t\t\t\tarray[index]=(array[index])+k;\r\n\t\t\t\tif(max<array[index]){\r\n\t\t\t\t\tmax=array[index];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//System.out.println(Arrays.toString(array));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn max;\r\n\r\n\t}", "title": "" }, { "docid": "7b604b3e7b1563fa99e72446047c29a7", "score": "0.5384426", "text": "public void equilibriate(){\n orderedState();\n for (int i = 0; i < 1000; i++) {\n silentStep();\n }\n }", "title": "" }, { "docid": "cc437375b069571db7ba32a2d3cf64e2", "score": "0.53810054", "text": "private void m3652j() {\n int i = this.f2684l * 2;\n boolean z = false;\n C0677h hVar = this.f2673a;\n C0677h hVar2 = hVar;\n boolean z2 = false;\n while (!z2) {\n this.f2681i++;\n C0677h[] hVarArr = hVar.f2834z0;\n int i2 = this.f2684l;\n C0677h hVar3 = null;\n hVarArr[i2] = null;\n hVar.f2832y0[i2] = null;\n if (hVar.mo3592T() != 8) {\n if (this.f2674b == null) {\n this.f2674b = hVar;\n }\n this.f2676d = hVar;\n C0680c[] cVarArr = hVar.f2761E;\n int i3 = this.f2684l;\n if (cVarArr[i3] == C0680c.MATCH_CONSTRAINT) {\n int[] iArr = hVar.f2795g;\n if (iArr[i3] == 0 || iArr[i3] == 3 || iArr[i3] == 2) {\n this.f2682j++;\n float[] fArr = hVar.f2830x0;\n int i4 = this.f2684l;\n float f = fArr[i4];\n if (f > 0.0f) {\n this.f2683k += fArr[i4];\n }\n if (m3651a(hVar, this.f2684l)) {\n if (f < 0.0f) {\n this.f2686n = true;\n } else {\n this.f2687o = true;\n }\n if (this.f2680h == null) {\n this.f2680h = new ArrayList<>();\n }\n this.f2680h.add(hVar);\n }\n if (this.f2678f == null) {\n this.f2678f = hVar;\n }\n C0677h hVar4 = this.f2679g;\n if (hVar4 != null) {\n hVar4.f2832y0[this.f2684l] = hVar;\n }\n this.f2679g = hVar;\n }\n }\n }\n if (hVar2 != hVar) {\n hVar2.f2834z0[this.f2684l] = hVar;\n }\n C0667e eVar = hVar.f2759C[i + 1].f2698d;\n if (eVar != null) {\n C0677h hVar5 = eVar.f2696b;\n C0667e[] eVarArr = hVar5.f2759C;\n if (eVarArr[i].f2698d != null && eVarArr[i].f2698d.f2696b == hVar) {\n hVar3 = hVar5;\n }\n }\n if (hVar3 == null) {\n hVar3 = hVar;\n z2 = true;\n }\n hVar2 = hVar;\n hVar = hVar3;\n }\n this.f2675c = hVar;\n if (this.f2684l != 0 || !this.f2685m) {\n this.f2677e = this.f2673a;\n } else {\n this.f2677e = this.f2675c;\n }\n if (this.f2687o && this.f2686n) {\n z = true;\n }\n this.f2688p = z;\n }", "title": "" }, { "docid": "7099c11dd34772b2ee5058ad12de3b44", "score": "0.53804874", "text": "static void solution() {\n\t\tHashSet<Integer> primes = new HashSet<Integer>();\n\t\tprimes.add(2);\n\t\tHashSet<Integer> composites = new HashSet<Integer>();\n\t\tfor (int i = 3; i <= 10000; i += 2) {\n\t\t\tif (Functions.isPrime(i))\n\t\t\t\tprimes.add(i);\n\t\t\telse\n\t\t\t\tcomposites.add(i);\n\t\t}\n\t\tList<Integer> doubleSquares = new ArrayList<Integer>();\n\t\tfor (int i = 1; i <= 70; i++)\n\t\t\tdoubleSquares.add(2 * i * i);\n\t\tHashSet<Integer> Goldbach = new HashSet<Integer>();\n\t\tfor (int p : primes)\n\t\t\tfor (int ds : doubleSquares)\n\t\t\t\tif (!Goldbach.contains(p + ds) && (p + ds) % 2 != 0 && !Functions.isPrime(p + ds))\n\t\t\t\t\tGoldbach.add(p + ds);\n\t\tcomposites.removeAll(Goldbach);\n\t\tSystem.out.println(composites.toArray()[0]);\n\t}", "title": "" }, { "docid": "703f065053a1fb6d16d562c53095b3e5", "score": "0.53792024", "text": "public static long[] unsuccessSearchTST() {\n\t\tlong[] unsuccessSearchTSTTimes = new long[4]; \n\t\tlong startTime, endTime;\n\n\t\tstartTime = System.nanoTime();\n\t\t// First 30 \n\t\tfor (int i = 0; i < 3000000; i++) {\n\t\t\ttst.contains(words[index[i % 300]] + \"1a\"); \n\t\t}\n\t\tendTime = System.nanoTime(); \n\t\tunsuccessSearchTSTTimes[0] = (endTime-startTime); \n\t\t\n\n\t\tstartTime = System.nanoTime(); \n\t\t// Next 40 \n\t\tfor (int i = 0; i < 4000000; i++) {\n\t\t\ttst.contains(words[index[i % 400]] + \"1a\"); \n\t\t}\n\t\tendTime = System.nanoTime(); \n\t\tunsuccessSearchTSTTimes[1] = (endTime-startTime); \n\t\t\n \n\t\tstartTime = System.nanoTime(); \n\t\t// Next 50 \n\t\tfor (int i = 0; i < 5000000; i++) {\n\t\t\ttst.contains(words[index[i % 500]] + \"1a\"); \n\t\t}\n\t\tendTime = System.nanoTime(); \n\t\tunsuccessSearchTSTTimes[2] = (endTime-startTime); \n\t\t\n\n\t\t// Next 60 \n\t\tstartTime = System.nanoTime(); \n\t\tfor (int i = 0; i < 6000000; i++) {\n\t\t\ttst.contains(words[index[i % 600]] + \"1a\"); \n\t\t}\n\t\tendTime = System.nanoTime(); \n\t\tunsuccessSearchTSTTimes[3] = (endTime-startTime); \n\t\t\n\t\t\n\t\treturn unsuccessSearchTSTTimes; \n\t}", "title": "" }, { "docid": "deee66016f85092260bd4c9450425226", "score": "0.5366509", "text": "private static int[] naiveTry(int[] images){\r\n //if there are nontrivial paths\r\n if(images.length > 2 ){\r\n //creates a local copy of the given images\r\n int[] localImg = new int[finalCount];\r\n System.arraycopy(images, 0, localImg, 0, finalCount);\r\n \r\n //path to be populated and returned\r\n int[] path = new int[finalCount];\r\n //the -1s act to clear the array\r\n for (int i = 0; i < path.length; i++){\r\n path[i] = -1;\r\n }\r\n \r\n //first image added as root to the path\r\n path[0] = localImg[0];\r\n //first image removed from list of available images\r\n localImg[0] = -1;\r\n \r\n //cycles through each position in the path\r\n for(int index = 0; index < finalCount-1; index++){\r\n double D = Double.MAX_VALUE;\r\n //location of winning image ID initialized to the first possible image\r\n int winIndex = firstNonNeg(localImg);\r\n //the actual winning ID\r\n int win = localImg[winIndex];\r\n \r\n //cycles through the available images to find the closest\r\n for(int i = 0; i < localImg.length; i++){\r\n //if there is a valid ID at i\r\n if(localImg[i] != -1){\r\n double d = distance3D(imageList.get(path[index]), imageList.get(localImg[i]));\r\n if(d < D){\r\n win = localImg[i];\r\n winIndex = i;\r\n D = d;\r\n }\r\n }\r\n }\r\n //updates path and image list\r\n path[index+1] = win;\r\n localImg[winIndex] = -1;\r\n }\r\n return path;\r\n }else{\r\n //if there are less than two images to begin with, there's only one path,\r\n //the order that the images were sent in, up to reversal\r\n return images;\r\n }\r\n }", "title": "" } ]
308a09d24a324037687e250fb6148334
This method was generated by MyBatis Generator. This method returns the value of the database column t_pro_dishes.id
[ { "docid": "d063a053672789c7b854df29c7313712", "score": "0.0", "text": "public String getId() {\r\n return id;\r\n }", "title": "" } ]
[ { "docid": "f3977f00d2cbe34ec9be236b478d0ac6", "score": "0.6016395", "text": "public int retrieveDinId(Resource res) {\n\t\treturn retrieveIntProperty (res, prop.getDinDDGId(res.getModel()));\n\t}", "title": "" }, { "docid": "d6d6ad7297a85b361851b9f8abbd2b97", "score": "0.60075384", "text": "public int getProdid () {return this.prodid;}", "title": "" }, { "docid": "1e9acd4ead2f6fe6b2b4a5712d963d88", "score": "0.58902663", "text": "public int get_highest_dishID() {\n // Initialising local variables\n int ID = 0;\n \n // Connect to database\n try {\n Connection connection = connect_database();\n Statement statement = connection.createStatement();\n ResultSet result;\n \n // Get highest ID\n result = statement.executeQuery(\"SELECT gericht_id FROM gerichte WHERE gericht_id=(SELECT max(gericht_id) FROM gerichte);\");\n \n while(result.next()){\n ID = result.getInt(\"gericht_id\");\n }\n \n connection.close();\n return ID;\n } catch (Exception e) {\n System.out.println(e);\n return 1;\n }\n }", "title": "" }, { "docid": "92c848ead673a3368560198ccc420f3d", "score": "0.58660716", "text": "public int getId() {\n return d_id;\n }", "title": "" }, { "docid": "8ad54f033611f6e77682324ea76cbef9", "score": "0.57811505", "text": "public int getId()\r\n/* 230: */ {\r\n/* 231:307 */ return this.idPedidoProveedor;\r\n/* 232: */ }", "title": "" }, { "docid": "09d5fd5c4e1fc167505917ce47697f33", "score": "0.5751542", "text": "public String getpromoProdId() {\n return (String)getNamedWhereClauseParam(\"promoProdId\");\n }", "title": "" }, { "docid": "f7501e2c3ed1f847518f563e2e39494f", "score": "0.5705748", "text": "@Override\n\tpublic int getId() {\n\t\treturn getProductId();\n\t}", "title": "" }, { "docid": "401ea57c3796a0c66b61512c0025ca18", "score": "0.56822", "text": "public int getId(){\n\t\treturn identifiant;\n\t}", "title": "" }, { "docid": "3a4d06ba8347a165bdcbb34f4343ed04", "score": "0.56708854", "text": "public int getId()\r\n/* 111: */ {\r\n/* 112:151 */ return this.idProveedor;\r\n/* 113: */ }", "title": "" }, { "docid": "638d788a331c4236262d99260fc8ef5b", "score": "0.5654099", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn this.purchaseid;\r\n\t}", "title": "" }, { "docid": "417e65ee1e5d2b439345b056ee38a260", "score": "0.56473505", "text": "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "title": "" }, { "docid": "431b0cf301bbf984f2ac77bcf1650d0a", "score": "0.56309736", "text": "@Override\n public Integer idCongif() {\n Integer id = 0;\n String sql =\"SELECT MAX(ID_GYM) + 1 AS CODIGO FROM CONFIGURATION_GYM\";\n try{\n Connection cn = db.getConnection();\n PreparedStatement ps =cn.prepareStatement(sql);\n ResultSet rs= ps.executeQuery();\n \n if(rs.next()){\n id=rs.getInt(1);\n }\n \n ps.close();;\n cn.close();\n \n }catch(SQLException e){\n System.out.println(\"Error:\" + e.getMessage());\n }\n \n return id;\n }", "title": "" }, { "docid": "21b4b9e4685b2a2b4f4725961aa5c629", "score": "0.56028354", "text": "@Override\n public int getId() {\n return this.saleId;\n }", "title": "" }, { "docid": "2dc6157c25fcc81964439d73e63b5157", "score": "0.55856645", "text": "public String getIdNo() {\r\n\t\treturn idNo;\r\n\t}", "title": "" }, { "docid": "56bfe2223c86c35bc56f9e601e889243", "score": "0.55805594", "text": "public Integer getIdProducto() {\n\t\treturn idProducto;\n\t}", "title": "" }, { "docid": "ffe67fe4f7815a0136910749e63bfdbf", "score": "0.55785465", "text": "public String getIdNo() {\n return idNo;\n }", "title": "" }, { "docid": "e798b061e141ed50c94092a0c5069ce7", "score": "0.5571058", "text": "public long getGiayPhepLienVanId();", "title": "" }, { "docid": "8b07380a0b8f2dab46618a4f328c19b1", "score": "0.5542684", "text": "public int getIdPropiedad() {\n return idPropiedad;\n }", "title": "" }, { "docid": "116d224cc62d27a7ec637a438432f535", "score": "0.5539569", "text": "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dossierTemplate.getPrimaryKey();\n\t}", "title": "" }, { "docid": "5d6afe531c254674a49f584a7a5cc33f", "score": "0.55335116", "text": "public String getDataProductID() {\n \treturn gdp.getDataProductID();\n }", "title": "" }, { "docid": "16b287bf5adf0c0cbc650a315fcf2ce9", "score": "0.55056036", "text": "public int getIdProceso();", "title": "" }, { "docid": "dfce1db092410023d80b3e6f08656e07", "score": "0.5502178", "text": "public Integer getIdProducto() {\n return idProducto;\n }", "title": "" }, { "docid": "8a80d7f9910fa45163e839cba87858d0", "score": "0.5484146", "text": "public java.lang.Integer getId();", "title": "" }, { "docid": "cd596bf28f1e23bea7c816c79e56d415", "score": "0.54824835", "text": "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _consulta.getPrimaryKey();\n\t}", "title": "" }, { "docid": "2d13d45974fd73745fd1b76a781576e0", "score": "0.5473763", "text": "@Override\n\t@Transactional\n\tpublic List<Promotion> getPromotionId() {\n\t\tList<Promotion> promotion_li = promotiondao.selectAll();\n\t\tArrayList<Integer> id_li=new ArrayList<Integer>();\n\t\t\n\t\treturn promotion_li;\n\t}", "title": "" }, { "docid": "5fc353ed4c065cea4b504519d2cbb14a", "score": "0.5468074", "text": "public Long getDisputeEventID()\n/* */ {\n/* 45 */ return this.disputeEventID;\n/* */ }", "title": "" }, { "docid": "5efc1c3aa6c9dfc7d497039f7e1c53d0", "score": "0.5463219", "text": "public String getIdColumn() {\n return idColumn;\n }", "title": "" }, { "docid": "2b5b640be793eca1341d43045ce55b1e", "score": "0.5462258", "text": "public Long getDishTypeId() {\n\t\treturn dishTypeId;\n\t}", "title": "" }, { "docid": "8771acbff65e6d7a9cc44f954a291034", "score": "0.5459064", "text": "public String getIdno() {\n return idno;\n }", "title": "" }, { "docid": "00f10a24011a91d460f0f3d71a77164d", "score": "0.54495966", "text": "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _drug.getPrimaryKey();\n\t}", "title": "" }, { "docid": "8fb916b9bbfa076c00a5ae709183e476", "score": "0.5435855", "text": "public int getId() {\r\n return getAsNumber(\"id\", false).intValue();\r\n }", "title": "" }, { "docid": "1e6be57723ce8d77cde87c0ae3bef5d8", "score": "0.54314643", "text": "public int getRelatedProduct_ID() {\n\t\tInteger ii = (Integer) get_Value(\"RelatedProduct_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "f10919732f04e3838b1df91592731b1b", "score": "0.5429827", "text": "public Identification getID() {\n\t\treturn this.concertNumber;\n\t}", "title": "" }, { "docid": "5056b4ce36c5d67b33fd8b5139b320bf", "score": "0.5425983", "text": "@Id\n\t@GeneratedValue( strategy = GenerationType.AUTO )\n\t@Column(name=\"DN_ID\" , nullable = false )\n\tpublic int getId() {\n\t\treturn id;\n\t}", "title": "" }, { "docid": "4cde2600fe68226aff9d39db9cc83c27", "score": "0.54039943", "text": "public Integer getId(){\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "eac839d56ef74d40d5d6104a7a26549a", "score": "0.538457", "text": "public Long getId(){\n\t return this.id;\n\t}", "title": "" }, { "docid": "ca2b0d95316da24f8c9bd7e01f5d39e1", "score": "0.53759897", "text": "public int prodId(Product prod)\n {\n int prodId = -1;\n try\n {\n\n Class.forName(driver);\n Connection conn = DriverManager.getConnection(url);\n Statement st = conn.createStatement();\n ResultSet rec = st.executeQuery(\"SELECT ID FROM products WHERE productName = '\" + prod.getProductName() + \"'\");\n while (rec.next())\n {\n prodId = rec.getInt(\"ID\");\n return prodId;\n\n }\n System.out.println(\"Product ID found.\");\n\n }\n\n catch (Exception ex)\n {\n System.out.println(ex);\n System.out.println(\"Product ID could not be found\");\n return -1;\n }\n\n return prodId;\n\n }", "title": "" }, { "docid": "c9bfbd810736f6f9728b8784bc4d1c0d", "score": "0.5371367", "text": "public int getId(){\r\n\t\treturn this.id;\r\n\t}", "title": "" }, { "docid": "ffd631c63a5cb1374a082ce917fa3d74", "score": "0.5369736", "text": "public Integer getId() {\n return (Integer) get(\"id\");\n }", "title": "" }, { "docid": "3063e625bbab274731dabde55a4d9722", "score": "0.536594", "text": "public Integer getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "3063e625bbab274731dabde55a4d9722", "score": "0.536594", "text": "public Integer getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "3063e625bbab274731dabde55a4d9722", "score": "0.536594", "text": "public Integer getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "fc462672e15a222eb3f46918cee058b9", "score": "0.5364828", "text": "public final int getId(){\n\t\treturn identificatore;\n\t}", "title": "" }, { "docid": "cd1c450229955a6cc379c3e81410f758", "score": "0.53611916", "text": "public int getId()\n\t{\n\t\treturn (id);\n\t}", "title": "" }, { "docid": "fc6eee798ef848adf07e62ba0936cd48", "score": "0.5352949", "text": "public int getLBR_DI_AdditionProd_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LBR_DI_AdditionProd_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "fcbfa527253908c6aaf0e0f582ac4e1b", "score": "0.5352671", "text": "public int getId(){\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "12e453ac2ce8b98415a470bec09de5f2", "score": "0.53475565", "text": "public Integer getId();", "title": "" }, { "docid": "b351be8b54b8513f899246eb0d70cf84", "score": "0.5345387", "text": "public Long getId(){\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "439ad97b62e14095ca81aae916136a4b", "score": "0.5332428", "text": "public Integer getId() {\r\n\t return id;\r\n\t }", "title": "" }, { "docid": "a7ac6b033726893f58587155b911a400", "score": "0.53201175", "text": "public int getId() \n\t{\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "77f4940bc6da51cbb2569f48e0e8a901", "score": "0.53185594", "text": "public Long getId()\n\t{\n\t\treturn this.id;\n\n\t}", "title": "" }, { "docid": "77f4940bc6da51cbb2569f48e0e8a901", "score": "0.53185594", "text": "public Long getId()\n\t{\n\t\treturn this.id;\n\n\t}", "title": "" }, { "docid": "340dd370877421af29f52c8263775e73", "score": "0.53155184", "text": "@Override\n\tpublic Long getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "6877e74c17f5bb432e219545b5cc9f79", "score": "0.5312996", "text": "public int getID() {\r\n return this.iD;\r\n }", "title": "" }, { "docid": "df4fefe101933e2b0ec6b5eb279739db", "score": "0.5312039", "text": "public int getId() {\n return (this.id);\n }", "title": "" }, { "docid": "0e173d2edd42b74e1cb4e92e5132055f", "score": "0.530704", "text": "@Override\n\tpublic int getId() {\n\t\treturn this.idPedido;\n\t}", "title": "" }, { "docid": "6ad60ea2a93ea31145cc3c4f1dc1be2f", "score": "0.53069896", "text": "io.dstore.values.IntegerValue getProcedureId();", "title": "" }, { "docid": "262eedde4b03a2a35a83882421638360", "score": "0.5302305", "text": "public int getId() {\n \t\treturn id;\n \t}", "title": "" }, { "docid": "bc08cd254784ffec8c5a245f5b7fc2ad", "score": "0.53019476", "text": "public Long getId(){\n\t\treturn id;\n\t}", "title": "" }, { "docid": "a2fba545c54af4bd88b34a171df7b745", "score": "0.52892977", "text": "public int getId() {\n\t\treturn(id);\n\t}", "title": "" }, { "docid": "c55258a6c9d4e591169d77a36cd3c72e", "score": "0.52885467", "text": "public int getID()\n {\n // Method ini akan mengembalikan nilai variabel class id\n return id;\n }", "title": "" }, { "docid": "e470e21956ed693bc01a6ff56c838037", "score": "0.52853686", "text": "public Integer getId() {\n return this.id;\n }", "title": "" }, { "docid": "e470e21956ed693bc01a6ff56c838037", "score": "0.52853686", "text": "public Integer getId() {\n return this.id;\n }", "title": "" }, { "docid": "e470e21956ed693bc01a6ff56c838037", "score": "0.52853686", "text": "public Integer getId() {\n return this.id;\n }", "title": "" }, { "docid": "9cac2ce31e7119be2fb264788523e3fd", "score": "0.5285217", "text": "public final int getId()\r\n\t{\r\n\t\treturn data.getId();\r\n\t}", "title": "" }, { "docid": "d48facdcd3856c07db0ae44b53c0c11e", "score": "0.5277637", "text": "public int getID(){\n return Integer.parseInt((String)jTable3.getValueAt(0, 0));\n }", "title": "" }, { "docid": "0ceab52478a5f3c8df20265a69d65492", "score": "0.5274845", "text": "public Integer getId() {\n return this.id;\n }", "title": "" }, { "docid": "0ceab52478a5f3c8df20265a69d65492", "score": "0.5274845", "text": "public Integer getId() {\n return this.id;\n }", "title": "" }, { "docid": "5c61e886de833d14b800a4b646006846", "score": "0.5274825", "text": "public Long getProjekcijaId()\n {\n return projekcijaId;\n }", "title": "" }, { "docid": "f8b2ee0cddd5e3186afda28c3477bf96", "score": "0.5273467", "text": "public int getId() {\n return pkcpte;\n }", "title": "" }, { "docid": "528f6a57abe6a60047ffe6c87155077b", "score": "0.526826", "text": "public String obtId()\r\n\t{\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "c86009deebada9ed329746febec43015", "score": "0.5268196", "text": "@Override\r\n\t//return the id\r\n\tpublic int getId() {\n\t\treturn this.id;\r\n\t}", "title": "" }, { "docid": "76c760a10c082fd47e8117bb167fd4ac", "score": "0.5267169", "text": "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "76c760a10c082fd47e8117bb167fd4ac", "score": "0.5267169", "text": "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "9defda8221fffd69ec3909d8748dfb9f", "score": "0.526328", "text": "NominatedIndividualPK getId();", "title": "" }, { "docid": "507ed5c7028d45d53947b97e27b488ae", "score": "0.5262896", "text": "public String getIDProducto() {\n\t\treturn this.IDProd;\n\t}", "title": "" }, { "docid": "04fa29de93989e7592398ecdb623ef91", "score": "0.5262723", "text": "public int getId() {\r\n\t\treturn this.id;\r\n\t}", "title": "" }, { "docid": "04fa29de93989e7592398ecdb623ef91", "score": "0.5262723", "text": "public int getId() {\r\n\t\treturn this.id;\r\n\t}", "title": "" }, { "docid": "04fa29de93989e7592398ecdb623ef91", "score": "0.5262723", "text": "public int getId() {\r\n\t\treturn this.id;\r\n\t}", "title": "" }, { "docid": "3ea8d257a7023bafbc14048fc2b02bd7", "score": "0.52591425", "text": "public String getID() {\r\n return this.identification;\r\n }", "title": "" }, { "docid": "b3d5a9827b98008cef407d16af3deb29", "score": "0.52565604", "text": "public int getId() \n\t{\n\t\treturn ID;\n\t}", "title": "" }, { "docid": "ab19193e3970a9a895cf396fd603041f", "score": "0.5253126", "text": "public Integer getId() {\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "428bd24b9c719e6d1d8266b82a6cb595", "score": "0.52525234", "text": "public Long getId() {\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "ae5af7f9ab9ee1e5e0f874ff36a5c263", "score": "0.52489454", "text": "@Override\r\n\tpublic Long getId() {\n\t\treturn asseroomid;\r\n\t}", "title": "" }, { "docid": "df2b36e5cbf309b6fec38ba252f57def", "score": "0.52473533", "text": "public Integer getId(){\n return id;\n }", "title": "" }, { "docid": "fc0aa618bd5ecdb2d42404c5e2067266", "score": "0.52430886", "text": "public long getId(){\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "fc0aa618bd5ecdb2d42404c5e2067266", "score": "0.52430886", "text": "public long getId(){\n\t\treturn this.id;\n\t}", "title": "" }, { "docid": "e67040719736ba0334cb75a34505fd4c", "score": "0.5240215", "text": "public Integer getId(final SessionContext ctx)\n\t{\n\t\treturn (Integer)getProperty( ctx, ID);\n\t}", "title": "" }, { "docid": "48739bc81dea771bc831ee94a3b95dc5", "score": "0.52385366", "text": "public int getId()\r\n {\r\n return this._id;\r\n }", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "36921e5f7be76a24b8e04012cddbf608", "score": "0.5238026", "text": "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "title": "" } ]
8a9919ed919f8fc996564320c5d96c0c
Getter for the field cardWidth.
[ { "docid": "cc0b23c63740893a1b4f43dd95fb48a3", "score": "0.8478635", "text": "public final int getCardWidth() {\r\n return this.cardWidth;\r\n }", "title": "" } ]
[ { "docid": "9f55d41a2408a120bb3d0e043271816a", "score": "0.7199135", "text": "public String getWidth() {\n\t\treturn (String) getStateHelper().eval(PropertyKeys.width);\n\t}", "title": "" }, { "docid": "9534881c56b1b803658e1b09f3a1bb4a", "score": "0.71974784", "text": "public double getWidth() {\n return getDoubleProperty(\"width\");\n }", "title": "" }, { "docid": "6e243e0fd751bfa4059ea78192e29bbd", "score": "0.71516544", "text": "public int getWidth() {\r\n return width_;\r\n }", "title": "" }, { "docid": "cee5b2a69033ab4d18b35d5b38c45ae6", "score": "0.7110243", "text": "public int getWidth()\r\n {\r\n return getIntAttributeValue(\"width\");\r\n }", "title": "" }, { "docid": "4a9672ad833b584cad63891dd8ed318f", "score": "0.71093726", "text": "public Integer getCardLen() {\n return cardLen;\n }", "title": "" }, { "docid": "7a5d87da2462058b444a5ed98dccac13", "score": "0.71087444", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "8498c162fa21261244254ea4dec29499", "score": "0.7105188", "text": "public int getWidth() {\n return mWidth;\n }", "title": "" }, { "docid": "8498c162fa21261244254ea4dec29499", "score": "0.7105188", "text": "public int getWidth() {\n return mWidth;\n }", "title": "" }, { "docid": "d9c33087b528947658d7a3c41accd96b", "score": "0.71042883", "text": "public int getWidth() {\r\n return width_;\r\n }", "title": "" }, { "docid": "5b0943157b4e3d91256cf7b705948ecb", "score": "0.7091976", "text": "@Nullable\n public String getWidth() {\n return getElement().getWidth();\n }", "title": "" }, { "docid": "cbcf622678169dbd671f224c0a0bfa3e", "score": "0.7081157", "text": "public int getWidth() {\n return width_;\n }", "title": "" }, { "docid": "2a4588a82fee00556825f2ee28575576", "score": "0.7080835", "text": "public String getWidth() {\n return width.getValue();\n }", "title": "" }, { "docid": "9d878fd8d63238ef5d1c8ec213d3b570", "score": "0.70782197", "text": "public BigDecimal getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "9d878fd8d63238ef5d1c8ec213d3b570", "score": "0.70782197", "text": "public BigDecimal getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "cf48998233e52827c4c7ed96a5f6effe", "score": "0.707145", "text": "public int getWidth() {\n return mWidth;\n }", "title": "" }, { "docid": "67d1b9fe661c58a247ad3f46fbd9d9d0", "score": "0.7070749", "text": "public Long getWidth() {\n return this.Width;\n }", "title": "" }, { "docid": "f92143f5b45247c4d67d2ce2487ad810", "score": "0.70624214", "text": "protected int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "be9c7d1c4e758f6be7e3181d8d433e5b", "score": "0.7059675", "text": "public int getWidth()\n {\n return this._width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "76c739247e730e7e489b83d6def2795f", "score": "0.7057182", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "3eb59706327c1e210cc67d232c5f0de9", "score": "0.7054242", "text": "public BigDecimal getWidth() {\n return width;\n }", "title": "" }, { "docid": "7acfd075e3618d9cb99f68b18700c440", "score": "0.70500344", "text": "public int getWidth() {\n return width;\r\n }", "title": "" }, { "docid": "ba527dbcaefa1fc8ad796430e77aa08c", "score": "0.7045555", "text": "public int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "ba527dbcaefa1fc8ad796430e77aa08c", "score": "0.7045555", "text": "public int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "ba527dbcaefa1fc8ad796430e77aa08c", "score": "0.7045555", "text": "public int getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "7cb84e4e0028334226f101d12a6fcd0c", "score": "0.70365274", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "26e4ef6249e22d1d382d1e3cad238ebc", "score": "0.7028572", "text": "public int getWidth(){\n\t\treturn _width;\n\t}", "title": "" }, { "docid": "253ef7626b6c6b11a8cb29604f16c5e7", "score": "0.702662", "text": "public int getWidth() {\r\n\t\treturn this.myWidth;\r\n\t}", "title": "" }, { "docid": "89c9efa30ef27ad9a1ab0dea3b473dfb", "score": "0.702655", "text": "public int getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "3ccdce517a0dc056a11441303f3f6da8", "score": "0.7026059", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "3ccdce517a0dc056a11441303f3f6da8", "score": "0.7026059", "text": "public int getWidth() {\n return width;\n }", "title": "" }, { "docid": "c2247873dd4ce3f8b41e8d6800924025", "score": "0.70224893", "text": "public double getWidth() {\n return m_width;\n }", "title": "" }, { "docid": "bda30a07813cdebd4c68b1b9f3c4ea08", "score": "0.7010621", "text": "public int getWidth() {\r\n return this.width;\r\n }", "title": "" }, { "docid": "88bcb59b1c5fca24ce7b0fe9a68d0aab", "score": "0.7001379", "text": "public int getWidth( ) {\r\n return width;\r\n }", "title": "" }, { "docid": "706321bfabfc2585baa7dd6004697e10", "score": "0.6996102", "text": "public Long getWidth() {\n return width;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.69912004", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.69912004", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.69912004", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "95c38ad70f88c34d60c8b4240b603d33", "score": "0.69912004", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "c4949ba0982d6a94aec6fff73e32781c", "score": "0.69772375", "text": "public float getWidth() {\n return mWidth;\n }", "title": "" }, { "docid": "4f050293b771cbd28f779e7ef04b3531", "score": "0.6963108", "text": "public long getWidth() {\n return width_;\n }", "title": "" }, { "docid": "d070e924d9825a0fd2643c5aca85a46b", "score": "0.6950106", "text": "public double getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "d070e924d9825a0fd2643c5aca85a46b", "score": "0.6950106", "text": "public double getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "354df86800e37a069323bd6ef85a9c15", "score": "0.69477296", "text": "public long getWidth() {\n return width_;\n }", "title": "" }, { "docid": "d13bb0775b21a60c91561d16974e5c74", "score": "0.6946123", "text": "protected double getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "be4c53e41de15c46cb17896add3cedaf", "score": "0.6943849", "text": "public static int getWidth() {\n\t\treturn ConfigurationHolder.instance.descriptor.width;\n\t}", "title": "" }, { "docid": "86fc91bc1c4ec805ccd678bf93d5ca6d", "score": "0.6938115", "text": "public int getWidth() {\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "86fc91bc1c4ec805ccd678bf93d5ca6d", "score": "0.6938115", "text": "public int getWidth() {\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "86fc91bc1c4ec805ccd678bf93d5ca6d", "score": "0.6938115", "text": "public int getWidth() {\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "d31e7f001901ab25d2c2e79f996410b2", "score": "0.6936498", "text": "public int getWidth()\n {\n return width;\n }", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.69359887", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.69359887", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.69359887", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.69359887", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "5769b09158257043bb0f81f3a2c2d934", "score": "0.69359887", "text": "public int getWidth() {\n\t\treturn width;\n\t}", "title": "" }, { "docid": "3980b1f7ad9e7afb4b8dbd7b1cd91492", "score": "0.69356436", "text": "public static int getWidth() {return width;}", "title": "" }, { "docid": "98b79017863c96f7fba4e424b2e0a6b8", "score": "0.6931706", "text": "public double getWidth() {\n return this.width;\n }", "title": "" }, { "docid": "3db6d2db637b6a08407589a3a4481b16", "score": "0.6929935", "text": "public Integer getWidth() {\n\t\tif (null != this.width) {\n\t\t\treturn this.width;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"width\");\n\t\tif (_ve != null) {\n\t\t\treturn (Integer) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "a627eac2ad01e94bb6e03c495a9540e5", "score": "0.69292986", "text": "public double getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "a627eac2ad01e94bb6e03c495a9540e5", "score": "0.69292986", "text": "public double getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "a627eac2ad01e94bb6e03c495a9540e5", "score": "0.69292986", "text": "public double getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "a627eac2ad01e94bb6e03c495a9540e5", "score": "0.69292986", "text": "public double getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "a627eac2ad01e94bb6e03c495a9540e5", "score": "0.69292986", "text": "public double getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "6e9d187f6ab11e64c8769d20fe571659", "score": "0.69274247", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "6e9d187f6ab11e64c8769d20fe571659", "score": "0.69274247", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "6e9d187f6ab11e64c8769d20fe571659", "score": "0.69274247", "text": "public double getWidth() {\n return width;\n }", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.6923919", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.6923919", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.6923919", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.6923919", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "e276bfd71963fbdb19ac65a482df72ef", "score": "0.6923919", "text": "public int getWidth() {\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "f4defaf945ec37da49701c2f2dfb2432", "score": "0.69170535", "text": "public int getWidth(){\n\t\treturn width;\n\t}", "title": "" }, { "docid": "038410a93b291754d7bdd9e94ea922e5", "score": "0.691523", "text": "public int getWidth(){\r\n return width;\r\n }", "title": "" }, { "docid": "d8f00e3a1ea8bc1b8fbb171d6ff626bb", "score": "0.69120324", "text": "public float getWidth() {\n return width;\n }", "title": "" }, { "docid": "d8f00e3a1ea8bc1b8fbb171d6ff626bb", "score": "0.69120324", "text": "public float getWidth() {\n return width;\n }", "title": "" }, { "docid": "8c3a33ba067136d72a362b7e1f4d3aed", "score": "0.6907435", "text": "public int getWidth(){\n return this.width;\n }", "title": "" }, { "docid": "f276e041db9334a1d2fc768a3945136c", "score": "0.69047683", "text": "public int getWidth() {\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "f276e041db9334a1d2fc768a3945136c", "score": "0.69047683", "text": "public int getWidth() {\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "f276e041db9334a1d2fc768a3945136c", "score": "0.69047683", "text": "public int getWidth() {\n\t\treturn this.width;\n\t}", "title": "" }, { "docid": "4d243c0ee1f4f367e36676013992db7c", "score": "0.690217", "text": "public int getWidth(){\n return width;\n }", "title": "" }, { "docid": "4d243c0ee1f4f367e36676013992db7c", "score": "0.690217", "text": "public int getWidth(){\n return width;\n }", "title": "" }, { "docid": "db136e7d42919a36d166eb063f400a29", "score": "0.68990266", "text": "public float getWidth() {\r\n return width;\r\n }", "title": "" }, { "docid": "a9a64e74b1d95699d58525785406c469", "score": "0.68753463", "text": "public int getWidth()\r\n\t{\r\n\t\treturn width;\r\n\t}", "title": "" }, { "docid": "47ae71d156552df10227c962fb2dba3e", "score": "0.68748236", "text": "public final int getWidth() {\n \t\treturn width;\n \t}", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.6873726", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.6873726", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "8ae6189c0966299ddd02667066f6e9dc", "score": "0.6873726", "text": "public int width() {\n return width;\n }", "title": "" }, { "docid": "c59dd4f20067001f834cd48f6e1e0c2a", "score": "0.68685454", "text": "public final int getWidth() {\n\t\treturn width;\n\t}", "title": "" } ]
34549d04e573395e6c2c7c4b21c569f2
Creates the default factory implementation.
[ { "docid": "171afb444758014fc02f3646a7966526", "score": "0.0", "text": "public static AdaptationsFactory init() {\n\t\ttry {\n\t\t\tAdaptationsFactory theAdaptationsFactory = (AdaptationsFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://SmartAdapters4ART/smartadapters/core/adaptations\"); \n\t\t\tif (theAdaptationsFactory != null) {\n\t\t\t\treturn theAdaptationsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new AdaptationsFactoryImpl();\n\t}", "title": "" } ]
[ { "docid": "c3722a3a4a91675997ccb6455715afe7", "score": "0.78019977", "text": "Factory factory();", "title": "" }, { "docid": "c3722a3a4a91675997ccb6455715afe7", "score": "0.78019977", "text": "Factory factory();", "title": "" }, { "docid": "f92e7c18d0d8a60a741acc6b42198cbd", "score": "0.74808854", "text": "public GoTFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f9eea076d4610b49561977cfec97a2e9", "score": "0.74644256", "text": "protected ImplementationFactory() {\n }", "title": "" }, { "docid": "820529ed29ddd94a11e45e723e4d237d", "score": "0.74175215", "text": "private FactoryImpl() {\n }", "title": "" }, { "docid": "65608ad00bb71759fb927091d2d5526f", "score": "0.74142945", "text": "public BasicFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "af8cb0f402088fe76724bca7a7a5a4e3", "score": "0.7396663", "text": "public DesignPatternsFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8488cccbc47d3e215e5b79a991d5e9a9", "score": "0.726583", "text": "public DefaultDSLFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "16b2c4c57a963d6b6f8e583762b221a3", "score": "0.72119147", "text": "public SsFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "2b50ff8983ad6b9c10ca3b31ceadba49", "score": "0.72056717", "text": "private Factory(){\n }", "title": "" }, { "docid": "e41f59665cb7f2deae3c600b1d116701", "score": "0.72012675", "text": "T factory();", "title": "" }, { "docid": "1478cc43a4d0d6c03d5145705de421e3", "score": "0.7179606", "text": "public SmadafogFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6255ff50386cf51a4bd927cd387383f3", "score": "0.7158111", "text": "public CommonFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "d5a97e4799ad58917b06f8935747a774", "score": "0.71240133", "text": "public SitacFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "68f2f7b58cf28e9c11444c4064111c30", "score": "0.7095059", "text": "Default createDefault();", "title": "" }, { "docid": "fb767770f8c5f1996c512d385305c9c2", "score": "0.70806825", "text": "public static SandboxFactory factory() {\n return new InstanceBuilder<SandboxFactory>()\n .instantiationType(discover())\n .build();\n }", "title": "" }, { "docid": "ec480ab4e8930a61d5c9fe8a85445980", "score": "0.70730156", "text": "protected TEMP_FACTORY() {}", "title": "" }, { "docid": "59b33788f174875ceeaadc75d8a8e89d", "score": "0.7066142", "text": "public interface Factory<S> {\n S newSystem() throws IOException;\n }", "title": "" }, { "docid": "403cef1dfe2eef78b36e347c2f272e21", "score": "0.7051891", "text": "public static BasicFactoryImpl init() {\r\n\t\ttry {\r\n\t\t\tBasicFactoryImpl theBasicFactory = (BasicFactoryImpl) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(BasicPackageImpl.eNS_URI);\r\n\t\t\tif (theBasicFactory != null) {\r\n\t\t\t\treturn theBasicFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new BasicFactoryImpl();\r\n\t}", "title": "" }, { "docid": "b0663d5e5d83cd8ded531845e791a358", "score": "0.70510787", "text": "static public Factory instance() {\n return new Factory();\n }", "title": "" }, { "docid": "509a2369395839107eda574cb8596e16", "score": "0.7049686", "text": "public CarchaFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "aacfa5c30f61d67bd8ad08241e38ea42", "score": "0.7033838", "text": "public static Factory factory() {\n return ext_sdf::new;\n }", "title": "" }, { "docid": "5b6d71032fd3e7129d1e4deaf1e8e115", "score": "0.703041", "text": "public EsplmFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "61e7fb958a926b9afd4d0adf730d5dcc", "score": "0.7020159", "text": "public ObjectFactory() {}", "title": "" }, { "docid": "8f223dc7b9535485c66652f9a9201999", "score": "0.7020089", "text": "static protected Factory getFactory() {\n return abdera.getFactory();\n }", "title": "" }, { "docid": "d7bafba269d2f9d408f3a2c927dd7008", "score": "0.7009111", "text": "public PersonFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "660227552f234ad2592d0055eba089d3", "score": "0.6970187", "text": "public ConsumerFactory<K, V> buildFactory() {\n return buildFactory(null, null);\n }", "title": "" }, { "docid": "0c535d825bcd111d621d6114cd6bad8c", "score": "0.6954189", "text": "public EcnoFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "6c432dca69fae199606a223324a270fd", "score": "0.69309974", "text": "public static GoTFactory init() {\r\n\t\ttry {\r\n\t\t\tGoTFactory theGoTFactory = (GoTFactory) EPackage.Registry.INSTANCE.getEFactory(GoTPackage.eNS_URI);\r\n\t\t\tif (theGoTFactory != null) {\r\n\t\t\t\treturn theGoTFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new GoTFactoryImpl();\r\n\t}", "title": "" }, { "docid": "9aa02ef6fe1bb913d3d7b26466eafb88", "score": "0.6930303", "text": "public ClassesFactoryImpl() {\n super();\n }", "title": "" }, { "docid": "b4ed762800316d2cf963f549af3427ea", "score": "0.6922677", "text": "private PersonFactory(){}", "title": "" }, { "docid": "eec63f0555a463e6d4ae2dade302b7d0", "score": "0.69213307", "text": "public static LibraryFactory<TypesLibrary> getFactory() {\n return FACTORY;\n }", "title": "" }, { "docid": "88dac035cfa133ad3ace0c545026a140", "score": "0.6905724", "text": "public SAMFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "995fad0b076593e9e98e25a2f3ed10ae", "score": "0.6884085", "text": "public BuildingFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "858f8233e9b50c5dfc30160449513803", "score": "0.68776655", "text": "public ObjectFactory() {\r\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "52c5f0778ba6c0983b4172fa32942611", "score": "0.68717974", "text": "public ObjectFactory() {\n\t}", "title": "" }, { "docid": "9716ee45fea1ce90a2de3a9302597f50", "score": "0.6861228", "text": "GolangFactory getGolangFactory();", "title": "" }, { "docid": "6a3a4c6ae0395c80c928de1418c5bd36", "score": "0.6849041", "text": "private ProxyFactory() {}", "title": "" }, { "docid": "779cf27a47181da7ce12b6cde279619c", "score": "0.6846457", "text": "public ExperimentalFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "bbd404c89a86c87a4817c531624779d0", "score": "0.6844223", "text": "public RppFactoryImpl()\r\n {\r\n super();\r\n }", "title": "" }, { "docid": "c4071ac2d242d6fffcf6b84171da6a02", "score": "0.68418425", "text": "public TypeFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "5d39aba8ec4c8c32d6a962c86c6105f4", "score": "0.682964", "text": "public PersonsFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "6d2bf98773fda9f7c4c7a6de881400b8", "score": "0.68160236", "text": "public TPFactoryImpl() {\n super();\n }", "title": "" }, { "docid": "799c52d99539fbedc2f3f32c20b44aee", "score": "0.68155944", "text": "public static UnisensFactory createFactory(){\r\n\t\tString factoryClass = System.getProperty(\"org.unisens.StandardUnisensFactoryClass\");\r\n\t\tif (factoryClass == null)\r\n\t factoryClass =\"org.unisens.ri.UnisensFactoryImpl\";\r\n\t\ttry{\r\n\t\t \r\n\t\t Class<UnisensFactory> readerClass = (Class<UnisensFactory>)Class.forName(factoryClass);\r\n\t\t\tConstructor<UnisensFactory> readerConstructor = readerClass.getConstructor();\r\n\t\t\treturn (UnisensFactory)readerConstructor.newInstance();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t System.out.println(\"Class (\" + factoryClass + \") could not be found!\");\r\n\t e.printStackTrace();\r\n\t } catch (InstantiationException e) {\r\n\t System.out.println(\"Class (\" + factoryClass + \") could not be instantiated!\");\r\n\t e.printStackTrace();\r\n\t } catch (IllegalAccessException e) {\r\n\t System.out.println(\"Class (\" + factoryClass + \") could not be accessed!\");\r\n\t e.printStackTrace();\r\n\t } catch (ClassCastException ec) {\r\n\t ec.printStackTrace();\r\n\t } catch (SecurityException e) {\r\n\t e.printStackTrace();\r\n\t } catch (NoSuchMethodException e) {\r\n\t e.printStackTrace();\r\n\t } catch (IllegalArgumentException e) {\r\n\t e.printStackTrace();\r\n\t } catch (InvocationTargetException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return null;\r\n\t}", "title": "" }, { "docid": "2e48c5acec524e25467f9d2381d1f465", "score": "0.6813027", "text": "public static Factory factory() {\n return ext_apk::new;\n }", "title": "" }, { "docid": "f7066de932f50642b2545256ef848b94", "score": "0.68077224", "text": "public MprologFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "c5ce7508424629c4421f8983818f2210", "score": "0.6806933", "text": "public SenseFactoryImpl()\r\n {\r\n super();\r\n }", "title": "" }, { "docid": "9bc40a3015e7c29120c4d1e6935a01a5", "score": "0.67973393", "text": "public EasyflowFactoryImpl() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "82b491fb947169bac03fa8d2227a52db", "score": "0.6790903", "text": "private ColonyWasFactory() {\n\t}", "title": "" }, { "docid": "b65df3690fc936b58de7301873a2b8f4", "score": "0.6788311", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "b153a4c9b44e898ef0a1a253d3367f7e", "score": "0.6778648", "text": "private ServiceFactory() {\n }", "title": "" }, { "docid": "bf5d65eb27dea26c721ff8d53c2960dc", "score": "0.67764527", "text": "public static Factory factory() {\n return go_down::new;\n }", "title": "" }, { "docid": "2810cf18d7590918d6b688259e088f47", "score": "0.67534745", "text": "public static Factory factory() {\n return ext_sln::new;\n }", "title": "" }, { "docid": "530093f69cc2300a3cce0b5800ad298b", "score": "0.6744129", "text": "Definiton createDefiniton();", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "61e840cc0b61fd87b8f981fba8520c57", "score": "0.67394793", "text": "public ObjectFactory() {\r\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" }, { "docid": "0cedde3596fd9db2ce10d2421227fe76", "score": "0.6731731", "text": "public ObjectFactory() {\n }", "title": "" } ]
e0a16295c917c1f376361935c13660aa
review intent to redirect on playstore
[ { "docid": "87fcfd480a00b1db3d1ad290fa568ce4", "score": "0.7707328", "text": "public void reviewOnApp() {\n Uri uri = Uri.parse(\"market://details?id=\" + getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n // To count with Play market backstack, After pressing back button,\n // to taken back to our application, we need to add following flags to intent.\n goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |\n Intent.FLAG_ACTIVITY_NEW_DOCUMENT |\n Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://play.google.com/store/apps/details?id=\" + getPackageName())));\n }\n }", "title": "" } ]
[ { "docid": "9f4e64847163533f3003d8663c9452c6", "score": "0.6723133", "text": "private void askFeedback() {\n Uri uri = Uri.parse(\"market://details?id=\" + getApplicationContext().getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |\n Intent.FLAG_ACTIVITY_NEW_DOCUMENT |\n Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://play.google.com/store/apps/details?id=\" + getApplicationContext().getPackageName())));\n }\n }", "title": "" }, { "docid": "4b7c285799f3b39df11733bb55eeb6bf", "score": "0.66682225", "text": "@Override\n public void run() {\n Intent market = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/apps/internaltest/4701468606133452677\"));\n activity.startActivity(market);\n }", "title": "" }, { "docid": "9d10591580b824d91684ce923473efe3", "score": "0.6638447", "text": "public void appLink() {\n try {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.sharpflux.supergodeliveryapp&hl=en\")));\n } catch (android.content.ActivityNotFoundException anfe) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.sharpflux.supergodeliveryapp&hl=en\")));\n }\n }", "title": "" }, { "docid": "9ea2a4ae64f7e69db4ac810dbf8d005d", "score": "0.6525287", "text": "@Override\n \t\tpublic void onClick(View v)\n \t\t{\n \t\t\tfinal String appPackageName =\"com.eastlink.phonelocator\"; // getPackageName() from Context or Activity object\n \t\t\ttry {\n \t\t\t startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=\" + appPackageName)));\n \t\t\t} catch (android.content.ActivityNotFoundException anfe) {\n \t\t\t startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://play.google.com/store/apps/details?id=\" + appPackageName)));\n \t\t\t}\n \t\t\t\n \t\t}", "title": "" }, { "docid": "b201c69417176828f8b7e432a32950f9", "score": "0.6359602", "text": "@Override\n public void onClick(View view) {\n if (isPackageInstalled(packageName)) {\n //launch it\n Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(packageName);\n context.startActivity(launchIntent);\n } else {\n //go to play store\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"market://details?name=\" + packageName));\n context.startActivity(intent);\n }\n }", "title": "" }, { "docid": "94ee3d14f91a33877719083fa58446fb", "score": "0.6295383", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ShoesDescriptionActivity.this,ReviewActivity.class);\n Toast.makeText(ShoesDescriptionActivity.this, \"before going shoesId :\" + Url.shoesId, Toast.LENGTH_SHORT).show();\n Log.d(\"tag\" , \"new value here we have\" + Url.shoesId);\n intent.putExtra(\"shoeId : \", Url.shoesId);\n startActivity(intent);\n finish();\n }", "title": "" }, { "docid": "58362780f1061f125fb619bb3b4bf9d4", "score": "0.62219983", "text": "@Override\n public void writeReviewClick() {\n Intent intent1 = new Intent(OrderDetailsUsersActivity.this, WriteReviewActivity.class);\n intent1.putExtra(\"shopUid\", orderTo);//ekhane jei shop e order korbe sei shop er order id dew ase \"orderTo\"\n startActivity(intent1);\n }", "title": "" }, { "docid": "7ac9ad778da241c0823922f9212dbaac", "score": "0.6203231", "text": "private void launchMarket() {\n Uri uri = Uri.parse(\"market://details?id=\" + getPackageName());\n Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(myAppLinkToMarket);\n } catch (ActivityNotFoundException e) {\n // Toast.makeText(this, getString(R.string.play_store_warning), Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "67908792714a3373a8cfca43f5b8083e", "score": "0.61881757", "text": "public void openMyOtherApp() {\n\t\tUri marketUri = Uri.parse(\"https://play.google.com/store/apps/developer?id=Prince+Jain\");\n\t\tIntent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);\n\t\tstartActivity(marketIntent);\n\t}", "title": "" }, { "docid": "bffc0ba20bfa42d23f92318e20fd738d", "score": "0.6155952", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ShopDetailsActivity.this, ShopReviewsActivity.class);\n intent.putExtra(\"shopUid\", shopUid);\n startActivity(intent);\n }", "title": "" }, { "docid": "c5f6a47bc52bfcae01d48fa99b45be9c", "score": "0.6142516", "text": "public void onSeeReviewsClick(View view) {\n if (!onClickEnabled) { return; }\n onClickEnabled = false;\n Intent intent = new Intent(getApplicationContext(), ReviewListActivity.class);\n intent.putExtra(\"provider\", currentUser);\n startActivity(intent);\n }", "title": "" }, { "docid": "7eca36c0c61530c24b5637fb0a2942ea", "score": "0.613785", "text": "@Override\r\n public void onClick(View view) {\r\n Intent clicktofinsIntent = new Intent(MainActivity.this, WhatWeOfferActivity.class);\r\n startActivity(clicktofinsIntent);\r\n }", "title": "" }, { "docid": "aaecc96d1ffb9bee2e0a14dc85011250", "score": "0.61038274", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tif(v==login)\n\t\t{\n\t\t\tattemptLogin();\n//\t\t\tIntent goToMarket = new Intent(Intent.ACTION_VIEW)\n//\t\t .setData(Uri.parse(\"market://details?id=com.whatsapp\"));\n//\t\tstartActivity(goToMarket);\n\t\t\n//\t\tIntent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.whatsapp\");\n//\t\tstartActivity(launchIntent);\n\t\t}\n\t\telse if(v==skip)\n\t\t{\n\t\t\tIntent intent=new Intent(LoginScreen.this, SkipScreen.class);\n\t\t\tstartActivity(intent);\n\t\t}\n\t}", "title": "" }, { "docid": "4b84e8c919b1e7d1f042fcb01036a387", "score": "0.61028916", "text": "public void writeReview() {\n Intent intent = new Intent(BookPage.this, AddReview.class);\n intent.putExtra(\"book_id\", bookIDFeed);\n intent.putExtra(\"title\", titleFeed);\n startActivity(intent);\n }", "title": "" }, { "docid": "210b56603f874410f5a7f3a616c2304f", "score": "0.6095777", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), VerificationsActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "570a5d7b3873c5252bb2879bd33fa171", "score": "0.6086898", "text": "public static void openPlaystorePage(Context context) throws Exception {\n final String appPackageName = context.getPackageName(); // getPackageName() from Context or Activity object\n\n try {\n context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(context.getString(R.string.playstore_market_intent) + appPackageName)));\n } catch (android.content.ActivityNotFoundException anfe) {\n context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(context.getString(R.string.playstore_url) + appPackageName)));\n }\n }", "title": "" }, { "docid": "402cc5bf1b5cf14968604151ba801eb1", "score": "0.60725343", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t.parse(app.getUrl()));\n\t\t\t startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "9fe8f1171381c371beb84eefc89750e0", "score": "0.6070586", "text": "public void openAppInPlayStore(Context paramContext) {\n\t\tUri marketUri = Uri.parse(\"market://details?id=\" + paramContext.getPackageName());\n\t\tIntent marketIntent = new Intent(Intent.ACTION_VIEW, marketUri);\n\t\tstartActivity(marketIntent);\n\t}", "title": "" }, { "docid": "f8acbf142a331ea6b8b68550c02ebfb6", "score": "0.6070389", "text": "@Override\n public void onClick(View v) {\n Uri developerUrl = Uri.parse(profileUrl);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, developerUrl);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n\n }", "title": "" }, { "docid": "9f925bd466aab0cc8998b0f32e96308d", "score": "0.6035153", "text": "void goToReviews();", "title": "" }, { "docid": "e16ea8199e564a74f553618ef1e0e907", "score": "0.5974643", "text": "@Override\n public void onClick(View v) {\n Intent shareIntent = new PlusShare.Builder(ViewListDetail.this)\n .setType(\"text/plain\")\n .setText(finalViewItem.getStore()+\"\\n\"+finalViewItem.getItem())\n .setContentUrl(Uri.parse(\"https://developers.google.com/+/\"))\n .getIntent();\n\n startActivityForResult(shareIntent, 0);\n }", "title": "" }, { "docid": "785ba51579a67559bdabd12abccb637d", "score": "0.59695566", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(), WebViewActivity.class);\n\t\t\t\tintent.putExtra(\"item_info_type\",\"restrict\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3cab05323bd61442ddbe09c71bc4c2ad", "score": "0.5959938", "text": "@Override\n public void onClick(View view) {\n Intent premiumIntent = new Intent(MainActivity.this, PremiumActivity.class);\n startActivity(premiumIntent);\n }", "title": "" }, { "docid": "3de418de05f24260460c2b93d40a8504", "score": "0.5957569", "text": "@Override\n public void onClick(View v) {\n String url = getString(R.string.link_sound_cloud);\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(url));\n //check if there is available web-browser to implement the intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "eda31bed972e904e4788d3b4c5c54c84", "score": "0.59509224", "text": "@Override\n public void onClick(View view) {\n Intent NowPlayingIntent = new Intent(PaymentActivity.this, NowPlaying.class);\n startActivity(NowPlayingIntent);\n }", "title": "" }, { "docid": "8e861963e9c1ce95a00557a3dc285f27", "score": "0.5931881", "text": "@Override\r\n public void onClick(View view) {\n Intent intent = googleSignInClient.getSignInIntent();\r\n //Start Activity for result\r\n startActivityForResult(intent, 100);\r\n }", "title": "" }, { "docid": "004ab388cafcac7c2921282faf0063be", "score": "0.5920269", "text": "public void onClick(View v) {\n Intent intent = new Intent();\n intent.setClass(activity_introduce_store.this,store2.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "b4094e726c06f19fa1d3a84173eadd65", "score": "0.5914748", "text": "@Override\n public void onClick(View v) {\n\n startActivity(new Intent(\n Intent.ACTION_VIEW,\n Uri.parse(\"vnd.youtube://\"+video.getYoutubeKey())));\n }", "title": "" }, { "docid": "ca3c6452631fcec5923c76f3c1ac289f", "score": "0.5898973", "text": "@Override\n public void onClick(View v) {\n Uri webURL = Uri.parse(url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webURL);\n\n // see if there is a software that can resolve this activity\n if(intent.resolveActivity(getActivity().getPackageManager()) != null){\n Snackbar.make(getView(), \"No app installed\", Snackbar.LENGTH_SHORT).show();\n }else{\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "2db62a16a34e0f447bfe279dc819bf52", "score": "0.58918095", "text": "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n\n }", "title": "" }, { "docid": "d1caf5e22ba2362880da9117d6315225", "score": "0.5876516", "text": "public void launchPaypal(View view) {\n Intent telegramLink = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.paypal.me/moelle89\")); ////Insert your link\n startActivity(telegramLink);\n }", "title": "" }, { "docid": "f08a42fc9a430967c126d013f86dc777", "score": "0.58455706", "text": "public void clickVisit(View v) {\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(getString(R.string.carton_website)));\n startActivity(intent);\n }", "title": "" }, { "docid": "07661f6d6a6e7217f1707688d069013e", "score": "0.58453554", "text": "@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), ResumeGuide.class);\n startActivity(i);\n }", "title": "" }, { "docid": "c38c4de33d8ebc5159a35fa1a91d1f20", "score": "0.58452934", "text": "@Override\n public void onClick(View v) {\n SuperRewards sr = new SuperRewards(getResources(),\n \"com.playerize.awesomeapp\");\n sr.showOffers(getActivity(), appHash, userId);\n }", "title": "" }, { "docid": "52fefb02a824f0e78bface9bc5e21d01", "score": "0.584512", "text": "public void callIntent() {\n Intent listActivityIntent = new Intent(GoogleBooksActivity.this, ListActivity.class);\n listActivityIntent.putExtra(\"fullUrl\", createUrl());\n Log.e(LOG_TAG, \"The url is:\" + createUrl());\n startActivity(listActivityIntent);\n }", "title": "" }, { "docid": "3257da4b12fd5b481c2ee648c9f763e7", "score": "0.5838577", "text": "@Override\n public void onClick(View view) {\n Intent resturantIntent= new Intent(MainActivity.this,ResturantActivity.class);\n startActivity(resturantIntent);\n }", "title": "" }, { "docid": "cc58cab96e2994a61b12a8243242d56d", "score": "0.58348674", "text": "@Override\n public void onClick(View view) {\n\n Intent myIntent = new Intent(context, WebViewActivity.class);\n myIntent.putExtra(\"URL\",dm.getURL());\n myIntent.putExtra(\"PUBLISHER\",dm.getPUBLISHER());\n context.startActivity(myIntent);\n }", "title": "" }, { "docid": "a3cf23b2d3076616670d783dc89656f9", "score": "0.58326393", "text": "public void onClick(View v) {\n Intent i = new Intent(context, CartActivity.class);\n i.putExtra(\"store_id\", storeId);\n //startActivity(i);\n\n //Intent intent = new Intent(getActivity(), register .class);\n startActivityForResult(i, 10001);\n\n\n }", "title": "" }, { "docid": "e0568425f8262183c8b710c0106dafd3", "score": "0.5830461", "text": "@Override\n public void onClick(View v) {\n launchOpenRequestActivity(titleText.getText().toString(), description.getText().toString(),\n data.getText().toString(), category.getText().toString(), image, from);\n }", "title": "" }, { "docid": "573f992a080345275bd8a358ddadb332", "score": "0.5825364", "text": "private void goToReview(ProductReviewComment review) {\n Bundle bundle = new Bundle();\n bundle.putString(ConstantsIntentExtra.REVIEW_TITLE, review.getTitle());\n bundle.putString(ConstantsIntentExtra.REVIEW_NAME, review.getName());\n bundle.putString(ConstantsIntentExtra.REVIEW_COMMENT, review.getComment());\n bundle.putParcelableArrayList(ConstantsIntentExtra.REVIEW_RATING, review.getRatingStars());\n bundle.putString(ConstantsIntentExtra.REVIEW_DATE, review.getDate());\n getBaseActivity().onSwitchFragment(FragmentType.REVIEW, bundle, true);\n }", "title": "" }, { "docid": "fd65315b76123715a7b8c7e58ac3f8f2", "score": "0.58253026", "text": "private void requestReview(CallbackContext callbackContext) {\n ReviewManager manager = ReviewManagerFactory.create(cordova.getActivity());\n Task<ReviewInfo> request = manager.requestReviewFlow();\n request.addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // We can get the ReviewInfo object\n ReviewInfo reviewInfo = task.getResult();\n\n Task<Void> flow = manager.launchReviewFlow(cordova.getActivity(), reviewInfo);\n flow.addOnCompleteListener(t -> {\n // The flow has finished. The API does not indicate whether the user\n // reviewed or not, or even whether the review dialog was shown. Thus, no\n // matter the result, we continue our app flow.\n PluginResult pluginResult = new PluginResult(PluginResult.Status.OK);\n callbackContext.sendPluginResult(pluginResult);\n });\n\n } else {\n // There was some problem, continue regardless of the result.\n callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, \"Could not request In App Review\"));\n }\n });\n }", "title": "" }, { "docid": "d05a8a05644986db539649280a29392b", "score": "0.580994", "text": "public void viewLocker(View view) {\r\n Uri uri = Uri.parse(\"https://mohawk.bookware3000.ca/rent-a-locker\");\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, uri);\r\n startActivity(myIntent);\r\n }", "title": "" }, { "docid": "fff8a5f675e2f9cd642946549f5ea844", "score": "0.5808099", "text": "@Override\n public void onClick(View v) {\n\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_SEND);\n sendIntent.putExtra(Intent.EXTRA_TEXT, \"www.google.com\");\n sendIntent.setType(\"text/plain\");\n sendIntent.setPackage(\"com.facebook.orca\");\n startActivity(sendIntent);\n }", "title": "" }, { "docid": "32f582ffab4064bc9bd6e8de11483259", "score": "0.58046764", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif(!packageisexist(\"online.news\")){\n\t\t\t\t Uri uri = Uri.parse(\"http://www.online.sdu.edu.cn/app/upload/OnlineNews2.1.2.apk\"); \n\t\t\t\t Intent it = new Intent(Intent.ACTION_VIEW, uri); \n\t\t\t\t startActivity(it);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tIntent intent = new Intent();\n\t\t intent.setComponent(new ComponentName(\"online.news\", \"online.news.SplashActivity\"));\n\t\t intent.setAction(Intent.ACTION_VIEW);\n\t\t startActivity(intent);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ba5da1658f5e56c28ce78f4f707b9374", "score": "0.58017987", "text": "@Override\n public void onClick(View view) {\n\n Toast.makeText(getContext().getApplicationContext(), \"recommend hit\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "4bf58e39040a952263aa6fd7c8246351", "score": "0.5800543", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tIntent intent = new Intent(mContext,\n\t\t\t\t\t\t\t\t\t\t\tRecommendInfotActivity.class);\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"requirementUserId\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getUserId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyerUserId\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_id());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"requirement_id\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"name\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getUserName());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"time\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getAddTime());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"head\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getuserAvatar());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"yjh\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getReqDesc());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"ch\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getOccasion());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"pl\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getcategoryName());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"jw\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getPriceMin() + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ requirement.getPriceMax());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_id\", buyer.getId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_name\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_name());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_time\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getaddTimeShow());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_head\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_avatar());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_yjh\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getWords());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_attires\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getbuyerRespAttiresNum());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_comment\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getbuyerRespCommentsNum());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"ids\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getBuyerRespAttiresIds());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"isPraise\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getIsPraise());\n\t\t\t\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "09fbeb125e4cccaff41e2f3f3721d0d6", "score": "0.57953054", "text": "@Override\n \t\tpublic void onClick(View v) {\n \t\t\tIntent shareIntent = new Intent(Intent.ACTION_SEND);\n \t\t\t shareIntent.setType(\"text/plain\");\n \t\t\t shareIntent.putExtra(Intent.EXTRA_TEXT, \"https://play.google.com/store/apps/details?id=com.eastlink.phonelocator\");\n \t\t\t startActivity(Intent.createChooser(shareIntent, \"Share...\"));\n \t\t\t\n \t\t}", "title": "" }, { "docid": "aba6101976cf094a5252b9d0375a16ca", "score": "0.5794525", "text": "public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), OYouMaker.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "afbd98903465b10d9b359b457550756f", "score": "0.57896966", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://www.youtube.com/watch?v=\" + video.key));\n startActivity(intent);\n }", "title": "" }, { "docid": "5ea750b3223e6087d65a0be6e589bc73", "score": "0.5785924", "text": "@Override\n public void onClick(View view) {\n Intent intent = new Intent(BuyActivity.this, LaunchActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "3e81482b832642affb16aad152bf85bd", "score": "0.57818806", "text": "public void onClick(View v) {\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\t\t\t\tUri u = Uri.parse(syoutubeurl2);\n\t\t\t\t\t\t\t\t\ti.setData(u);\n\t\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "bf36eeef829a50a4a93f9b434298ad23", "score": "0.57807803", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(), WebViewActivity.class);\n\t\t\t\tintent.putExtra(\"item_info_type\",\"insurance\");\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "56fd25f8aa8e618bfaebddd17eaca093", "score": "0.5761668", "text": "public void onClick(View v) {\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\t\t\t\tUri u = Uri.parse(syoutubeurl3);\n\t\t\t\t\t\t\t\t\ti.setData(u);\n\t\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "480d1783d80a798644e256c06900a1e3", "score": "0.5758212", "text": "public void ClickMyExperiments(View view){ MainActivity.redirectActivity(this,MyExperimentActivity.class); }", "title": "" }, { "docid": "56e53d2be2ca26432ba9f4937d39d396", "score": "0.57529956", "text": "public void rateApplication() {\n\t\tUri uri = Uri\n\t\t\t\t.parse(\"market://details?id=\" + m_context.getPackageName());\n\t\tIntent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n\t\tm_context.startActivity(goToMarket);\n\t}", "title": "" }, { "docid": "de8c272bdf05e6153fad64abd988a485", "score": "0.5744585", "text": "@Override\n public void onClick(View v) {\n Intent i=new Intent(getApplication(),play.class);\n startActivity(i);\n }", "title": "" }, { "docid": "09e8e0ee47306e83e9a67dd04d10937a", "score": "0.5742542", "text": "@Override\n public void onClick(View v) {\n Intent i = new Intent(InstallActivity.this, PhoneBillActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "9471529e8bbf4853b58036e683ecb9b2", "score": "0.5741819", "text": "public void ClickScanQrCode(View view){ MainActivity.redirectActivity(this, PickScanType.class); }", "title": "" }, { "docid": "2825c4b7d390f6b6a6b2ec0e565b2be7", "score": "0.57394", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tIntent intent = new Intent(mContext,\n\t\t\t\t\t\t\t\t\t\t\tRecommendInfotActivity.class);\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"requirementUserId\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getUserId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyerUserId\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_id());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"requirement_id\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"name\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getUserName());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"time\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getAddTime());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"head\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getuserAvatar());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"yjh\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getReqDesc());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"ch\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getOccasion());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"pl\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getcategoryName());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"jw\",\n\t\t\t\t\t\t\t\t\t\t\trequirement.getPriceMin() + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ requirement.getPriceMax());\n\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_id\", buyer.getId());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_name\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_name());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_time\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getaddTimeShow());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_head\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getuser_avatar());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_yjh\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getWords());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_zw\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getUser_level());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_attires\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getbuyerRespAttiresNum());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"buyer_comment\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getbuyerRespCommentsNum());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"ids\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getBuyerRespAttiresIds());\n\t\t\t\t\t\t\t\t\tintent.putExtra(\"isPraise\",\n\t\t\t\t\t\t\t\t\t\t\tbuyer.getIsPraise());\n\t\t\t\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "132dc792dbcc0ff2b3a7ad176b638767", "score": "0.57368284", "text": "@Override\n public void onClick(View view) {\n Intent intent_alert = new Intent(getApplicationContext(), RashDriveAlert.class);\n startActivity(intent_alert);\n }", "title": "" }, { "docid": "b814d220a863da82fdf18f696897712d", "score": "0.57306284", "text": "public void goToKakaoPay() {\n Intent intent = new Intent(this, MainActivityPay.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "5beacc498227af1efb5d4951a0ac527d", "score": "0.57244503", "text": "@Override\n public void onClick(View v) {\n Intent signInIntent = googleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "2e4c932efa28640457f2201a3130d256", "score": "0.57188964", "text": "@Override\r\n public void onClick(View v) {\n String url = \"https://www.doubleasoft.com/\";\r\n Intent intent = new Intent(Intent.ACTION_VIEW);\r\n intent.setData(Uri.parse(url));\r\n Intent chooser = Intent.createChooser(intent, \"Open with\");\r\n startActivity(chooser);\r\n\r\n }", "title": "" }, { "docid": "2d811f3e72dea2441f59f41893a94de4", "score": "0.57160723", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(update_list.this, add_product.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "f3f052e3c14f2b43aadc24766ecd22b5", "score": "0.5708268", "text": "@Override\n public void onClick(View view) {\n\n // https://developer.android.com/guide/components/intents-filters\n Intent sendIntent = new Intent();\n sendIntent.setAction(Intent.ACTION_VIEW);\n sendIntent.setData(Uri.parse(mSelectedSubmission.getLinkUrl()));\n\n Bundle firebaseBundle = new Bundle();\n // Verify that the intent will resolve to an activity\n if (sendIntent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(sendIntent);\n\n firebaseBundle.putString(FirebaseAnalytics.Param.LOCATION, mSelectedSubmission.getLinkUrl());\n mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, firebaseBundle);\n } else {\n Log.e(LOG_TAG, getString(R.string.error_content_not_handled));\n sUtilityCode.showSnackbar(mCoordinatorLayout, R.string.error_notification_no_implicit_intent_app, mContext);\n\n firebaseBundle.putString(getString(R.string.firebase_analytics_app_unavailable), mSelectedSubmission.getLinkUrl());\n mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.VIEW_ITEM, firebaseBundle);\n }\n }", "title": "" }, { "docid": "cbc15f273cc95552a678a70fe2906179", "score": "0.5694489", "text": "public void openBuyLink() {\n Uri bookBuyURL = Uri.parse(mBuyingLink);\n Intent webIntent = new Intent(Intent.ACTION_VIEW, bookBuyURL);\n startActivity(webIntent);\n }", "title": "" }, { "docid": "c32f27017cf0fe89aadf8e85a0fbbf41", "score": "0.5694366", "text": "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.appOfficialWebInfo_TV:\n CommonUtils.gotoWebActivity(mActivity, \"腾旅官网\", getResources().getString(R.string.official_web));\n break;\n case R.id.appServiceTermInfo_TV:\n CommonUtils.gotoWebActivity(mActivity, \"服务条款\", getResources().getString(R.string.service_term));\n break;\n case R.id.appVersionLayout_RL:\n appUpdate_ProBar.setVisibility(View.VISIBLE);\n appVersion_TV.setVisibility(View.GONE);\n //检查更新,统一转至CoamUtils下\n new CommonUtils().checkAppUpdate(mActivity);\n break;\n case R.id.appFunctionLayout_RL:\n Intent intent = new Intent(this, CommonWelcomeSplashActivity.class);\n intent.putExtra(\"manual\", true);\n startActivity(intent);\n break;\n case R.id.appFeedbackLayout_RL:\n //startActivity(new Intent(AppSettingAboutActivity.this, ChatActivity.class).putExtra(\"userId\", \"M-1\"));\n break;\n case R.id.contactUsLayout_RL:\n startActivity(new Intent(AppSettingAboutActivity.this, AppSettingContactUsActivity.class));\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "ceba386f71b7d84a46cac145cef1f266", "score": "0.5689991", "text": "@Override\r\n public void onClick(View v) {\n String url = \"https://www.facebook.com/doubleasoft17/\";\r\n Intent intent = new Intent(Intent.ACTION_VIEW);\r\n intent.setData(Uri.parse(url));\r\n Intent chooser = Intent.createChooser(intent, \"Open with\");\r\n startActivity(chooser);\r\n\r\n }", "title": "" }, { "docid": "5a65d6a2a531251924817f5384a80245", "score": "0.5679561", "text": "public void onClick(View v) {\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\t\t\t\t\t\tUri u = Uri.parse(syoutubeurl);\n\t\t\t\t\t\t\t\t\ti.setData(u);\n\t\t\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "0959ede039bee3f0339ce9315257110d", "score": "0.5678363", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tIntent intent = new Intent(mContext,\n\t\t\t\t\t\t\t\t\tPhotoShowActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"BitmapUtilsFlag\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"URL_TYPE\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"SHOW_WHICH\", 2);\n\t\t\t\t\t\t\tintent.putExtra(\"PHOTO_URI_DATA\",\n\t\t\t\t\t\t\t\t\trequirement.getPics());\n\t\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "286df3209d9f1fb4dd6b0a3443864bce", "score": "0.5678148", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tIntent intent = new Intent(mContext,\n\t\t\t\t\t\t\t\t\tPhotoShowActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"BitmapUtilsFlag\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"URL_TYPE\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"SHOW_WHICH\", 0);\n\t\t\t\t\t\t\tintent.putExtra(\"PHOTO_URI_DATA\",\n\t\t\t\t\t\t\t\t\trequirement.getPics());\n\t\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "05ce39ef64e53e99101de9ee7941fd05", "score": "0.5674194", "text": "@Override\n public void onClick(View view) {\n String url = tutorialsInfo.getVideoURL();\n\n //Open new Intent with the URL to open either YouTube or browser\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n context.startActivity(i);\n }", "title": "" }, { "docid": "1db0db31e4171364a7a834d99fd744d2", "score": "0.5672501", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.putExtra(\"url\", \"http://www.efamax.com/mobile/explain/couponExplain.html\");\n\t\t\t\tintent.setClass(NewDrawCardActivity.this, HAdvertActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0abe3957cd53aa638a42b6bf3a1f5bfb", "score": "0.5671305", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tisToDismiss = true;\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t\tString url = Constants.APP_UPDATE_LINK;\r\n\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\ti.setData(Uri.parse(url));\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}", "title": "" }, { "docid": "36980c880eed72017d1343c10f3911a9", "score": "0.5670224", "text": "private void launchMarket() {\n Uri uri = Uri.parse(\"market://details?id=\" + getPackageName());\n Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);\n try {\n startActivity(myAppLinkToMarket);\n } catch (ActivityNotFoundException e) {\n Toast.makeText(this, \" unable to find market app\", Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "764226f16d7feca34e5e428afb8c0346", "score": "0.56685984", "text": "@Override\n public void onClick(View v) {\n\n //intent\n //int adapterPosition = getAdapterPosition();\n //String reviewClicked = mReviews.get(adapterPosition) ;\n }", "title": "" }, { "docid": "2350512a6f1d434211d6f91211e01568", "score": "0.5667581", "text": "@Override\n public void onClick(View view) {\n Intent registerIntent=new Intent(Intent.ACTION_VIEW);\n registerIntent.setData(Uri.parse(\"https://www.goeventz.com/event/8th-mile-r-v-college-of-engineering/40985\"));\n context.startActivity(registerIntent);\n }", "title": "" }, { "docid": "61a0d81cf59a2b3b06d173f39178bee1", "score": "0.56674767", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tIntent intent = new Intent(mContext,\n\t\t\t\t\t\t\t\t\tPhotoShowActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(\"BitmapUtilsFlag\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"URL_TYPE\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"SHOW_WHICH\", 1);\n\t\t\t\t\t\t\tintent.putExtra(\"PHOTO_URI_DATA\",\n\t\t\t\t\t\t\t\t\trequirement.getPics());\n\t\t\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t\t\t}", "title": "" }, { "docid": "fe6ffa3a5d304cdc1127d6446080cd82", "score": "0.5655301", "text": "@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(PharmacyStoreActivity.this, PatientAddToCartActivity.class);\n intent.putExtra(EXTRA_PHARMACEUTICAL_ADD_TO_CART_KEY, KEY);\n intent.putExtra(\"ORDER_KEY\", key);\n startActivity(intent);\n }", "title": "" }, { "docid": "048f3e72f0d404b99e1265ec6f9d65d5", "score": "0.5653717", "text": "public void onCLick(View view) {\n\n\n Intent intent = new Intent(getApplicationContext(),RedeemActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "a88e43253949fbbaf26b93190dccf2b2", "score": "0.5650166", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId())\n\t\t{\n\t\tcase R.id.bid2next:\n\t\t\tIntent openid3=new Intent(\"com.idiomize.ID3\");\n\t\t\tstartActivity(openid3);\n\t\t\tbreak;\n\t\tcase R.id.bid2back:\n\t\t\tIntent openpage105=new Intent(\"com.idiomize.PAGE105\");\n\t\t\tstartActivity(openpage105);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "b19017df56fb259cc438d686b0d153f1", "score": "0.5642385", "text": "@Override\n public void onClick(View v) {\n\n String url = \"https://www.google.com/search?q=\"+data.getText();\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n }", "title": "" }, { "docid": "05324220326a84cc3d631e628056b8ec", "score": "0.5636244", "text": "@Override\n public void onClick(View v) {\n\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.google.com\"));\n startActivity(browserIntent);\n }", "title": "" }, { "docid": "312457701f2a1882d5eb7db82f0e3091", "score": "0.5629582", "text": "@Override\n public void onClick(View v) {\n Intent in=new Intent(Intent.ACTION_VIEW,\n Uri.parse(devs.getHtml_url()));\n startActivity(in);\n }", "title": "" }, { "docid": "35637a6d4c1ea09ef187592269814019", "score": "0.5623888", "text": "void onCartInteraction(Uri uri);", "title": "" }, { "docid": "8052405e8a256b43fb1b471717743d1b", "score": "0.56227857", "text": "@Override\n public void onClick(View v) {\n Intent link = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.lloydsbank.com/online-banking/benefits-online-banking/money-manager.asp\"));\n // Start intent to open webpage\n startActivity(link);\n }", "title": "" }, { "docid": "ea8d394636683c3d7dba78ee9946b257", "score": "0.5616187", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent retake = new Intent(getApplicationContext(),Capture.class);\n\t\t\t\tstartActivity(retake);\n\t\t\t}", "title": "" }, { "docid": "0ca9186674623900678da14f7a251a56", "score": "0.56092256", "text": "@Override\n public void onClick(View v) {\n if(\"generic\".equals(Build.BRAND.toLowerCase())){\n Toast toast = Toast.makeText(getApplicationContext(),\"ASR is not supported on virtual devices\", Toast.LENGTH_SHORT);\n toast.show();\n Log.d(LOGTAG, \"ASR attempt on virtual device\");\n }\n else{\n numberRecoResults = 10;\n languageModel = DEFAULT_LANG_MODEL; //Read speech recognition parameters from GUI\n Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n // Specify language model\n intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, languageModel);\n // Specify how many results to receive\n intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, numberRecoResults);\n // Start listening\n startActivityForResult(intent, ASR_CODE);\n }\n //------------------------------------------------------------------------------------------------\n }", "title": "" }, { "docid": "109d18f0f72a7304e7e31e2f85a3bb04", "score": "0.5608118", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(NaviActivity.this, MainGameActivity.class);\n\t\t\t\tintent.putExtra(\"type\", GamePlayType.GAME_TYPE_EXPERT);\n\t\t\t\tNaviActivity.this.startActivity(intent);\n\t\t\t}", "title": "" }, { "docid": "957fdc58bf0d84fad692fa96fef6ad26", "score": "0.5603177", "text": "@Override\n public void onClick(View v) {\n\n\n Intent intent = new Intent(marriagecer_apply.this, MainActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "486c58eafcf259e8c717dcfd4de2e275", "score": "0.5600848", "text": "@Override\n\t\t public void onClick(View arg0) {\n\t\t switch(arg0.getId()){\n\t\t case R.id.imagelogo:\n\t\t Intent i = new Intent(MainMenu.this, MainMenu.class);\n\t\t startActivity(i);\n\t\t break;\n\t\t case R.id.majorscalesb:\n\t\t \n\t\t startActivity(j);\n\t\t break;\n\t\t \t\t case R.id.minormelodicb:\n\t\t \t\n\t\t \tstartActivity(q);\n\t\t \tbreak;\n\t\t \t\n\t\t case R.id.howitworksb:\n\t\t \t\n\t\t \tstartActivity(r);\n\t\t \tbreak;\n\t\t case R.id.bBuyfull:\n\t\t \ttry {\n\t\t \t startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"market://details?id=com.musicbynumbers.pianoscalesfull\")));\n\t\t \t} catch (android.content.ActivityNotFoundException anfe) {\n\t\t \t startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.musicbynumbers.pianoscalesfull\")));\n\t\t \t}\n\t\t \tbreak;\n\t\t \n\t\t \t\n\t\n\t}\n\n}", "title": "" }, { "docid": "1a5e1bbe864879f50204c045b58c1b35", "score": "0.5588555", "text": "@Override\n public void onClick(View v) {\n Intent intent = new Intent(MenuActivity.this, RecorderActivity.class);\n intent.putExtra(RecorderType.STATUS.getValue(),RecorderType.NO_PREVIEW.getValue());\n MenuActivity.this.startActivity(intent);\n }", "title": "" }, { "docid": "e4027a11d6a7bd236c600ba5df9d417d", "score": "0.5586277", "text": "@Override\n public void onClick(View view) {\n Intent playlistsIntent = new Intent(PlayingActivity.this, PlaylistsActivity.class);\n startActivity(playlistsIntent);\n }", "title": "" }, { "docid": "4dd84bc7dd7d5da50323ed4ba9bc59a3", "score": "0.5579585", "text": "public final void o() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n if (VERSION.SDK_INT >= 24) {\n Uri apkUri = FileProvider.a(getApplicationContext(), getApplicationContext().getPackageName() + \".provider\", new File(q.H));\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);\n intent.setDataAndType(apkUri, \"application/vnd.android.package-archive\");\n } else {\n intent.setDataAndType(Uri.fromFile(new File(q.H)), \"application/vnd.android.package-archive\");\n }\n\n startActivity(intent);\n }", "title": "" }, { "docid": "103fc27e50095900a0983cade4fd741a", "score": "0.5566191", "text": "@Override\n public void onClick(View view) {\n Intent phrasesIntent = new Intent(LauncherHomepage.this, LoginActivity.class);\n startActivity(phrasesIntent);\n }", "title": "" }, { "docid": "0906ee84f7f497b3370c4661ee52b35c", "score": "0.5558853", "text": "public void onClick(View v) {\n Intent intenthome3 = new Intent(Wallets1Activity.this, ContentActivity.class);\n intenthome3.putExtra(\"TERMS\", \"terms\");\n intenthome3.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intenthome3);\n }", "title": "" }, { "docid": "b7f029058201df14cc6b7ba8552e18bc", "score": "0.5556121", "text": "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n switch (menuItem.getItemId()) {\n case R.id.nav_rate:\n Uri uri = Uri.parse(\"market://details?id=\" + getApplication().getPackageName());\n Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);\n // To count with Play market backstack, After pressing back button,\n // to taken back to our application, we need to add following flags to intent.\n goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |\n Intent.FLAG_ACTIVITY_NEW_DOCUMENT |\n Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n try {\n startActivity(goToMarket);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://play.google.com/store/apps/details?id=\" + getApplication().getPackageName())));\n }\n break;\n case R.id.nav_share:\n try {\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n shareIntent.putExtra(Intent.EXTRA_SUBJECT, \"My application name\");\n String shareMessage = \"\\nDownload the Application\\n\\n\";\n shareMessage = shareMessage + \"https://play.google.com/store/apps/details?id=\" + BuildConfig.APPLICATION_ID + \"\\n\\n\";\n shareIntent.putExtra(Intent.EXTRA_TEXT, shareMessage);\n startActivity(Intent.createChooser(shareIntent, \"choose one\"));\n } catch (Exception e) {\n //e.toString();\n }\n break;\n case R.id.nav_map:\n startActivity(new Intent(River_System.this, Map.class));\n\n default:\n break;\n }\n\n mDrawerLayout.closeDrawer(GravityCompat.START);\n\n return true;\n }", "title": "" }, { "docid": "7a6323885bf7c08003b31bae6e18c78d", "score": "0.55437845", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(getActivity(),AddWandrActivity.class);\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\tstartActivity(intent);\r\n\r\n\t\t\t}", "title": "" }, { "docid": "b7582ebd2611fd6489fee4fd6ec07a1e", "score": "0.55420285", "text": "@Override\n public void onClick(View view) {\n Intent nowIntent = new Intent(MainActivity.this, NowPlayingAcitvity.class);\n startActivity(nowIntent);\n }", "title": "" }, { "docid": "cef272bb65c6cb95cc85fc7083a25495", "score": "0.55414414", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t Intent intent = null;\n\t\t intent = new Intent(v.getContext(), StoredRecordActivity.class);\n\t\t if (intent != null) {\n\t\t \t//intent.p\n\t\t \tstartActivity(intent);\n\t\t }\n\t\t\t\t}", "title": "" } ]
a9a2d8b363998e8eb2865b6428da5e95
getWeatherEmpty method is a helper class to initially predetermine the current location of the user and set up the program program will not continue until the user has entered a proper city and country
[ { "docid": "63e76e2afb7fa3c46cb1fceba916d945", "score": "0.8077444", "text": "private void getWeatherEmpty() {\n firstFlag=true;\n JOptionPane newPane = new JOptionPane();\n\n String location = newPane.showInputDialog(\"<html>Please enter your current location information below:<br>\" +\n \"<div align='center'><font size ='3' color='gray'>Format: City, Country <br> Remember to add a space between \\\",\\\" and the country name.</font></div></html></font></div></html>\");\n String locationArray[] = new String[2];\n try {\n if (location != null) {\n locationArray = location.split(\", \", 2);\n }\n }\n catch(ArrayIndexOutOfBoundsException e){\n System.exit(0);\n }\n newPane.setBounds((int) newPane.getBounds().getX(), (int) newPane.getBounds().getY() + 20, 500, 500);\n\n String defaultCity=null;\n String defaultCountry=null;\n\n try {\n defaultCity = locationArray[0];\n defaultCountry = locationArray[1];\n } catch (ArrayIndexOutOfBoundsException e) {\n JOptionPane.showMessageDialog(null, \"Incorrect input. Please follow the format and try again\");\n getWeatherEmpty();\n }\n\n getWeather(defaultCity, defaultCountry);\n firstFlag=false;\n\n// String defaultCity = JOptionPane.showInputDialog(\"Please enter your current city below: \");\n// String defaultCountry = JOptionPane.showInputDialog(\"Please enter your current country below: \");\n// getWeather(defaultCity, defaultCountry);\n\n }", "title": "" } ]
[ { "docid": "581d2d76a9470bc1ed9bb41e65d7d674", "score": "0.7010036", "text": "private void getWeather(String city, String countryCode) {\n String urlCurrent = \"\";\n if (countryCode != null) {\n urlCurrent = \"http://api.openweathermap.org/data/2.5/weather?q=\" + city + \",\" + countryCode;\n }\n else {\n urlCurrent = \" api.openweathermap.org/data/2.5/weather?q=London,ca\";\n }\n\n try {\n String jsonData = readUrl(urlCurrent);\n Gson gsonCurrent = new Gson();\n wv = gsonCurrent.fromJson(jsonData, WeatherValue.class);\n\n //before instantiating the variables of current weather data, first we must check if this is a proper list of data\n if (wv.getCod().equals(\"404\")) {\n if (firstFlag)\n JOptionPane.showMessageDialog(null, \"The city was not found, please try again.\");\n getWeatherEmpty();\n return;\n }\n else\n firstFlag=false;\n retrieveCurrentWeather();\n\n //Get coordinates for current location for use in short term and long term forecasting\n double lat, lon;\n lat = wv.getCoord().getLat();\n lon = wv.getCoord().getLon();\n\n\n //build the url for short term api using the lon/lat coordinates from initial current\n String urlShortTerm = \"http://api.openweathermap.org/data/2.5/forecast?lat=\" + lat + \"&lon=\" + lon;\n jsonData = readUrl(urlShortTerm);\n Gson gsonShortTerm = new Gson();\n st = gsonShortTerm.fromJson(jsonData, ShortTermWeatherValue.class);\n jsonData = readUrl(urlShortTerm);\n retrieveShortTermWeather();\n\n //build the url for mars weather api from lastest rover report\n String urlMarsWeather = \"http://marsweather.ingenology.com/v1/latest/.json\";\n jsonData = readUrl(urlMarsWeather);\n Gson gsonMars = new Gson();\n mw = gsonMars.fromJson(jsonData, MarsWeather.class);\n MarsWeatherRetrieveData();\n\n //build the url for long term api using the lon/lat coordinates from initial current\n String urlLongTerm = \"http://api.openweathermap.org/data/2.5/forecast/daily?lat=\" + lat + \"&lon=\" + lon + \"&cnt=5&mode=json\";\n jsonData = readUrl(urlLongTerm);\n Gson gsonLongTerm = new Gson();\n lt = gsonLongTerm.fromJson(jsonData, LongTermWeatherValue.class);\n\n retrieveLongTermWeather();\n\n // Sets default units\n if (!unitFlag) {\n currentWeather.setUnits(\"celsius\");\n unitFlag = true;\n }\n\n // Changes units to match when refreshed\n if(currentWeather.getUnits().equals(\"fahrenheit\")) {\n changeTemperatureUnits(\"kelvin\", \"fahrenheit\");\n\n } else {\n changeTemperatureUnits(\"kelvin\", \"celsius\");\n }\n\n currentWeather.changeWind();\n currentWeather.changePressure();\n currentWeather.changeSun();\n\n shortTerm3HourIntervalGenerator();\n longTermDayIntervalGenerator();\n\n } catch (JsonParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n if (firstFlag)\n getWeatherEmpty();\n }\n }", "title": "" }, { "docid": "c3386a50ce86dca9349a9efd0583ede9", "score": "0.6695082", "text": "void loadWeatherData() {\n\n String searchLocation = mLocation.getText().toString();\n if(searchLocation!=null&&!searchLocation.equals(\"\")) {\n Toast toast = new Toast(MainActivity.this);\n toast.makeText(MainActivity.this, searchLocation, Toast.LENGTH_LONG).show();\n new WeatherClass().execute(searchLocation);\n }\n else\n mWeatherTextView.setText(\"Please Enter a Location First :D\");\n\n }", "title": "" }, { "docid": "9962088e59c3737ff2adacdb792b141d", "score": "0.6417007", "text": "private void getLocationCoordinates(){\n cityName = findViewById(R.id.cityName);\n try{\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 100, 0, new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n try{\n city = getLocation(location.getLatitude(), location.getLongitude());\n cityName.setText(city);\n }\n catch (NullPointerException e){\n e.printStackTrace();\n enterCityManually();\n }\n catch (SecurityException e){\n e.printStackTrace();\n enterCityManually();\n }\n }\n\n @Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n }\n @Override\n public void onProviderEnabled(String provider) {\n }\n @Override\n public void onProviderDisabled(String provider) {\n enterCityManually();\n }\n });\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n city = getLocation(location.getLatitude(), location.getLongitude());\n }\n catch (SecurityException e){\n e.printStackTrace();\n enterCityManually();\n }\n catch (NullPointerException e){\n e.printStackTrace();\n enterCityManually();\n }\n }", "title": "" }, { "docid": "507d18721ec6a3120439f8a05dc716d9", "score": "0.62989575", "text": "private void updateWeather() {\n SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n // Now recover the saved location value or alternatively the default location\n // and use it to query the website\n String pCode = shared.getString(getString(R.string.pref_location_key),\n getString(R.string.pref_location_default)); // default is \"12561,USA\"\n // String uCode = shared.getString(\"units\", \"metric\"); // default metric\n\n pCode = checkZipCode(pCode); // puts \",USA\" at end of a bare zipcode\n// new FetchWeatherTask().execute(pCode,uCode);\n new FetchWeatherTask().execute(pCode);\n }", "title": "" }, { "docid": "cc3b2fec7bbf91f10cc3386039c5fa99", "score": "0.6291615", "text": "List<String> getDefaultWeatherLocations();", "title": "" }, { "docid": "d9f85ad1c8da60e4b23571304709996e", "score": "0.6238483", "text": "private void getWeatherForCurrentLocation() {\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n setParamForLatLongAndFetchWeather(location);\n }\n\n @Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n }\n\n @Override\n public void onProviderEnabled(String provider) {\n\n }\n\n @Override\n public void onProviderDisabled(String provider) {\n makeToastMessage(\"Error while getting GPS data. Turn on GPS\");\n }\n };\n\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n //calling ActivityCompat#requestPermissions to request the missing permissions\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE_PERMISSION);\n return;\n }\n\n checkIfAnyLastKnownLocation();\n locationManager.requestLocationUpdates(\n LOCATION_PROVIDER, MIN_TIME, MIN_DISTANCE, locationListener);\n }", "title": "" }, { "docid": "048df2cdbb68c90655d2017d37e63173", "score": "0.61098254", "text": "public CurrentWeatherData getCurrentWeatherData(String location) throws Exception;", "title": "" }, { "docid": "1ac83eacb035fee559579ad2615e1533", "score": "0.606611", "text": "@SuppressLint(\"MissingPermission\")//suppress warning about location permission request. request is implemented\n private void getLocation() {\n locationManager = (LocationManager) getActivity().getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 20,this);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n lat = location.getLatitude();\n lon = location.getLongitude();\n latString = String.valueOf(lat);\n lonString = String.valueOf(lon);\n getWeather(latString,lonString);\n }", "title": "" }, { "docid": "c5325d91c622859ace21998c7c8760ae", "score": "0.603114", "text": "public void getCurrentWeather() {\n\n String url = Common.apiRequest(\"\" + location.getLat(), \"\" + location.getLng());\n Log.d(\"finalUrl\", url);\n\n googleApiService = RetrofitBuilder.PlacesBuilder().create(GoogleApiService.class);\n\n Call<CurrentWeather> call = googleApiService.getLocationWeather(url);\n\n call.enqueue(new Callback<CurrentWeather>() {\n @Override\n public void onResponse(Call<CurrentWeather> call, Response<CurrentWeather> response) {\n\n mWeather = response.body();\n //here mWeather has been set to the body of the response call\n // inside the response call, all methods within are accessible, note that\n // sunrise and sunset could also be used as well from Sys class and utilised along with get paths and notifications.\n\n // the two below should be taken out if they somehow crash the system\n weatherType = mWeather.getWeather().toString();\n weatherTemp = mWeather.getMain().getTemp().toString();\n weatherInterface.OnWeatherResponce();\n finish();\n\n }\n\n @Override\n public void onFailure(Call<CurrentWeather> call, Throwable t) {\n\n Toast.makeText(mContext, t.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "adfdbd334b0dfb3e53aabdbda3a45609", "score": "0.60137826", "text": "public java.lang.String getWeather(java.lang.String cityName, java.lang.String countryName) {\n throw new UnsupportedOperationException(\"Not implemented yet.\");\r\n }", "title": "" }, { "docid": "c73d87db6aa694071694907d2cbe65f5", "score": "0.6006801", "text": "private void getCurrentLoc(final View view) {\n String url = \"http://ip-api.com/json\";\n JsonObjectRequest request = new JsonObjectRequest\n (Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject locationResponse) {\n try {\n String city = locationResponse.getString(\"city\");\n String state = locationResponse.getString(\"region\");\n String country = locationResponse.getString(\"countryCode\");\n float lat = BigDecimal.valueOf(locationResponse.getDouble(\"lat\")).floatValue();\n float lon = BigDecimal.valueOf(locationResponse.getDouble(\"lon\")).floatValue();\n\n Log.d(\"GOT HERE\", locationResponse.getString(\"status\"));\n\n // TODO: need to handle case when city, state, country is inputted through user search as well\n addressText = city + \", \" + state + \", \" + country;\n\n// c.setText(\"Mumbai\" + \", \" + \"Maharashtra\" + \", \" + \"India\");\n\n// c.append(\"\\n lat: \" + lat + \"\\n lon: \" + lon);\n\n\n// use this for searching String url = \"https://maps.googleapis.com/maps/api/geocode/json?address=936 S Olive st, L,&key=AIzaSyDXTkcwPIMqavJUEj614GlBoRMbesk1Yss\";\n //call on get weather summary and grab following piece of code and copy it there\n\n getCurrentWeather(view, lat, lon);\n\n\n } catch (JSONException e) {\n Log.d(\"ERROR\", null);\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO: Handle error\n Log.d(\"Current Location Response Error\", error.getMessage());\n }\n });\n\n // Add request to the RequestQueue\n queue.add(request);\n }", "title": "" }, { "docid": "20e24521568670b3960333cab5350b3c", "score": "0.58541846", "text": "public void prepareSearchCityState(){\n \n city = \"\";\n state = \"\";\n }", "title": "" }, { "docid": "d45f14484b16bd11d14eb1e0d8baff26", "score": "0.58493364", "text": "@Test\n void getCityInfoUserInputWValidNoTest() {\n ArrayList<City> cities = app.getCitiesInWorldByPopulation(6, \"Asia\",10);\n Assert.assertNotNull(cities);\n app.viewCities(cities);\n }", "title": "" }, { "docid": "c3d6040e55ab6d688db3e7f11b8885c6", "score": "0.58469266", "text": "public WeatherData(String city, String countryCode) {\n if (city == null && countryCode == null)\n getWeatherEmpty();\n else\n getWeather(city, countryCode);\n }", "title": "" }, { "docid": "9ecb63663581f6483620485fd25fc70b", "score": "0.57973695", "text": "public static void wrongLocation(){\n\t\tJOptionPane.showMessageDialog(null, \"Server cannot guess based on your input\", \"Wrong city name\", JOptionPane.INFORMATION_MESSAGE);\n\t\tpreference.showPreferenceDefault();\n\t}", "title": "" }, { "docid": "3644e7af8ec1ef94c86dc7a02c485731", "score": "0.5761387", "text": "private void enterCityManually(){\n if(city == null) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.enter_location_message);\n final EditText input = new EditText(this);\n input.setInputType(InputType.TYPE_TEXT_FLAG_CAP_WORDS);\n builder.setView(input);\n builder.setPositiveButton(R.string.Done, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n city = input.getText().toString();\n cityName.setText(city);\n }\n }).show();\n }\n }", "title": "" }, { "docid": "57beee709c4b188aea2c5121ad37f7fe", "score": "0.5743144", "text": "RetrievedWeather getCurrentWeatherByCity(@Nonnull String query) throws APILimitException;", "title": "" }, { "docid": "019b820baeda6b3a016130c2bfe4c7ac", "score": "0.57143784", "text": "boolean isSetGetWeatherInformationResult();", "title": "" }, { "docid": "f21dc79849d9acc32b972e9792b13b06", "score": "0.5688491", "text": "public void OnGetWeatherClick(View v) {\n\n String cityName = mEditTextCity.getText().toString().trim();\n String requestURL = API_ENDPOINT_URL;\n requestURL = requestURL.replace(\"[city]\", cityName);\n Log.i(\"info\", requestURL);\n\n SharedPreferences pref = getSharedPreferences(\"SessionData\", MODE_PRIVATE);\n SharedPreferences.Editor edit = pref.edit();\n edit.putString(\"cityName\", cityName);\n edit.apply();\n\n\n sendWeatherRequest(requestURL, cityName);\n }", "title": "" }, { "docid": "24559d4cd5d567a383d6ccdab4cc9d46", "score": "0.56696", "text": "@Test\n\tpublic void testGetStartingLocationOutsideCity() {\n\t\tCitySim9000 cs9000 = new CitySim9000();\n\t\tRandom mockRand = mock(Random.class);\n\t\twhen(mockRand.nextInt(5)).thenReturn(4);\n\t\tString loc = cs9000.getStartingLocation(mockRand);\n\t\tassertEquals(loc, \"Outside City\");\n\t}", "title": "" }, { "docid": "3734b3329283f8ca8f22107a5a7c26b8", "score": "0.56578773", "text": "void fetchData() {\n Call<CurrentLocationData> call;\n if (cityName.equals(\"\")) {\n call = weatherApi.getService().getData(latitude, longitude, API_KEY);\n } else {\n call = weatherApi.getService().getData(cityName, API_KEY);\n }\n call.enqueue(new Callback<CurrentLocationData>() {\n @Override\n public void onResponse(Call<CurrentLocationData> call, Response<CurrentLocationData> response) {\n data = response.body();\n set_UI(data);\n }\n\n @Override\n public void onFailure(Call<CurrentLocationData> call, Throwable t) {\n t.printStackTrace();\n }\n });\n }", "title": "" }, { "docid": "f32e28b4ca0befc56f7d99abadaf5218", "score": "0.56519914", "text": "private void locateUser() {\n final GeoLocation gps = new GeoLocation(LandingActivity.this);\n if (gps.canGetLocation()) {\n LatLongCoordBean latLongBean = new LatLongCoordBean();\n latLongBean.lat = gps.getLatitude();\n latLongBean.lon = gps.getLongitude();\n logger.debug(\"Latitude : \" + latLongBean.lat + \" Longitude : \" + latLongBean.lon);\n\n //If the device is unable to fetch the latitude and longitude immediately,\n //then we have a wait preiod before again checking the latitude and longitude\n if (latLongBean.lat == 0) {\n showProgressDialog();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n hideProgressDialog();\n if (gps.canGetLocation()) {\n LatLongCoordBean latLongBean = new LatLongCoordBean();\n latLongBean.lat = gps.getLatitude();\n latLongBean.lon = gps.getLongitude();\n logger.debug(\"Latitude : \" + latLongBean.lat + \" Longitude : \" + latLongBean.lon);\n callWeatherForeCastActivity(latLongBean);\n } else {\n gps.showSettingsAlert();\n }\n }\n }, 2000);\n } else {\n callWeatherForeCastActivity(latLongBean);\n }\n logger.debug(\"Latitude : \" + latLongBean.lat + \" Longitude : \" + latLongBean.lon);\n }\n }", "title": "" }, { "docid": "1fc83c413c6eff51562e9cedf8969ddf", "score": "0.563951", "text": "public void getWeatherForecastFiveDays(){\n mActualCity = mActualCity.replace(\" \", \"%20\");\n if(!mActualCity.equals(\"\")) {\n new JSONWeatherForecastTask().execute(mActualCity);\n }\n }", "title": "" }, { "docid": "bc8c559b35ffbad271faeab4d5884a4e", "score": "0.56359947", "text": "private String getCurrentCity() {\n String currentCity = \"\";\n\n if(Settings.API_Key != null && !Settings.API_Key.isEmpty()) {\n MyGeocoder geocoder = new MyGeocoder(Settings.API_Key);\n currentCity = geocoder.getCityName(locationListener.getLocation());\n }\n return currentCity;\n }", "title": "" }, { "docid": "a08a221febc4f15568d56c75a6d84f15", "score": "0.5635489", "text": "public WeatherData getWeatherData(Location location) throws WeatherDataServiceException\n\t{\n\t\tWeatherData weatherData = new WeatherData();\n\t\tHttpURLConnection conn = null;\n\t\tJsonReader jsonReader = null;\n\n\t\ttry {\n\t\t\t//get request\n\t\t\tURL url = new URL(\"http://\"+byCityNameURL+location.city);\n\t\t\tconn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.setRequestMethod(\"GET\");\n\t\t\tconn.setRequestProperty(\"Accept\", \"application/json\");\n\t\n\t\t\tif (conn.getResponseCode() != 200)\n\t\t\t{\n\t\t\t\tthrow new WeatherDataServiceException(\"Unable to get Json response from the server. HTTP error code : \" + conn.getResponseCode());\n\t\t\t}\n\t\t\n\t\t\t//read the JSON\n\t\t\tjsonReader = Json.createReader(conn.getInputStream());\n JsonObject jsonObject = jsonReader.readObject();\n \n if(!jsonObject.containsKey(\"cod\"))\n {\n \tthrow new WeatherDataServiceException(\"Mandatory key (\\\"cod\\\") is missing from the Json response.\");\n }\n \n if(jsonObject.getInt(\"cod\")!=200)\n {\n \tString message = \"\";\n \tif(jsonObject.containsKey(\"message\"))\n \t{\n \t\tmessage = jsonObject.getString(\"message\");\n \t}\n \tthrow new WeatherDataServiceException(\"Json response is not valid (cod!=200). cod=\" + jsonObject.getInt(\"cod\") + \", message:\" + message);\n \t}\n \n //parse the JSON to POJO (WeatherData)\n \n \tweatherData.setCityName(jsonObject.containsKey(\"name\")?jsonObject.getString(\"name\"):null);\n \t\n \tweatherData.setMeasureTime(jsonObject.containsKey(\"dt\")?jsonObject.getJsonNumber(\"dt\").longValue():null);\n \t\n \tif(jsonObject.containsKey(\"sys\"))\n \t{\n \t\tJsonObject jsonSys = jsonObject.getJsonObject(\"sys\");\n \tweatherData.setCountryCode(jsonSys.containsKey(\"country\")?jsonSys.getString(\"country\"):null);\n \tweatherData.setSunrise(jsonSys.containsKey(\"sunrise\")?jsonSys.getJsonNumber(\"sunrise\").longValue():null);\n \tweatherData.setSunset(jsonSys.containsKey(\"sunset\")?jsonSys.getJsonNumber(\"sunset\").longValue():null);\n \t}\n \t\n \tif(jsonObject.containsKey(\"coord\"))\n \t{\n \t\tJsonObject jsonCoord = jsonObject.getJsonObject(\"coord\");\n\t weatherData.setCoordinateLongitude(jsonCoord.containsKey(\"lon\")?jsonCoord.getJsonNumber(\"lon\").doubleValue():null);\n\t weatherData.setCoordinateLatitude(jsonCoord.containsKey(\"lat\")?jsonCoord.getJsonNumber(\"lat\").doubleValue():null);\n \t}\n \t\n \tif(jsonObject.containsKey(\"main\"))\n \t\t{\n \t\tJsonObject jsonMain = jsonObject.getJsonObject(\"main\");\n \t\tweatherData.setTemperature(jsonMain.containsKey(\"temp\")?jsonMain.getJsonNumber(\"temp\").doubleValue():null);\n \t\tweatherData.setHumidity(jsonMain.containsKey(\"humidity\")?jsonMain.getJsonNumber(\"humidity\").doubleValue():null);\n \t\t}\n \t\n if(jsonObject.containsKey(\"weather\"))\n {\n\t JsonArray jsonWeatherArray = jsonObject.getJsonArray(\"weather\");\n\t \n\t for(int i=0; i<jsonWeatherArray.size(); i++)\n\t {\n\t \tJsonObject weatherIter = jsonWeatherArray.getJsonObject(i);\n\t \tweatherData.getWeatherDescription().add(weatherIter.containsKey(\"description\")?weatherIter.getString(\"description\"):null);\n\t }\n }\n\n \tif(jsonObject.containsKey(\"wind\"))\n \t{\n \t\tJsonObject jsonWind = jsonObject.getJsonObject(\"wind\");\n\t weatherData.setWindSpeed(jsonWind.containsKey(\"speed\")?jsonWind.getJsonNumber(\"speed\").doubleValue():null);\n\t weatherData.setWindDirection(jsonWind.containsKey(\"deg\")?jsonWind.getJsonNumber(\"deg\").doubleValue():null);\n \t}\n \t\n \tif(jsonObject.containsKey(\"clouds\"))\n \t{\n \t\tJsonObject jsonClouds = jsonObject.getJsonObject(\"clouds\");\n \t\tweatherData.setCloudiness(jsonClouds.containsKey(\"all\")?jsonClouds.getJsonNumber(\"all\").doubleValue():null);\n \t}\n \tif(jsonObject.containsKey(\"rain\"))\n \t{\n \t\tJsonObject jsonRain = jsonObject.getJsonObject(\"rain\");\n \t\tweatherData.setRainVolume(jsonRain.containsKey(\"3h\")?jsonRain.getJsonNumber(\"3h\").doubleValue():null);\n \t}\n \tif(jsonObject.containsKey(\"snow\"))\n \t{\n \t\tJsonObject jsonSnow = jsonObject.getJsonObject(\"snow\");\n \t\tweatherData.setSnowVolume(jsonSnow.containsKey(\"3h\")?jsonSnow.getJsonNumber(\"3h\").doubleValue():null);\n \t}\n \t\n jsonReader.close();\n conn.disconnect();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tif(jsonReader !=null)\n\t\t\t\tjsonReader.close();\n\t\t\tif(conn != null)\n\t\t\t\tconn.disconnect();\n\t\t\tthrow new WeatherDataServiceException(e.getClass().getName() +\":\" + e.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(jsonReader !=null)\n\t\t\t\tjsonReader.close();\n\t\t\tif(conn != null)\n\t\t\t\tconn.disconnect();\n\t\t}\n\t\t\n\t\treturn weatherData;\n\t}", "title": "" }, { "docid": "f191cda3bfd11e5af6aae9d458a54415", "score": "0.56347215", "text": "public boolean findStationByCityAndCountry(MimodekLocation location) throws NoWeatherStationException{\n\t\t//try{\n\t\t\tXML xml = app.loadXML( GEO_LOOKUP_URL+\"?query=\"+location.city+\",\"+location.country);\n\t\t\tlocation.latitude = Float.parseFloat(xml.getChild(\"lat\").getContent());\n\t\t\tlocation.longitude = Float.parseFloat(xml.getChild(\"lon\").getContent());\n\t\t\t\n\t\t\tXML private_stations = xml.getChild(\"nearby_weather_stations/pws\");\n\t\t\tif(private_stations.getChildCount()==0)\n\t\t\t\tthrow new NoWeatherStationException(\"No station for this location, sorry\");\n\t\t\tuseStation = 0;\n\t\t\tfor(int i=0;i<private_stations.getChildCount();i++){\n\t\t\t\tstationIds.add(private_stations.getChild(i).getChild(\"id\").getContent());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t/*\n\t\t}catch(UnknownHostException uhE){\n\t\t\treturn false;\n\t\t}\n\t\t*/\n\t\t/*\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t*/\n\t}", "title": "" }, { "docid": "b1547d6741c4e61e8f0c098422285f40", "score": "0.5588969", "text": "@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\tLocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); \n\t\t\t\t Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t double longitude = Double.valueOf(dForm.format(location.getLongitude()));\n\t\t\t\t double latitude = Double.valueOf(dForm.format(location.getLatitude()));\n\t\t\t\t URL url = null;\n\t\t\t\t String data= \"\";\n\t\t\t\t BufferedReader in = null;\n\t\t\t\t try\n\t\t\t {\n\t\t\t\t\t \tString l = \"\";\n\t\t\t\t\t \tString output = \"\";\n\t\t\t\t\t \tString api_url = \"http://api.worldweatheronline.com/free/v1/weather.ashx?key=324eefpxmgz3ww7c6tga4svd&num_of_days=1&q=\"+latitude+\",\"+longitude+\"&format=json\";\n\t\t\t\t\t \turl = new URL(api_url);\n\t\t\t\t\t \tHttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n\t\t\t\t\t \tif(urlConnection!=null){\n\t\t\t\t\t \t\turlConnection.setDoInput(true);\n\t\t\t\t\t \t\t}\n\n\t\t\t\t\t \tInputStream is = urlConnection.getInputStream();\n\t\t\t\t\t \tInputStreamReader isr = new InputStreamReader(is);\n\t\t\t in = new BufferedReader(isr);\n\t\t\t while ((l = in.readLine()) !=null){\n\n\t\t\t JSONObject weather_json = new JSONObject(l);\n\t\t\t \n\t\t\t String tempF = weather_json.getJSONObject(\"data\").getJSONArray(\"current_condition\").getJSONObject(0).getString(\"temp_F\");\n\t\t\t String humidity = weather_json.getJSONObject(\"data\").getJSONArray(\"current_condition\").getJSONObject(0).getString(\"humidity\");\n\t\t\t weatherData = tempF+\",\"+humidity;\n\t\t\t }\n weatherDataRetrieved = true;\n\t\t\t in.close();\n\t\t\t }\n\t\t\t\t catch (Exception ex)\n\t\t\t\t {\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t finally{\n\t\t\t if (in != null){\n\t\t\t try{\n\t\t\t in.close();\n\t\t\t }catch (Exception e){\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t }\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "0335294a15d2aa7fa1219b62c2148247", "score": "0.55739135", "text": "public WeatherData callOpenWeather(String city, String state, String country) {\n\t\tString response = restTemplate.exchange(\"http://api.openweathermap.org/data/2.5/weather?\"\n\t\t\t\t+ \"q={city},{state},{country}&units=imperial&appid=\" + KEY, \n\t\t\t\tHttpMethod.GET, null, new ParameterizedTypeReference<String>() {}, city, state, country).getBody();\n\t\t\n\t\treturn utilService.getWeatherDataObject(response);\n\n\n\t}", "title": "" }, { "docid": "dce9c85dc8ab68a69481a15da5aab13c", "score": "0.5569298", "text": "private void setUpMap() {\n // Getting LocationManager object from System Service LOCATION_SERVICE\n LocationManager lm = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Getting Current Location (network is accurate and does not use so much power)\n Location location = lm.getLastKnownLocation(\"network\");\n\n // Creating a LatLng object for the current location and center the location\n if (location != null) {\n LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n findTempInCity(latLng);\n }\n else {\n Toast.makeText(getApplicationContext(), \"Could not get your location\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "fffc02c8281aa57989a0179bea5facde", "score": "0.5546456", "text": "private void getWeather(String lat, String lon) {\n weatherViewModel.getWeatherResult(lat, lon);\n weatherObserver();\n }", "title": "" }, { "docid": "4a3103bfceb4d18711bbcca41b25b48e", "score": "0.55425566", "text": "@Override\n public WeatherResponse getWeatherInfo(String city) throws RuntimeException {\n\n Map<String, String> params = new HashMap<>();\n params.put(AppConstants.CITY_PARAM, city);\n params.put(AppConstants.API_KEY_PARAM, apiKey);\n\n WeatherResult weatherResult = restTemplate.getForObject(weatherUrl, WeatherResult.class, params);\n\n appLog.info(\"Calling weather public API result: {}\", weatherResult);\n\n String temperature = weatherResult.getMain().getTemp().min(BigDecimal.valueOf(32))\n .divide(BigDecimal.valueOf(1.8), 0, RoundingMode.HALF_UP).toString().concat(AppConstants.CENTIGRADE_SYMBOL);\n String updatedTime = new SimpleDateFormat(AppConstants.DATE_FORMAT)\n .format(Date.from(Instant.ofEpochSecond(weatherResult.getDt())));\n String weather = weatherResult.getWeather().get(0).getDescription();\n String wind = weatherResult.getWind().getSpeed().toString().concat(AppConstants.SPEED_UNIT);\n\n return WeatherResponse.builder()\n .city(city)\n .temperature(temperature)\n .updatedTime(updatedTime)\n .weather(weather)\n .wind(wind)\n .build();\n }", "title": "" }, { "docid": "aee52cc5765230a788bb33e537ab87d4", "score": "0.5528026", "text": "public void loadCurrentCity() {\n\t\t// Boton para que no se vuelva a mostrar. Borrar valor cuando se ejecuta de nuevo el wizard.\n\t\t// PRECIOS!!!\n\t\ttry {\n\t\t\tGeocoder gcd = new Geocoder(parent, Locale.getDefault());\n\t\t\tList<Address> addresses;\n\t\t\n\t\t\taddresses = gcd.getFromLocation(parent.location.latitude, parent.location.longitude, 1);\n\t\t\tif (addresses.size() > 0) {\n\t\t\t\tJSONArray kws = CityManager.getKeywords(parent);\n\t\t\t\t\n\t\t\t\tfor( int i = 0 ; i < kws.length() ; i++ ) {\n\t\t\t\t\tif( addresses.get(0).getLocality().equalsIgnoreCase( kws.getString(i) ) ) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tshowChangeCity(R.string.different_city, true);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tCommons.error(\"Current City: \" + e.toString(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "2cd85eb594fd550bd809459c4b3fcf51", "score": "0.55122423", "text": "public void run(){\n\t\t\t\t\tQuery q = new Query(Main.preference.getLocationPref(), 0);\n\t\t\t\t\tCurrentWeather cdata = new CurrentWeather(q.toString());\n\t\t\t\t\tMain.setCdata(cdata);\n\t\t\t\t\t// call the refresh method of today panel to refresh it\n\t\t\t\t\tMain.tpanel.refresh(Main.preference.getUnitPref());\n\t\t\t\t\tMain.tpanel.repaint();\n\t\t\t\t\tMain.refresh++;\n\t\t\t\t\tMain.relax();\n\t\t\t\t\tif(cdata.isInComplete()){\n\t\t\t\t\t\tMain.incomplete(1);\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "ea5486ffbdd581f1e6e44c4a927c0fc2", "score": "0.5480032", "text": "public WeatherInfo(Context context) {\n\t\tLocationManager locationManager = null; \n\t\tString serviceName = Context.LOCATION_SERVICE; \n\t\tbaseAct = (Base)context;\n//\t locationManager = (LocationManager)baseAct.getSystemService(serviceName); \n//\t String provider = LocationManager.GPS_PROVIDER; \n\t //wifiMgr = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\n\t //String provider = LocationManager.NETWORK_PROVIDER; \n//\t \n//\t Criteria criteria = new Criteria(); \n//\t criteria.setAccuracy(Criteria.ACCURACY_FINE); \n//\t criteria.setAltitudeRequired(false); \n//\t criteria.setBearingRequired(false); \n//\t criteria.setCostAllowed(true); \n//\t criteria.setPowerRequirement(Criteria.POWER_LOW); \t \n//\t Location location = locationManager.getLastKnownLocation(provider); \n\t //updateWithNewLocation(location); \n\t \n//\t locationManager.requestLocationUpdates(provider, 3000, 10, locationListener);//100\n \n\n\t\tload_weather_city = last_city_init();\n\t \n\t weatherGetStart();\n \n //test\n// new Thread(new testUpdateLocation()).start();\n// testStart = true;\n\t //dataInited = false;\n\t}", "title": "" }, { "docid": "7bfb4fe95edf3f3128e5fef094b95e1e", "score": "0.54778934", "text": "private void getCurrentWeather(String cityName) {\n viewModel.getCurrentWeather(cityName, NetworkUtil\n .isConnected(Objects.requireNonNull(getActivity())))\n .observe(getViewLifecycleOwner(), currentWeatherResource -> {\n if (currentWeatherResource != null) {\n switch (currentWeatherResource.status) {\n case LOADING:\n weatherLoadedListener.onLoad(LoadStatus.REFRESHING);\n break;\n case SUCCESS:\n weatherLoadedListener.onLoad(LoadStatus.SUCCESS);\n if (currentWeatherResource.data != null) {\n weatherLoadedListener.onWeatherLoaded(currentWeatherResource.data);\n displayWeatherData(currentWeatherResource.data);\n currentWeather = currentWeatherResource.data;\n }\n break;\n case ERROR:\n weatherLoadedListener.onLoad(LoadStatus.ERROR);\n break;\n }\n }\n });\n }", "title": "" }, { "docid": "3bb72965a09940799af38016da058c6c", "score": "0.54696834", "text": "void unsetGetWeatherInformationResult();", "title": "" }, { "docid": "2471e0f2a2df198825887d8247490eae", "score": "0.5459536", "text": "@FXML\n void searchLocationButtonAction(ActionEvent event){\n\n try {\n String temp=TextFieldSearchLocation.getText().toUpperCase();\n int id=CityRecords.getCityId(temp);\n if(id==-1){\n LabelErrorComment.setOpacity(1.0);\n LabelErrorComment.setText(\"!!Not Found!!\");\n }else{\n OpenWeatherMap weatherobject = WeatherRequest.call_me(id);\n forRefresh=true;\n ButtonRefresh.setButtonType(JFXButton.ButtonType.RAISED);\n refreshID=weatherobject.id;\n// weatherobject.main.temp=14;\n// weatherobject.weather.icon=\"11d\";\n// weatherobject.weather.icon=\"11n\";\n\n ImageLayerCelsiusBackground.setOpacity(1.0);\n ImageLayerFahrenheitBackground.setOpacity(0.0);\n\n\n if(weatherobject.weather.icon.equals(\"50d\")){\n weatherobject.weather.icon=\"02d\";\n }\n if(weatherobject.weather.icon.equals(\"50n\")){\n weatherobject.weather.icon=\"02n\";\n }\n\n //BackGround Change\n\n if(weatherobject.weather.icon.contains(\"01\")||weatherobject.weather.icon.contains(\"02\")||weatherobject.weather.icon.contains(\"03\")||weatherobject.weather.icon.contains(\"04\")){\n toWinter=false;\n toSummer=true;\n toRainy=false;\n }\n if(weatherobject.weather.icon.contains(\"09\")||weatherobject.weather.icon.contains(\"10\")||weatherobject.weather.icon.contains(\"11\")){\n toWinter=false;\n toSummer=false;\n toRainy=true;\n }\n if(weatherobject.main.temp<15){\n toWinter=true;\n toSummer=false;\n toRainy=false;\n }\n if(weatherobject.weather.icon.charAt(weatherobject.weather.icon.length()-1)=='n'){\n night=true;\n ImageLayerNight.setVisible(true);\n ImageLayerNight.setOpacity(0.0);\n ImageLayerSun.setVisible(false);\n }\n else{\n night=false;\n ImageLayerNight.setVisible(false);\n ImageLayerNight.setOpacity(0.0);\n ImageLayerSun.setVisible(true);\n }\n\n\n //Weather Icon Change\n if(weatherobject.weather.icon.equals(\"01d\")){\n Icon01d.setOpacity(1.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"01n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(1.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"02d\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(1.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"02n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(1.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"03d\")||weatherobject.weather.icon.equals(\"03n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(1.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"04d\")||weatherobject.weather.icon.equals(\"04n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(1.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"09d\")||weatherobject.weather.icon.equals(\"09n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(1.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"10d\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(1.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"10n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(1.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"11d\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(1.0);\n Icon11n.setOpacity(0.0);\n }\n if(weatherobject.weather.icon.equals(\"11n\")){\n Icon01d.setOpacity(0.0);\n Icon01n.setOpacity(0.0);\n Icon02d.setOpacity(0.0);\n Icon02n.setOpacity(0.0);\n Icon03dn.setOpacity(0.0);\n Icon04dn.setOpacity(0.0);\n Icon09dn.setOpacity(0.0);\n Icon10d.setOpacity(0.0);\n Icon10n.setOpacity(0.0);\n Icon11d.setOpacity(0.0);\n Icon11n.setOpacity(1.0);\n }\n\n\n //Text Value Change\n LabelCityName.setText(weatherobject.name);\n LabelTemperature.setText(String.valueOf(weatherobject.main.temp)+\"\\' C\");\n LabelMinTemperature.setText(String.valueOf(weatherobject.main.temp-3)+\"\\' C\");\n LabelMaxTemperature.setText(String.valueOf(weatherobject.main.temp+2.4)+\"\\' C\");\n LabelHumidity.setText(String.valueOf(weatherobject.main.humidity)+\" %\");\n LabelWindSpeed.setText(String.valueOf(weatherobject.wind.speed)+\" m/sec\");\n LabelWeatherDescription.setText(weatherobject.weather.description.toUpperCase());\n LabelPressure.setText(String.valueOf(weatherobject.main.pressure));\n LabelCloudLevel.setText(\"Cloud Level : \"+String.valueOf(weatherobject.clouds.all));\n ProgressBarCloudLevel.setProgress(weatherobject.clouds.all/100);\n\n //\n LabelErrorComment.setText(\"\");\n LabelErrorComment.setOpacity(0.0);\n\n }\n }\n catch (Exception e) {\n LabelErrorComment.setOpacity(1.0);\n LabelErrorComment.setText(\"!!!ERROR!!!\");\n }\n }", "title": "" }, { "docid": "ae0500ad954ef9f5ae7c302e77e0ee11", "score": "0.5457498", "text": "LocalWeatherData() {\n\t\t/*temperature = 0;\n\t\twindSpeed= 0;\n\t\twindDirection =0;\n\t\tskyCondition= \"\";\n\t\thumidity = 0;\n\t\tairPressure = 0;\n\t\tminTemperature = 0;\n\t\tmaxTemperature = 0;\n\t\ttimeSunrise = \"00:00:00\";\n\t\ttimeSunset = \"00:00:00\";\n\t\t */\n\t}", "title": "" }, { "docid": "56532264ed02a118fdaf7b602dc09994", "score": "0.54301465", "text": "@Override\n public Weather getWeather() {\n return null;\n }", "title": "" }, { "docid": "82774519c178e7dea53fb772928d566a", "score": "0.54162854", "text": "public void findTempInCity(LatLng latLng) {\n TextView tempTextLocation = (TextView) findViewById(R.id.textView_temperature);\n\n String url = \"http://api.yr.no/weatherapi/locationforecast/1.9/?lat=\" +\n latLng.latitude +\";lon=\" + latLng.longitude;\n\n obj = new HandleXML(url); // Create URL\n obj.fetchXML(); // Fetch data\n while(obj.parsingComplete);\n tempTextLocation.setText(obj.getWind() + \" | \" + obj.getTemperature() + \" °C\");\n addWeatherDataToDB(obj.getWind(), obj.getTemperature());\n getWeatherDataFromDB();\n }", "title": "" }, { "docid": "f96df2a9fab5f555a1ec168e6ffa7d59", "score": "0.5384442", "text": "public void setUpLocations() {\r\n\t\t// setup q of locations\r\n\t\tfor (String i : preferences.split(\",\"))\r\n\t\t\tlocationQ.enqueue(i.trim());\r\n\r\n\t\tint selection = 1; // used to select correct address if multiple are returned\r\n\r\n\t\tgc = new GeoCoding(homebase);\r\n\r\n\t\t// If the address exists\r\n\t\tif (gc.exists()) {\r\n\t\t\t//if more than 1 address is returned by the google maps API\r\n\t\t\tif(gc.results() > 1){\r\n\t\t\t\tfor(int i = 0; i < gc.results(); i++)\r\n\t\t\t\t\tSystem.out.println((i+1) + \") \" + gc.formattedAddress()[i]); //print out results\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"Enter the integer corresponding to the correct address: \");\r\n\t\t\t\tscanner.nextLine();\r\n\t\t\t}\r\n\t\t\thbAddress = gc.formattedAddress()[selection - 1];\r\n\t\t\thbLong = gc.longitude()[selection - 1];\r\n\t\t\thbLat = gc.latitude()[selection - 1];\r\n\r\n\t\t\thbLoc = new Location(hbAddress, hbLat, hbLong);\r\n\t\t\thbCopy = new Location(hbAddress, hbLat, hbLong); //Copy homebase location (used when implementing shortest path algorithm)\r\n\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Sorry, the entered address does not exist\");\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bf766c7ad4ba09f14a9d901bee246206", "score": "0.537873", "text": "boolean createTemperatureInformationForCity(City city);", "title": "" }, { "docid": "51f9d9d9aba24190678b3a8b00d9279c", "score": "0.53720325", "text": "private void storeNewLocationLocally()\r\n\t{\r\n\t\tGeoNamesGeoLocation.GeoNames gn = GeoNamesGeoLocation.cityGeographicalData\r\n\t\t\t\t.getGeoNames()\r\n\t\t\t\t.get( m_index );\r\n\t\t\r\n\t\tString cityName = UtilityMethod.toProperCase( GeoNamesGeoLocation.cityGeographicalData\r\n\t\t\t\t.getGeoNames().get( 0 ).getName() );\r\n\t\tString countryName = UtilityMethod\r\n\t\t\t\t.toProperCase( gn.getCountryName() );\r\n\t\tString countryCode = gn.getCountryCode().toUpperCase(); \r\n\t\tString regionName = UtilityMethod\r\n\t\t\t\t.toProperCase( gn.getAdminName1() );\r\n\t\t\r\n\t\tString regionCode = null;\r\n\t\tregionCode = gn.getAdminCodes1().getISO() != null ?\r\n\t\t\t\tgn.getAdminCodes1().getISO().toUpperCase() :\r\n\t\t\t\t\tnull;\r\n\t\t\r\n\t\tFloat Latitude = gn.getLatitude();\r\n\t\tFloat Longitude = gn.getLongitude();\t\r\n\r\n\t\tCityData cityData = new CityData( cityName, countryName, countryCode, \r\n\t\t\t\tregionName, regionCode,\tLatitude, Longitude );\r\n\t\t\r\n\t\tString currentCity = regionCode != null ? cityName + \", \" + regionCode : cityName + \", \" + countryName;\r\n\t\t\r\n\t\tif( !UtilityMethod.isFoundInDatabase( currentCity ) )\r\n\t\t{\r\n\t\t\tUtilityMethod.addCityToDatabase( cityName, countryName, countryCode, \r\n\t\t\t\t\tregionName, regionCode,\tLatitude, Longitude );\r\n\t\t}// end of if block\r\n\t\t\r\n\t\tif( !UtilityMethod.isFoundInJSONStorage( currentCity ) )\r\n\t\t{\r\n\t\t\tJSONHelper.exportToJSON( cityData );\r\n\t\t}// end of if block\r\n\t\t\r\n\t\tif( !UtilityMethod.isFoundInXMLStorage( currentCity ) )\r\n\t\t{\r\n\t\t\tXMLHelper.exportToXML( cityData );\r\n\t\t}// end of if block\r\n\t}", "title": "" }, { "docid": "0fbaed06d2ff3c0b6e0cb2e4e1f0de19", "score": "0.5354861", "text": "public void todayWeatherPerApiary() {\n \t \n }", "title": "" }, { "docid": "b2d1a545c4ff1267a7aa518bb48c432f", "score": "0.5350738", "text": "public void initializeLocationVariables() {\r\n //The first step, above all, is checking if the user said NO forever\r\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\r\n !ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.ACCESS_FINE_LOCATION)) {\r\n //Since the user said NOT to check for the permissiona gain, we'll have to stop relying on it.\r\n ignoreLocationPermission = true;\r\n Log.wtf(TAG, \"Location will be ignored\");\r\n }\r\n //If we have the permission OR we can still request it, we'll initialize the variables.\r\n else {\r\n Log.wtf(TAG, \"Listening to Location\");\r\n //First of all, initialize the Location Listener.\r\n //In the meantime, all it'll do is log the changes.\r\n locationListener = new LocationListener() {\r\n @Override\r\n public void onLocationChanged(Location location) {\r\n currentUserLocation = location;\r\n Log.wtf(TAG, \"Location Change - LAT:\" + location.getLatitude() + \" LONG: \" + location.getLongitude());\r\n //Here is where we'll finally get the Data for the location.\r\n //In the meantime, we'll juse use a Geocoder to determine the city and such\r\n Geocoder geocoder = new Geocoder(MainActivity.this);\r\n try {\r\n List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\r\n if (addresses != null && addresses.size() > 0) {\r\n for (Address address : addresses) {\r\n Log.wtf(TAG, address.getLocality());\r\n }\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n\r\n @Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n Log.wtf(TAG, \"Status Change: \" + String.valueOf(status));\r\n }\r\n\r\n @Override\r\n public void onProviderEnabled(String provider) {\r\n Log.wtf(TAG, \"Provider Enabled: \" + provider);\r\n }\r\n\r\n @Override\r\n public void onProviderDisabled(String provider) {\r\n Log.wtf(TAG, \"Provider Disabled: \" + provider);\r\n }\r\n };\r\n //Second, create the criteria for the Manager.\r\n //This will allow us to avoid wasting bateries or time\r\n //By specifying exactly what we want from the location Manager.\r\n locationCriteria = new Criteria();\r\n locationCriteria.setAccuracy(Criteria.ACCURACY_FINE);\r\n locationCriteria.setPowerRequirement(Criteria.POWER_LOW);\r\n locationCriteria.setAltitudeRequired(false);\r\n locationCriteria.setBearingRequired(false);\r\n locationCriteria.setSpeedRequired(false);\r\n locationCriteria.setCostAllowed(true);\r\n locationCriteria.setHorizontalAccuracy(Criteria.ACCURACY_HIGH);\r\n locationCriteria.setVerticalAccuracy(Criteria.ACCURACY_HIGH);\r\n //Third, initialize the location Manager.\r\n //For this, we'll obtain the Location service from the Context class.\r\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\r\n //Finally, initialize the looper as null.\r\n //This looper will later be passed on to the locationManager,\r\n //which will use it to produce results.\r\n locationLooper = null;\r\n Log.wtf(TAG, \"Location Data Initialized\");\r\n }\r\n }", "title": "" }, { "docid": "73a2981a0e4b61efb37743ba61891021", "score": "0.53494304", "text": "public WeatherApiResponse getWeatherData(String location) {\n Location existingLocation = locationRepository.findByLocationName(location);\n String url = WEATHER_STACK_API + \"/current\" + \"?access_key=\" + WEATHER_STACK_API_KEY + \"&query=\" + location;\n if (existingLocation == null) {\n // call api\n WeatherApiResponse apiResponse = restTemplate.getForObject(url, WeatherApiResponse.class);\n\n // create location\n ApiLocation apiLocation = apiResponse.getLocation();\n\n // convert http response to entity\n LocationRequest locationRequest = new LocationRequest();\n locationRequest.setLocationName(apiLocation.getName());\n locationRequest.setLatitude(Double.parseDouble(apiLocation.getLatitude()));\n locationRequest.setLongitude(Double.parseDouble(apiLocation.getLongitude()));\n locationRequest.setRegion(apiLocation.getRegion());\n locationRequest.setCountryName(apiLocation.getCountry());\n\n save(locationRequest);\n\n saveWeatherInfo(apiResponse);\n return apiResponse;\n } else {\n // existing location\n\n // check for date and location\n WeatherInfo foundWeatherInfo = weatherInfoRepository.findByLocationIdAndDate(existingLocation.getId(), LocalDate.now());\n if (foundWeatherInfo != null) {\n WeatherApiResponse weatherApiResponse = new WeatherApiResponse();\n ApiLocation apiLocation = new ApiLocation();\n apiLocation.setName(existingLocation.getLocationName());\n apiLocation.setCountry(existingLocation.getCountryName());\n\n weatherApiResponse.setLocation(apiLocation);\n\n Current current = new Current();\n current.setTemperature(foundWeatherInfo.getTemperature());\n current.setHumidity(foundWeatherInfo.getHumidity());\n weatherApiResponse.setCurrent(current);\n\n return weatherApiResponse;\n } else {\n WeatherApiResponse response = restTemplate.getForObject(url, WeatherApiResponse.class);\n saveWeatherInfo(response);\n return response;\n }\n }\n }", "title": "" }, { "docid": "c7520621e52c3723bf65bb7802e27833", "score": "0.5346842", "text": "public void updateConditions() {\n\n weatherTower = new WeatherTower();\n String newWeather = weatherTower.getWeather(coordinates); // this is the currentWeather algorythm\n\n switch (newWeather) {\n\n case WeatherType.SUN:\n coordinates.setLatitude(coordinates.getLatitude() + 10);\n coordinates.setHeight(coordinates.getHeight() + 2);\n message = \"Helicopter# \" + this.getName() + \"(\" + this.getId() + \"): \" + \"This is hot.\";\n System.out.println(\"message\");\n try(PrintWriter pw = new PrintWriter(new FileOutputStream(new File(\"outputFile.txt\"), true))){\n pw.println(message);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n break;\n\n case WeatherType.RAIN:\n coordinates.setLatitude(coordinates.getLatitude() + 5);\n message = \"Helicopter#\" + this.getName() + \"(\" + this.getId() + \"): \" + \"It's raining. Better watch out for lightings.\";\n System.out.println(\"message\");\n try(PrintWriter pw = new PrintWriter(new FileOutputStream(new File(\"outputFile.txt\"), true))){\n pw.println(message);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n break;\n\n\n case WeatherType.FOG:\n coordinates.setLatitude(coordinates.getLatitude() + 1);\n message = \"Helicopter#\" + this.getName() + \"(\" + this.getId() + \"): \" + \"We can't fly on this fog!\";\n System.out.println(\"message\");\n try(PrintWriter pw = new PrintWriter(new FileOutputStream(new File(\"outputFile.txt\"), true))){\n pw.println(message);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n break;\n\n case WeatherType.SNOW:\n coordinates.setHeight(coordinates.getHeight() - 12);\n message = \"Helicopter#\" + this.getName() + \"(\" + this.getId() + \"): \" + \"My rotor is going to freeze!\";\n System.out.println(\"message\");\n try(PrintWriter pw = new PrintWriter(new FileOutputStream(new File(\"outputFile.txt\"), true))){\n pw.println(message);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n break;\n\n }\n }", "title": "" }, { "docid": "a518e6762b337c6f113d27a1a0afca0b", "score": "0.5324556", "text": "private void initCitySearch()\n {\n\n cityEditText = (EditText) findViewById(R.id.cityEditText);\n cityEditText.setText(cityName);\n\n mGoogleApiClient = new GoogleApiClient\n .Builder(this)\n .addApi(Places.GEO_DATA_API)\n .addApi(Places.PLACE_DETECTION_API)\n .enableAutoManage(this, this)\n .build();\n\n findViewById(R.id.cityView).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = null;\n try {\n\n AutocompleteFilter filter = new AutocompleteFilter.Builder()\n .setCountry(\"CA\")\n .setTypeFilter(AutocompleteFilter.TYPE_FILTER_CITIES)\n .build();\n\n intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.MODE_FULLSCREEN)\n .setFilter(filter)\n .build(FilterActivity.this);\n\n startActivityForResult(intent, PLACE_AUTOCOMPLETE_REQUEST_CODE);\n\n } catch (GooglePlayServicesRepairableException e) {\n e.printStackTrace();\n } catch (GooglePlayServicesNotAvailableException e) {\n e.printStackTrace();\n }\n\n }\n });\n\n\n }", "title": "" }, { "docid": "27957831ad1f4bad458b817479d95c76", "score": "0.5315917", "text": "public static JSONObject getWeather(String cityInput, String url){\n JSONObject data = null;\n\n try {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n URL urlOpenWeatherMapAPI = new URL(url);\n HttpURLConnection connection = (HttpURLConnection) urlOpenWeatherMapAPI.openConnection();\n\n if(connection.getResponseCode() == 200){\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\n StringBuffer json = new StringBuffer(2048);\n String aux = \"\";\n while ((aux = reader.readLine()) != null)\n json.append(aux).append(\"\\n\");\n\n reader.close();\n\n data = new JSONObject(json.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n data = null;\n } finally{\n return data;\n }\n\n }", "title": "" }, { "docid": "5465dcbd49cd812098f53f314ed21df9", "score": "0.52990323", "text": "@Test\n\tpublic void testGetStartingLocationBad() {\n\t\tCitySim9000 cs9000 = new CitySim9000();\n\t\tRandom mockRand = mock(Random.class);\n\t\twhen(mockRand.nextInt(5)).thenReturn(5);\n\t\tString loc = cs9000.getStartingLocation(mockRand);\n\t\tassertEquals(loc, \"\");\n\t}", "title": "" }, { "docid": "14be403a02d386766c752553cf79cb40", "score": "0.5298694", "text": "private void getLocation() {\n if (!checkLocationPermission())\n // hentikan eksekusi kode program\n return;\n\n mMap.setMyLocationEnabled(true);\n\n // jika sudah, gunakan objek fusedLocationProviderClient untuk mendapatkan lokasi pengguna\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Mendapatkan lokasi, terkadang lokasi dapat bernilai null oleh karena itu kita buat handler nya supaya aplikasi tidak crash/force close ketika lokasi bernilai null\n lastLocation = location;\n // jika lokasi bernilai null\n if (location == null) {\n // hentikan eksekusi kode program\n return;\n }\n\n // cek apakah geocoder tersedia\n if (!Geocoder.isPresent()) {\n Toast.makeText(MapsActivity.this,\n \"Geocoder tidak tersedia\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n updateUI();\n new GetAddress().execute();\n }\n });\n }", "title": "" }, { "docid": "f9ec39ccaad7bda47b01b914c868ab9b", "score": "0.52972007", "text": "public void getLocation(){\n updateLocation();\n Log.i(LOG_TAG, \"LOCATION: \" + locationData.getLocation());\n if (locationData.getLocation()==null) {\n bottomText.setText(\"Location not found! Please allow the app to retrieve your location then click refresh.\");\n } else{\n buttonVar = 3;\n Location loc = locationData.getLocation();\n bottomText.setText(\"Location found!\\n Enjoy chatting with friends, meow!\\nLatitude:\"+loc.getLatitude()+\"\\nLongitude:\"+loc.getLongitude());\n chatButton.setText(\"Enter Chat\");\n }\n\n\n }", "title": "" }, { "docid": "fe5b50343829c8a4a436b6b5315f3904", "score": "0.52899617", "text": "public boolean getTodaysWeather(String location){\n return startService(WeatherAppConstants.ACTION_TODAYS_WEATHER, location);\n }", "title": "" }, { "docid": "b101c7934695879cec676702cfe5b488", "score": "0.5287862", "text": "public static String enterHometown() {\n System.out.println(\"Please enter your Hometown:\");\n return keyboard.next(); // Returns user input\n }", "title": "" }, { "docid": "f27b2dd7531aaa044203505485eea364", "score": "0.52877617", "text": "private static String askLocation(Scanner in, BufferedWriter log) throws IOException{\n\t\tString loc = \"\";\n\t\twhile(true){\n\t\t\tSystem.out.print(\"Location: \");\n\t\t\tloc = in.nextLine();\n\t\t\tif (!\"CA\".equals(loc) && !\"US\".equals(loc) && !\"UK\".equals(loc)) {\n\t\t\t\tSystem.out.println(\"\\n** Invalid location. Your options are \\\"CA\\\", \\\"US\\\" and \\\"UK\\\". **\\n\");\n\t\t\t\twriteToLogFile(\"Invalid location: \"+ loc + \".\", log);\n\t\t\t} else return loc;\n\t\t}\n\t}", "title": "" }, { "docid": "32348a8be0ab5778b8aa5839725c583d", "score": "0.52616394", "text": "public GymLocation(String owner, String city, String weather, int population) {\n this.owner = owner;\n this.city = city;\n this.weather = weather;\n this.population = population;\n }", "title": "" }, { "docid": "33e3bef6b5248d6cf3f5aea3517ed725", "score": "0.5257793", "text": "protected void updateUIWithLocationFound() {\n\n\t\tnew GetAstroDataTask().execute(APIs.getUSNOURLByLocation(currentLocation));\n\t\tnew GetWeatherDataTask().execute(APIs.getForecastURLByLocation(currentLocation, getResources().getConfiguration().locale.getLanguage()));\n\n\t\ttry {\n\t\t\t// get current user address\n\t\t\tGeocoder geoCoder = new Geocoder(this, Locale.getDefault());\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tList<Address> address = geoCoder.getFromLocation(currentLocation.getLatitude(), currentLocation.getLongitude(), 1);\n\t\t\tint maxLines = address.get(0).getMaxAddressLineIndex();\n\t\t\tfor (int i = 0; i < maxLines; i++) {\n\t\t\t\tString addressStr = address.get(0).getAddressLine(i);\n\t\t\t\tbuilder.append(addressStr);\n\t\t\t\tbuilder.append(\" \");\n\t\t\t}\n\t\t\tfinalAddress = builder.toString();\n\t\t\tTextView sunAddressLine = (TextView) findViewById(R.id.sunAddressLine);\n\t\t\tsunAddressLine.setText(finalAddress);\n\n\t\t\tTextView earthAddressLine = (TextView) findViewById(R.id.earthAddressLine);\n\t\t\tearthAddressLine.setText(finalAddress);\n\n\t\t\tTextView moonAddressLine = (TextView) findViewById(R.id.moonAddressLine);\n\t\t\tmoonAddressLine.setText(finalAddress);\n\t\t} catch (Exception e1) {\n\t\t}\n\t}", "title": "" }, { "docid": "41c7a183e70952d4c0a386ea2c1626c0", "score": "0.52478945", "text": "public static StringRequest getStringRequest(String city){\r\n String url = String.format(url_temp,city,key);\r\n return new StringRequest(Request.Method.GET, url,\r\n new com.android.volley.Response.Listener<String>() {\r\n @SuppressLint(\"Assert\")\r\n @Override\r\n public void onResponse(String response) {\r\n try {\r\n // load JSON response, once received.\r\n result = new JSONObject(response);\r\n weatherMain = (JSONObject) result.get(\"main\");\r\n\r\n // make sure we got the correct data and not any error.\r\n assert result.getInt(\"cod\") == 200;\r\n\r\n // extract weather information from all the information\r\n JSONArray weather = result.getJSONArray(\"weather\");\r\n weatherInfo = new JSONObject(weather.getString(0));\r\n\r\n WeatherTaskScheduler.update();\r\n\r\n } catch (JSONException e) {\r\n //error handling\r\n e.printStackTrace();\r\n }\r\n }\r\n }, new com.android.volley.Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n // error log.\r\n }\r\n });\r\n }", "title": "" }, { "docid": "1bc73097c55aae929748d1188f9af7ee", "score": "0.52476716", "text": "private void initLocation() {\n\t}", "title": "" }, { "docid": "14c6b72d9517154ea6563f21eb9e2a30", "score": "0.5244124", "text": "private void InitCity() {\n\t\tint j = 0;\n\t\tfor (int i = 0; i < mapAura.length; i++) {\n\t\t\tif (mapAura[i].getType() == 1) {\n\t\t\t\t// Log.i(\"MapLayer\", \"InitCity:\" + i);\n\t\t\t\tSetCity(i, j);\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "12514f01156d78e56df3b8b004746998", "score": "0.5236755", "text": "private void loadWeatherData() {\n showWeatherDataView();\n //start the async operation to fetch the weather data\n //the id=264371 is for Athens\n new FetchWeatherTask().execute(\"264371\");\n }", "title": "" }, { "docid": "16c5ee0906647c14050ddde62b878d15", "score": "0.5231695", "text": "public com.example.assignment.restclient.model.Location getCity(com.example.assignment.restclient.model.Location gpsLocation, GoogleAPILocation apiLocation) {\n String city;\n com.example.assignment.restclient.model.Location location = new com.example.assignment.restclient.model.Location();\n location.setLongitude(String.valueOf(gpsLocation.getLongitude()));\n location.setLatitude(String.valueOf(gpsLocation.getLatitude()));\n String locality = getLocality(mContext, apiLocation);\n String address_str = null;\n if(addressesList != null && addressesList.size() > 0) {\n for(int c=0; c < addressesList.size() ; c++){\n Address address = addressesList.get(c);\n address_str = address_str + address.getAddressLine(c);\n }\n }\n\n if (isGPSEnabled) {\n// GoogleAPILomExtras = nullcation addresses = getGeocoderAddress(context);\n\n if (apiLocation.getGeoAddress() == null || apiLocation.getGeoAddress().size() == 0) {\n\n List<GoogleAPILocation.ResultsBean> results = apiLocation.getResults();\n if (results != null)\n city = results.get(0).getAddress_components().get(2).getLong_name();\n else city = \"\";\n } else {\n\n city = apiLocation.getGeoAddress().get(0).getLocality();\n locality = apiLocation.getGeoAddress().get(0).getSubLocality();\n\n\n }\n\n if (locality == null)\n return null;\n\n location.setName(locality);\n location.setCity(city);\n location.setCitySlug(makeSlug(city.toLowerCase()));\n location.setSlug(locality.toLowerCase());\n location.setPincode(apiLocation.getGeoAddress().get(0).getPostalCode());\n location.setAddress(address_str);\n }\n return location;\n }", "title": "" }, { "docid": "7d623ab9caa1f723178517a1d34d865f", "score": "0.5226868", "text": "private void initializeVariables() {\n\n weatherDataExtractor = new WeatherDataExtractor(this);\n weatherDataExtractor.execute(weatherStationName);\n\n weatherForecastTitle = (TextView) findViewById(R.id.weatherforecast_title);\n\n future1day_title = (TextView) findViewById(R.id.weatherforecast_future1day_title);\n tempmin_future1day = (TextView) findViewById(R.id.weatherforecast_tempmin_future1day);\n tempmax_future1day = (TextView) findViewById(R.id.weatherforecast_tempmax_future1day);\n winddirection_future1day = (TextView) findViewById(R.id.weatherforecast_winddirection_future1day);\n windspeed_future1day = (TextView) findViewById(R.id.weatherforecast_windspeed_future1day);\n snow_future1day = (TextView) findViewById(R.id.weatherforecast_snow_future1day);\n relhumidity_future1day = (TextView) findViewById(R.id.weatherforecast_relhumidity_future1day);\n\n today_title = (TextView) findViewById(R.id.weatherforecast_today_title);\n tempmin_today = (TextView) findViewById(R.id.weatherforecast_tempmin_today);\n tempmax_today = (TextView) findViewById(R.id.weatherforecast_tempmax_today);\n winddirection_today = (TextView) findViewById(R.id.weatherforecast_winddirection_today);\n windspeed_today = (TextView) findViewById(R.id.weatherforecast_windspeed_today);\n snow_today = (TextView) findViewById(R.id.weatherforecast_snow_today);\n relhumidity_today = (TextView) findViewById(R.id.weatherforecast_relhumidity_today);\n\n last1day_title = (TextView) findViewById(R.id.weatherforecast_last1day_title);\n tempmin_last1day = (TextView) findViewById(R.id.weatherforecast_tempmin_last1day);\n tempmax_last1day = (TextView) findViewById(R.id.weatherforecast_tempmax_last1day);\n winddirection_last1day = (TextView) findViewById(R.id.weatherforecast_winddirection_last1day);\n windspeed_last1day = (TextView) findViewById(R.id.weatherforecast_windspeed_last1day);\n snow_last1day = (TextView) findViewById(R.id.weatherforecast_snow_last1day);\n relhumidity_last1day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last1day);\n\n last2day_title = (TextView) findViewById(R.id.weatherforecast_last2day_title);\n tempmin_last2day = (TextView) findViewById(R.id.weatherforecast_tempmin_last2day);\n tempmax_last2day = (TextView) findViewById(R.id.weatherforecast_tempmax_last2day);\n winddirection_last2day = (TextView) findViewById(R.id.weatherforecast_winddirection_last2day);\n windspeed_last2day = (TextView) findViewById(R.id.weatherforecast_windspeed_last2day);\n snow_last2day = (TextView) findViewById(R.id.weatherforecast_snow_last2day);\n relhumidity_last2day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last2day);\n\n last3day_title = (TextView) findViewById(R.id.weatherforecast_last3day_title);\n tempmin_last3day = (TextView) findViewById(R.id.weatherforecast_tempmin_last3day);\n tempmax_last3day = (TextView) findViewById(R.id.weatherforecast_tempmax_last3day);\n winddirection_last3day = (TextView) findViewById(R.id.weatherforecast_winddirection_last3day);\n windspeed_last3day = (TextView) findViewById(R.id.weatherforecast_windspeed_last3day);\n snow_last3day = (TextView) findViewById(R.id.weatherforecast_snow_last3day);\n relhumidity_last3day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last3day);\n\n last4day_title = (TextView) findViewById(R.id.weatherforecast_last4day_title);\n tempmin_last4day = (TextView) findViewById(R.id.weatherforecast_tempmin_last4day);\n tempmax_last4day = (TextView) findViewById(R.id.weatherforecast_tempmax_last4day);\n winddirection_last4day = (TextView) findViewById(R.id.weatherforecast_winddirection_last4day);\n windspeed_last4day = (TextView) findViewById(R.id.weatherforecast_windspeed_last4day);\n snow_last4day = (TextView) findViewById(R.id.weatherforecast_snow_last4day);\n relhumidity_last4day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last4day);\n\n last5day_title = (TextView) findViewById(R.id.weatherforecast_last5day_title);\n tempmin_last5day = (TextView) findViewById(R.id.weatherforecast_tempmin_last5day);\n tempmax_last5day = (TextView) findViewById(R.id.weatherforecast_tempmax_last5day);\n winddirection_last5day = (TextView) findViewById(R.id.weatherforecast_winddirection_last5day);\n windspeed_last5day = (TextView) findViewById(R.id.weatherforecast_windspeed_last5day);\n snow_last5day = (TextView) findViewById(R.id.weatherforecast_snow_last5day);\n relhumidity_last5day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last5day);\n\n last6day_title = (TextView) findViewById(R.id.weatherforecast_last6day_title);\n tempmin_last6day = (TextView) findViewById(R.id.weatherforecast_tempmin_last6day);\n tempmax_last6day = (TextView) findViewById(R.id.weatherforecast_tempmax_last6day);\n winddirection_last6day = (TextView) findViewById(R.id.weatherforecast_winddirection_last6day);\n windspeed_last6day = (TextView) findViewById(R.id.weatherforecast_windspeed_last6day);\n snow_last6day = (TextView) findViewById(R.id.weatherforecast_snow_last6day);\n relhumidity_last6day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last6day);\n\n last7day_title = (TextView) findViewById(R.id.weatherforecast_last7day_title);\n tempmin_last7day = (TextView) findViewById(R.id.weatherforecast_tempmin_last7day);\n tempmax_last7day = (TextView) findViewById(R.id.weatherforecast_tempmax_last7day);\n winddirection_last7day = (TextView) findViewById(R.id.weatherforecast_winddirection_last7day);\n windspeed_last7day = (TextView) findViewById(R.id.weatherforecast_windspeed_last7day);\n snow_last7day = (TextView) findViewById(R.id.weatherforecast_snow_last7day);\n relhumidity_last7day = (TextView) findViewById(R.id.weatherforecast_relhumidity_last7day);\n\n initializeToolbar();\n }", "title": "" }, { "docid": "a3ffb51e469af5de770414fe5d3ee8d7", "score": "0.52263653", "text": "@Override\n protected String doInBackground(String... params) {\n\n while (My_lat == 0.0) {\n\n }\n return null;\n }", "title": "" }, { "docid": "59a72a005bf153cf595ec19d707c12ce", "score": "0.52261215", "text": "public static String weather(String input){\n String url = urlParser(input);\n if (!url.contains(\"http\")){\n return url;\n }\n String ret = \"\";\n try{\n String xml = getHTML(url);\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n InputSource src = new InputSource();\n src.setCharacterStream(new StringReader(xml));\n Document doc = builder.parse(src);\n Element city = (Element) doc.getElementsByTagName(\"city\").item(0);\n Element weather = (Element) doc.getElementsByTagName(\"weather\").item(0);\n String weatherStr = weather.getAttribute(\"value\");\n ret += (\"Today's weather in \" + city.getAttribute(\"name\") + \" is \" + weatherStr + \".\\n\");\n Element temperature = (Element) doc.getElementsByTagName(\"temperature\").item(0);\n double min = Double.parseDouble(temperature.getAttribute(\"min\"));\n double max = Double.parseDouble(temperature.getAttribute(\"max\"));\n String unit = temperature.getAttribute(\"unit\");\n ret += (\"Today's temperature is from \" + min + \" to \" +\n max + \", and current temperature is \" +\n temperature.getAttribute(\"value\") + \".\\n\");\n if ((max - min >= 13 && unit.equals(\"metric\")) || (max - min >= 25 && unit.equals(\"fahrenheit\"))) {\n ret += \"The difference in temperature between day and night is big, \" +\n \"so don't forget your coat.\\n\";\n }\n if (weatherStr.contains(\"rain\")) ret += \"Please remember to bring an umbrella with you! \";\n return ret;\n }catch (Exception e){\n e.printStackTrace();\n return \"What's the weather like today? Why not go out to feel!\";\n }\n }", "title": "" }, { "docid": "583a40dac718ac5de350e8c82baff19e", "score": "0.5225173", "text": "@Override\n public void onClick(View v) {\n EditText etLocation = (EditText) findViewById(R.id.et_location);\n \n // Getting user input location\n String location = etLocation.getText().toString();\n \n if(location!=null && !location.equals(\"\")){\n new GeocoderTask().execute(location);\n }\n }", "title": "" }, { "docid": "408e6115b4a729027153085d494a9e6b", "score": "0.52010524", "text": "public void setWeatherStationCity(java.lang.String weatherStationCity) {\n this.weatherStationCity = weatherStationCity;\n }", "title": "" }, { "docid": "8040c2841f13478c72a81949e7601473", "score": "0.5198996", "text": "private void getCityInformation() {\n // API call\n\n String url = \"https://api.openweathermap.org/data/2.5/forecast?q=\" +\n location.toLowerCase() +\n \"&APPID=4a16259e4f5af2ce7fd19235af4ecdb6\";\n requestQueue = Volley.newRequestQueue(this);\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET,\n url,\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n\n for (int i = 0; i < 40; i += 8) {\n JSONArray theList = response.getJSONArray(\"list\");\n int itr = i / 8;\n\n // TEMPERATURE\n JSONObject element = theList.getJSONObject(i);\n String temperature=\"[\"+element.getJSONObject(\"main\").toString()+\"]\";\n JSONArray tempArray = new JSONArray(temperature);\n JSONObject obj = tempArray.getJSONObject(0);\n\n int tempDescription = obj.getInt(\"temp\");\n\n temp = Integer.toString((int)(tempDescription - 273.15) * 9/5 + 32);\n int tempID = getResources().getIdentifier(\"temp\" + Integer.toString(itr+1), \"id\", getPackageName());\n TextView tempText = findViewById(tempID);\n tempText.setText(String.format(\"%s%s%s\", temp, DEGREE_SYMBOL,\"F\"));\n tempText.setTextSize(25);\n\n // WEATHER\n JSONArray newArray = element.getJSONArray(\"weather\");\n JSONObject newObject = newArray.getJSONObject(0);\n String theClouds = newObject.getString(\"description\");\n\n clouds = theClouds;\n String iconType = newObject.getString(\"icon\");\n\n // Text\n int cloudsID = getResources().getIdentifier(\"clouds\" + Integer.toString(itr + 1), \"id\", getPackageName());\n TextView cloudsText = (TextView) findViewById(cloudsID);\n cloudsText.setText(clouds);\n cloudsText.setTextSize(25);\n\n // Image\n int imageID = getResources().getIdentifier(\"image\" + Integer.toString(itr + 1), \"id\", getPackageName());\n ImageView image = (ImageView) findViewById(imageID);\n String imageURL = String.format(\"%s%s%s\",\"https://openweathermap.org/img/wn/\",iconType.substring(0,2),\"d@2x.png\");\n new DownloadImageTask(image).execute(imageURL);\n\n }\n\n\n } catch (JSONException ex) {\n System.out.println(\"start stack trace\");\n ex.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {}\n }\n );\n\n requestQueue.add(jsonObjectRequest);\n }", "title": "" }, { "docid": "9c7c66557b8bcacb7322a90f6c530cff", "score": "0.51964825", "text": "public void allCities() {\n\t\tint n = map.mesh.vertices.length;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tif (names[i] == null)\n\t\t\t\tcontinue;\n\t\t\tif (names[i].startsWith(\"capital:\") || names[i].startsWith(\"city:\"))\n\t\t\t\tstartFrom(i);\n\t\t}\n\t\t\n\t\t// move outwards from those to define our territories and find trade routes\n\t\toutwards(999, true);\n\t}", "title": "" }, { "docid": "75e8045440aebcb6327a838a4553e505", "score": "0.518371", "text": "public void setWeather(String weather) {\n this.weather = weather;\n }", "title": "" }, { "docid": "5cd909ff6409cf3ee6e2d9fc0897203a", "score": "0.51762295", "text": "String getCity();", "title": "" }, { "docid": "72d1eb37876c865509c3355030efd5e5", "score": "0.5174907", "text": "public String getCityWeather(String city, Date dateTime) {\n try {\n String cityId = WEATHER_SERVICE.searchWoeIdByName(city);\n JSONObject weatherReport;\n\n if (cityId == null) {\n return \"The city you're looking for does not exist. Perhaps it's written incorrectly?\";\n } else {\n weatherReport = WEATHER_SERVICE.getReportWithWoeId(cityId, dateTime);\n }\n\n if (weatherReport == null) {\n return \"No weather reports for the specified date.\";\n } else {\n return printReport(weatherReport, city);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n return \"Connection error. Please try again later.\";\n }\n }", "title": "" }, { "docid": "055a165d77d54d9853d1fd2dccca4e9b", "score": "0.51732624", "text": "public static String prompt_City(InputStream in) {\n Scanner input = new Scanner(in);\n System.out.println(\"City: \");\n return input.nextLine();\n }", "title": "" }, { "docid": "47158320effe9d0c90cac642ac26c145", "score": "0.516635", "text": "public void getDataFromUser() {\n\t\tidx = findDay(getDay());\n\t\tif (idx == -1)\n\t\t\tJOptionPane.showMessageDialog(null, \"The day is not correct\");\n\t\telse\n\t\t{\n\t\t\ttemperature[0] = getTemperature();\n\t\t\tString answer = JOptionPane.showInputDialog(\n\t\t\t\t\t\"The current windspeed for \" + daysOfWeek[idx] + \" is \" + windSpeed[idx] + \" km/h.\\n\" +\n\t\t\t\t\t\"Do you want to set your own windspeed? Type: yes to set the new windspeed.\");\n\t\t\tif (answer.charAt(0) == 'y' || answer.charAt(0) == 'Y')\n\t\t\t\tprintFeelsLikeTemp(JOptionPane.showInputDialog(\"Enter the new windspeed\"));\n\t\t\telse\n\t\t\t\tprintFeelsLikeTemp();\n\t\t}\n\t}", "title": "" }, { "docid": "a0cff4f49c70a74c110a8d700f27be21", "score": "0.5164715", "text": "@Override\r\n public boolean isEmpty() {\r\n return locations.isEmpty();\r\n }", "title": "" }, { "docid": "15b002cb341aa1dfa37e9835a60539d5", "score": "0.5164034", "text": "boolean isSetLocationAccurate();", "title": "" }, { "docid": "919d8019899b1822509cecfac65c339c", "score": "0.51539296", "text": "public void verifyCitySelection()\n\t{\n\t\tAssert.assertEquals(getLeafTextElements().size() > 0, true, \"Random city test on weather map.\");\n\t}", "title": "" }, { "docid": "fdf1ff7c5591e874ee8adf645bbf2e76", "score": "0.5138613", "text": "Optional<String> getCity();", "title": "" }, { "docid": "0ed665b76a8cdbba576a6005d5a19ef2", "score": "0.5133563", "text": "java.lang.String getCity();", "title": "" }, { "docid": "0ed665b76a8cdbba576a6005d5a19ef2", "score": "0.5133563", "text": "java.lang.String getCity();", "title": "" }, { "docid": "0267065944423d45bf7c220a4377a0c7", "score": "0.51286733", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (gps) {\n\t\t\tlocationManager.requestLocationUpdates(provider, 400, 1000, this);\n\t\t}\n\t\tweatherAtTime(0);\n\t\tsetUpForecast();\n\t}", "title": "" }, { "docid": "6e596d7359106851d054074d6282ea6c", "score": "0.51286006", "text": "private WebElement getCityOnMap()\n\t{\n\t\treturn driver.findElement(By.xpath(\"//div[@class = 'cityText' and text() = '\" + currentCity + \"']\"));\n\t}", "title": "" }, { "docid": "7aac72b07d629b1b07e2111b0a9c7bed", "score": "0.5116888", "text": "@Override\n\tpublic WeatherDependentActivity getCurrentWeather() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "53c9a64229466182815106e5b8b0c9a6", "score": "0.51164293", "text": "public void searchForCity()\n\t{\n\t\t// Enter city name\n\t\tgetCitySearchBox().sendKeys(currentCity + Keys.ENTER);\n\t\t//citySearchBox.sendKeys(Keys.ENTER);\n\t}", "title": "" }, { "docid": "ccd0638b2d9f5c17213ed44758aee37d", "score": "0.51158255", "text": "private Geocode() {}", "title": "" }, { "docid": "56c3365c40295f4c4f26bd54e4d5378a", "score": "0.5114825", "text": "int createTemperaturesInformationForAllCities();", "title": "" }, { "docid": "8bfea0747ab8686595f118fb4e9bdb62", "score": "0.51083356", "text": "public WeatherStation(String city) throws JSONException, JAXBException, IOException, ParserConfigurationException, SAXException\n {\n yahooApi = new YahooWeatherApi(city);\n openWeatherApi = new OpenWeatherApi(city);\n observers = new ArrayList();\n }", "title": "" }, { "docid": "4e4a6f942a9c8fa91a339fd1839ddb2e", "score": "0.51075494", "text": "private void validateAndSubmitCities() {\n String cityNames = etCityNames.getText().toString();\n if (cityNames.length() > 0) {\n ArrayList<String> cities = new ArrayList<>();\n\n //Split city names based on ','\n String[] splitCities = cityNames.split(\",\");\n for (int i = 0; i < splitCities.length; i++) {\n if (splitCities[i].trim().length() > 0)\n cities.add(splitCities[i].trim());\n }\n\n if (cities.size() > 0) {\n //If the city list size created is greater than 0,\n // then check for network connection and proceed further\n if (WeatherUtility.isNetworkConnected(LandingActivity.this)) {\n callWeatherForeCastActivity(cities);\n } else {\n Toast.makeText(LandingActivity.this, getString(R.string.not_connected),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(LandingActivity.this,\n getString(R.string.enter_valid_cities), Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(LandingActivity.this,\n getString(R.string.empty_cities), Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "93fe57059eb427f8268e42c20623282d", "score": "0.51005", "text": "@Test(groups = {\"unit\"})\n public void getWeatherDetails4() {\n Response response = getThread().getWeatherApiCity(city);\n\n JsonUtils jsonUtils = new JsonUtils();\n JsonArray jsonArray = jsonUtils.getValueAsArray(response, \"forecast\");\n\n Iterator iterator = jsonArray.iterator();\n while (iterator.hasNext()) {\n JsonObject object = (JsonObject) iterator.next();\n if (object.get(\"day\").isJsonNull() ? false : object.get(\"day\").getAsString().equals(\"2\")) {\n //Assert.assertTrue(object.get(\"wind\").getAsString().equals(\"13 km/h\"));\n }\n }\n }", "title": "" }, { "docid": "e5899bc5101f41ab786b3ceee1810027", "score": "0.50973856", "text": "private void askForCity() throws JMSException {\n String textString = \"For which city do you want to hear the weather forecast?\";\n String bmldoc = \"\";\n bmldoc = bmldoc.concat(\"<bml id=\\\"b1\\\">\");\n bmldoc = bmldoc.concat(\"<speech id=\\\"s\\\">\");\n bmldoc = bmldoc.concat(\"<text><sync id=\\\"0\\\" /><sync id=\\\"1\\\" />\" + textString + \"</text>\");\n bmldoc = bmldoc.concat(\"</speech>\");\n bmldoc = bmldoc.concat(\"<face id=\\\"f0\\\" type=\\\"neutral\\\" stroke_start=\\\"s:0\\\" />\");\n bmldoc = bmldoc.concat(\"</bml>\");\n sendBML(bmldoc);\n }", "title": "" }, { "docid": "f4cdde8120801c684eedfd5931b34937", "score": "0.5082096", "text": "public String getCity() {\r\n return this.currentWeather.getCityName();\r\n }", "title": "" }, { "docid": "7d99e24ed87fa3bdcf05af27df68478d", "score": "0.5078974", "text": "private void makeGeoRequest() {\n // Define criteria for you network preferences\n Criteria criteria = new Criteria();\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setCostAllowed(true);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n // Get a provider for those criteria\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Android new API > 21 it is highly recommendable to use runtime permission\n if (null != provider)\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n\n // Request for location update for this provider\n locationManager.requestLocationUpdates(provider, MIN_TIME_TO_UPDATE_LOCATION, MIN_DISTANCE_TO_UPDATE_LOCATION, this);\n // Get last location\n location = locationManager.getLastKnownLocation(provider);\n // Calling the overriding method to change the location\n if (location != null) {\n onLocationChanged(location);\n }\n }", "title": "" }, { "docid": "0c463c9132ef4177d1c4a6cc17acb1a2", "score": "0.507206", "text": "private void updateDisplayedCities () {\n String location = (String) gui.getLocation1().getSelectedItem();\n createDisplayedData(location);\n }", "title": "" }, { "docid": "350ac65dac9c8ff69a83bd836d277984", "score": "0.5070638", "text": "public WeatherClass(String city, String key)\r\n throws IOException, JSONException {\r\n\r\n OpenWeatherMap owm = new OpenWeatherMap(key);\r\n currentWeather = owm.currentWeatherByCityName(city);\r\n\r\n }", "title": "" }, { "docid": "66943deb122443d6653aee3254ab6520", "score": "0.5066156", "text": "@GetMapping(\"/{cityname}\")\n\tpublic Weather getWeatherInfo(@PathVariable(\"cityname\") String city) {\n\t\treturn service.getWeatherForCity(city);\n\t}", "title": "" }, { "docid": "49d207232455ee95bc5f3e0f0aa31a92", "score": "0.506591", "text": "public java.lang.String getWeatherStationCity() {\n return weatherStationCity;\n }", "title": "" }, { "docid": "cb492cc8c3a35bacda0e4b278f93aa33", "score": "0.50620157", "text": "@When(\"^user does not enter city$\")\r\n\tpublic void user_does_not_enter_city() {\n\t \r\n\t}", "title": "" }, { "docid": "2d4be61ad094054271fc19ec5a11350c", "score": "0.5056731", "text": "private void setDeafultWeather()\n {\n if (!time.isNight()) {\n weatherTypes.put(\"sunny\", true);\n weatherTypes.put(\"cloudy\", false);\n }\n else {\n weatherTypes.put(\"cloudy\", true);\n weatherTypes.put(\"sunny\", false);\n }\n }", "title": "" }, { "docid": "5735f7bfd3aa7804a3e41e3079791d54", "score": "0.5055937", "text": "@Override\n public void onLocationChanged(android.location.Location loc) {\n\n\n Geocoder gcd = new Geocoder(getBaseContext(),\n Locale.getDefault());\n\n List<Address> addresses;\n try {\n addresses = gcd.getFromLocation(loc.getLatitude(), loc\n .getLongitude(), 1);\n Log.i(\"location city\", addresses.toString());\n if (addresses.size() > 0)\n\n {\n System.out.println(addresses.get(0).getLocality());\n\n }\n cityName = addresses.get(0).getLocality();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String s = longitude + \"\\n\" + latitude +\n \"\\n\\nMy Currrent City is: \" + cityName;\n Log.i(\"location is\", s);\n\n// newRequest(url + cityName);\n\n\n }", "title": "" }, { "docid": "48ae0757a7a589c04892d8c3b53d2655", "score": "0.5047993", "text": "public String getCityDefault() {\n String cityDefault = \"\";\n try {\n cityDefault = mSharedPref.getString(\"cityDefault\", \"\").replace(\"\\\"\", \"\");\n } catch (Exception err) {\n Log.d(\"Error\", \"Error: \" + err.getMessage());\n }\n return cityDefault;\n }", "title": "" } ]
13769d7b0aa909641720aa5a73f6d831
uint32 target_season_idx = 2;
[ { "docid": "75ca2205a274f32773f174eb922dd38a", "score": "0.48669782", "text": "public Builder clearTargetSeasonIdx() {\n \n targetSeasonIdx_ = 0;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "539c72a11d64562a54942dcfbd3bc578", "score": "0.7868277", "text": "int getTargetSeasonIdx();", "title": "" }, { "docid": "af199ae5021e94e7bb82f1f14cb793c3", "score": "0.6979942", "text": "public int getTargetSeasonIdx() {\n return targetSeasonIdx_;\n }", "title": "" }, { "docid": "42f2032c08a9a8cdfcaf6728b75b306f", "score": "0.6956222", "text": "int getCvcSeasonIdx();", "title": "" }, { "docid": "fef7135e1dde203d713b06df87a9c791", "score": "0.6730497", "text": "public int getTargetSeasonIdx() {\n return targetSeasonIdx_;\n }", "title": "" }, { "docid": "c232099f2e4443087d60d2a9863ec7d7", "score": "0.62872446", "text": "public Builder setTargetSeasonIdx(int value) {\n \n targetSeasonIdx_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b6a9e99b4bfcfd56c7c003934a0583de", "score": "0.62207264", "text": "int getTargetPlatformsValue(int index);", "title": "" }, { "docid": "466d8643ffa06d2e545f6a706060250e", "score": "0.5794969", "text": "public int getCvcSeasonIdx() {\n return cvcSeasonIdx_;\n }", "title": "" }, { "docid": "e89f7c7215288b2abdec43eca0f2e666", "score": "0.56645656", "text": "protected int getMonthIndexForSeason(String season) {\r\n\t\t\r\n\t\tint monthIndex = 0;\r\n\t\t\r\n\t\tif (season.equalsIgnoreCase(\"spring\")) {\r\n\t\t\tmonthIndex = 5;\r\n\t\t}\r\n\t\telse if (season.equalsIgnoreCase(\"summer\")) {\r\n\t\t\tmonthIndex = 8;\r\n\t\t}\r\n\t\telse if (season.equalsIgnoreCase(\"fall\")) {\r\n\t\t\tmonthIndex = 11;\r\n\t\t}\r\n\t\telse if (season.equalsIgnoreCase(\"winter\")) {\r\n\t\t\tmonthIndex = 2;\r\n\t\t}\r\n\t\t\r\n\t return monthIndex;\r\n\t}", "title": "" }, { "docid": "e314b22410cc8d25fa5573feb9d3b23a", "score": "0.56300175", "text": "public int getSeasonNo() {\r\n return seasonNo;\r\n }", "title": "" }, { "docid": "52c8b6fc1fcb86b3f4cccc273976f2b9", "score": "0.56195396", "text": "public int getCvcSeasonIdx() {\n return cvcSeasonIdx_;\n }", "title": "" }, { "docid": "9f6217e47f5b9857a5f5652d50f8a38f", "score": "0.5531113", "text": "public static void initSeason(int num){\n \t\tcurrentGame = new GameData(num);\n \t}", "title": "" }, { "docid": "c916b11fbc1414e23ff950b6fd0364f3", "score": "0.54631793", "text": "public void setSeason(int p) {\n\t\tseason = p;\n\t}", "title": "" }, { "docid": "00edc517a5513b059b5238b78180cbdf", "score": "0.54522985", "text": "long getLastSeasonScore();", "title": "" }, { "docid": "a978ee241e2d2fa2449494621e91a58a", "score": "0.54459506", "text": "public void reduceSeason()\n {\n this.season =- 1;\n }", "title": "" }, { "docid": "830b3eca1a20c716d3d67458d9b538b1", "score": "0.5358436", "text": "public int getSeason() {\n\t\treturn(season);\n\t}", "title": "" }, { "docid": "785a8a5910ab3a97b6fdb7cfd06b749b", "score": "0.53564364", "text": "public static int m1080e() {\n return 4;\n }", "title": "" }, { "docid": "4465315a2d8c4ea170db90f637695db0", "score": "0.53121775", "text": "public Integer getsSeasonId() {\n return sSeasonId;\n }", "title": "" }, { "docid": "dd2ed73c7b026777cce9914b8936004b", "score": "0.5289753", "text": "public Builder setCvcSeasonIdx(int value) {\n \n cvcSeasonIdx_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2e47bf63cb7a6a52df39548be8a8f920", "score": "0.5287174", "text": "public void setSeasonNo(int seasonNo) {\r\n this.seasonNo = seasonNo;\r\n }", "title": "" }, { "docid": "5b6866cbfa8425ab954b77b1a05cdf6e", "score": "0.5207964", "text": "static /* synthetic */ int m48182d(TXCHWVideoEncoder aVar) {\n int i = aVar.f34759O;\n aVar.f34759O = i + 1;\n return i;\n }", "title": "" }, { "docid": "f2d880fe6b8a1d804de5a58cd0c2a7a2", "score": "0.51911324", "text": "private void addSeason(Season season, int tvSeriesID) {\n\n\t}", "title": "" }, { "docid": "61d7d9e289eae852c735ffa385c5c357", "score": "0.51251715", "text": "private int nextHerderTarget()\n {\n return VectorTools.locationToInt(rallyPoint);\n }", "title": "" }, { "docid": "bf32344cfd103692f2479c6dc58d8b6c", "score": "0.508538", "text": "private int wpToMtsIndex(int x, int y, int z) {\n return y * dimX * dimY + z * dimX + x;\n }", "title": "" }, { "docid": "40fb7ad82f531d6d647c8a006d842741", "score": "0.5083636", "text": "int getStageNum() {\n return stageNum;\n }", "title": "" }, { "docid": "04947d9e6ba473d763d3c8e9d5b55561", "score": "0.5036434", "text": "private void m124306a(bolts.C1592h<java.lang.Integer> r7) {\n /*\n r6 = this;\n long r0 = java.lang.System.currentTimeMillis()\n long r2 = r6.f101092b\n long r0 = r0 - r2\n if (r7 == 0) goto L_0x0016\n java.lang.Object r7 = r7.mo6890e()\n java.lang.Integer r7 = (java.lang.Integer) r7\n if (r7 == 0) goto L_0x0016\n int r7 = r7.intValue()\n goto L_0x0018\n L_0x0016:\n r7 = 30\n L_0x0018:\n boolean r2 = r6.f101093c\n if (r2 != 0) goto L_0x0032\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r2 = r6.f101091a\n com.ss.android.ugc.aweme.shortvideo.cut.videoedit.VideoEditViewModel r2 = com.p280ss.android.ugc.aweme.shortvideo.cut.scene.C38916af.m124279b(r2)\n java.util.List r2 = r2.mo97721n()\n java.lang.String r3 = \"videoEditViewModel.originVideoList\"\n kotlin.jvm.internal.C7573i.m23582a(r2, r3)\n com.ss.android.ugc.aweme.shortvideo.WorkSpace.Workspace r3 = r6.f101094d\n com.ss.android.ugc.aweme.shortvideo.cut.d r7 = com.p280ss.android.ugc.aweme.shortvideo.cut.C38749e.m123749a(r2, r3, r7)\n goto L_0x004d\n L_0x0032:\n com.ss.android.ugc.aweme.shortvideo.cut.e r2 = com.p280ss.android.ugc.aweme.shortvideo.cut.C38749e.f100704a\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r3 = r6.f101091a\n com.ss.android.ugc.aweme.shortvideo.cut.videoedit.VideoEditViewModel r3 = com.p280ss.android.ugc.aweme.shortvideo.cut.scene.C38916af.m124279b(r3)\n java.util.List r3 = r3.mo97721n()\n java.lang.String r4 = \"videoEditViewModel.originVideoList\"\n kotlin.jvm.internal.C7573i.m23582a(r3, r4)\n com.ss.android.ugc.aweme.shortvideo.WorkSpace.Workspace r4 = r6.f101094d\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r5 = r6.f101091a\n float r5 = r5.f101071d\n com.ss.android.ugc.aweme.shortvideo.cut.d r7 = r2.mo96833a(r3, r4, r7, r5)\n L_0x004d:\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r2 = r6.f101091a\n com.ss.android.ugc.aweme.shortvideo.a.b r2 = r2.f101074g\n if (r2 == 0) goto L_0x0057\n r3 = 1\n r2.mo38845f(r3)\n L_0x0057:\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r2 = r6.f101091a\n com.ss.android.ugc.aweme.shortvideo.a.b r2 = r2.f101074g\n if (r2 == 0) goto L_0x0061\n r3 = -1\n r2.mo38829c(r3)\n L_0x0061:\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r2 = r6.f101091a\n android.ss.com.vboost.Status r3 = android.p013ss.com.vboost.Status.BEGIN\n r2.mo97207a(r3)\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af r2 = r6.f101091a\n com.ss.android.ugc.aweme.shortvideo.cut.stickingpoint.k r2 = r2.f101079l\n com.ss.android.ugc.aweme.shortvideo.cut.scene.af$c$1 r3 = new com.ss.android.ugc.aweme.shortvideo.cut.scene.af$c$1\n r3.<init>(r6, r0, r7)\n com.ss.android.vesdk.VEListener$k r3 = (com.p280ss.android.vesdk.VEListener.C45215k) r3\n r2.mo97517a(r7, r3)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.shortvideo.cut.scene.C38916af.C38919c.m124306a(bolts.h):void\");\n }", "title": "" }, { "docid": "0e84b73f35235f29ec5b608fbce28111", "score": "0.5010157", "text": "public static SongNumber get(int value) {\r\n\t\tswitch (value) {\r\n\t\t\tcase SONG_01_VALUE: return SONG_01;\r\n\t\t\tcase SONG_02_VALUE: return SONG_02;\r\n\t\t\tcase SONG_03_VALUE: return SONG_03;\r\n\t\t\tcase SONG_04_VALUE: return SONG_04;\r\n\t\t\tcase SONG_05_VALUE: return SONG_05;\r\n\t\t\tcase SONG_06_VALUE: return SONG_06;\r\n\t\t\tcase SONG_07_VALUE: return SONG_07;\r\n\t\t\tcase SONG_08_VALUE: return SONG_08;\r\n\t\t\tcase SONG_09_VALUE: return SONG_09;\r\n\t\t\tcase SONG_10_VALUE: return SONG_10;\r\n\t\t\tcase SONG_11_VALUE: return SONG_11;\r\n\t\t\tcase SONG_12_VALUE: return SONG_12;\r\n\t\t\tcase SONG_13_VALUE: return SONG_13;\r\n\t\t\tcase SONG_14_VALUE: return SONG_14;\r\n\t\t\tcase SONG_15_VALUE: return SONG_15;\r\n\t\t\tcase SONG_16_VALUE: return SONG_16;\r\n\t\t\tcase SONG_17_VALUE: return SONG_17;\r\n\t\t\tcase SONG_18_VALUE: return SONG_18;\r\n\t\t\tcase SONG_19_VALUE: return SONG_19;\r\n\t\t\tcase SONG_20_VALUE: return SONG_20;\r\n\t\t\tcase SONG_21_VALUE: return SONG_21;\r\n\t\t\tcase SONG_22_VALUE: return SONG_22;\r\n\t\t\tcase SONG_23_VALUE: return SONG_23;\r\n\t\t\tcase SONG_24_VALUE: return SONG_24;\r\n\t\t\tcase SONG_25_VALUE: return SONG_25;\r\n\t\t\tcase SONG_26_VALUE: return SONG_26;\r\n\t\t\tcase SONG_27_VALUE: return SONG_27;\r\n\t\t\tcase SONG_28_VALUE: return SONG_28;\r\n\t\t\tcase SONG_29_VALUE: return SONG_29;\r\n\t\t\tcase SONG_30_VALUE: return SONG_30;\r\n\t\t\tcase SONG_31_VALUE: return SONG_31;\r\n\t\t\tcase SONG_32_VALUE: return SONG_32;\r\n\t\t\tcase SONG_33_VALUE: return SONG_33;\r\n\t\t\tcase SONG_34_VALUE: return SONG_34;\r\n\t\t\tcase SONG_35_VALUE: return SONG_35;\r\n\t\t\tcase SONG_36_VALUE: return SONG_36;\r\n\t\t\tcase SONG_37_VALUE: return SONG_37;\r\n\t\t\tcase SONG_38_VALUE: return SONG_38;\r\n\t\t\tcase SONG_39_VALUE: return SONG_39;\r\n\t\t\tcase SONG_40_VALUE: return SONG_40;\r\n\t\t\tcase SONG_41_VALUE: return SONG_41;\r\n\t\t\tcase SONG_42_VALUE: return SONG_42;\r\n\t\t\tcase SONG_43_VALUE: return SONG_43;\r\n\t\t\tcase SONG_44_VALUE: return SONG_44;\r\n\t\t\tcase SONG_45_VALUE: return SONG_45;\r\n\t\t\tcase SONG_46_VALUE: return SONG_46;\r\n\t\t\tcase SONG_47_VALUE: return SONG_47;\r\n\t\t\tcase SONG_48_VALUE: return SONG_48;\r\n\t\t\tcase SONG_49_VALUE: return SONG_49;\r\n\t\t\tcase SONG_50_VALUE: return SONG_50;\r\n\t\t\tcase SONG_51_VALUE: return SONG_51;\r\n\t\t\tcase SONG_52_VALUE: return SONG_52;\r\n\t\t\tcase SONG_53_VALUE: return SONG_53;\r\n\t\t\tcase SONG_54_VALUE: return SONG_54;\r\n\t\t\tcase SONG_55_VALUE: return SONG_55;\r\n\t\t\tcase SONG_56_VALUE: return SONG_56;\r\n\t\t\tcase SONG_57_VALUE: return SONG_57;\r\n\t\t\tcase SONG_58_VALUE: return SONG_58;\r\n\t\t\tcase SONG_59_VALUE: return SONG_59;\r\n\t\t\tcase SONG_60_VALUE: return SONG_60;\r\n\t\t\tcase SONG_61_VALUE: return SONG_61;\r\n\t\t\tcase SONG_62_VALUE: return SONG_62;\r\n\t\t\tcase SONG_63_VALUE: return SONG_63;\r\n\t\t\tcase SONG_64_VALUE: return SONG_64;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "2542722b2bf489518af4a79eb1451546", "score": "0.49974352", "text": "public void setSeason(String season) {\n this.season = season;\n }", "title": "" }, { "docid": "ad753fd281792ac67d7a30edaf69ff54", "score": "0.49924153", "text": "public int gameStageLogicAndFlow();", "title": "" }, { "docid": "92d2f4d385aeebfdb64ef5048719bcc4", "score": "0.49733412", "text": "public tvShows() {\n\t\tseason = 0;\n\t}", "title": "" }, { "docid": "7fcc8abeb72adb91eed23144d310e10a", "score": "0.49573243", "text": "protected int getStage(Player player) {\n\t\treturn player.quest.stage[index()];\n\t}", "title": "" }, { "docid": "d63dff1e33c1f96b454a6390c6ef852f", "score": "0.49498656", "text": "private void initializeBoardIndex() {\n\r\n\t\tfor (rank = 0; rank < 9; rank++) {\r\n\t\t\tfor (file = 0; file < 9; file++) {\r\n\t\t\t\tBOARDINDEX[file][rank] = (rank - 1) * 8 + file - 1;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9fa648f81e89cb16ffb0d2b3f943c889", "score": "0.4927698", "text": "private int m709i() {\n return -1;\n }", "title": "" }, { "docid": "f27a58fe37568d2e11d860e4f034b02c", "score": "0.4901218", "text": "public static final long getWurmId(String name) {\n/* 2006 */ for (PlayerState pState : playerStatus.values()) {\n/* */ \n/* 2008 */ if (pState.getPlayerName().equalsIgnoreCase(name))\n/* */ {\n/* 2010 */ return pState.getPlayerId();\n/* */ }\n/* */ } \n/* 2013 */ return -10L;\n/* */ }", "title": "" }, { "docid": "ee5915889347302e37f83ad16371c914", "score": "0.489647", "text": "@Override\n public int getShinyStoneEvolutionId() {\n return PokemonId.TOGEKISS.getValue();\n }", "title": "" }, { "docid": "30a6656ecea2ebb61f8c464887fad7ed", "score": "0.48842603", "text": "public StartNewSeason() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "741152007cb5661c97ea5b640f0c4f3d", "score": "0.48665082", "text": "int getMathSourceBIndex();", "title": "" }, { "docid": "f23f06edd116b955b76590d956c69a05", "score": "0.48638222", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(season(12,11));\n\t\tSystem.out.println(season(12,31));\n\t\tSystem.out.println(season(7,21));\n\t\tSystem.out.println(season(5,19));\n\t\tSystem.out.println(season(13,21));\n\t\tSystem.out.println(season(3,32));\n\t}", "title": "" }, { "docid": "b35841590a09fbf54b1ac7edada39bb0", "score": "0.4852154", "text": "int mo1912i();", "title": "" }, { "docid": "1c0f21c8d19111fcba0cc07e228d0913", "score": "0.48480403", "text": "@Test\n public void testStep23SetCurrentPosition() {\n System.out.println(\"testStep23SetCurrentPosition\");\n yearStat.setCurrentPosition(CURRENT_POSITION);\n }", "title": "" }, { "docid": "e0cccf79070328ae4d65216d8833da13", "score": "0.48229903", "text": "private int m124311a() {\n List<VideoSegment> n = C38916af.m124279b(this.f101110a).mo97721n();\n int i = 0;\n if (n != null) {\n if (!(!n.isEmpty())) {\n n = null;\n }\n if (n != null) {\n for (VideoSegment videoSegment : n) {\n if (videoSegment != null && !videoSegment.f100768j && videoSegment.mo96902c() > i) {\n i = videoSegment.mo96902c();\n }\n }\n }\n }\n if (51 <= i && 74 >= i) {\n return i / 2;\n }\n if (i >= 75) {\n return i / 3;\n }\n return i;\n }", "title": "" }, { "docid": "ddb182e13e37286303d775298e20aed4", "score": "0.48209706", "text": "protected abstract int getTargetFloor();", "title": "" }, { "docid": "1be4047b2e9f7689431ea1db926f0abe", "score": "0.4817941", "text": "public short getIndex();", "title": "" }, { "docid": "3fa094c0395637f7697777411eaf0d9a", "score": "0.48097897", "text": "private int m128278a() {\n List<MediaModel> list = this.f104325b;\n if (list == null) {\n C7573i.m23580a();\n }\n for (MediaModel mediaModel : list) {\n if (mediaModel.f88158d == 4) {\n return C40121ab.m128258a(mediaModel.f88156b);\n }\n }\n return -1;\n }", "title": "" }, { "docid": "b35e1f3c2f6e2c4d42b76b72e1333ef4", "score": "0.48074076", "text": "public String getSeason() {\n return season;\n }", "title": "" }, { "docid": "7c018f6d28687adf1c0b9fbbae0f6842", "score": "0.48051995", "text": "public abstract int getSwitchIndex();", "title": "" }, { "docid": "b92f076bfb42890515e3df259e8722a5", "score": "0.47906882", "text": "private int generateTargetNumber()\n {\n return rand.nextInt( 900 ) + 100;\n }", "title": "" }, { "docid": "50e3e28645aa33e4a82484403198b8d6", "score": "0.47836083", "text": "private int row(int r){\r\n int pixelNumber = ((r-1)*(int)(space.Space.height/16))+20;\r\n return pixelNumber;\r\n}", "title": "" }, { "docid": "3925c409d818bdb70e48ae88ef9c1022", "score": "0.47820696", "text": "public int getSceneBase() {\n // bitwise 0 0 X\n int base = json_get_int(\"formatSettings\");\n int answer = base & 4;\n return (answer == 4) ? 1 : 0;\n }", "title": "" }, { "docid": "05282b47ce14baa1dcfe4d0952e84c03", "score": "0.47803834", "text": "private static int getInversionIndex(ProbEqkSource source) {\n\t\tString srcName = source.getName();\n//\t\tSystem.out.println(srcName);\n\t\treturn Integer.parseInt(srcName.substring(srcName.indexOf(\"#\")+1, srcName.indexOf(\";\")));\n\t}", "title": "" }, { "docid": "e96576558b7ad0e300029a503864782f", "score": "0.478014", "text": "long getSeed(int index);", "title": "" }, { "docid": "367bf3f241170422d98bd962c39a7deb", "score": "0.4767888", "text": "boolean mo8816a(C1938h c1938h, int i);", "title": "" }, { "docid": "d1a3b1ded3739c8fd8be00096083489c", "score": "0.47665137", "text": "int getMathSourceAIndex();", "title": "" }, { "docid": "1a8f47a12f74ba3b3582b50da06db67c", "score": "0.4764735", "text": "void mo17603i1(Ranking ranking, Ranking ranking2, Ranking ranking3);", "title": "" }, { "docid": "6d09fe66ed47d2e849503763538e350c", "score": "0.47578102", "text": "int getCurrentTileIndex();", "title": "" }, { "docid": "6928eb64001319b6972840f5e9e3aaaa", "score": "0.47541603", "text": "private int getWheelResult() {\r\n\t\treturn rgen.nextInt(1, NUM_SYMBOLS);\r\n\t}", "title": "" }, { "docid": "206b5417379658e6c3cd9766c5fc9484", "score": "0.47479832", "text": "@Test\n public void testStep18SetRankIndicator() {\n System.out.println(\"testStep18SetRankIndicator\");\n yearStat.setRankIndicator(RANK_INDICATOR);\n }", "title": "" }, { "docid": "2daef402a185fb55bad0efc6a51f21c7", "score": "0.47349378", "text": "private static int m13625zS(int i) {\n switch (i) {\n case 0:\n return 0;\n case 90001:\n case 90002:\n case 90003:\n case 90004:\n case 90006:\n case 90007:\n case 90011:\n return 2;\n case 90008:\n case 90009:\n case 90010:\n return 3;\n default:\n return -1;\n }\n }", "title": "" }, { "docid": "5dc6d0199ce9f831b99f0e1bf595d53e", "score": "0.4723971", "text": "public int method_2019() {\r\n return this.field_1781;\r\n }", "title": "" }, { "docid": "ae02cd817c77651e31259d1d1be60941", "score": "0.47226462", "text": "@Test\n public void testStep52GetRankIndicator() {\n System.out.println(\"testStep52GetRankIndicator\");\n assertEquals(RANK_INDICATOR, yearStat.getRankIndicator());\n }", "title": "" }, { "docid": "1346c42e21849b65dd52225ac918d3e8", "score": "0.47131717", "text": "public int mo2305a() {\n return 2;\n }", "title": "" }, { "docid": "25a1b135129a183eb73b5331df91afa2", "score": "0.47017395", "text": "public native int nativeGetSkyToneSIndex();", "title": "" }, { "docid": "2b1c147ed1b2d9bb1dec39cec91902b4", "score": "0.46924964", "text": "static /* synthetic */ int m895b(AutoViewPageTracker kVar) {\n int i = kVar.f857n;\n kVar.f857n = i - 1;\n return i;\n }", "title": "" }, { "docid": "12f835b17ce162900a25d14c9d53d285", "score": "0.4691936", "text": "public int getSecondTargetResId() {\n return 0;\n }", "title": "" }, { "docid": "bf3692aa991318f64bf591cd5ce5451f", "score": "0.46868727", "text": "private int m17539h() {\n return this.f14373j.ordinal();\n }", "title": "" }, { "docid": "1becb3916c1daac350fe717a94b0c75c", "score": "0.46837974", "text": "static /* synthetic */ int m903e(AutoViewPageTracker kVar) {\n int i = kVar.f858o;\n kVar.f858o = i + 1;\n return i;\n }", "title": "" }, { "docid": "e868b2d1e45d42349f39805580db0c61", "score": "0.46828336", "text": "public long getLastSeasonScore() {\n return lastSeasonScore_;\n }", "title": "" }, { "docid": "4eb1e7bd465ce968911f456c9ae4d8ae", "score": "0.46808794", "text": "protected int method_4163(class_792 var1) {\r\n return 1 + this.field_2990.field_1819.nextInt(3);\r\n }", "title": "" }, { "docid": "d2d70b317deb02666e88c9253c61fbb9", "score": "0.46808273", "text": "private Position findTrainingPosition() {\n // TODO : improve that !\n Building HQ = getHQ();\n if (HQ.p.x == 0) {\n return new Position(0, 1);\n }\n return new Position(11, 10);\n }", "title": "" }, { "docid": "a5f6896780f71b1e2dceb8dfa69c808b", "score": "0.4672706", "text": "int[] Flujo220V();", "title": "" }, { "docid": "352900121764fd015e429c965fec6141", "score": "0.46650538", "text": "int mo33065b(int i);", "title": "" }, { "docid": "76bccb4df94d32588a19ab04a5e97a4e", "score": "0.46574885", "text": "private int m3580a(int i) {\n List<int[]> list = this.f3698n;\n if (list != null && !list.isEmpty()) {\n try {\n Range[] rangeArr = (Range[]) this.f3687a.getCameraCharacteristics(String.valueOf(this.f3689e)).get(CameraCharacteristics.CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES);\n int a = m3582a(i, this.f3698n);\n return a == -1 ? m3585a(this.f3698n) : a;\n } catch (CameraAccessException unused) {\n }\n }\n return -1;\n }", "title": "" }, { "docid": "e965fe613e0a87c1407163b09481b509", "score": "0.4657394", "text": "public native int nativeGetSkinToneSIndex();", "title": "" }, { "docid": "b5dd738538aa9daf0b60b7c986c042da", "score": "0.46535492", "text": "int getPlayerMp();", "title": "" }, { "docid": "c4ee539e852a3aead7bfdf724c22ce44", "score": "0.4651205", "text": "private void addSeasons(Context context, int year) {\n final Calendar spring = seasons.getCalendar(Seasons.SEASON.SPRING, year);\n if (spring != null) {\n add(new FixedEvent(spring, context.getString(R.string.spring), true), false);\n }\n final Calendar summer = seasons.getCalendar(Seasons.SEASON.SUMMER, year);\n if (summer != null) {\n add(new FixedEvent(summer, context.getString(R.string.summer), true), false);\n }\n final Calendar autumn = seasons.getCalendar(Seasons.SEASON.AUTUMN, year);\n if (autumn != null) {\n add(new FixedEvent(autumn, context.getString(R.string.autumn), true), false);\n }\n final Calendar winter = seasons.getCalendar(Seasons.SEASON.WINTER, year);\n if (winter != null) {\n add(new FixedEvent(winter, context.getString(R.string.winter), true), false);\n }\n }", "title": "" }, { "docid": "0d5ed237603dc4c21285d315f3a819c2", "score": "0.46471605", "text": "public int getBestMove() {\n return 0; //testing \n }", "title": "" }, { "docid": "5603d2562e8fd261f0468d8988f25372", "score": "0.46440896", "text": "void mo8084Ao(int i);", "title": "" }, { "docid": "bbbfa98b732f43b6e9587afa2d778f21", "score": "0.46392772", "text": "public int getPlayerIndex(char player) {\n\t\treturn player == PLAYER1 ? 0 : player == PLAYER2 ? 1 : -1;\n\t}", "title": "" }, { "docid": "d9515ac519c81d8c7d6c24280d1c7bce", "score": "0.4638413", "text": "public int getPlayerScore(int index){\n return playerScore[index];\n }", "title": "" }, { "docid": "eeb6b3ac825a800f1ef889813f542ccd", "score": "0.463675", "text": "public int sequentialSearch(int target)\n {\n // put your code here\n int left = 0;\n int right = data.length;\n int index = 0;\n\n\n\n\n\n\n return -1;\n }", "title": "" }, { "docid": "f67c5afe281493180513ffbb903975a3", "score": "0.46351075", "text": "private static int m31000b(BufferedSource bufferedSource) throws IOException {\n return (bufferedSource.readByte() & 255) | (((bufferedSource.readByte() & 255) << 16) | ((bufferedSource.readByte() & 255) << 8));\n }", "title": "" }, { "docid": "3fa0aef269510f3bcc087d8facc3b390", "score": "0.46329907", "text": "public int[][] statGenerator() {\n\t\tint[][] seasonStats = new int[getSeasonsPlayed()][8];\n\n\t\tfor (int i = 0; i < seasonStats.length; i++) {\n\t\t\t// The seed to generate the stats based on random average and number of games played that season\n\t\t\tint statSeed = rand.nextInt(10) + getGamesPlayed()[i];\n\n\t\t\t// Generate the stats\n\t\t\tsetInterceptions(rand.nextInt(statSeed) / 2); // Make interception rarer by half\n\t\t\tsetSacks(rand.nextInt(statSeed));\n\t\t\tsetGroupTackles(rand.nextInt(statSeed * 2)); // Make groupTackles twice as likely\n\t\t\tsetSoloTackles(rand.nextInt(statSeed));\n\t\t\tsetForcedFumbles(rand.nextInt(statSeed));\n\t\t\tsetTouchdowns(rand.nextInt(statSeed)); // Make touchdowns rarer by a quarter\n\n\t\t\t// set the value of the generated stat to the position in seasonStats[i][j]\n\t\t\tfor (int j = 0; j < seasonStats[i].length; j++) {\n\t\t\t\t//Add a stat to to the subarray based on index.\n\t\t\t\tswitch (j) {\n\t\t\t\tcase 0:\n\t\t\t\t\tseasonStats[i][j] = getPerformanceRanking();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tseasonStats[i][j] = getInterceptions();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tseasonStats[i][j] = getSacks();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tseasonStats[i][j] = getGroupTackles();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tseasonStats[i][j] = getSoloTackles();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tseasonStats[i][j] = getTotalTackles();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tseasonStats[i][j] = getForcedFumbles();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tseasonStats[i][j] = getTouchdowns();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\n\t\t\n\t\treturn seasonStats;\n\t}", "title": "" }, { "docid": "bb4b02a28593ef0211eab0d0ca900461", "score": "0.46315768", "text": "private int getWinnerForValue(int gameResult) {\n switch (gameResult) {\n case 1: return 1;\n case 2: return 2;\n default: return -1;\n }\n }", "title": "" }, { "docid": "12b61b8c22e6b4539af93771e6ddf8c0", "score": "0.4630609", "text": "private int getStrategicPlayerChoice() {\n\t\tint column = this.getOpponentLastMove().getColumn();\n\t\tif(column == -1) return (int) (Math.random() * 7);\n\t\twhile(this.getField().isColumnFull(column)) {\n\t\t\tif(column == 7) column = 0;\n\t\t\tcolumn++;\n\t\t}\n\t\treturn column;\n\t}", "title": "" }, { "docid": "c4100ad9cfef55c6f00b096fc4c11827", "score": "0.4629181", "text": "public interface HqPlayerType {\n int EXO_PLAYER = 178;\n int IJK_PLAYER = 981;\n int UNKNOWN_PLAYER = 736;\n}", "title": "" }, { "docid": "fef1c8096b97ab7f5085e18169fc5b8d", "score": "0.4628773", "text": "protected long getSlideId() {\n\t\tlong val = random.nextInt(2147483392) + 256;\n\t\treturn val;\n\t}", "title": "" }, { "docid": "fbdba3f94261cce61770d39fb8552fc0", "score": "0.46246168", "text": "private void m131582U() {\n this.f107325k = new C40531d(this);\n this.f107323i = new C40499bk(this, this.f107334t);\n StickerModule stickerModule = new StickerModule(this, this, this, \"default\", this.f107334t.getMediaController(), this.f107334t.getEffectController(), this.f107334t.getCameraController(), new C41243ad(this), new C40997c() {\n /* renamed from: f */\n public final void mo101323f(FaceStickerBean faceStickerBean) {\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) new C40500bl(VideoRecordNewActivity.this, VideoRecordNewActivity.this.f107334t.getEffectController())));\n VideoRecordNewActivity.this.f107327m.mo100083b(false);\n }\n\n /* renamed from: g */\n public final void mo101324g(FaceStickerBean faceStickerBean) {\n if (VideoRecordNewActivity.this.f107327m.mo100087f() != 0) {\n VideoRecordNewActivity.this.f107338x.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42586v.m135307b());\n }\n VideoRecordNewActivity.this.f107327m.mo100083b(true);\n VideoRecordNewActivity.this.f107327m.mo100077a(100);\n }\n\n /* renamed from: e */\n public final void mo101322e(FaceStickerBean faceStickerBean) {\n if (C6399b.m19946v()) {\n VideoRecordNewActivity.this.f107339y = true;\n VideoRecordNewActivity.this.mo101840c(VideoRecordNewActivity.this.f107286a.f99784t);\n }\n VideoRecordNewActivity.this.f107327m.mo100083b(false);\n if (!C23536f.m77298a()) {\n VideoRecordNewActivity.this.f107269J.mo96497a(!faceStickerBean.getTags().contains(\"disable_reshape\"), true);\n VideoRecordNewActivity.this.f107271L = faceStickerBean.getTags().contains(\"disable_smooth\");\n VideoRecordNewActivity.this.f107269J.mo96503b(!VideoRecordNewActivity.this.f107271L, true);\n }\n faceStickerBean.getTags().contains(\"disable_beautify_filter\");\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) new C39945a()));\n VideoRecordNewActivity.this.f107263D.mo99341a(faceStickerBean);\n }\n\n /* renamed from: b */\n public final void mo101319b(FaceStickerBean faceStickerBean) {\n if (C6399b.m19946v()) {\n VideoRecordNewActivity.this.f107339y = true;\n VideoRecordNewActivity.this.mo101840c(VideoRecordNewActivity.this.f107286a.f99784t);\n }\n if (VideoRecordNewActivity.this.f107327m.mo100087f() != 0) {\n VideoRecordNewActivity.this.f107338x.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42586v.m135307b());\n }\n VideoRecordNewActivity.this.f107327m.mo100083b(false);\n if (!C23536f.m77298a()) {\n VideoRecordNewActivity.this.f107269J.mo96497a(false, true);\n VideoRecordNewActivity.this.f107269J.mo96503b(false, true);\n }\n VideoRecordNewActivity.this.f107271L = true;\n if (VideoRecordNewActivity.this.f107286a.f99784t && !C23536f.m77298a()) {\n VideoRecordNewActivity.this.mo101840c(false);\n VideoRecordNewActivity.this.f107286a.f99784t = false;\n }\n Point s = VideoRecordNewActivity.this.mo101863s();\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) new C38465a(faceStickerBean, VideoRecordNewActivity.this.f107334t.getEffectController()).mo96379a(s.x, s.y)));\n }\n\n /* renamed from: c */\n public final void mo101320c(FaceStickerBean faceStickerBean) {\n C42588x xVar;\n if (C6399b.m19946v()) {\n VideoRecordNewActivity.this.f107339y = true;\n VideoRecordNewActivity.this.mo101840c(VideoRecordNewActivity.this.f107286a.f99784t);\n }\n if (!VideoRecordNewActivity.this.f107286a.f99784t && !C23536f.m77298a()) {\n VideoRecordNewActivity.this.mo101840c(true);\n VideoRecordNewActivity.this.f107286a.f99784t = true;\n }\n VideoRecordNewActivity.this.f107327m.mo100083b(false);\n if (!C23536f.m77298a()) {\n VideoRecordNewActivity.this.f107269J.mo96497a(!faceStickerBean.getTags().contains(\"disable_reshape\"), true);\n VideoRecordNewActivity.this.f107269J.mo96503b(!faceStickerBean.getTags().contains(\"disable_smooth\"), true);\n }\n VideoRecordNewActivity.this.f107271L = false;\n if (VideoRecordNewActivity.this.f107337w != null) {\n if (VideoRecordNewActivity.this.f107328n == null || C40496bh.m129444b(faceStickerBean)) {\n Point s = VideoRecordNewActivity.this.mo101863s();\n if (faceStickerBean.getTypes().contains(\"TouchGes\")) {\n xVar = C42588x.m135309a((Object) new C38465a(faceStickerBean, VideoRecordNewActivity.this.f107334t.getEffectController()).mo96379a(s.x, s.y));\n } else {\n xVar = C42588x.m135309a((Object) new C39945a());\n }\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) xVar);\n } else {\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) VideoRecordNewActivity.this.f107328n.f104667b));\n }\n }\n }\n\n /* renamed from: d */\n public final void mo101321d(FaceStickerBean faceStickerBean) {\n if (faceStickerBean.getTags() != null) {\n if (C6399b.m19946v() && !C23536f.m77298a()) {\n VideoRecordNewActivity.this.f107339y = false;\n VideoRecordNewActivity.this.mo101840c(false);\n }\n VideoRecordNewActivity.this.f107327m.mo100083b(false);\n if (!C23536f.m77298a()) {\n VideoRecordNewActivity.this.f107269J.mo96497a(!faceStickerBean.getTags().contains(\"disable_reshape\"), true);\n VideoRecordNewActivity.this.f107271L = faceStickerBean.getTags().contains(\"disable_smooth\");\n VideoRecordNewActivity.this.f107269J.mo96503b(!VideoRecordNewActivity.this.f107271L, true);\n }\n faceStickerBean.getTags().contains(\"disable_beautify_filter\");\n if (VideoRecordNewActivity.this.f107328n != null) {\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) VideoRecordNewActivity.this.f107328n.f104667b));\n return;\n }\n VideoRecordNewActivity.this.f107337w.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42588x.m135309a((Object) new C39945a()));\n }\n }\n\n /* renamed from: a */\n public final void mo101318a(FaceStickerBean faceStickerBean) {\n VideoRecordNewActivity.this.f107325k.mo100601a(faceStickerBean);\n if (C40496bh.m129441a(\"camera_front\", faceStickerBean)) {\n if (VideoRecordNewActivity.this.f107327m.mo100087f() != 1) {\n VideoRecordNewActivity.this.f107338x.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42586v.m135306a());\n }\n } else if (C40496bh.m129441a(\"camera_back\", faceStickerBean) && VideoRecordNewActivity.this.f107327m.mo100087f() != 0) {\n VideoRecordNewActivity.this.f107338x.mo103594a((Object) VideoRecordNewActivity.this, (C42155av) C42586v.m135307b());\n }\n if (faceStickerBean == FaceStickerBean.NONE || !faceStickerBean.getTypes().contains(\"AR\")) {\n ((RecordToolbarViewModel) C36113b.m116288a(VideoRecordNewActivity.this).mo91871a(RecordToolbarViewModel.class)).mo107183a(true);\n } else {\n ((RecordToolbarViewModel) C36113b.m116288a(VideoRecordNewActivity.this).mo91871a(RecordToolbarViewModel.class)).mo107183a(false);\n }\n if (VideoRecordNewActivity.this.f107267H != null) {\n if (faceStickerBean != FaceStickerBean.NONE && faceStickerBean.getTypes().contains(\"AR\")) {\n if (VideoRecordNewActivity.this.f107334t != null) {\n VideoRecordNewActivity.this.f107334t.mo56224a(C38479d.m123016a(VideoRecordNewActivity.this));\n }\n if (VideoRecordNewActivity.this.f107323i != null) {\n VideoRecordNewActivity.this.f107323i.mo100549a(0, VideoRecordNewActivity.this.f107267H.mo97904b(), VideoRecordNewActivity.this, (ViewGroup) VideoRecordNewActivity.this.f107267H.f33523b);\n }\n } else if (faceStickerBean != FaceStickerBean.NONE && C40496bh.m129444b(faceStickerBean)) {\n if (VideoRecordNewActivity.this.f107334t != null) {\n VideoRecordNewActivity.this.f107334t.mo56224a(C38479d.m123016a(VideoRecordNewActivity.this));\n }\n if (VideoRecordNewActivity.this.f107323i != null) {\n VideoRecordNewActivity.this.f107323i.mo100549a(1, VideoRecordNewActivity.this.f107267H.mo97904b(), VideoRecordNewActivity.this, (ViewGroup) VideoRecordNewActivity.this.f107267H.f33523b);\n }\n } else if (VideoRecordNewActivity.this.f107323i != null) {\n VideoRecordNewActivity.this.f107323i.mo100548a();\n }\n if (faceStickerBean == FaceStickerBean.NONE || !faceStickerBean.getTypes().contains(\"StabilizationOff\")) {\n if (!VideoRecordNewActivity.this.f107327m.f104644f.f55927a) {\n VideoRecordNewActivity.this.f107327m.f104644f.mo55995b(VideoRecordNewActivity.this.f107267H.mo97961N());\n VideoRecordNewActivity.this.f107267H.mo97896J().mo103594a((Object) VideoRecordNewActivity.this.f107267H, (C42155av) new C42585u(0));\n VideoRecordNewActivity.this.f107267H.mo97963P().mo103594a((Object) VideoRecordNewActivity.this.f107267H, (C42155av) new C42585u(0));\n }\n } else if (VideoRecordNewActivity.this.f107327m.f104644f.f55927a) {\n VideoRecordNewActivity.this.f107327m.f104644f.mo55991a(VideoRecordNewActivity.this.f107267H.mo97961N());\n VideoRecordNewActivity.this.f107267H.mo97896J().mo103594a((Object) VideoRecordNewActivity.this.f107267H, (C42155av) new C42585u(0));\n VideoRecordNewActivity.this.f107267H.mo97963P().mo103594a((Object) VideoRecordNewActivity.this.f107267H, (C42155av) new C42585u(0));\n }\n VideoRecordNewActivity.this.mo101865u().mo101947a(faceStickerBean, VideoRecordNewActivity.this.f107324j.mo100314f());\n }\n }\n }, new C41290bq(this), this.f107311av, this.f107312aw);\n this.f107324j = stickerModule;\n this.f107324j.mo100280a((C40998d) new C40998d() {\n /* renamed from: a */\n public final void mo100600a() {\n VideoRecordNewActivity.this.mo101837b(false);\n }\n\n /* renamed from: b */\n public final void mo100602b() {\n VideoRecordNewActivity.this.mo101829a(false);\n }\n });\n this.f107324j.mo100278a((C40995a) new C40995a() {\n /* renamed from: a */\n public final void mo101312a() {\n VideoRecordNewActivity.this.f107323i.mo100551b();\n }\n\n /* renamed from: b */\n public final void mo101313b() {\n VideoRecordNewActivity.this.f107323i.mo100552c();\n VideoRecordNewActivity.this.mo101855o();\n }\n });\n this.f107324j.mo100274a(this.f107263D);\n this.f107324j.mo100287a(this.f107264E);\n this.f107324j.mo100269a((View.OnClickListener) new C41291br(this));\n this.f107324j.mo100271a(this.f107284Y);\n List f = getSupportFragmentManager().mo2658f();\n if (C6311g.m19574b(f)) {\n List<Fragment> a = C41578z.m132409a(f, C41292bs.f107545a);\n if (C6311g.m19574b(a)) {\n C0633q a2 = getSupportFragmentManager().mo2645a();\n for (Fragment a3 : a) {\n a2.mo2587a(a3);\n }\n a2.mo2606d();\n }\n }\n }", "title": "" }, { "docid": "68b0d536e6dd369cb620cf008fc8494f", "score": "0.46230006", "text": "int getGameId();", "title": "" }, { "docid": "68b0d536e6dd369cb620cf008fc8494f", "score": "0.46230006", "text": "int getGameId();", "title": "" }, { "docid": "31004289d55ba9858dd4b7cc2d4c58ed", "score": "0.46216813", "text": "void mo37870a(int i);", "title": "" }, { "docid": "b4436ed44abcfc936cf74c03d15d2a13", "score": "0.46207586", "text": "final int idx(int index)\r\n/* 455: */ {\r\n/* 456:469 */ return index + this.adjustment;\r\n/* 457: */ }", "title": "" }, { "docid": "fde7b24170ef80ff614f92f84f7b0467", "score": "0.46190885", "text": "protected int mo1957t() {\n return 0;\n }", "title": "" }, { "docid": "8edc7a37758fd2eb21738b2d7db934ac", "score": "0.46185812", "text": "public static void main(String[] args) {\n\t\tint num = Integer.parseInt(args[0]);\r\n\t\tString season =\"\";\r\n\t\tswitch(num) {\r\n\t\t\tcase 12: case 1: case 2:\r\n\t\t\t\tswitch(num) {\r\n\t\t\t\t\tcase 12 : System.out.println(\"초겨울\");break;\r\n\t\t\t\t\tcase 1 : System.out.println(\"젤추워\");break;\r\n\t\t\t\t\tcase 2 : System.out.println(\"추워\");break;\r\n\t\t\t\t}\r\n\t\t\tseason=\"겨울\";break;\r\n\t\t\tcase 3: case 4: case 5:\r\n\t\t\t\tif ( num == 3 || num ==4) System.out.println(\"대박\");\r\n\t\t\t\telse System.out.println(\"쪽\");\r\n\t\t\t\tseason=\"봄\";break;\r\n\t\t\tcase 6: case 7: case 8: season = \"여름\"; break;\r\n\t\t\tcase 9: case 10: case 11: season = \"가을\"; break;\r\n\t\t\tdefault : season=\"뭐야\"; break;\t\r\n\t\t}\r\n\t\tSystem.out.println(num+\"월은\"+season+\"입니다\");\r\n\r\n\t}", "title": "" }, { "docid": "f9b873adfde1bd6d001674697ff77a81", "score": "0.4611811", "text": "void setStageNum(int stageNum) {\n this.stageNum = stageNum;\n }", "title": "" }, { "docid": "f95295193efdad078fb57f4898f6cd47", "score": "0.46094325", "text": "private int chessBoardIndexToVar(int i, int j) {\n return i + j*rows;\n }", "title": "" }, { "docid": "4adddaf119fc82ed95e72c7e28169583", "score": "0.46065524", "text": "public static long getSlideLayoutOrMasterId() {\n\t\tlong val = random.nextInt(2147483647) + 2147483648l;\n\t\treturn val;\n\t}", "title": "" }, { "docid": "11351d82e20c15713a1a571fc3c6e32a", "score": "0.46016294", "text": "int getMathVoltsIndex();", "title": "" }, { "docid": "0e614bc21bed7a67a55533fae7daf666", "score": "0.45974517", "text": "int getTargetPhase();", "title": "" }, { "docid": "8bfeb38fca6304abca00f140059c1ee4", "score": "0.45973116", "text": "private static int m72412W(int i) {\n return i == 0 ? 8388661 : i;\n }", "title": "" }, { "docid": "c4306917f041b667a92bd6e1cbcac6ab", "score": "0.4591071", "text": "int mo91971g(CatalogVHData bVar);", "title": "" }, { "docid": "9d804834fe75ebf5623c1bf8802ae220", "score": "0.45909914", "text": "public void mo14328P() {\n int i = this.f9991R;\n int i2 = this.f9992S;\n int i3 = this.f9987N + i;\n int i4 = this.f9988O + i2;\n this.f9995V = i;\n this.f9996W = i2;\n this.f9997X = i3 - i;\n this.f9998Y = i4 - i2;\n }", "title": "" } ]
3afc5540ea7bd3858f7db3e1e2d71e99
/ Override the duration of all frames with the `duration` value. Animation is referenced by name. / EXPORT_API void PluginOverrideFrameDurationName(const char path, float duration);
[ { "docid": "3650d0ff8458fb84f6b7fd23f750e51b", "score": "0.881371", "text": "public void overrideFrameDurationName(String path, float duration)\n {\n wrapper.PluginOverrideFrameDurationName(path, duration);\n }", "title": "" } ]
[ { "docid": "443d4632ec417bbe54cad7cd37ebca37", "score": "0.9286327", "text": "void PluginOverrideFrameDurationName(String path, float duration);", "title": "" }, { "docid": "bb7b8cdac249923d7adb654634d2fc99", "score": "0.79440176", "text": "int PluginOverrideFrameDuration(int animationId, float duration);", "title": "" }, { "docid": "9b3e245bcc7da15e289ea2622df3fb06", "score": "0.7737927", "text": "double PluginOverrideFrameDurationD(double animationId, double duration);", "title": "" }, { "docid": "3ca8c00b142e7533a6f070a50d8cb28b", "score": "0.7158461", "text": "public int overrideFrameDuration(int animationId, float duration)\n {\n return wrapper.PluginOverrideFrameDuration(animationId, duration);\n }", "title": "" }, { "docid": "fd67101955dba2b135753810ab62d087", "score": "0.7000274", "text": "public double overrideFrameDurationD(double animationId, double duration)\n {\n return wrapper.PluginOverrideFrameDurationD(animationId, duration);\n }", "title": "" }, { "docid": "19c49f199a7a0e0be525e472f9ba98c0", "score": "0.63729256", "text": "double PluginSetCurrentFrameNameD(String path, double frameId);", "title": "" }, { "docid": "f7ff82bd4c24ddfb71a3371b8c0cc325", "score": "0.6215542", "text": "public void setDuration(int duration) {\n this.animationDuration = duration;\n }", "title": "" }, { "docid": "b9b7d83e73447859b7ec3d72dd2964e8", "score": "0.61254054", "text": "void PluginInsertDelayName(String path, int frameId, int delay);", "title": "" }, { "docid": "a6de07470fa13e523f78f269534234d0", "score": "0.6072684", "text": "void PluginMakeBlankFramesName(String path, int frameCount, float duration, int color);", "title": "" }, { "docid": "beade5a828f02b0c41cd7fbda06e9096", "score": "0.6032751", "text": "void setDuration(java.lang.String duration);", "title": "" }, { "docid": "e29b75276872ec38a0ce8c218edd6405", "score": "0.60107994", "text": "void PluginSetCurrentFrameName(String path, int frameId);", "title": "" }, { "docid": "3653b91bcd59e4b9a0bbd793b2887354", "score": "0.6004695", "text": "void PluginMakeBlankFramesRandomName(String path, int frameCount, float duration);", "title": "" }, { "docid": "146d1e9e67a6cb8828f6b8f5c22ca132", "score": "0.5970445", "text": "void setDuration(final int duration);", "title": "" }, { "docid": "7aed6be1584611412e7025529271a6e6", "score": "0.59528166", "text": "void PluginPauseAnimationName(String path);", "title": "" }, { "docid": "7bbf70a1c7bda6afb1111992822f9920", "score": "0.5943195", "text": "void PluginReduceFramesName(String path, int n);", "title": "" }, { "docid": "49af0c385024d9fe7c7e60feb26f669f", "score": "0.5921676", "text": "void PluginFadeEndFramesName(String path, int fade);", "title": "" }, { "docid": "9de29c227e99b47a27e1beb34950e58d", "score": "0.58600473", "text": "double PluginFadeEndFramesNameD(String path, double fade);", "title": "" }, { "docid": "fc7193c9cc7ca92bd4aba0354c10e69e", "score": "0.58436054", "text": "double PluginAppendAllFramesNameD(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "4e693559cbd3632ab237bde4f7177563", "score": "0.58415866", "text": "double PluginPauseAnimationNameD(String path);", "title": "" }, { "docid": "20373b1626ae3ae6862cc7ec79c4a4b7", "score": "0.5818968", "text": "double PluginMakeBlankFramesNameD(String path, double frameCount, double duration, double color);", "title": "" }, { "docid": "e72718e8d9bab78a66630f72c906cafa", "score": "0.5797237", "text": "public void makeBlankFramesRandomName(String path, int frameCount, float duration)\n {\n wrapper.PluginMakeBlankFramesRandomName(path, frameCount, duration);\n }", "title": "" }, { "docid": "48f295cd0d7f8cf9c0122ebb50d56d13", "score": "0.5792931", "text": "void PluginAppendAllFramesName(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "f29124a61641708352dcde402b6fa33d", "score": "0.5786011", "text": "double PluginPlayAnimationFrameNameD(String path, double frameId, double loop);", "title": "" }, { "docid": "bb690e5903aefe49daa597022b56207c", "score": "0.57382274", "text": "public void setDuration(int duration){\n\t\tthis.duration = duration;\n\t}", "title": "" }, { "docid": "5141e52e71a6a24049b58971ba305771", "score": "0.57370204", "text": "public void setDuration(int duration) {this.duration = duration;}", "title": "" }, { "docid": "e0def07d6d9e4d640c189f8f88913c37", "score": "0.5728062", "text": "public void changeVideoconsultationDuration(int duration, int id);", "title": "" }, { "docid": "afdccc96225f6329c998cd54de3c701e", "score": "0.5711067", "text": "@Override\n public AnimatorSet setDuration(long duration) {\n if (duration < 0) {\n throw new IllegalArgumentException(\"duration must be a value of zero or greater\");\n }\n mDependencyDirty = true;\n // Just record the value for now - it will be used later when the AnimatorSet starts\n mDuration = duration;\n return this;\n }", "title": "" }, { "docid": "c6e6bbe43151df061538444891a2e0a6", "score": "0.5704876", "text": "public void makeBlankFramesName(String path, int frameCount, float duration, int color)\n {\n wrapper.PluginMakeBlankFramesName(path, frameCount, duration, color);\n }", "title": "" }, { "docid": "111cb6261fd1ec2cab02d7da98600618", "score": "0.5695277", "text": "double PluginInsertDelayNameD(String path, double frameId, double delay);", "title": "" }, { "docid": "6b65d5c85059005c361969751889ee51", "score": "0.5690187", "text": "public void setDuration(int duration) {\n/* 48 */ this.duration = duration;\n/* */ }", "title": "" }, { "docid": "4e51c257279697b550cdf1ebea20a4b8", "score": "0.56772685", "text": "public void setDuration(long duration);", "title": "" }, { "docid": "b8ebbda9a9eeec30be4710225b381bed", "score": "0.56727904", "text": "double PluginMakeBlankFramesRandomNameD(String path, double frameCount, double duration);", "title": "" }, { "docid": "730d7a8c37c08a2e1f415bfab8824e4f", "score": "0.5660852", "text": "void PluginDuplicateFirstFrameName(String path, int frameCount);", "title": "" }, { "docid": "20f551881778abd64dc3cc0c7e9a9660", "score": "0.56558937", "text": "void PluginMakeBlankFramesRandomBlackAndWhiteName(String path, int frameCount, float duration);", "title": "" }, { "docid": "af41f5a1f547c4f8df7f129cb492fdf6", "score": "0.5642622", "text": "void PluginFadeStartFramesName(String path, int fade);", "title": "" }, { "docid": "710fd6f401a35b513f93570fccfbf84b", "score": "0.564169", "text": "void PluginDuplicateFramesName(String path);", "title": "" }, { "docid": "cd66637e43ca2e6c828b5d7c4dbc9d64", "score": "0.5639091", "text": "void PluginSetCurrentFrame(int animationId, int frameId);", "title": "" }, { "docid": "d8ce9d0241a7f45822aeba7a718b75a0", "score": "0.5627629", "text": "void PluginTrimStartFramesName(String path, int numberOfFrames);", "title": "" }, { "docid": "8579280d11e129b93e4c9d81af16335a", "score": "0.5622511", "text": "void PluginTrimFrameName(String path, int frameId);", "title": "" }, { "docid": "5d22643360a8d133c9b1c432e1795bf6", "score": "0.56157535", "text": "void PluginPlayAnimationFrameName(String path, int frameId, boolean loop);", "title": "" }, { "docid": "cfa384525471dfc294facbf78d73417d", "score": "0.5603798", "text": "public void setDuration(double duration) {\r\n this.duration = duration;\r\n }", "title": "" }, { "docid": "33ee3e9b45cfe60e976c714a0943954d", "score": "0.55975413", "text": "public void setDuration(int duration) {\n this.duration = duration;\n }", "title": "" }, { "docid": "33ee3e9b45cfe60e976c714a0943954d", "score": "0.55975413", "text": "public void setDuration(int duration) {\n this.duration = duration;\n }", "title": "" }, { "docid": "be4811d8eb2d87ebf8eacc08e2187f11", "score": "0.55951226", "text": "public void setDuration(Float duration) {\n\t\tthis.duration = duration;\n\t}", "title": "" }, { "docid": "727df7e64b9e75c0dcb65d26a7879c92", "score": "0.5588375", "text": "double PluginFadeStartFramesNameD(String path, double fade);", "title": "" }, { "docid": "8cea99e95db21c47f0fd30e673f2cf55", "score": "0.5576208", "text": "void PluginReverseAllFramesName(String path);", "title": "" }, { "docid": "d4433a276659ed143bbc11681118a912", "score": "0.5573883", "text": "double PluginReverseAllFramesNameD(String path);", "title": "" }, { "docid": "872ae9d56f034e8b1769902958294e56", "score": "0.5572395", "text": "void PluginSetIdleAnimationName(String path);", "title": "" }, { "docid": "95f0811b3bbd8d8b62df1bbd57e55013", "score": "0.5562963", "text": "public void setDuration(String duration) {\n\tthis.duration = duration;\n }", "title": "" }, { "docid": "e43098f34a5c47e4f66e37088e8d7f01", "score": "0.5562218", "text": "void PluginLoadAnimationName(String path);", "title": "" }, { "docid": "88cc9151e22634083f98f1e9e35d2025", "score": "0.55583894", "text": "double PluginTrimFrameNameD(String path, double frameId);", "title": "" }, { "docid": "8e018c8e29e4475fcfc51e028015dbf4", "score": "0.55529237", "text": "public void duplicateFramesName(String path)\n {\n wrapper.PluginDuplicateFramesName(path);\n }", "title": "" }, { "docid": "551cd8b7a624c888eab2891e6bd013b5", "score": "0.55471003", "text": "public double setCurrentFrameNameD(String path, double frameId)\n {\n return wrapper.PluginSetCurrentFrameNameD(path, frameId);\n }", "title": "" }, { "docid": "5547ad830da104b4ed3485f88eab9fd4", "score": "0.5533791", "text": "double PluginTrimStartFramesNameD(String path, double numberOfFrames);", "title": "" }, { "docid": "676d6845340aa4122332bf5a641989b1", "score": "0.5525931", "text": "public double makeBlankFramesRandomNameD(String path, double frameCount, double duration)\n {\n return wrapper.PluginMakeBlankFramesRandomNameD(path, frameCount, duration);\n }", "title": "" }, { "docid": "f3b8752ad2f7a4ca7fa857274bbfe988", "score": "0.55231434", "text": "public void pauseAnimationName(String path)\n {\n wrapper.PluginPauseAnimationName(path);\n }", "title": "" }, { "docid": "ec936a368bb16ebb26ad314a35a7e6e6", "score": "0.5520316", "text": "double PluginDuplicateFramesNameD(String path);", "title": "" }, { "docid": "86e1a7ac65b03b0740ded3cc03f1a424", "score": "0.5515513", "text": "double PluginPlayAnimationNameD(String path, double loop);", "title": "" }, { "docid": "071b4199ac44e688784280e079e6b340", "score": "0.5500571", "text": "void PluginInsertDelay(int animationId, int frameId, int delay);", "title": "" }, { "docid": "3eb142b9fee6492ba0cb5cd7a16d11fe", "score": "0.5497405", "text": "void PluginAddNonZeroAllKeysAllFramesName(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "51b7a5b2253aa41a0d0aa2699e03e11a", "score": "0.54894245", "text": "public abstract void setDuration(double time);", "title": "" }, { "docid": "4235bdb5d09f7c7ee8759cc0840f60b3", "score": "0.54845744", "text": "double PluginTrimEndFramesNameD(String path, double lastFrameId);", "title": "" }, { "docid": "8ed2b094ce644453c6c05fed55bfed55", "score": "0.5484468", "text": "void PluginStopAnimationName(String path);", "title": "" }, { "docid": "71efb436bf5def5f393c860225036bdb", "score": "0.54812306", "text": "public void setDuration(int newDuration) {\n\t\tthis.duration = newDuration;\n\t}", "title": "" }, { "docid": "681fc5e4348eac1c1db46110c8715286", "score": "0.5479008", "text": "void PluginTrimEndFramesName(String path, int lastFrameId);", "title": "" }, { "docid": "78181ebf3e124c97702da43aaef77882", "score": "0.5448495", "text": "double PluginStopAnimationNameD(String path);", "title": "" }, { "docid": "7959420f9a94f9677bae2494f332ec69", "score": "0.5443627", "text": "public double makeBlankFramesNameD(String path, double frameCount, double duration, double color)\n {\n return wrapper.PluginMakeBlankFramesNameD(path, frameCount, duration, color);\n }", "title": "" }, { "docid": "b9128b6185b0028af9ca4f79ff138316", "score": "0.54402125", "text": "public void makeBlankFramesRandomBlackAndWhiteName(String path, int frameCount, float duration)\n {\n wrapper.PluginMakeBlankFramesRandomBlackAndWhiteName(path, frameCount, duration);\n }", "title": "" }, { "docid": "4e2a22e09c822baf5cb87bca03ee0016", "score": "0.540216", "text": "void PluginMakeBlankFramesRGBName(String path, int frameCount, float duration, int red, int green, int blue);", "title": "" }, { "docid": "36e9e9657d4963366d04f37f34081f25", "score": "0.5382665", "text": "void PluginDuplicateMirrorFramesName(String path);", "title": "" }, { "docid": "55438293186599eb44785854ddb4d26c", "score": "0.53749293", "text": "public void setCurrentFrameName(String path, int frameId)\n {\n wrapper.PluginSetCurrentFrameName(path, frameId);\n }", "title": "" }, { "docid": "ee7fc2aa649511365a55ad8c84b0ccc8", "score": "0.53625", "text": "int PluginUpdateFrame(int animationId, int frameIndex, float duration, Pointer colors, int length);", "title": "" }, { "docid": "f71e98105a4c87a921a392b7c2dc82cc", "score": "0.5360028", "text": "void PluginReduceFrames(int animationId, int n);", "title": "" }, { "docid": "a45137a8e771890120dc0a66a9eacc49", "score": "0.535929", "text": "double PluginReduceFramesNameD(String path, double n);", "title": "" }, { "docid": "e6df7f14a52acc34b0d64546048e4c8a", "score": "0.5356367", "text": "void PluginSubtractNonZeroAllKeysAllFramesName(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "a71a4437e7e5dcf8d42aed7cc285bc85", "score": "0.5356069", "text": "double PluginMakeBlankFramesRandomBlackAndWhiteNameD(String path, double frameCount, double duration);", "title": "" }, { "docid": "91554392e2b4df9850b28a286ac14dbe", "score": "0.5343927", "text": "double PluginDuplicateFirstFrameNameD(String path, double frameCount);", "title": "" }, { "docid": "d5c18a07fd8f7cbe63a7c086e6337389", "score": "0.53410536", "text": "public void setDuration(final long duration) {\n if (durationShouldBeSetExplicitly()) {\n invalidateCachedDurationForContainerSuites(duration - (myDuration != null ? myDuration : 0));\n myDurationIsCached = true;\n myDuration = (duration >= 0) ? duration : null;\n return;\n }\n else {\n invalidateCachedDurationForContainerSuites(-1);\n }\n\n // Not allow to directly set duration for suites.\n // It should be the sum of children. This requirement is only\n // for safety of current model and may be changed\n LOG.warn(\"Unsupported operation\");\n }", "title": "" }, { "docid": "1ebd5b347d8d33b92325841d6c54200d", "score": "0.53392583", "text": "void PluginPlayAnimationName(String path, boolean loop);", "title": "" }, { "docid": "9c15a19b8e637bb245df52a701b7dd95", "score": "0.5337024", "text": "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "title": "" }, { "docid": "61efa8cd8ed7b0408a0d4618fec13e2f", "score": "0.5302248", "text": "void PluginPreviewFrameName(String path, int frameIndex);", "title": "" }, { "docid": "d6308a117b68ce138514238273191a95", "score": "0.53001267", "text": "public void reduceFramesName(String path, int n)\n {\n wrapper.PluginReduceFramesName(path, n);\n }", "title": "" }, { "docid": "93eaa3ba4defe0cc0499c40d5f25b734", "score": "0.5298798", "text": "public void reverseAllFramesName(String path)\n {\n wrapper.PluginReverseAllFramesName(path);\n }", "title": "" }, { "docid": "6db0a6b89f1831106d3aaaf6510db001", "score": "0.526991", "text": "void PluginInsertFrameName(String path, int sourceFrame, int targetFrame);", "title": "" }, { "docid": "7d31da18acfdc67c6f648f3b914e3140", "score": "0.52610326", "text": "public void setDuration(TimePeriod duration) {\r\n\t\tthis.duration = duration;\r\n\t}", "title": "" }, { "docid": "83cec1413ccb1fc406d005ad8bdedb82", "score": "0.5238297", "text": "public double duplicateFramesNameD(String path)\n {\n return wrapper.PluginDuplicateFramesNameD(path);\n }", "title": "" }, { "docid": "7bd41b6d029b35f28832656a0b270aae", "score": "0.5237593", "text": "double PluginInsertFrameNameD(String path, double sourceFrame, double targetFrame);", "title": "" }, { "docid": "9b7fc9e23741efd53bc72053a1a197a0", "score": "0.5234408", "text": "public void loadAnimationName(String path)\n {\n wrapper.PluginLoadAnimationName(path);\n }", "title": "" }, { "docid": "27c73b95b9808109cf82b0c072831ace", "score": "0.5232106", "text": "public void setDuration(long durationMillis) {\n mExecutableAnimation.setDuration((float) durationMillis / 1000.0f);\n }", "title": "" }, { "docid": "761f2ee387a38cba3adb094b38e1f716", "score": "0.5221375", "text": "public void setDuration(java.lang.Integer duration) {\n this.duration = duration;\n }", "title": "" }, { "docid": "c523a14d120444f883dfdab69bd4f3f2", "score": "0.52083474", "text": "double PluginDuplicateMirrorFramesNameD(String path);", "title": "" }, { "docid": "85ffe87622b4c47296c64d6c1c785c6e", "score": "0.52081764", "text": "@JsProperty\n\tpublic abstract void setDuration(final double value);", "title": "" }, { "docid": "fac1459ad7c4a235029f63fd28ec0767", "score": "0.52069306", "text": "void PluginCopyAnimationName(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "f770ec8680267b3aaa8e416d7ba83afc", "score": "0.52028275", "text": "public void fadeEndFramesName(String path, int fade)\n {\n wrapper.PluginFadeEndFramesName(path, fade);\n }", "title": "" }, { "docid": "fe694774d9f05819e8741cd4b5f6aaf8", "score": "0.5198444", "text": "public MovieBuilder setDuration(int duration) {\n this.duration = duration;\n return this;\n }", "title": "" }, { "docid": "59eab52649c6f92f73b292247dfbe5a0", "score": "0.51811683", "text": "void PluginUnloadAnimationName(String path);", "title": "" }, { "docid": "1e39abf95be9e3347b366853eefdb476", "score": "0.5174231", "text": "double PluginAddNonZeroAllKeysAllFramesNameD(String sourceAnimation, String targetAnimation);", "title": "" }, { "docid": "8b9e3644f5e715d192e208dcfdb5a5f7", "score": "0.5170438", "text": "public void makeBlankFramesRGBName(String path, int frameCount, float duration, int red, int green, int blue)\n {\n wrapper.PluginMakeBlankFramesRGBName(path, frameCount, duration, red, green, blue);\n }", "title": "" }, { "docid": "fcff0f80a613ada2a41eac20f836813d", "score": "0.5163304", "text": "public double pauseAnimationNameD(String path)\n {\n return wrapper.PluginPauseAnimationNameD(path);\n }", "title": "" }, { "docid": "d1edf928009e925f55c7cd1972c5d436", "score": "0.51588035", "text": "void xsetDuration(org.apache.xmlbeans.XmlString duration);", "title": "" } ]
30b0a185d60ea0b441a4dee474f51f07
Test to verify that an exception is thrown when the rule config has a null rule type.
[ { "docid": "bbcce8bfc2cef61b6e197d3bcd196abe", "score": "0.8419703", "text": "@Test\n public void should_throw_exception_when_rule_config_has_null_type() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_TYPE_NULL));\n }", "title": "" } ]
[ { "docid": "20e0958bd65abacc8059aef780807c6e", "score": "0.78046185", "text": "@Test\n public void should_throw_exception_when_rule_config_has_null_rule_id() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_RULE_ID_NULL));\n }", "title": "" }, { "docid": "da882d616a478ce5f5d7924edcaed1a9", "score": "0.75664335", "text": "@Test\n public void should_throw_exception_when_rule_config_has_null_action_condition() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_ACTION_CONDITION_NULL));\n }", "title": "" }, { "docid": "b303c295611d19d729ea899fef431230", "score": "0.75555915", "text": "@Test\n public void should_throw_exception_when_rule_config_has_empty_type() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_TYPE_EMPTY));\n }", "title": "" }, { "docid": "af512f736298f1bdb81ac62153546d06", "score": "0.7457003", "text": "@Test\n public void should_throw_exception_when_rule_config_is_empty_or_null() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(\"\"));\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(null));\n }", "title": "" }, { "docid": "d1395fc55062d2d67238144c5a0b1373", "score": "0.7075682", "text": "@Test\n public void should_throw_exception_when_rule_config_has_empty_rule_id() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_RULE_ID_EMPTY));\n }", "title": "" }, { "docid": "6350eeddb3d2c1d9a38554a6edf00f46", "score": "0.6998533", "text": "@Test\n public void should_throw_exception_when_rule_config_has_invalid_type() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_INVALID_TYPE));\n }", "title": "" }, { "docid": "c766ddc8081885032f0446758b79d089", "score": "0.6647418", "text": "@Test\n public void should_throw_exception_when_rule_config_has_empty_action_condition() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_ACTION_CONDITION_EMPTY));\n }", "title": "" }, { "docid": "190fca0e755c08896ee5f6422cd1618b", "score": "0.65632975", "text": "@Test\n void shouldRejectNullValue() {\n assertThrows(NullPointerException.class,\n () -> new PropertyTestImpl(\"my.path\", null));\n }", "title": "" }, { "docid": "eeac5c5e06c69dd367900dab2fe3554d", "score": "0.65035564", "text": "@Test\n\tpublic void testEvaluatorGameNull() {\t\n\t try {\n\t \tevaluator.evaluate(null);\n fail(\"Expected an IllegalArgumentException to be thrown\");\n } catch (IllegalArgumentException anIllegalArgumentException) {\n \tthrown.expect(IllegalArgumentException.class);\n assertEquals(\"cannot evaluate null game\", anIllegalArgumentException.getMessage());\n }\n\t}", "title": "" }, { "docid": "986e44fdcefcaa913140dbf893d1d26d", "score": "0.6437022", "text": "@Test\n public void should_throw_exception_when_rule_config_is_malformed() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG));\n }", "title": "" }, { "docid": "5f0fe5bb92195bd6e67d3316371c42d6", "score": "0.6407702", "text": "public void testNodeContainer_NullGraphNodeArgument() {\n try {\n new MockNodeContainerFailure(null, position, bound, corners);\n fail(\"Did not throw IAE with null graphNode argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "afd7660dbaea3d0d70eaa3b3ef778a70", "score": "0.630267", "text": "@Test\n void shouldRejectNullPath() {\n assertThrows(NullPointerException.class,\n () -> new PropertyTestImpl(null, (byte) 123));\n }", "title": "" }, { "docid": "41af89770a58dfb1d735a023ff0d1c87", "score": "0.6293511", "text": "public void testRejectNullProperties() {\n IllegalArgumentException ex = expectThrows(\n IllegalArgumentException.class,\n () -> Setting.simpleString(\"foo.bar\", (Property[]) null)\n );\n assertThat(ex.getMessage(), containsString(\"properties cannot be null for setting\"));\n }", "title": "" }, { "docid": "6dc50b58096e7ef38b934dcd232a1d45", "score": "0.62923324", "text": "@Test\n public void should_throw_exception_when_rule_config_has_a_error_in_conditions() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_CONDITION_ERROR));\n }", "title": "" }, { "docid": "377e7fa61755b3a809085334603f4923", "score": "0.6266949", "text": "public void testValidateClassTypeWithNull() throws Exception {\n try {\n DVHelper.validateClassType(null, \"test\");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // good\n }\n }", "title": "" }, { "docid": "4e81898eabd181c9516fed56ebf2eabb", "score": "0.62624824", "text": "public void testAddConnectionWithNull() {\n try {\n assoClassIml.addConnection(null);\n fail(\n \"IllegalArgumentException should be thrown because of the invalid parameter.\");\n } catch (IllegalArgumentException e) {\n // expected.\n }\n }", "title": "" }, { "docid": "732322a975a5da7a15e53c53f6db6659", "score": "0.6244857", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testFactoryNull() {\n ExternalScheme.of(null);\n }", "title": "" }, { "docid": "92e3de504693392324302dc07a597732", "score": "0.6203275", "text": "@Test\n\tpublic void testNoValidation() throws IOException, SAXException, XPathExpressionException, ParserConfigurationException, InvalidConfigException {\n\t\tthrown.expect(SAXException.class);\n\t\tthrown.expectMessage(\"cvc-complex-type.2.4.a: Invalid content was found starting with element 'switchfoo'. One of '{switch}' is expected\");\n\t\tConfigParser.parseConfig(\"src/test/resources/validxml_not_valid_schema.xml\");\n\t}", "title": "" }, { "docid": "6d498840fe769704a990a32909c4d86c", "score": "0.6192405", "text": "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.ScopeCorrelation.name(),\n testRule.getRuleType());\n }", "title": "" }, { "docid": "3df1d9a3ae31356efaefb3e0d5a50c65", "score": "0.6188741", "text": "public void testConstructor_NullNotificationType() {\n try {\n new Notification(2, null, 1L);\n fail(\"Should throw IllegalArgumentException for null notificationType.\");\n } catch (IllegalArgumentException e) {\n // pass\n }\n }", "title": "" }, { "docid": "0229ce48e4787b2c532ca9a2dd26c059", "score": "0.6156686", "text": "@Test\r\n public final void testDBContestDataRetrieverFailureNull() throws Exception {\r\n try {\r\n new DBContestDataRetriever(null);\r\n Assert.fail(\"IllegalArgumentException is expected since configuration is null\");\r\n } catch (IllegalArgumentException e) {\r\n // good\r\n }\r\n }", "title": "" }, { "docid": "3858fc33bd294382e9ba2d555afed30d", "score": "0.615033", "text": "public void testValidateNotNullWithNullObject() {\n try {\n DVHelper.validateNotNull(null, \"test\");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // good\n }\n }", "title": "" }, { "docid": "7d8b603a2ebee6e5f2d1dcb136e79826", "score": "0.6149337", "text": "public void testCreateInvalidResult_NullFilter() {\r\n try {\r\n ValidationResult.createInvalidResult(\"message\", null);\r\n fail(\"Should have thrown IllegalArgumentException.\");\r\n } catch (IllegalArgumentException npe) {\r\n }\r\n }", "title": "" }, { "docid": "24c8c13b3590079288445c0c39178401", "score": "0.60982054", "text": "public void testNodeContainer_NullCornersArgument() {\n try {\n new MockNodeContainerFailure(graphNode, position, bound, null);\n fail(\"Did not throw IAE with null corners argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "079bc5299e136236eb0b23969e4ecba3", "score": "0.6078133", "text": "public void testTimeoutCacheFactoryStringNPE() {\r\n try {\r\n factory = new TimeoutCacheFactory(null);\r\n fail(\"null parameter is not acceptable, should throw NullPointerException\");\r\n } catch (NullPointerException npe) {\r\n // pass\r\n } catch (Exception e) {\r\n fail(\"should throw NullPointerException\");\r\n }\r\n }", "title": "" }, { "docid": "e8ccdba69a6ab4427387b2da3e184a2e", "score": "0.60531515", "text": "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : ScopeCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "title": "" }, { "docid": "ea327d7a8bbb0526edb9b8f495954207", "score": "0.60443723", "text": "public void testAddSubmission_Null() {\r\n try {\r\n resource.addSubmission(null);\r\n fail(\"It should throw IllegalArgumentException.\");\r\n } catch (IllegalArgumentException e) {\r\n // expected.\r\n }\r\n }", "title": "" }, { "docid": "dda0ce030840a6c21c679017a2076464", "score": "0.60378337", "text": "public void testContainsSubmission_Null() {\r\n try {\r\n resource.containsSubmission(null);\r\n fail(\"It should throw IllegalArgumentException.\");\r\n } catch (IllegalArgumentException e) {\r\n // expected.\r\n }\r\n }", "title": "" }, { "docid": "9ef5704200aeb5f4c1adf6a85ca4278e", "score": "0.60350686", "text": "public void testNodeContainer_NullBoundArgument() {\n try {\n new MockNodeContainerFailure(graphNode, position, null, corners);\n fail(\"Did not throw IAE with null bound argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "e0041878bc23224e0e62fc60dc193095", "score": "0.60331035", "text": "@Test(expected = ValidationException.class)\n public void testGetNullCurrency() throws Exception {\n rateRegistry.findCurrencyRateByKey(null);\n fail(\"findCurrencyRateByKey null does not throw an exception\");\n }", "title": "" }, { "docid": "0aa523756be970122cbbc360e79521cc", "score": "0.60255903", "text": "public void testConfigGetWithNullNamespace() throws Exception {\n try {\n DVHelper.configGet(null, \"property\", \"defaultValue\");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // good\n }\n }", "title": "" }, { "docid": "92971e072d5562be703d1966655c6a8f", "score": "0.60036814", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullConfigSource() {\n final ExposureFunctions config = new ExposureFunctions(\"Exposures\", Collections.<String>emptyList(), Collections.<ExternalId, String>emptyMap());\n VALIDATOR.validate(config, VersionCorrection.LATEST, (ConfigSource) null);\n }", "title": "" }, { "docid": "6abd506ffc55a88eeb646ded4bdf83cd", "score": "0.60003054", "text": "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.IdentityAttribute.name(),\n testRule.getRuleType());\n }", "title": "" }, { "docid": "d798b4d9eb7449ca696d9c4e72391f91", "score": "0.59954727", "text": "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : IdentityAttributeRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "title": "" }, { "docid": "58c087aa0443d08bc993e9d4f1dede10", "score": "0.59896797", "text": "@Test\n public void testIsNull_Object_nok() {\n System.out.println(\"isNull\");\n Object value = \"\";\n assertThrows(IllegalArgumentException.class, () ->\n Assert.isNull(value)\n );\n }", "title": "" }, { "docid": "001f7f73a81a957529e43d7e541e0a71", "score": "0.5980153", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullConfigSource() {\n final CurveGroupConfiguration group = new CurveGroupConfiguration(0, Collections.<String, List<? extends CurveTypeConfiguration>>emptyMap());\n VALIDATOR.validate(group, VersionCorrection.LATEST, (ConventionSource) null);\n }", "title": "" }, { "docid": "2f35bb70cd55fd174e9f5235643f3b48", "score": "0.59717953", "text": "@Test\n public void should_throw_exception_when_rule_config_has_invalid_operator() {\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(MALFORMED_JSON_RULE_CONFIG_WITH_INVALID_OPERATOR));\n }", "title": "" }, { "docid": "0047f391ea90b11cc24a1e33c6e3d9e9", "score": "0.5954449", "text": "@Test\n public void testNotNull_Object_nok() {\n System.out.println(\"notNull\");\n Object value = null;\n assertThrows(IllegalArgumentException.class, () ->\n Assert.notNull(value)\n );\n }", "title": "" }, { "docid": "d1ce4c5509e878abeba8b47f1a87e025", "score": "0.5951895", "text": "@Test\n\tpublic void getNotifierFailNull() throws Exception {\n\t\tgetNotifierFail(null, new NullPointerException(\"cfg\"));\n\t}", "title": "" }, { "docid": "a83a8270c83f3d779d92f3fea8193288", "score": "0.5918162", "text": "@Test\n void should_throw_exception_during_adding_null_token() {\n assertThrows(MyException.class, () -> tokenService.addToken(null));\n }", "title": "" }, { "docid": "08fec74f38b4edcc796d5fe42dc3913b", "score": "0.59138685", "text": "@Test\n void testCreatePhysicalDataNull() {\n assertThrows(AssertionError.class, () -> new Physical_Data(null));\n }", "title": "" }, { "docid": "961b77403549a1bffebfb7820ef3960a", "score": "0.5889638", "text": "public void testAddNodeNode_NullNodeArgument() {\n try {\n test.addNode(null);\n fail(\"Did not throw IAE with null node argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "2c12db77680f874cf6e09f57cedb6e47", "score": "0.58709407", "text": "public void testNodeContainer_NullPositionArgument() {\n try {\n new MockNodeContainerFailure(graphNode, null, bound, corners);\n fail(\"Did not throw IAE with null position argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "a3e4af1b32fa687f836f263011bcd6d8", "score": "0.5866589", "text": "@Test\n @InSequence(90)\n public void test090_getServiceNullValue_Fail() {\n LOGGER.debug(LOG_PREFIX + \"test090_getServiceNullValue_Fail\");\n\n this.thrown.expect(ConstraintViolationException.class);\n\n this.zookeeperServiceRegistryProvider.getService(null);\n }", "title": "" }, { "docid": "d7424c94c8ceb7768133f35a7c860102", "score": "0.5829147", "text": "private void assertNotNull() {\n if (mActual == null) {\n failWithoutActual(simpleFact(\"the responseInfo is null\"));\n }\n }", "title": "" }, { "docid": "58d2bcaa59eb16f5c6bd017a7f06be15", "score": "0.5825592", "text": "public void testNodeContainer_NullElementInCorners1() {\n corners.add(null);\n try {\n new MockNodeContainerFailure(graphNode, position, bound, corners);\n fail(\"Did not throw IAE with null element in corners argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "ce540076034bce95b1e10a3cf276e9ec", "score": "0.58224195", "text": "@Test\n public void constructorThrowsOnNull() {\n assertThrows(IllegalArgumentException.class, () -> {\n // arrange\n // act\n Deencapsulation.newInstance(RegistrationStatusManager.class, new Class[]{ContractApiHttp.class}, (ContractApiHttp)null);\n\n // assert\n });\n }", "title": "" }, { "docid": "8a1fb683e7196d861d9a16ecbac07745", "score": "0.58068335", "text": "public void testContainConnectionWithNull() {\n try {\n assoClassIml.containsConnection(null);\n } catch (IllegalArgumentException e) {\n // expected.\n }\n }", "title": "" }, { "docid": "d7f89729bc7acef293a80a6967035572", "score": "0.58020717", "text": "public void testFireEventNull() {\r\n try {\r\n jobGroup = new JobGroup(\"group name2\", jobList);\r\n jobGroup.fireEvent(null, EventHandler.FAILED);\r\n fail(\"IllegalArgumentException should be thrown.\");\r\n } catch (IllegalArgumentException e) {\r\n // Expected exception raised\r\n }\r\n }", "title": "" }, { "docid": "f11700023952422164ea3b65c4cb1d8c", "score": "0.5791999", "text": "public void testNotNull()\n\t{\n\t\tassertNotNull(pe);\t\t\n\t}", "title": "" }, { "docid": "4bd3a14f23b50b2f13cd486ea4a1728a", "score": "0.5782231", "text": "@Test\n @InSequence(60)\n public void test060_registerNullValue_Fail() {\n LOGGER.debug(LOG_PREFIX + \"test060_registerNullValue_Fail\");\n\n this.thrown.expect(ConstraintViolationException.class);\n\n this.zookeeperServiceRegistryProvider.registerService(null);\n }", "title": "" }, { "docid": "180cfa632bb3fc46c19222a0a626770c", "score": "0.57787645", "text": "public void testCheckConfiguration_NullBillingCostDataService() {\n BaseBillingCostReportAction instance = new BillingCostReportAction();\n BillingCostAuditService billingCostAuditService = mock(BillingCostAuditService.class);\n instance.setBillingCostAuditService(billingCostAuditService);\n instance.setAction(\"action\");\n try {\n instance.checkConfiguration();\n fail(\"BillingCostActionConfigurationException expected.\");\n } catch (BillingCostActionConfigurationException e) {\n //good\n }\n }", "title": "" }, { "docid": "750f9d9fd49d2f3ef97b4e9625f51c94", "score": "0.57707983", "text": "@Test\n public void testNotNull_Object_ObjectArr_nok() {\n System.out.println(\"notNull\");\n Object value = null;\n assertThrows(IllegalArgumentException.class, () ->\n Assert.notNull(value, TEST_MESSAGE)\n );\n }", "title": "" }, { "docid": "08db934c0a4b976cf5104f9aa09e3538", "score": "0.5767499", "text": "@Test(expected=NullPointerException.class)\n\tpublic void shouldNotGreetWithNull() {\n\t\tSystem.out.println(\"ShouldNotGreet - Null\");\n\t\tg.greet(null);\n\t\t\n\t}", "title": "" }, { "docid": "5ee4e10c8c3dcde5cca00b901122e159", "score": "0.57512087", "text": "@Test\n public void should_throw_exception_when_validator_throws_validation_exception() {\n Validator validator = mock(Validator.class);\n when(validator.validate(any())).thenThrow(ValidationException.class);\n ReflectionTestUtils.setField(knowledgeBaseGenerator, \"validator\", validator);\n\n assertThrows(MalformedConfigurationException.class, () -> knowledgeBaseGenerator.generate(VALID_RULE_CONFIG_WITH_ONE_RULE));\n }", "title": "" }, { "docid": "e23fcbe7f4790cf3292a3458b1f1d2bd", "score": "0.573811", "text": "@Test\n public void create_inputNull_throwNullPointerException() {\n assertThrows(NullPointerException.class, () -> idsCatalogBuilder.create(null));\n }", "title": "" }, { "docid": "c8f44c958958ff086fa0399d74be90ff", "score": "0.5736644", "text": "@Test(timeout = 4000)\n public void test37() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation(2146921781, (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "9bdd2bbc9c49f0c051dbaaad49556d1e", "score": "0.57251424", "text": "@Test\n public void addNewLeagueNullTest() throws Exception {\n List<League> leagueListExpected = new ArrayList<>();\n Assert.assertEquals(leagueListExpected, leagueSeasonUnitEmpty.getLeagues());\n expectedException.expect(Exception.class);\n expectedException.expectMessage(\"League name can not be empty.\");\n leagueSeasonUnitEmpty.addNewLeague(null);\n\n }", "title": "" }, { "docid": "a360c6f2bf32dacd2b3297b8c75a9b8a", "score": "0.5724117", "text": "@Test\n public void testIsNull_Object_ObjectArr_nok() {\n System.out.println(\"isNull\");\n Object value = \"\";\n assertThrows(IllegalArgumentException.class, () ->\n Assert.isNull(value, TEST_MESSAGE)\n );\n }", "title": "" }, { "docid": "db020c380f0798247e3d7fb9978d78e9", "score": "0.57176393", "text": "public void testAddAssociation_Null_Null() {\n\n try {\n ca.addAssociation(null,null);\n fail(\"An exception should be thrown here.\");\n } catch (Exception ex) {\n // SUCCESS\n }\n }", "title": "" }, { "docid": "1b07d54c469d0d5bfadaa1f5931b9c59", "score": "0.5714727", "text": "protected void verifyNonNullProperties()\n throws Exception\n {\n verifyPropertyNonNull(\"onAsk\");\n verifyPropertyNonNull(\"onBid\");\n verifyPropertyNonNull(\"onCancel\");\n verifyPropertyNonNull(\"onExecutionReport\");\n verifyPropertyNonNull(\"onOther\");\n verifyPropertyNonNull(\"onTrade\");\n }", "title": "" }, { "docid": "03dc5f8b3d62c765c5e6e1c1f6dd05a0", "score": "0.5712869", "text": "@Test\n public void notExistTest() {\n assertThatThrownBy(() -> LoadSchemaUtils.datasetSchemaFromJson(Paths.get(\"dummy\")))\n .as(\"the dataset schema doesn't exist\")\n .hasMessageContaining(\"The path\")\n .hasMessageContaining(\"should be a directory\");\n }", "title": "" }, { "docid": "465a7704e638078871e1a751fca27a95", "score": "0.57120806", "text": "public void testConstructorNullElement() throws Exception {\r\n try {\r\n new PendingWinnerHandler(null);\r\n fail(\"IllegalArgumentException should be thrown.\");\r\n } catch (IllegalArgumentException e) {\r\n // fine\r\n }\r\n }", "title": "" }, { "docid": "feac98c0e7a5c1789b31a5155f1103b0", "score": "0.57065994", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullExposureFunctionsConfiguration() {\n VALIDATOR.validate(null, VersionCorrection.LATEST, EMPTY_CONFIG_SOURCE);\n }", "title": "" }, { "docid": "052bfc7249304fafe8cc7937e9c001ce", "score": "0.5704929", "text": "public void testConstructorWithNull() {\n try {\n new AssociationClassImpl(null);\n } catch (IllegalArgumentException ex) {\n // expected.\n }\n }", "title": "" }, { "docid": "944d2b7e0e2de2684f9fba0a6181adea", "score": "0.57033855", "text": "@Test\n public void testNonExistentSourceRetrieval() {\n assertThrows(PluginException.class, () -> SourceFactory.newSource(NON_EXISTENT_EMPTY_CONFIGURATION));\n }", "title": "" }, { "docid": "c80bc2effa446eb7d339cedb160a88ee", "score": "0.5683756", "text": "@Test\n\tpublic void testConstrutorCursoNulo() {\n\t\tassertThrows(NullPointerException.class, () -> new Aluno(\"vinicius\", \"44444444\", null));\n\t}", "title": "" }, { "docid": "562440bd7210aa8aa98c18c11c5ebced", "score": "0.56808776", "text": "@Test(expected = RuntimeException.class)\n public void testErrorWhenNoApiKey() {\n configureFritz(null);\n }", "title": "" }, { "docid": "0f0360efbafd4c31b743aa9775f9792b", "score": "0.5678699", "text": "public void testAddNodeStringNode_NullNodeArgument() {\n try {\n test.addNode(\"test\", null);\n fail(\"Did not throw IAE with null node argument.\");\n } catch (IllegalArgumentException e) {\n // Expected case.\n assertNotNull(\"Exception message must not be null.\", e.getMessage());\n assertNotSame(\"Exception message must not be empty string.\", \"\", e.getMessage());\n }\n }", "title": "" }, { "docid": "8f5ad7530a3d596da0db14e67eefcaef", "score": "0.56752133", "text": "public void testCreateInvalidResult_NullMessage() {\r\n try {\r\n ValidationResult.createInvalidResult(null, new EqualToFilter(\"quantity\", new Integer(12)));\r\n fail(\"Should have thrown IllegalArgumentException.\");\r\n } catch (IllegalArgumentException npe) {\r\n }\r\n }", "title": "" }, { "docid": "213c9c8056a983b3c53e2773f7707c4d", "score": "0.5673201", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.contractMsg((Contract) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "5ab13a1e0709f2fdfe64d259a99d25f0", "score": "0.5667411", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testNullCurveGroupConfiguration() {\n VALIDATOR.validate(null, VersionCorrection.LATEST, EMPTY_CONVENTION_SOURCE);\n }", "title": "" }, { "docid": "2fe339add826f3396034b7062921ba99", "score": "0.5660061", "text": "@Test\n void testNullState() throws NullPointerException {\n NullPointerException thrown = assertThrows(\n NullPointerException.class,\n () -> house.changeState(null));\n\n }", "title": "" }, { "docid": "c08d0e4ea8af81f1b9f9a141b3070520", "score": "0.5657209", "text": "@Test\n public void invalidScheduleType() throws Exception {\n schedulerConfig.withString(\"scheduleType\", \"INVALID_TYPE\");\n dailyScheduleHelper();\n }", "title": "" }, { "docid": "511a703687bb6d79d4a8919f05bfef25", "score": "0.5623837", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.fundamentalData(0, (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "title": "" }, { "docid": "f115474970226b67ef78b52788a03fe2", "score": "0.5620847", "text": "@Test\n public void addTeamToLeagueSeasonNullTest() throws Exception {\n expectedException.expect(Exception.class);\n expectedException.expectMessage(\"Parameters should not be null. Please try again\");\n leagueSeasonUnit.addTeamToLeagueSeason(null, null);\n }", "title": "" }, { "docid": "b05421a7e7b72cea432960f9f2b0db69", "score": "0.56191194", "text": "@Test\r\n public void testWithNullID() {\r\n // ARRANGE\r\n mockValidatorsWithChecks();\r\n\r\n // ACT\r\n final String label = checkRuleLabelProvider.getLabel(null);\r\n\r\n // ASSERT\r\n assertNull(label);\r\n }", "title": "" }, { "docid": "d5cd0a7fa0568ad0a372869a99b30b81", "score": "0.5612938", "text": "@Test\n void newlyCreatedAccountShouldNotHavenDefaultDeliveryAddressSet(){\n //given\n Account account = new Account();\n\n //When\n Address address = account.getDefaultDeliveryAddress();\n\n //then\n assertNull(address);\n assertThat(address, nullValue());//Matcher null\n }", "title": "" }, { "docid": "c959fc1de338cfda8493f194bda5120d", "score": "0.56109744", "text": "public void testCreateNullDataObject() throws Exception {\r\n try {\r\n dao.create(null, \"topcoder\");\r\n } catch (IllegalArgumentException e) {\r\n // expected\r\n return;\r\n } catch (NullPointerException e) {\r\n // expected\r\n return;\r\n }\r\n \r\n fail(\"IllegalArgumentException or NullPointerException should be thrown.\");\r\n }", "title": "" }, { "docid": "b7786a256fb3a226bfff5258f3a6a671", "score": "0.56023324", "text": "protected void verifyPropertyNull(String inKey)\n {\n Properties properties = AbstractRunningStrategy.getProperties();\n assertNull(inKey + \" is supposed to be null\",\n properties.getProperty(inKey));\n }", "title": "" }, { "docid": "ae0129371f5695df70c4084f33ec9e99", "score": "0.55924624", "text": "protected void verifyNullProperties()\n {\n verifyPropertyNull(\"onAsk\");\n verifyPropertyNull(\"onBid\");\n verifyPropertyNull(\"onCancel\");\n verifyPropertyNull(\"onExecutionReport\");\n verifyPropertyNull(\"onOther\");\n verifyPropertyNull(\"onTrade\");\n }", "title": "" }, { "docid": "0a0004c9126c84842a5dd84efe8f8e0b", "score": "0.5592241", "text": "@Test\n public void checkWithoutIncoming() {\n FlowElement endEventInvalid = EntityBuilder.buildEndEvent();\n endEventInvalid.setIncoming(null);\n Map<String, FlowElement> map = new HashMap<>();\n map.put(endEventInvalid.getKey(), endEventInvalid);\n boolean access = false;\n try {\n endEventValidator.checkIncoming(map, endEventInvalid);\n access = true;\n Assert.assertFalse(access);\n } catch (DefinitionException e) {\n LOGGER.error(\"\", e);\n Assert.assertFalse(access);\n }\n }", "title": "" }, { "docid": "c17bc49d4a7f527081cdeb886f553653", "score": "0.5589163", "text": "public void testCreateTrackContestTypeWithIllegalArgumentException() throws Exception {\r\n try {\r\n getDigitalRunContestManagerRemoteEJB().createTrackContestType(null);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (EJBException e) {\r\n assertTrue(e.getCause() instanceof IllegalArgumentException);\r\n }\r\n }", "title": "" }, { "docid": "6c5a24cfa38f6bb40d6863e5b1cdd94e", "score": "0.5584048", "text": "@Test\n public void testSetPrimaryThumbprintNullThrows() {\n assertThrows(IllegalArgumentException.class, () -> {\n //act\n new X509ThumbprintParser().setPrimaryThumbprint(null);\n });\n }", "title": "" }, { "docid": "4cac5577efe218f104dcd11df3961be3", "score": "0.5583151", "text": "@Test\n public void testOfNull() {\n assertThrows(NullPointerException.class, () -> {\n @SuppressWarnings(\"unused\")\n ServiceProvider dummy = ServiceProvider.of(null);\n });\n }", "title": "" }, { "docid": "8e4a1a804f1254cd6dcb39694155937f", "score": "0.5582389", "text": "private static boolean isNullFailure( RequestCase requestCase)\n {\n return\n Optional.ofNullable( requestCase.getInvalidInput())\n .map( invalid -> invalid.endsWith( \".Type=null\"))\n .orElse( false);\n }", "title": "" }, { "docid": "f95f2d7a9bdb8e3a95fd52c06d05690a", "score": "0.55798817", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n JRip jRip0 = new JRip();\n BayesNet bayesNet0 = new BayesNet();\n try { \n jRip0.rulesetForOneClass((-402.92455), (Instances) null, 248.070474486479, (-402.92455));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.rules.RuleStats\", e);\n }\n }", "title": "" }, { "docid": "be33c724d5b8b84b68df57785c3287b9", "score": "0.5577438", "text": "public void testConfigGetWithEmptyNamespace() throws Exception {\n try {\n DVHelper.configGet(\"\", \"property\", \"defaultValue\");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException iae) {\n // good\n }\n }", "title": "" }, { "docid": "3128674f0478008eac28e53d2edacdda", "score": "0.5574966", "text": "@Test(timeout = 4000)\n public void test0() throws Throwable {\r\n MissingOptionException missingOptionException0 = null;\r\n try {\r\n missingOptionException0 = new MissingOptionException((List) null);\r\n fail(\"Expecting exception: NullPointerException\");\r\n \r\n } catch(NullPointerException e) {\r\n //\r\n // no message in exception (getMessage() returned null)\r\n //\r\n assertThrownBy(\"org.apache.commons.cli.MissingOptionException\", e);\r\n }\r\n }", "title": "" }, { "docid": "7340fa09fdc43b048f1d9da2ab38e969", "score": "0.55742496", "text": "@Test\n\tpublic void testConstrutorNomeNulo() {\n\t\tassertThrows(NullPointerException.class, () -> new Aluno(null, \"44444444\", \"Historia\"));\n\t}", "title": "" }, { "docid": "3d847c4d4de1da4c05b271bee4f26582", "score": "0.5573832", "text": "public void testExecuteNull() throws Exception {\r\n try {\r\n handler.execute(null);\r\n\r\n fail(\"IllegalArgumentException should be thrown.\");\r\n } catch (IllegalArgumentException e) {\r\n // fine\r\n }\r\n }", "title": "" }, { "docid": "b2fb291e51a4892283371f80f55d1203", "score": "0.5571539", "text": "@Test(timeout = 4000)\n public void test192() throws Throwable {\n Radio radio0 = new Radio((Component) null, \"meta\", \"meta\");\n // Undeclared exception!\n try { \n radio0.ins();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "title": "" }, { "docid": "41a9138e02b0ca88b2ce92cfd92b6071", "score": "0.5569367", "text": "public void testWhenIssueCodeNotPresent() {\r\n // ARRANGE\r\n mockValidatorsWithChecks();\r\n\r\n // ACT\r\n final String label = checkRuleLabelProvider.getLabel(\"some.package.SomeCheckCatalogIssueCodes.no.such.issue.code\");\r\n\r\n // ASSERT\r\n assertNull(label);\r\n }", "title": "" }, { "docid": "9000821f76709cc7b2b3566a40ea8732", "score": "0.5569306", "text": "public void testFireEventNull2() {\r\n try {\r\n Job job = new Job(\"jobName\", JobType.JOB_TYPE_EXTERNAL, \"dir\");\r\n jobGroup = new JobGroup(\"group name2\", jobList);\r\n jobGroup.fireEvent(job, null);\r\n fail(\"IllegalArgumentException should be thrown.\");\r\n } catch (IllegalArgumentException e) {\r\n // Expected exception raised\r\n }\r\n }", "title": "" }, { "docid": "d3f5829177987940d1cc74e302492184", "score": "0.5564809", "text": "public void testHasProperty_NullName() {\r\n try {\r\n resource.hasProperty(null);\r\n fail(\"The parameter name cannot be null.\");\r\n } catch (IllegalArgumentException e) {\r\n // success\r\n }\r\n }", "title": "" }, { "docid": "438edf8d66aad093eb013bf0b3db4c2f", "score": "0.5564591", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n JRip jRip0 = new JRip();\n // Undeclared exception!\n try { \n jRip0.getRuleStats((-3));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.rules.JRip\", e);\n }\n }", "title": "" }, { "docid": "44aa59aa1e0c6bb8ea20a6a4286d6706", "score": "0.55631435", "text": "@Test\r\n public void CheckNullValueException(){\r\n \tLOGGER.info(\"< checkNullValueExceptionTest begin >\");\r\n Transaction tx = graphDatabaseService.beginTx();\r\n try {\r\n \r\n Node node = graphDatabaseService.createNode();\r\n node.setProperty(\"intValue\", 5);\r\n \r\n Filter afpFilter=new Filter(FilterType.LESS);\r\n LOGGER.info(\"--Node property: \"+\"'intValue';value: \"+node.getProperty(\"intValue\"));\r\n \r\n LOGGER.info(\"----FilterType is 'LESS' \");\r\n \r\n afpFilter.setExpression(null, \"intValue\", null);\r\n Exception exc = null;\r\n try{\r\n \tafpFilter.check(node);\r\n }\r\n \r\n catch (Exception e){\r\n \texc = e;\r\n }\r\n finally{\r\n \tAssert.assertTrue(\"method check(Node node) don't catch NullValueException\",exc instanceof NullValueException );\r\n }\r\n tx.success();\r\n \r\n } catch (Exception e) { \r\n LOGGER.error(e.toString());\r\n \r\n \r\n }finally{\r\n tx.finish(); \r\n LOGGER.info(\"< checkNullValueExceptionTest end >\");\r\n }\r\n }", "title": "" }, { "docid": "34b7a09bd6efbe3352547dc1d1fb3036", "score": "0.55583405", "text": "@Test\n\tpublic void attemptingToCreateCallCostCalculatorWithNullParametersThrowsInvalidArgumentException() {\n\t\texception.expect(IllegalArgumentException.class);\n\t\tnew CallCostCalculator(null, null);\n\t}", "title": "" }, { "docid": "38f15f09607d43652c7b667718a6e0ad", "score": "0.55480784", "text": "@Test\n public void testSetSecondaryThumbprintNullThrows() {\n assertThrows(IllegalArgumentException.class, () -> {\n //act\n new X509ThumbprintParser().setSecondaryThumbprint(null);\n });\n }", "title": "" }, { "docid": "7e91495ad9b24c36f731a9686161b49a", "score": "0.5546403", "text": "@Test\n\tpublic void testNullEvent() throws Exception {\n\t\tApplicationEventBus fixture = new ApplicationEventBus();\n\n\t\ttry {\n\t\t\tfixture.fire(null);\n\t\t\tfail(\"Expect IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\t// pass\n\t\t}\n\t}", "title": "" } ]
3e91481fff725990433f4c7818107622
The property used by the editor framework to bind the topic revision to the ui element.
[ { "docid": "58ef4aff14e0ff611645f821a65b01ae", "score": "0.7399727", "text": "@NotNull\n public SimpleIntegerBox topicRevisionEditor() {\n return topicRevision;\n }", "title": "" } ]
[ { "docid": "3e5cad5fb319c0b9288dad693cef34e6", "score": "0.6247338", "text": "public String getRevision() {\n return revision;\n }", "title": "" }, { "docid": "e9b3bcca2925e2de845c8f6d4d3d9dad", "score": "0.62154204", "text": "public String getRevision();", "title": "" }, { "docid": "647ba98429d31d2850fb21d3a2c6a084", "score": "0.6162283", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Revision count for the resource. This count is set to 1 on creation and is incremented every time it is updated.\")\n\n public Integer getRevision() {\n return revision;\n }", "title": "" }, { "docid": "702971c7de52bddf44de37636dd28e35", "score": "0.5998603", "text": "public int getRevision()\n {\n return getIntProperty(VERSION_REVISION);\n }", "title": "" }, { "docid": "0be286fae12f3c426f53d12895e04a16", "score": "0.5946275", "text": "public String getRevisionId() {\n return revisionId;\n }", "title": "" }, { "docid": "08704f35a984921a3ce90b62ad890759", "score": "0.59128016", "text": "public long getRevisionNumber() {\n return rev;\n }", "title": "" }, { "docid": "7e3c1f2fcd24d75b463e443e11d97738", "score": "0.5886188", "text": "@Override\r\n public String getRevision() {\r\n return RevisionUtils.extract(\"$Revision$\");\r\n }", "title": "" }, { "docid": "6caccc4850ac29ca04bf809c93cbbbe0", "score": "0.587644", "text": "public abstract String getRevision();", "title": "" }, { "docid": "2378666f67eaeccb4ec7fa1c1e4a0a87", "score": "0.5862069", "text": "public Revision getRevision() {\n return revision;\n }", "title": "" }, { "docid": "e9d39a4e878efebe0c02bc59c32023df", "score": "0.58445203", "text": "public String getRevisionNumber()\n {\n return(revisionNumber);\n }", "title": "" }, { "docid": "91fce7f20e48caf4122479e1d0d7dc7a", "score": "0.58068913", "text": "public int getRevisionNumber() {\r\n\t\treturn RevisionNumber;\r\n\t}", "title": "" }, { "docid": "7bd5652836e7add170eab2b102d9b036", "score": "0.5804487", "text": "@NotNull\n public SimpleIntegerBox topicIdEditor() {\n return topicId;\n }", "title": "" }, { "docid": "43f874288a1a1e352ec4871d1c733e02", "score": "0.57989866", "text": "public String getChildBranchTipRevisionString() {\n return childBranchTipRevisionString;\n }", "title": "" }, { "docid": "d96158aa4cbfac1b516eee7c6063f7bb", "score": "0.5687211", "text": "public void setRevisionNumber(int rn) {\r\n\t\tRevisionNumber = rn;\r\n\t}", "title": "" }, { "docid": "5c34da1bf1ba54e2f4af94e2edba9003", "score": "0.56330705", "text": "long getRevisionNumber();", "title": "" }, { "docid": "3bc667a50ec94e882795f365a1608f5f", "score": "0.56158024", "text": "int getRevision();", "title": "" }, { "docid": "3bc667a50ec94e882795f365a1608f5f", "score": "0.56158024", "text": "int getRevision();", "title": "" }, { "docid": "3bc667a50ec94e882795f365a1608f5f", "score": "0.56158024", "text": "int getRevision();", "title": "" }, { "docid": "ca5915bbb0e16bb001f128f5af9da766", "score": "0.55562127", "text": "public static String revision() { \n\t\treturn alma.CorrelationBitMod.revision.value;\n\t}", "title": "" }, { "docid": "903243c13fe52946278d7f0a727e8bd1", "score": "0.5554039", "text": "public String getRevision() {\r\n return RevisionUtils.extract(\"1.0\");\r\n }", "title": "" }, { "docid": "9488d0812ce29033f6bd2d1ef2209bc9", "score": "0.55183005", "text": "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 5163 $\");\n}", "title": "" }, { "docid": "d812ad2559bff2f7ec49deb41d5480e7", "score": "0.54798555", "text": "public String getRevisionNumber()\n {\n // return string\n return(revisionNumber);\n }", "title": "" }, { "docid": "4cb38e4c505210cdc4f6edaddf4eb6dc", "score": "0.54727966", "text": "public RevisionBean() {\n this.revision = new Revision();\n }", "title": "" }, { "docid": "6d2cd14e1210dba9f90c856648d0c76d", "score": "0.54718786", "text": "public String getRevision() {\n return RevisionUtils.extract(\"$Revision$\");\n }", "title": "" }, { "docid": "dcab659b174e2034abf2ce0281bf0f07", "score": "0.54708946", "text": "public void setRevision(Revision revision) {\n this.revision = revision;\n }", "title": "" }, { "docid": "e45e31c9acfee4d978cd4c3fe6d6d2ec", "score": "0.5455905", "text": "String getTopic() {\n return topic;\n }", "title": "" }, { "docid": "2d7d77fdb680dbb930987280a26c8974", "score": "0.54552495", "text": "public String getRev();", "title": "" }, { "docid": "b39984dbc2fcba1e58db7870b2e1eafb", "score": "0.5426911", "text": "public String getRevisionNumber()\n {\n // return string\n return (revisionNumber);\n }", "title": "" }, { "docid": "cc46559899a49a1754c7dffecffdfd5f", "score": "0.54257435", "text": "public void setRev(String rev);", "title": "" }, { "docid": "8c6576dac9395aee389c08eefd15198b", "score": "0.5397915", "text": "public String getTopic() {\n return topic;\n }", "title": "" }, { "docid": "237144bc468f6cb9cce059020ade48b1", "score": "0.5377621", "text": "public String getRevisionNumber()\n {\n return(Util.parseRevisionNumber(revisionNumber));\n }", "title": "" }, { "docid": "237144bc468f6cb9cce059020ade48b1", "score": "0.5377621", "text": "public String getRevisionNumber()\n {\n return(Util.parseRevisionNumber(revisionNumber));\n }", "title": "" }, { "docid": "e1b07bfce9633679a22eadf2d8f1ace7", "score": "0.5349037", "text": "public String getTopic() {\n return this.topic;\n }", "title": "" }, { "docid": "9cf6e5d7d02f0dddc58e785b0aad3aa7", "score": "0.5347276", "text": "public String latestRevisionName() {\n return this.innerProperties() == null ? null : this.innerProperties().latestRevisionName();\n }", "title": "" }, { "docid": "814e55563dd0a512b369de7d3890fcae", "score": "0.5343729", "text": "public String getReleaseAttributes() {\n return revision;\n }", "title": "" }, { "docid": "d495123e3e535060bd2a2c78e6a140dd", "score": "0.5303307", "text": "public StringProperty strAuthorProperty() {\n return strAuthor;\n }", "title": "" }, { "docid": "27de52b5d792750ebe88083d87d6dc4a", "score": "0.52727306", "text": "public String getRevisionNumber()\n {\n return (Util.parseRevisionNumber(revisionNumber));\n }", "title": "" }, { "docid": "08c832cb978b0b8dc18d32af8ba8c843", "score": "0.52652067", "text": "public static String getRevision() {\n return REVISION_NUMBER;\n }", "title": "" }, { "docid": "4ff81f110a8203bc64f83f304a62a78a", "score": "0.5248605", "text": "public String getSafetyRevision(){\n\t\t\treturn obj.findElement(safetyRevision).getText();\n\t\t}", "title": "" }, { "docid": "b50086a89fa2828ef2a81970774436e6", "score": "0.524277", "text": "@ApiModelProperty(value = \"currentRevision, if not empty, indicates the current revision version of the CloneSet.\")\n public String getCurrentRevision() {\n return currentRevision;\n }", "title": "" }, { "docid": "e05c1a6c8dc9259c64f5a03e647dd65f", "score": "0.5236447", "text": "public Long getTopicId() {\n return topicId;\n }", "title": "" }, { "docid": "c3335a0eeda4c8cf764f6084964853d8", "score": "0.522504", "text": "public String latestRevisionFqdn() {\n return this.innerProperties() == null ? null : this.innerProperties().latestRevisionFqdn();\n }", "title": "" }, { "docid": "adb690990d63dd717b428c94c2203aa5", "score": "0.51908183", "text": "public String getTopicid() {\n return topicid;\n }", "title": "" }, { "docid": "3901a8014ee610e94ca5df1cf79b76a4", "score": "0.5186386", "text": "public void setAuthor(String strAuthor) {\n this.strAuthor = new SimpleStringProperty(strAuthor);\n }", "title": "" }, { "docid": "074495592fd91a9e4cbec61e58b30505", "score": "0.5171922", "text": "@ApiModelProperty(value = \"UpdateRevision, if not empty, indicates the latest revision of the CloneSet.\")\n public String getUpdateRevision() {\n return updateRevision;\n }", "title": "" }, { "docid": "0ba94699b43bfcdc0a2a1a716498a333", "score": "0.5166393", "text": "private void onRoomTopicPreferenceChanged() {\n // sanity check\n if (null == mRoom) {\n return;\n }\n\n // get new and previous values\n String previousTopic = mRoom.getTopic();\n String newTopic = mRoomTopicEditTxt.getText();\n // update only, if values are different\n if (!TextUtils.equals(previousTopic, newTopic)) {\n displayLoadingView();\n Log.d(LOG_TAG, \"## update topic to \" + newTopic);\n mRoom.updateTopic(newTopic, mUpdateCallback);\n }\n\n }", "title": "" }, { "docid": "6c0b4d7a3f3f14fba3e93bd2dfd4ea32", "score": "0.5128956", "text": "public String getTopicName()\n\t{\n\t\treturn topic;\n\t}", "title": "" }, { "docid": "7e43cd823be71b413c654bef1d0ceb4c", "score": "0.51152545", "text": "@BeanTagAttribute(name = \"displayTopicFieldInNotes\")\r\n public boolean getDisplayTopicFieldInNotes() {\r\n return displayTopicFieldInNotes;\r\n }", "title": "" }, { "docid": "991f3d212d8c32ff49cdb13fafcb47a8", "score": "0.51068455", "text": "public String getTopic();", "title": "" }, { "docid": "fca6cb15a4dcb3183bffd123f16c524e", "score": "0.5101982", "text": "@NotNull String getTopic();", "title": "" }, { "docid": "77e0957e7086091b3c63ab258452d42f", "score": "0.5076381", "text": "public void updateRevisionsView(RevisionAssistant rev) {\n\n\t\tchatView.UpdateRevisionPanel(rev);\n\t}", "title": "" }, { "docid": "3fd741fe1b8d9b2fd92785f3d5b70620", "score": "0.5061691", "text": "@Generated\n @Selector(\"revision\")\n @NUInt\n public native long revision();", "title": "" }, { "docid": "d3f170429d418f148e840bce7c034253", "score": "0.50542897", "text": "public String getTopicName() {\n return this.TopicName;\n }", "title": "" }, { "docid": "d3f170429d418f148e840bce7c034253", "score": "0.50542897", "text": "public String getTopicName() {\n return this.TopicName;\n }", "title": "" }, { "docid": "e87fd32cec923e4717a89b33f23ff64c", "score": "0.5052778", "text": "public String getNewRev() {\n return ((AutoRebuildPatchset)getEvent()).getRefUpdate().getNewRev();\n }", "title": "" }, { "docid": "0070ab6e7faa6fa622d47078ab5a80b3", "score": "0.5051033", "text": "public interface ReviewTopicStartRevisionFound {\n void revisionFound(@NotNull final org.jboss.pressgang.ccms.rest.v1.entities.RESTTopicV1 revision);\n void revisionNotFound();\n}", "title": "" }, { "docid": "b2f3851da26a46e90f6ed4b6e1fc1d2f", "score": "0.5049323", "text": "public void setRev(String rev) {\n _anchorState.registerAttribute(AbstractHtmlState.ATTR_GENERAL, HtmlConstants.REV, rev);\n }", "title": "" }, { "docid": "64aa58b662833e0896b5fb7c649a8299", "score": "0.49617702", "text": "@Generated\n @Selector(\"setRevision:\")\n public native void setRevision(@NUInt long value);", "title": "" }, { "docid": "841d46d33ab2d89e1df9acaf43e0a5b7", "score": "0.49584424", "text": "public StringProperty strChapterProperty() {\n return strChapter;\n }", "title": "" }, { "docid": "790b84069bbfebac6675d2ddeb987dc6", "score": "0.49370515", "text": "public ObjectRevision getObjectRevision();", "title": "" }, { "docid": "7cf4203c21642f980ee5a2255d9375b0", "score": "0.49234372", "text": "public final void mT__96() throws RecognitionException {\n try {\n int _type = T__96;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:98:7: ( 'revision' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:98:9: 'revision'\n {\n match(\"revision\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "f3a1a53fac7019b6539c85fbcb99aa74", "score": "0.49224755", "text": "java.lang.String getTopic();", "title": "" }, { "docid": "f3a1a53fac7019b6539c85fbcb99aa74", "score": "0.49224755", "text": "java.lang.String getTopic();", "title": "" }, { "docid": "dfa906e030de83b314260f766aeaacb1", "score": "0.49051636", "text": "public EditorController() {\n jobManager.revisionProperty().addListener((ChangeListener<Number>) (ov, t, t1) -> jobManagerRevisionDidChange());\n }", "title": "" }, { "docid": "ace328c88e42d5cd0be98142e93fc98b", "score": "0.48970842", "text": "public void setChildBranchTipRevisionString(String childBranchTipRevString) {\n this.childBranchTipRevisionString = childBranchTipRevString;\n }", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e29908514869c448f44653772ab65b1a", "score": "0.48910865", "text": "String getTopic();", "title": "" }, { "docid": "e59d09485a8bd8f366fbd67a9d45472f", "score": "0.48795754", "text": "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e59d09485a8bd8f366fbd67a9d45472f", "score": "0.48795754", "text": "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e59d09485a8bd8f366fbd67a9d45472f", "score": "0.48795754", "text": "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e59d09485a8bd8f366fbd67a9d45472f", "score": "0.48795754", "text": "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e59d09485a8bd8f366fbd67a9d45472f", "score": "0.48795754", "text": "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b91f0adb10991442d845f4b26125838c", "score": "0.48657116", "text": "public Long getTopicCreator() {\n return this.TopicCreator;\n }", "title": "" }, { "docid": "f8bb89d5e27aa4b5db02203a1ce0d70d", "score": "0.48621807", "text": "public void changeListener() {\n// System.out.println(\"Revision es : \" + revision.getDescripcionCambios());\n\n RequestContext.getCurrentInstance().update(\"form:outputUpdateComponent\");\n }", "title": "" }, { "docid": "3f76a09484c72d3ab0199d6a1d96c69e", "score": "0.4848912", "text": "@Override\n\tpublic String getTopic() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "05f9a1397887bebe0bcac0429f09bba3", "score": "0.48381644", "text": "public Long getTopicType() {\n return this.TopicType;\n }", "title": "" }, { "docid": "fcffa98e1d25d0fdf133c4bffad49266", "score": "0.48318464", "text": "@java.lang.Override\n public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\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 topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "26bd88d7f49eca619bf1a56d0ea5c533", "score": "0.48296586", "text": "void setTopic(final String topic) {\n this.topic = topic;\n }", "title": "" }, { "docid": "bd80f3a9e4607f60bf0d13b518f4870f", "score": "0.4829153", "text": "public void setChapter(String strChapter) {\n this.strChapter = new SimpleStringProperty(strChapter);\n }", "title": "" }, { "docid": "2f6baa753828f0f1179b528024315d3e", "score": "0.4778814", "text": "@Override\n public void setInstallerRevision(String revision)\n {\n _installerRev = revision;\n }", "title": "" }, { "docid": "79a1473bfdc002f3cf184e929b50087d", "score": "0.47551605", "text": "public interface MiserePropertiesEditionPart {\n\n\t/**\n\t * @return the declarer\n\t * \n\t */\n\tpublic EObject getDeclarer();\n\n\t/**\n\t * Init the declarer\n\t * @param allResources the ResourceSet where the widget have to process\n\t * @param current the current value\n\t */\n\tpublic void initDeclarer(ResourceSet allResources, EObject current);\n\n\t/**\n\t * Defines a new declarer\n\t * @param newValue the new declarer to set\n\t * \n\t */\n\tpublic void setDeclarer(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setDeclarerButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the declarer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToDeclarer(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the declarer edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToDeclarer(ViewerFilter filter);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "title": "" }, { "docid": "28d0a2165c33350e6dfd6a63322a6b89", "score": "0.47469768", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getTopicBytes() {\n java.lang.Object ref = topic_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n topic_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "a4d40985ccd7f61e99e8cf7c48aca720", "score": "0.47258902", "text": "public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a4d40985ccd7f61e99e8cf7c48aca720", "score": "0.47258902", "text": "public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a4d40985ccd7f61e99e8cf7c48aca720", "score": "0.47258902", "text": "public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a4d40985ccd7f61e99e8cf7c48aca720", "score": "0.47258902", "text": "public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "a4d40985ccd7f61e99e8cf7c48aca720", "score": "0.47258902", "text": "public String getTopic() {\n Object ref = topic_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "5e18c26d466b3feec3af10c002780b99", "score": "0.4724476", "text": "public String getOldRev() {\n return ((AutoRebuildPatchset)getEvent()).getRefUpdate().getOldRev();\n }", "title": "" }, { "docid": "ce08daac37600c30bef60296bad84489", "score": "0.46968445", "text": "public Builder setTopic(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n topic_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1112af83cf3231e66033742348b7c607", "score": "0.46945545", "text": "@Nullable\n/* 193 */ public VcsRevisionNumber getCurrentRevision() { return null; }", "title": "" }, { "docid": "83b89691139e96739139e033e1c7fcd3", "score": "0.46840912", "text": "public java.lang.String getTopic() {\n java.lang.Object ref = topic_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n topic_ = s;\n }\n return s;\n }\n }", "title": "" }, { "docid": "9dedf5ef800868f78d2f258f2a2bb559", "score": "0.46785715", "text": "public void valueChanged(TreeSelectionEvent e) {\n\t DefaultMutableTreeNode node = (DefaultMutableTreeNode)\n\t tree.getLastSelectedPathComponent();\n\t \n\t \n\t if (node == null) return;\n\n\t Object nodeInfo = node.getUserObject();\n\t if (node.isLeaf()) {\n\t HelpEntry topic = (HelpEntry)nodeInfo;\n\t displayText(topic.getFilename());\n\t \n\t }\n\t else if(node.isRoot()) \n\t \tdisplayText(startHTLM);\n\t }", "title": "" }, { "docid": "2302b511358e77a6b35a9c0e306e6259", "score": "0.46742573", "text": "public String getLatestVersionString()\n {\n return versionTitle;\n }", "title": "" }, { "docid": "d00497ea25dc211943a3dbff7e41bc97", "score": "0.4672609", "text": "@ApiModelProperty(required = true, value = \"A Version. Representation: string of variable length. \")\n @NotNull\n\n\n public String getVersion() {\n return version;\n }", "title": "" }, { "docid": "320c249a708dd45b607130c71dd01c29", "score": "0.46616107", "text": "TopicIF getTopic();", "title": "" }, { "docid": "a3cc0a52e0b9dbf79ae01b4833959b40", "score": "0.46571398", "text": "String getTopicName();", "title": "" } ]
3a8e27b70b0024dbcf6f642fb287a50d
Path has not been created.
[ { "docid": "7359e5f8badd514bf803b50e2d335eb2", "score": "0.0", "text": "@Test(expected=FileNotFoundException.class)\n public void testRemoveAclPathNotFound() throws IOException {\n fs.removeAcl(path);\n }", "title": "" } ]
[ { "docid": "51e27b9b202289f88cd8489ae40ff358", "score": "0.7252425", "text": "public Path() {\n\t\tcompletedPath = false; \n\t}", "title": "" }, { "docid": "1ced56bb5ca39e6393b21f1adda0749b", "score": "0.6951549", "text": "public boolean isPathSet() { return !path.isEmpty(); }", "title": "" }, { "docid": "fb12bfe2e1275819511aa168d8b48411", "score": "0.672587", "text": "public static void createPath(File path) throws IOException {\n\t\tif (!path.exists() && !path.mkdirs()) {\n\t\t\tthrow new IOException(\"Fail to create path: \" + path); //$NON-NLS-1$\n\t\t}\n\t}", "title": "" }, { "docid": "de97bff06cae70c9516853ba319809ef", "score": "0.66772753", "text": "@Test\n public void PathCreation()\n {\n RepoPath repoPath = new RepoPath(\"/\");\n assertEquals(\"/\", repoPath.path);\n }", "title": "" }, { "docid": "7dd585a42a00b491a1eccf332f7ed6c4", "score": "0.6599646", "text": "private void createPath() {\r\n switch (currentState) {\r\n case DODGE_OBSTACLES:\r\n break;\r\n case FIND_PATH:\r\n break;\r\n case FREE_MODE:\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "44dff4fc9ebb379e5ed86479f493b49b", "score": "0.65423936", "text": "public boolean hasPath() {\n return path != null && !path.isEmpty();\n }", "title": "" }, { "docid": "dc6293d2781084c5453e04804eca11bf", "score": "0.648163", "text": "private void get_path(){\n \t}", "title": "" }, { "docid": "b0078ea2ae7212ae885e5d082f069f95", "score": "0.6464885", "text": "public boolean pathReady() {\n\t\treturn Instructions.pathReady();\n\t}", "title": "" }, { "docid": "b04241b5696da898a7ee681271c27999", "score": "0.6463108", "text": "public abstract boolean isPath();", "title": "" }, { "docid": "b8edefb187f91f0b4cd3c64652307615", "score": "0.63258517", "text": "public String getPath() {\n/* 120 */ return this.path;\n/* */ }", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "ad9d8a8fda55fab900b1e60702005ac8", "score": "0.6321982", "text": "boolean hasPath();", "title": "" }, { "docid": "fd920720d6cf80223cc46a35e498e7aa", "score": "0.631945", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "96630f29cf00fbc6839f34847c7f93e5", "score": "0.630454", "text": "private static void createReportPath(String path) {\n File testDirectory = new File(path);\n if (!testDirectory.exists()) {\n if (testDirectory.mkdir()) {\n System.out.println(\"Directory: \" + path + \" is created!\");\n } else {\n throw new RuntimeException(\"Directory: \" + path + \" already exists!\");\n }\n } else {\n System.out.println(\"Directory already exists: \" + path);\n }\n }", "title": "" }, { "docid": "1c18ccfca65102744096a0f11119b703", "score": "0.62841713", "text": "public String getPath() {\n return null;\n }", "title": "" }, { "docid": "1c18ccfca65102744096a0f11119b703", "score": "0.62841713", "text": "public String getPath() {\n return null;\n }", "title": "" }, { "docid": "26954e073123dcafe1b35cb35c28be7c", "score": "0.6276663", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "ca632cf20d105d9d1483faa1c4f3b9fe", "score": "0.6276661", "text": "public boolean isSetPath() {\n return this.path != null;\n }", "title": "" }, { "docid": "3c70c863285efec93c7ac71dbf9479b1", "score": "0.6265705", "text": "public String getPath() {\n/* 180 */ return this.path;\n/* */ }", "title": "" }, { "docid": "957d0636e7f5e72eaa528da8ef593713", "score": "0.6224995", "text": "public Path() {\n\t\teditablePath = new Vector<String>();\n\t}", "title": "" }, { "docid": "32934297fb375c62176d804a4254ac34", "score": "0.6217302", "text": "@Test(expectedExceptions = RuntimeException.class)\n public void testNonExistingFileShouldHadExisted() {\n PathValidator validator = new PathValidator(new LensConf());\n validator.getValidPath(NON_EXISTING_FILE, true, true);\n }", "title": "" }, { "docid": "68e0b0f456b1c7054c99e8095a0fddda", "score": "0.61757445", "text": "private void initPath(String name) {\n final Path p = new Path();\n p.name = name;\n // TODO: replace with path name gotten from dialogue\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n pathId = db.getPathDao().insertPath(p);\n path = p;\n lastLocation = new PathPoint(0, 0, pathId);\n currLocation = new PathPoint(0, 0, pathId);\n }\n });\n // TODO: Make sure to delete the is path if there is a failure but we need to path id\n lastLocation = new PathPoint(0, 0, pathId);\n currLocation = new PathPoint(0, 0, pathId);\n }", "title": "" }, { "docid": "96a3e438d115d14e1142e8dca585c5c9", "score": "0.613894", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "a684680a53b059f2b8b8e82926886de7", "score": "0.61383384", "text": "public boolean getFillPath(Path src, Path dst) {\n/* 419 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "fac9238eec159417fa713e975d1d04af", "score": "0.6132075", "text": "public Path() {\n this.path = new LinkedList<>(); \n }", "title": "" }, { "docid": "6efb6b93dcdff2e9622eb5bf0577d94f", "score": "0.6123007", "text": "public boolean isSetNewPath() {\n return this.new_path != null;\n }", "title": "" }, { "docid": "a015f397e8574cbff9104ef93ec288fb", "score": "0.6083629", "text": "public String getPathName() { return resultCreatePath; }", "title": "" }, { "docid": "ffcdaf6649a21518f2654a7e383c081c", "score": "0.6063672", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "ffcdaf6649a21518f2654a7e383c081c", "score": "0.6063672", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "08791cd15b848455a7c71ac0071f82d7", "score": "0.60334194", "text": "public boolean exists() {\n return path.size() > 0;\n }", "title": "" }, { "docid": "1d6a3d537a53bb675b26a8983f606156", "score": "0.60310435", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "1d6a3d537a53bb675b26a8983f606156", "score": "0.60310435", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "1d6a3d537a53bb675b26a8983f606156", "score": "0.60310435", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "05299c84a787b5583d9668417f12cf2b", "score": "0.60306746", "text": "public boolean hasPath() {\n return fieldSetFlags()[2];\n }", "title": "" }, { "docid": "ca1dd5a593ae367231f75c6053ca57f7", "score": "0.60304683", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "41345077e207705d2b3b139bc243c4cf", "score": "0.60146576", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "41345077e207705d2b3b139bc243c4cf", "score": "0.60146576", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" }, { "docid": "107e0def1c94225f73388c4cbe647550", "score": "0.6012574", "text": "public static Path emptyPath() {\n return EMPTY;\n }", "title": "" }, { "docid": "54f7b85384cf5c454949cb15f2a1468e", "score": "0.60109156", "text": "public String getUniquePath() {\n return null;\n }", "title": "" }, { "docid": "54f7b85384cf5c454949cb15f2a1468e", "score": "0.60109156", "text": "public String getUniquePath() {\n return null;\n }", "title": "" }, { "docid": "03c59297350878ebc4cfb375f1a3df65", "score": "0.60002744", "text": "@Override\n public boolean done() {\n return path != null;\n }", "title": "" }, { "docid": "df776b2926683284186f5f66ebe7fa46", "score": "0.5995867", "text": "public void testNonUniqueResourcePath() {\n\n\t\t// Change template to non-unique path\n\t\tChange<WoofResourceModel> change = this.operations.changeResourcePath(this.resource, \"/resource.png\");\n\n\t\t// Validate the change\n\t\tthis.assertChange(change, this.resource, \"Change Resource Path\", false,\n\t\t\t\t\"Resource already exists for '/resource.png'\");\n\t}", "title": "" }, { "docid": "208d2fa933cf467ed8dab31e2c0b6990", "score": "0.59916866", "text": "private boolean hasFinishedPath() {\n return path != null && path.size() > PATH_PARCEL_NUMBER;\n }", "title": "" }, { "docid": "7f569fcf22cf0707f97342e24f5506ec", "score": "0.59908795", "text": "@Override\n\tpublic String getPathInfo() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d1ddc20be5c17702349837755d21378a", "score": "0.5985967", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "d1ddc20be5c17702349837755d21378a", "score": "0.5985967", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "d1ddc20be5c17702349837755d21378a", "score": "0.5985967", "text": "public boolean hasPath() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "b54a06a26ab4a7a6707e06ca9822035a", "score": "0.5983776", "text": "@NonNull Path path();", "title": "" }, { "docid": "c33952e3afa32e3fc4ef1bedecb8aaaa", "score": "0.59724736", "text": "private FactoryPathUtil() {}", "title": "" }, { "docid": "fb14a6be79a896854ed2ced0310f7543", "score": "0.59631604", "text": "public abstract String getPath();", "title": "" }, { "docid": "fb14a6be79a896854ed2ced0310f7543", "score": "0.59631604", "text": "public abstract String getPath();", "title": "" }, { "docid": "fb14a6be79a896854ed2ced0310f7543", "score": "0.59631604", "text": "public abstract String getPath();", "title": "" }, { "docid": "fb14a6be79a896854ed2ced0310f7543", "score": "0.59631604", "text": "public abstract String getPath();", "title": "" }, { "docid": "f96fca541f10a1b35fb03122f2cf622c", "score": "0.59600174", "text": "public boolean existsErrorPath() {\n return !getErrorPaths().isEmpty();\n }", "title": "" }, { "docid": "17337f4e615c44e3d3d193c3989dca95", "score": "0.59422153", "text": "@Test\n\tpublic void findPath_returns_null_if_pathNotFound(){\n\t}", "title": "" }, { "docid": "87a39109a06ada32817b61d4a1bd7564", "score": "0.593107", "text": "@Test(expectedExceptions = RuntimeException.class)\n public void testNonExistingFileShouldHadBeenDir() {\n PathValidator validator = new PathValidator(new LensConf());\n validator.getValidPath(NON_EXISTING_FILE, true, false);\n }", "title": "" }, { "docid": "6fae33336159ae74066609b255b697b2", "score": "0.5919302", "text": "public String getPath() { return path; }", "title": "" }, { "docid": "d9126c3ef9f713450f6605a3e9deca6e", "score": "0.5911725", "text": "@Override\n\t\tpublic String getPathInfo() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "1ef06c755a8aaba74199dc85d4157ffc", "score": "0.59097016", "text": "@Override\n public Path getLocationBookFilePath() {\n throw new AssertionError(\"This method should not be called.\");\n }", "title": "" }, { "docid": "936b9d1f4627712847e042197e9aee6c", "score": "0.5903403", "text": "public String getPath() {return m_path;}", "title": "" }, { "docid": "99b6f87a4da386d8dc9af0689805d8fd", "score": "0.59016633", "text": "protected abstract void onPathComplete();", "title": "" }, { "docid": "1395b63aaec20a01000f50f77db9affe", "score": "0.589455", "text": "private void generateState() throws StorageError {\n File file = new File(path);\n if (!file.exists())\n try {\n file.createNewFile();\n } catch (IOException e) {\n throw new StorageError(\"Messages\", \"IOException\");\n }\n }", "title": "" }, { "docid": "e3e30e9a2fb9ba6f762edee642091d14", "score": "0.5876813", "text": "public OutgoingPath() {\n }", "title": "" }, { "docid": "037f3ecabaf7a1415468bc8d789460d1", "score": "0.5869386", "text": "@Override\n public boolean itemExists(String path) {\n return false;\n }", "title": "" }, { "docid": "fe88c107a9f2f51cbb6625086e23c67b", "score": "0.58509606", "text": "private void _checkValidPath(@NonNull String pProjectPath)\n {\n if (!pProjectPath.isEmpty())\n {\n FileObject fileObject = FileUtil.toFileObject(new File(pProjectPath));\n if (fileObject == null)\n {\n wizard.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, (AditoRepositoryCloneWizard.getMessage(this, \"Invalid.Path\", pProjectPath)));\n }\n if (!_getProjectName().isEmpty() && new File(_getProjectPath(), _getProjectName()).exists())\n {\n wizard.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, AditoRepositoryCloneWizard.getMessage(this, \"Invalid.Directory\", _getProjectName()));\n }\n }\n }", "title": "" }, { "docid": "852962dcc3a2ea3911790b3662333554", "score": "0.58293295", "text": "public void setPath(String pPath) {\n this.path = pPath;\n }", "title": "" } ]
8f8181dd06482f25f0672b7e6370c75e
Creates a new instance of DailyFragment.
[ { "docid": "ba89de7429eee0c9323013fb728e5b1d", "score": "0.88831687", "text": "public static DailyFragment newInstance() {\r\n return new DailyFragment();\r\n }", "title": "" } ]
[ { "docid": "27890b122d8cf121e2ac8f54f9c1948e", "score": "0.7155221", "text": "public ProgramDayFragment() {\n }", "title": "" }, { "docid": "6cad00eb59e2c5307dfad764b0c5e053", "score": "0.69329953", "text": "public static CalendarFragment newInstance() {\n CalendarFragment fragment = new CalendarFragment();\n return fragment;\n }", "title": "" }, { "docid": "1832d9bf72dd4fb86425c59f2aad9a61", "score": "0.68530333", "text": "public static SchedulesFragment newInstance(){\n return new SchedulesFragment();\n }", "title": "" }, { "docid": "931b03a620f3742dca9a91ff4b24f340", "score": "0.68502575", "text": "public static WeeklyActivitiesFragment newInstance() {\n WeeklyActivitiesFragment fragment = new WeeklyActivitiesFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "9932c4c58adf345d29d918c6f64c2294", "score": "0.6843777", "text": "public static DatePickerFragment newInstance() {\n return newInstance(new Date(System.currentTimeMillis()));\n }", "title": "" }, { "docid": "36f25656e825ecf2647a527b6090e37c", "score": "0.68402773", "text": "public CalenderFragment() {\n }", "title": "" }, { "docid": "7d03c9a3dcbcf557b2f4e5a288026797", "score": "0.6784398", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\r\n View root = inflater.inflate(R.layout.fragment_daily, container, false);\r\n context = root.getContext();\r\n // Set up history\r\n history = (TableLayout) root.findViewById(R.id.history);\r\n history.setOnClickListener(new View.OnClickListener() {\r\n /**\r\n * Shows daily detail when click.\r\n *\r\n * @param view the view.\r\n * @since 1.0.0\r\n */\r\n @Override\r\n public void onClick(View view) {\r\n if (daily == null) {\r\n String date = String.format(DATE_FORMAT, month + 1, day, year);\r\n daily = new PomoDaily(date, userId);\r\n dbHelper.insertDaily(daily, true);\r\n }\r\n Intent intent = new Intent(view.getContext(), DailyActivity.class);\r\n intent.putExtra(ExtraName.POMO_DAILY, daily);\r\n startActivityForResult(intent, 1);\r\n }\r\n });\r\n datePicker = (DatePicker) root.findViewById(R.id.datePicker);\r\n return root;\r\n }", "title": "" }, { "docid": "ed7e6278287a7c0d287ecc435411c3bc", "score": "0.67047936", "text": "public static DayFragment newInstance(long dayID) {\n DayFragment fragment = new DayFragment();\n Bundle args = new Bundle();\n args.putLong(ARG_DAY_ID, dayID);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "d130fb12c7a4ae24d0b464384689a9de", "score": "0.6601574", "text": "public ScheduleFragment() {}", "title": "" }, { "docid": "db75ae900f6330a9adae07fa6180faca", "score": "0.65629756", "text": "public static HourlyWeatherFragment newInstance() {\n HourlyWeatherFragment fragment = new HourlyWeatherFragment();\n Bundle args = new Bundle();\n return fragment;\n }", "title": "" }, { "docid": "a961158cbdcd268068d392444098e409", "score": "0.64697653", "text": "public static WriteDiaryFragment newInstance() {\n Bundle args = new Bundle();\n\n WriteDiaryFragment fragment = new WriteDiaryFragment();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "f72a29a8b717f3a89c56f3b7dc78e37d", "score": "0.6436731", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_dpolist, container, false);\r\n setHasOptionsMenu(false);\r\n\r\n recyclerView = (RecyclerView) rootView.findViewById(R.id.recycler_view);\r\n drAdapter = new DPOReportAdapter(dpoWeekly);\r\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getActivity().getApplicationContext());\r\n recyclerView.setLayoutManager(mLayoutManager);\r\n recyclerView.setItemAnimator(new DefaultItemAnimator());\r\n recyclerView.setAdapter(drAdapter);\r\n\r\n DPOWeeklys dws = new DPOWeeklys(getActivity().getApplicationContext());\r\n ArrayList<DPOWeekly> report = dws.getAllDPOWeeklys();\r\n\r\n for(Integer i = 0; i<report.toArray().length; i++) {\r\n dpoWeekly.add(report.get(i));\r\n }\r\n drAdapter.notifyDataSetChanged();\r\n\r\n FAB = (FloatingActionButton) rootView.findViewById(R.id.fab_dpoWeekly);\r\n FAB.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n fragment = new DPOWeeklyFragment();\r\n title = \"DPO Weekly\";\r\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n fragmentTransaction.replace(R.id.container_body, fragment);\r\n fragmentTransaction.commit();\r\n\r\n }\r\n });\r\n\r\n return rootView;\r\n }", "title": "" }, { "docid": "484653f874ff96154f2ad25717abff18", "score": "0.6426265", "text": "public static CreateEventFragment newInstance() {\n CreateEventFragment fragment = new CreateEventFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "6197b5d554260af4a587563fb536e67f", "score": "0.63979924", "text": "public static SummaryFragment newInstance() {\n SummaryFragment fragment;\n fragment = new SummaryFragment();\n return fragment;\n }", "title": "" }, { "docid": "fdda636f88a7556e208e68e12777c473", "score": "0.63908523", "text": "public static AmountSpentFragment newInstance() {\n AmountSpentFragment fragment = new AmountSpentFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "7f7b66a5f379f17708c27f4ca708d4a2", "score": "0.6366173", "text": "static DatePickerFragment newInstance(Date date)\n {\n //create arguments bundle\n Bundle args = new Bundle();\n args.putSerializable(EXTRA_DATE , date);\n //create fragment instance\n //attach arguments to the fragment\n DatePickerFragment dpf = new DatePickerFragment();\n dpf.setArguments(args);\n\n return dpf;\n }", "title": "" }, { "docid": "3d97a6ad816f02d55de879f0714c60b6", "score": "0.6337357", "text": "public DashBoardFragment() {\n }", "title": "" }, { "docid": "183df8beac79e4c6621331997b767643", "score": "0.6319854", "text": "public static NewsListFragment newInstance() {\n NewsListFragment fragment = new NewsListFragment();\n return fragment;\n }", "title": "" }, { "docid": "1508e06a05de2e3bd2cfc9711f1331ef", "score": "0.63194877", "text": "public static NewsFragment newInstance() {\n NewsFragment fragment = new NewsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "3b366afbc3e2f5af26943dc6cab4d24c", "score": "0.6319086", "text": "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n setDummyData();\n\n View view = inflater.inflate(R.layout.fragment_weekly_weather, container, false);\n setupDaysRecView(view);\n setupTodayViews(view);\n return view;\n }", "title": "" }, { "docid": "fbac717b8a62f1823c4e05b6238d705c", "score": "0.63161033", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_daily_list, container, false);//\n recyclerView = (RecyclerView) v.findViewById(R.id.list);\n\n recyclerView.setHasFixedSize(true);\n // use a linear layout manager\n layoutManager = new LinearLayoutManager(v.getContext());\n recyclerView.setLayoutManager(layoutManager);\n\n // specify an adapter (see also next example)\n mAdapter = new MyDailyRecyclerViewAdapter();\n recyclerView.setAdapter(mAdapter);\n\n return v;\n }", "title": "" }, { "docid": "e5ae69ac539f22ffba060450f6163458", "score": "0.626908", "text": "public ExistingFoodFragment() {\n }", "title": "" }, { "docid": "32a5aea4091c807f30068f09c5489335", "score": "0.6261326", "text": "@SuppressWarnings(\"unused\")\n public static ProgramDayFragment newInstance(int Day) {\n ProgramDayFragment fragment = new ProgramDayFragment();\n fragment.hoDay = Day;\n return fragment;\n }", "title": "" }, { "docid": "8ce8c025fae82aba0233a26da99c32a4", "score": "0.62563765", "text": "@Override\n public Fragment getItem(int position) {\n return EachDayFragment.newInstance(swipeStrings.get(position), dateStrings.get(position));\n\n }", "title": "" }, { "docid": "e9bceaebe2ce70f2d7401432627e7a9d", "score": "0.62279165", "text": "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.extract_by_date_fragment, container, false);\r\n }", "title": "" }, { "docid": "fdd3c5e21bbb906124e61fc5e30e9116", "score": "0.6198213", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_billing_info_daily, container, false);\n }", "title": "" }, { "docid": "d4dc39f0155b487910ba0f6057e867dd", "score": "0.61857915", "text": "public static StatisticsFragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n return fragment;\n }", "title": "" }, { "docid": "e31b8d3f2c7c2297434c2dc6df0ac762", "score": "0.6170459", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n return new DaysOfWeek(inflater.getContext());\n }", "title": "" }, { "docid": "01df38893149527893c201a3cf815162", "score": "0.61682594", "text": "public ReminderListFragment() {\r\n }", "title": "" }, { "docid": "026bbd8ee9a176cd423f5848b997b928", "score": "0.61473024", "text": "public StudentClassAttendanceFragment() {\n }", "title": "" }, { "docid": "444eba06a031162edb1a02cd16a2fa26", "score": "0.6146309", "text": "public NewsFeedFragment() {\n \t}", "title": "" }, { "docid": "f17d33d2dfa00a657c2cadc3156ad967", "score": "0.614165", "text": "public static AddEventFrag newInstance() {\r\n AddEventFrag fragment = new AddEventFrag();\r\n Bundle args = new Bundle();\r\n// args.putString(ARG_PARAM1, param1);\r\n// args.putString(ARG_PARAM2, param2);\r\n //fragment.setArguments(args);\r\n return fragment;\r\n }", "title": "" }, { "docid": "0ddf36a24ecaf16b747218a3be89ed5c", "score": "0.6139002", "text": "public DashboardFragment() {\n }", "title": "" }, { "docid": "c6d3fd2c4b785cb99cbe1cb8281b48a7", "score": "0.61244506", "text": "public static DepartmentFragment newInstance(Department department) {\n DepartmentFragment fragment = new DepartmentFragment();\n fragment.department = department;\n return fragment;\n }", "title": "" }, { "docid": "6a62caa357fbceb9ca195c9393a05d01", "score": "0.6114968", "text": "public static EventInfoFragment newInstance() {\n EventInfoFragment fragment = new EventInfoFragment();\n return fragment;\n }", "title": "" }, { "docid": "8f0828533c59e698dfa5b4924113e572", "score": "0.60857207", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n {\n View root = inflater.inflate(R.layout.lay_fragdatamurid, container, false);\n\n dateandtimeMurid = Calendar.getInstance(Locale.US);\n BindingView(root);\n return root;\n }", "title": "" }, { "docid": "2de1d343949b77863eba8d00bc69026e", "score": "0.60793656", "text": "public static ArticlePageFrag newInstance() {\n // create a fragment:\n ArticlePageFrag articlesPageFrag = new ArticlePageFrag();\n\n // return the prepared fragment:\n return articlesPageFrag;\n\n }", "title": "" }, { "docid": "40bfe0300a5b8b9c8b831fd234425198", "score": "0.60488683", "text": "public static DatePickerFragment newInstance(Date date) {\n Bundle args = new Bundle();\n args.putSerializable(ARG_DATE, date);\n\n DatePickerFragment fragment = new DatePickerFragment();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "9cb754f7c86a6d05ee77d9baecb20272", "score": "0.60452956", "text": "public NewsDetailFragment() {\n }", "title": "" }, { "docid": "6b80041ab8913e326443a6b23d52e3ae", "score": "0.60409874", "text": "protected Fragment createFragment() {\n UUID projectId = (UUID) getIntent()\n .getSerializableExtra(EXTRA_PROJECT_ID);\n return ProjectFragment.newInstance(projectId);\n }", "title": "" }, { "docid": "104ece252f32788a4ad4b6a8ab424bd0", "score": "0.603181", "text": "public WeatherForecastFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "265e2f07d89abbb7952533e5bf8804f3", "score": "0.60271794", "text": "public static WelcomeFragment newInstance() {\n return new WelcomeFragment();\n }", "title": "" }, { "docid": "8095a6ec23c796f795eaddbdda46ff72", "score": "0.6017619", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mLeagueID = 0;\n if (getArguments() != null) {\n mLeagueID = getArguments().getInt(\"leagueID\");\n }\n\n\n // Inflate the layout for this fragment\n mLayout = inflater.inflate(R.layout.fragment_today, container, false);\n\n //set up the recycler view\n mRecyclerView = (RecyclerView) mLayout.findViewById(R.id.fragment_today_recycle);\n\n// // use this setting to improve performance if you know that changes\n// // in content do not change the layout size of the RecyclerView\n mRecyclerView.setHasFixedSize(true);\n\n // use a linear layout manager\n mLayoutManager = new LinearLayoutManager(getActivity());\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n mAdapter = new TodaysGameAdapter(this, mLeagueID);\n mRecyclerView.setAdapter(mAdapter);\n return mLayout;\n }", "title": "" }, { "docid": "7e4320ec678f24d4148eb4dd9badaa6d", "score": "0.60032696", "text": "public static studyFragment newInstance() {\n\n return new studyFragment();\n }", "title": "" }, { "docid": "b7b374c5a98523cec477caba1142c442", "score": "0.60006005", "text": "public static NoDataFragment newInstance() {\n return new NoDataFragment();\n }", "title": "" }, { "docid": "1cd894921b1a011064f0c9e798959f7e", "score": "0.5987537", "text": "public static Fragment newInstance() {\n return MainFragment_.builder().build();\n }", "title": "" }, { "docid": "6b90ab5bcf0b6366844d77f2e056eb11", "score": "0.5982461", "text": "public static Fragment newInstance() {\n RxJavaFragment fragment = new RxJavaFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "067dea9445befb2a1c135871690787da", "score": "0.59813124", "text": "public static IncidentFragment newInstance() {\n IncidentFragment fragment = new IncidentFragment();\n Bundle args = new Bundle();\n return fragment;\n }", "title": "" }, { "docid": "c2c7cc12c91b778cb3e210f717822e32", "score": "0.5970837", "text": "static ScheduleFragment newInstance(int num) {\n ScheduleFragment f = new ScheduleFragment();\n\n // Supply num input as an argument.\n Bundle args = new Bundle();\n args.putInt(\"num\", num);\n f.setArguments(args);\n\n return f;\n }", "title": "" }, { "docid": "984eda0e02acbd6d3fc9bd59e6085dd0", "score": "0.59479845", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_body, container, false);\n\n TextView textFlag = (TextView)v.findViewById(R.id.flag);\n TextView textCompass = (TextView)v.findViewById(R.id.compass);\n TextView textHumidity = (TextView)v.findViewById(R.id.humidity);\n\n DataCell data;\n List<DataCell> arrayList = new ArrayList<>();\n if (mParam1 != null) {\n Gson gson = new Gson();\n Daily daily = gson.fromJson(mParam1, Daily.class);\n\n for (int i = 0; i < daily.data.size()-3; i++) {\n data = new DataCell();\n data.day = getDay(i);\n data.icon = daily.data.get(i).icon;\n data.temp = daily.data.get(i).temperatureHigh;\n arrayList.add(data);\n }\n cellDaily(arrayList, v);\n\n textFlag.setText(mParam2 + \" MPH\");\n Double humidity = Double.parseDouble(mHumidity) * 100;\n DecimalFormat format = new DecimalFormat(\"0.#\");\n\n textHumidity.setText(format.format(humidity) + \"%\");\n textCompass.setText(\"\");\n\n }\n return v;\n }", "title": "" }, { "docid": "7e8d83962ce171ac669d5c2df8e23bd1", "score": "0.5944606", "text": "public static MyShowsFragment newInstance() {\n MyShowsFragment fragment = new MyShowsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "7bd6527738b73c1dc580769a42fe1926", "score": "0.59436685", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n todaysFragmentView = inflater.inflate(R.layout.fragment_todays, container, false);\n\n adView = (AdView) todaysFragmentView.findViewById(R.id.adview);\n adRequest = new AdRequest.Builder().build();\n adView.loadAd(adRequest);\n\n adview1 = (AdView) todaysFragmentView.findViewById(R.id.ad_below_top_report);\n adRequest2 = new AdRequest.Builder().build();\n adview1.loadAd(adRequest2);\n\n return todaysFragmentView;\n }", "title": "" }, { "docid": "e2df5067446bb37a153342302cb0ca2f", "score": "0.59313905", "text": "public static TrainingFragment newInstance () {\n TrainingFragment fragment = new TrainingFragment();\n //fragment.setArguments(arguments);\n return fragment;\n }", "title": "" }, { "docid": "d2b5158effec8bdc0e64bb6371b07a83", "score": "0.59313864", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_timeslot_day2, container, false);\n\n }", "title": "" }, { "docid": "9c9698d6fa897a40c571afa267d850b7", "score": "0.59238034", "text": "@Override\n protected Fragment createFragment() {\n //Get long ID of venue selected\n long venueID = (long) getIntent()\n .getSerializableExtra(VenueFragment.EXTRA_VENUE_ID);\n\n //Returns venue fragment, pass in venue ID param to ensure correct venue object\n return VenueFragment.newInstance(venueID);\n }", "title": "" }, { "docid": "fc4ff5808962335349e83a59696fc287", "score": "0.592106", "text": "public static PagingExampleFragment newInstance() {\r\n final PagingExampleFragment fragment = new PagingExampleFragment();\r\n final Bundle args = new Bundle();\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "title": "" }, { "docid": "1d0e2bb88cc17d555a26e3ba3d7063e9", "score": "0.591944", "text": "public static AnnouncementsFragment newInstance() {\n return new AnnouncementsFragment();\n }", "title": "" }, { "docid": "d254d65c67da8f14a5139c6d6f946bdd", "score": "0.59129214", "text": "public static ComicViewFragment newInstance() {\n ComicViewFragment fragment = new ComicViewFragment();\n return fragment;\n }", "title": "" }, { "docid": "81879be8689ec4f2bf1800dfa1952449", "score": "0.5907371", "text": "public static PendingDetailsFragment newInstance() {\n PendingDetailsFragment fragment = new PendingDetailsFragment();\n\n return fragment;\n }", "title": "" }, { "docid": "837af11d9f105900766fa4c8cbdddef9", "score": "0.58880943", "text": "@Override\n public void onClick(View v) {\n getFragmentManager()\n .beginTransaction()\n .replace(R.id.main_fragment_container, DateFragment.newInstance(day))\n .addToBackStack(null)\n .commit();\n }", "title": "" }, { "docid": "37dbba033b372f5024ee62fd3ffb08af", "score": "0.58787906", "text": "public DrinkListFragment() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "271dd3d5a01e8d84911ca7849813d2fa", "score": "0.5869322", "text": "public static MonitoringFragment newInstance()\n\t{\n\t\tMonitoringFragment fragment = new MonitoringFragment();\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "69102cbe0a04f8c088f8c6ec3b9fc383", "score": "0.5862019", "text": "public static NotificationsFragment newInstance() {\n NotificationsFragment fragment = new NotificationsFragment();\n return fragment;\n }", "title": "" }, { "docid": "c20edf0389b95f38b13d91dd02a54d92", "score": "0.58556855", "text": "public static ProgramFragment newInstance() {\n ProgramFragment programFragment = new ProgramFragment();\n\n //Return the newly created dashboardFragment object\n return programFragment;\n }", "title": "" }, { "docid": "f90f07f90e739f2497b5569a6447d44d", "score": "0.5853916", "text": "public static StationList newInstance() {\n StationList fragment = new StationList();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "1e6f94157ec818b7c544040044bad64c", "score": "0.5844502", "text": "public static HomeFragment newInstance() {\n HomeFragment fragment = new HomeFragment();\n// Bundle args = new Bundle();\n// fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "94b6fbb83fd8d236eb0d39a9eebfbcea", "score": "0.58384377", "text": "public static MainActivityFragment newInstance()\n {\n MainActivityFragment fragment = new MainActivityFragment();\n\n // set parameters to be passed to the fragment\n //Bundle args = new Bundle();\n //args.putParcelable(KEY_DATA_CHECKLIST, dataCheckList);\n //fragment.setArguments(args);\n\n return fragment;\n }", "title": "" }, { "docid": "176ae39f3abdbe0ac6bfb5947b660b21", "score": "0.58364457", "text": "public Fragment newInstance(){\n FragmentBase fragment = new FragmentBase();\n return fragment;\n }", "title": "" }, { "docid": "30447dd74d61a0cb8b7c5d80b9997b54", "score": "0.58348715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n theDays=new ArrayList<>();\n View rootView = inflater.inflate(R.layout.fragment_tab1, container, false);\n recyclerView = (RecyclerView) rootView.findViewById(R.id.recyclerView);\n PopulateData();\n init();\n\n\n return rootView;\n\n }", "title": "" }, { "docid": "41f77c495f44714fa28df1ac160db046", "score": "0.583248", "text": "public static FragmentRegister newInstance() {\n fragment = new FragmentRegister();\n return fragment;\n }", "title": "" }, { "docid": "d12c041237c045bd2923fab4509644bb", "score": "0.5831851", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_calendar, container, false);\n\n }", "title": "" }, { "docid": "86ed5470884c66f02763d7e678b33fde", "score": "0.58297366", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View rootView = inflater.inflate(R.layout.fragment_time_table, container, false);\n setHasOptionsMenu(true);\n\n days.add(\"Sunday\");\n days.add(\"Monday\");\n days.add(\"Tuesday\");\n days.add(\"Wednesday\");\n days.add(\"Thursday\");\n days.add(\"Friday\");\n days.add(\"Saturday\");\n\n FloatingActionButton fab = (FloatingActionButton) rootView.findViewById(R.id.fab_time_table_fragment);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), AddClassActivity.class);\n startActivity(intent);\n }\n });\n coordinatorLayout = (CoordinatorLayout) rootView.findViewById(R.id.coordinator_layout_time_table_fragment);\n mWeekView = (WeekView) rootView.findViewById(R.id.weekView_timetable_fragment);\n mWeekView.setMonthChangeListener(this);\n mWeekView.setOnEventClickListener(this);\n\n return rootView;\n }", "title": "" }, { "docid": "8e485b89edacbcd375bad33f2bf1c8fa", "score": "0.5827158", "text": "protected abstract Fragment createFragment();", "title": "" }, { "docid": "8e485b89edacbcd375bad33f2bf1c8fa", "score": "0.5827158", "text": "protected abstract Fragment createFragment();", "title": "" }, { "docid": "8e485b89edacbcd375bad33f2bf1c8fa", "score": "0.5827158", "text": "protected abstract Fragment createFragment();", "title": "" }, { "docid": "8e485b89edacbcd375bad33f2bf1c8fa", "score": "0.5827158", "text": "protected abstract Fragment createFragment();", "title": "" }, { "docid": "aa4dc9ad1543869530d10d661b85af06", "score": "0.58233327", "text": "public static PendingTaskFragment newInstance() {\n PendingTaskFragment fragment = new PendingTaskFragment();\n return fragment;\n }", "title": "" }, { "docid": "16615cdd1a854c36eebd6feb60a30db7", "score": "0.58137226", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil.inflate(inflater,\n R.layout.fragment_tomorrow, container, false);\n View rootView = binding.getRoot();\n\n iTomorrowFragmentPresenter = new TomorrowFragmentPresenter(this);\n iTomorrowFragmentPresenter.onCreatePresenter(getArguments());\n return rootView;\n }", "title": "" }, { "docid": "fb9013c2ca78bb52d525e96c140ada42", "score": "0.5810241", "text": "public static HomeFragment newInstance() {\n HomeFragment fragment = new HomeFragment();\n return fragment;\n }", "title": "" }, { "docid": "ce4546c16efe8778baaef12481062189", "score": "0.5807868", "text": "public static NewUserFragment newInstance() {\n\t\tNewUserFragment fragment = new NewUserFragment();\n\t\treturn fragment;\n\t}", "title": "" }, { "docid": "8b7bb615841fdcc98e51e92f80c9e786", "score": "0.5807708", "text": "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new RunListFragment();\n\t}", "title": "" }, { "docid": "ec5bd7ec22f00a330552d0e0c53840ea", "score": "0.57999533", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_select_date, container, false);\n }", "title": "" }, { "docid": "d5c756f33f0c4ce14c4e695a32a56632", "score": "0.5794502", "text": "public static SetsDownloadFragment newInstance() {\n return new SetsDownloadFragment();\n }", "title": "" }, { "docid": "bfb8b3ec04266bb63d9ba6a8f2ef7758", "score": "0.5786627", "text": "public HomeFragment(){}", "title": "" }, { "docid": "bfb8b3ec04266bb63d9ba6a8f2ef7758", "score": "0.5786627", "text": "public HomeFragment(){}", "title": "" }, { "docid": "f182650c9e77d8824a9aea17aa7c7df0", "score": "0.5784723", "text": "public DetailFragment() {}", "title": "" }, { "docid": "faaf93c8fa9584e13b81a6bd0d846a06", "score": "0.5784221", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dm, container, false);\n\n initView();\n return view;\n }", "title": "" }, { "docid": "63706b75d87c8004e73c5237d8100e39", "score": "0.57836586", "text": "public WorkExperienceFragment() {\n\t}", "title": "" }, { "docid": "bcc8aa12d3c055bf6ba31198e7b994cb", "score": "0.57755244", "text": "public static historyFragment newInstance() {\n historyFragment fragment;\n fragment = new historyFragment();\n\n return fragment;\n }", "title": "" }, { "docid": "ca4d22f6e9171faee7a2707cd1222938", "score": "0.57752347", "text": "public static HelloFragment newInstance() {\n return new HelloFragment();\n }", "title": "" }, { "docid": "128f917d61ff50121a7839b5e3822273", "score": "0.5772258", "text": "public RegisterFragment() {\n @SuppressWarnings(\"unused\")\n public static RegisterFragment newInstance(int columnCount) {\n AFragment fragment = new RegisterFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_COLUMN_COUNT, columnCount);\n fragment.setArguments(args);\n return fragment;\n }\n }", "title": "" }, { "docid": "c3b610906a3f006019f9162d16900986", "score": "0.57697594", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\t\t// Display the fragment as the main content.\n\t\tFragmentManager mFragmentManager = getFragmentManager();\n\t\tFragmentTransaction mFragmentTransaction = mFragmentManager\n\t\t\t\t.beginTransaction();\n\t\tUUID birthdayId = (UUID)getIntent()\n\t .getSerializableExtra(BirthdayFragment.EXTRA_BIRTHDAY_ID);\n\t\tBirthdayFragment mPrefsFragment = BirthdayFragment.newInstance(birthdayId);\n\t\tmFragmentTransaction.replace(android.R.id.content, mPrefsFragment);\n\t\tmFragmentTransaction.commit();\n }", "title": "" }, { "docid": "8d7ca9ad0dcd4072614fd59c2509b1e0", "score": "0.57694155", "text": "public HomeFragment() {}", "title": "" }, { "docid": "5fbe0125f5c44b747239f7f91d76107a", "score": "0.5768203", "text": "public static Fragment newInstance() {\n return new GifViewPagerFragment();\n }", "title": "" }, { "docid": "6504d0409ce48ae16440a4c46a0944c3", "score": "0.57680875", "text": "public static HomeFragment newInstance() {\n\n return new HomeFragment();\n }", "title": "" }, { "docid": "96fe400f2dd2362f93fcf662866c66d8", "score": "0.57629895", "text": "public NerdLauncherFragment() {\n }", "title": "" }, { "docid": "f22d6c7f7122a7244976f0bac2701d8c", "score": "0.5758438", "text": "public EventDetailFragment() {\n }", "title": "" }, { "docid": "02f60322195e37aabfdc32b8ed79b9d6", "score": "0.5755424", "text": "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_chart, container, false);\n\t}", "title": "" }, { "docid": "80d19dfbe5913df123e7441cfb4b8484", "score": "0.57427925", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil.inflate(inflater, R.layout.fragment_report_record, container, false);\n\n binding.calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {\n @Override\n public void onSelectedDayChange(@NonNull CalendarView view, int year, int month, int dayOfMonth) {\n LogT.i(\"year:\" + year + \",month:\" + month + \",dayOfMonth:\" + dayOfMonth);\n getCurrentReport(year + \"-\" + (month + 1) + \"-\" + dayOfMonth);\n }\n });\n\n// initRecyclerView();\n\n return binding.getRoot();\n }", "title": "" }, { "docid": "be5afeb4d5699423cc2a47ceb74f0939", "score": "0.5738987", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bottom_sheet, container, false);\n\n // references to all values in fragment_bottom_sheet\n calendarGroup = view.findViewById(R.id.calendar_group);\n calendarView = view.findViewById(R.id.calendar_view);\n calendarButton = view.findViewById(R.id.today_calendar_button);\n enterItem = (EditText) view.findViewById(R.id.enter_item);\n saveItemButton = view.findViewById(R.id.save_item_button);\n\n //entry point to firebase\n mAuth = FirebaseAuth.getInstance();\n\n return view;\n }", "title": "" } ]
ead77d5d7a993cb7a436e257fc4bbcd9
/ Enabled aggressive block sorting
[ { "docid": "b9b77acba034b8513aab59752b2489d9", "score": "0.0", "text": "public void nX() {\n Object object = this.aou.ff(this.aot);\n if (object != null) {\n object = new Container(this.mContext, this.aoo.getDataLayer(), this.aoc, 0, (cr.c)object);\n this.b(new n(this.aoo, this.IH, (Container)object, new n.a(){\n\n @Override\n public void cr(String string) {\n o.this.cr(string);\n }\n\n @Override\n public String nU() {\n return o.this.nU();\n }\n\n @Override\n public void nW() {\n bh.W(\"Refresh ignored: container loaded as default only.\");\n }\n }));\n } else {\n bh.T(\"Default was requested, but no default container was found\");\n this.b(this.aE(new Status(10, \"Default was requested, but no default container was found\", null)));\n }\n this.aoz = null;\n this.aou = null;\n }", "title": "" } ]
[ { "docid": "7da5807ed2b44fbd318bc5f15004546f", "score": "0.63708955", "text": "@Override\r\n public void sort() {\r\n }", "title": "" }, { "docid": "ec7c386154ae329339dc82bc46f71766", "score": "0.63003445", "text": "public void sort() {}", "title": "" }, { "docid": "a55aab8624b2ebc5837dc88bbebd97d3", "score": "0.6250974", "text": "protected void sort() {\n if (size <= 1) {\n return;\n }\n\n boolean swapped = true;\n\n // TODO: This is bubble sort. Probably not the best choice.\n while (swapped) {\n int index = 0;\n byte[] a = getEncoded(getObjectAt(0));\n \n swapped = false;\n \n while (index != size - 1) {\n int nextIndex = index + 1;\n byte[] b = getEncoded(getObjectAt(nextIndex));\n\n if (lessThanOrEqual(a, b)) {\n a = b;\n } else {\n DEREncodable o = getObjectAt(index);\n \n setObjectAt(getObjectAt(nextIndex), index);\n setObjectAt(o, nextIndex);\n\n swapped = true;\n }\n\n index++;\n }\n }\n }", "title": "" }, { "docid": "649a060cad3d8ce9d8c66a79651b1d75", "score": "0.61835", "text": "public void sort() {\n remap();\n }", "title": "" }, { "docid": "bf5fa35c0b845c0a6b14951cfb89c061", "score": "0.614232", "text": "public void sortThemAll()\n {\n // goToEndOfRow();\n moveToNextUnfinishedRow();\n clearRow();\n while ( anyBeepersInBeeperBag() )\n {\n goToOrigin();\n returnToClearedRow();\n sortRow();\n turnAround();\n goBackToSortedBeepers();\n moveToNextUnfinishedRow();\n clearRow();\n }\n }", "title": "" }, { "docid": "7f98f3bedc0c8b57507f119b6029fefb", "score": "0.603547", "text": "@Override\n\tpublic void ShellSort() {\n\n\t}", "title": "" }, { "docid": "ebbffcc2e752d2c353301e5a8cdcbbe2", "score": "0.60333616", "text": "private void sort() {\n if (_unsorted) {\n Arrays.sort(_data, 0, _dataCount);\n _unsorted= false;\n }\n }", "title": "" }, { "docid": "c7a4f65dc95af8093c5c266765c65ada", "score": "0.5976286", "text": "public void sort() {\n\tcheckModel();\n\tshuttleSort((int[]) indices.clone(),indices,0,indices.length);\n}", "title": "" }, { "docid": "54f703c716e9508ce0580a61879b9ce7", "score": "0.5975432", "text": "private static void shakenNotStirred() {\n int length = 10000;\n int[] numbers = getIntArrayOfLength(length);\n printArrayWithText(\"-sorted array: \", numbers);\n\n int buff;\n long positiveSwaps = 0;\n long negativeSwaps = 0;\n long startTime = System.currentTimeMillis();\n for (int i = 0; i < length; i++) {\n // Без последнего элемента, т.к. будет свайп j+1\n for (int j = 0; j < length - i - 1; j++) {\n if (numbers[j] > numbers[j+1]) {\n buff = numbers[j];\n numbers[j] = numbers[j+1];\n numbers[j+1] = buff;\n positiveSwaps++;\n }\n }\n\n for (int k = length - i - 1; k > i; k--) {\n if (numbers[k] < numbers[k-1]) {\n buff = numbers[k];\n numbers[k] = numbers[k-1];\n numbers[k-1] = buff;\n negativeSwaps++;\n }\n }\n }\n long delta = System.currentTimeMillis() - startTime;\n\n printArrayWithText(\"+sorted array: \", numbers);\n System.out.println(\"swaps positive: \" + positiveSwaps + \", negative: \" + negativeSwaps);\n System.out.println(\"time, ms: \" + delta);\n }", "title": "" }, { "docid": "3957581a9531a951837174b68cf1daea", "score": "0.5919593", "text": "private void sortRandomDrop() {\n ArrayList<RowSorter.SortKey> sortKeys = new ArrayList<>();\n\n sortKeys.add(new RowSorter.SortKey(1, SortOrder.DESCENDING));\n sortKeys.add(new RowSorter.SortKey(0, SortOrder.ASCENDING));\n sortKeys.add(new RowSorter.SortKey(4, SortOrder.ASCENDING));\n sorter.setSortKeys(sortKeys);\n sorter.sort();\n\n }", "title": "" }, { "docid": "ecc3acf1b22b7fe3d7037aec9a6d8160", "score": "0.5914245", "text": "@Override\n\tpublic void sortAsc() {\n\t\t\n\t}", "title": "" }, { "docid": "1ba5d49219c5ebb30c65b1a6aca935ed", "score": "0.59046036", "text": "@Override\n public void sort() {\n // Knuth Sequence : k\n // Gap calculate : (3^k -1 ) / 2\n for (int gap = this.array.length / 2; gap > 0; gap /= 2) {\n for (int i = gap; i < this.array.length; i++) {\n int element = this.array[i];\n int index = i;\n while (index >= gap && this.array[index - gap] > element) {\n this.array[index] = this.array[index - gap];\n index -= gap;\n }\n this.array[index] = element;\n }\n }\n }", "title": "" }, { "docid": "fed002706a81699ba4fb1fc04cf78f3d", "score": "0.5881195", "text": "private void sortTracks()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "e97ac7af90c21e5a930f375d1c8a49f0", "score": "0.58743316", "text": "private void sortAndPrune() {\n\t\t\n\t\tCollections.sort( this.theLeakiestList, LeakySpankContext.PCT_OF_RUNS_WITH_UPWARD_TRENDING_BYTES );\n\t\t\n\t\tfor(int i = this.theLeakiestList.size()-1;\n\t\t\t\ti > this.getDisplayRowCount()-1;\n\t\t\t\ti--) {\n\t\t\tthis.theLeakiestMap.remove(this.theLeakiestList.get(i).line.className);\n\t\t\tthis.theLeakiestList.remove(i);\n\t\t}\n\t}", "title": "" }, { "docid": "54f7558f92e7f9104671b26e014a896f", "score": "0.587239", "text": "@Override\r\n\tpublic void sort() {\r\n\r\n\t\tmergeSortRec(points);\r\n\r\n\t}", "title": "" }, { "docid": "da3eee953ff4d2aa968addab02bc92af", "score": "0.5858086", "text": "public void shellsort(){\n int i, intercambio = getNumRegistros();\n boolean band;\n \n while(intercambio > 1){\n \n intercambio /= 2;\n band = true;\n \n while(band){\n band = false;\n i = 1;\n \n while((i + intercambio) <= getNumRegistros() - 1){\n if(swap(i - 2, i) > -1)\n band = true;\n i++;\n\n } \n } \n }\n }", "title": "" }, { "docid": "48b6f350359b5288b3c03721212a6322", "score": "0.5853505", "text": "private boolean sort256(byte[] input, int blkptr, int count)\n {\n return new BucketSort().sort(input, blkptr, count);\n }", "title": "" }, { "docid": "f3400166fab9027bc29221ee36a18878", "score": "0.58361346", "text": "private void updateSelectionOrdering() {\n\t\torderBlocksBySelection();\n\t\t\n\t\t// then we need to re-find the selected block index\n\t\tfor (int i = 0; i < blocks.length; i++) {\n\t\t\tif (blocks[i].isSelected()) {\n\t\t\t\tselectedIndx = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "47f7831f53f6be056e3a746b1da5de43", "score": "0.5834806", "text": "public void bubbleRemasteredSort () {\n boolean sorted = false;\n int j = vector.getArray().length - 1;\n while (!sorted) {\n sorted = true;\n for (int i = 0; i < j; i++) {\n if (vector.getArray()[i] > vector.getArray()[i + 1]) {\n int aux = vector.getArray()[i];\n vector.getArray()[i] = vector.getArray()[i + 1];\n vector.getArray()[i + 1] = aux;\n sorted = false;\n }\n }\n j--;\n }\n }", "title": "" }, { "docid": "c4ec8b10b5c37f5901b54570a206e300", "score": "0.5809598", "text": "public void sort();", "title": "" }, { "docid": "c4ec8b10b5c37f5901b54570a206e300", "score": "0.5809598", "text": "public void sort();", "title": "" }, { "docid": "416d2cc353d0bf7b33c8e63b7980ec19", "score": "0.5798709", "text": "public void sortRow()\n {\n while ( anyBeepersInBeeperBag() )\n {\n putBeeper();\n if ( frontIsClear() )\n {\n move();\n }\n }\n\n while ( anyBeepersInBeeperBag() )\n {\n putBeeper();\n }\n\n }", "title": "" }, { "docid": "d4507dc75a39e4afa0f0b904ae3449c9", "score": "0.5782769", "text": "public void sort() {\n\n }", "title": "" }, { "docid": "6845b809808bbaf256679def11ec60c7", "score": "0.57654774", "text": "Sort getComputationCell();", "title": "" }, { "docid": "e6a0c5ef27afad2fba40af80c300e4c8", "score": "0.5730985", "text": "public void bublesort()\n {\n //ausgeben();\n for(int i=0; i<numbers.length-1; i++)\n {\n boolean exchanged = false;\n for(int j=0; j<numbers.length-1-i; j++)\n {\n if(numbers[j]>numbers[j+1])\n {\n exchange(j,j+1);\n exchanged = true;\n }\n }\n\n if (!exchanged) return;\n //ausgeben();\n }\n }", "title": "" }, { "docid": "5f3f09f3331c32c9280ab4667fd7088b", "score": "0.57217807", "text": "void sortMatriks(){\n\t\tint maks,idxmaks;\r\n\t\tfor (int i = 0; i<this.brs; i++){\r\n\t\t\tidxmaks = this.brs-1;\r\n\t\t\tmaks = this.getFirstIdx(idxmaks);\r\n\t\t\tfor (int j = this.brs-2; j>-1+i; j--){\r\n\t\t\t\tif (maks <= this.getFirstIdx(j)){\r\n\t\t\t\t\tthis.tukarBaris(idxmaks,j);\r\n\t\t\t\t\tidxmaks = j;\r\n\t\t\t\t\tmaks = this.getFirstIdx(idxmaks);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f57f56df74a3483ff4c99d54bc803a21", "score": "0.5697198", "text": "@Override\n\tpublic void selectionSort() {\n\n\t}", "title": "" }, { "docid": "931e13f56fa757c092b3df829291cb96", "score": "0.56951964", "text": "public void internalOrdering() {\n \t\tif(l.val>r.val)\n \t\t{\n \t\t\tPoint temp = l;\n \t\t\tl = r;\n \t\t\tr = temp;\n \t\t}\n }", "title": "" }, { "docid": "b092232766429cc42c6b415d378f638b", "score": "0.568328", "text": "@Override\npublic void sort(SortMode sortMode) { sort(null, sortMode); }", "title": "" }, { "docid": "94943ebd79d70171f65712659b0040be", "score": "0.568275", "text": "public void selectionsort()\n {\n //ausgeben();\n for(int i=0; i<numbers.length-1; i++)\n {\n exchange(i,minimalPosition(i));\n //ausgeben();\n }\n }", "title": "" }, { "docid": "01acd94f1307070ab79392082fe0c758", "score": "0.5674735", "text": "public void sortList() {\n\t\tkadry.sort(new SortBrutto());\n\t}", "title": "" }, { "docid": "65bab11ae78bf6110152406e3bea84f1", "score": "0.5665567", "text": "private void sort() {\n for (int i = 0; i < instance.GetSize() - 1; i++) {\n for (int j = 0; j < instance.GetSize() - i - 1; j++) {\n if (instance.GetItem(j).GetValue() / instance.GetItem(j).GetWeight() <= instance.GetItem(j+1).GetValue() / instance.GetItem(j+1).GetWeight()) {\n instance.swap(j, j+1);\n }\n }\n }\n }", "title": "" }, { "docid": "e57d16fd4104fefc40145f32781b8474", "score": "0.5655515", "text": "@Override\n public void sortByNewest() {\n }", "title": "" }, { "docid": "76313b3e74f97b3a1698da6d57927260", "score": "0.56453836", "text": "public void shakersort(){\n int i, retorno, ultimo = 1, izq = 2, der = getNumRegistros() - 1;\n \n while(izq <= der){\n for(i = der; i >= izq; i--){\n retorno = swap(i - 1, i);\n if(retorno > -1)\n ultimo = retorno;\n }\n \n izq = ultimo + 1;\n for(i = izq; i <= der; i++){\n retorno = swap(i - 1, i);\n if(retorno > -1)\n ultimo = retorno;\n }\n der = ultimo - 1;\n }\n }", "title": "" }, { "docid": "dafd5c4305525786e113ec7cf3b1f8fd", "score": "0.5634064", "text": "public static int[] BUmergeSortGraphics(int[] list) throws InterruptedException {\n\n int largest = list[0];\n for (int z : list) {\n if (z > largest) {\n largest = z;\n }\n }\n\n for (int z = 0; z < list.length; z++) {\n StdDraw.rectangle((1 + 2 * z) / ((double) list.length * 2), list[z] / ((double) largest + 1) / 2, 1 / ((double) list.length * 2), list[(int) z] / ((double) largest + 1) / 2);\n }\n\n int oddIndex = 0;\n boolean enteredFor = false;\n\n for (int divisor = 1; divisor <= list.length; divisor *= 2) {\n Thread.sleep(500);\n for (int x = 0; x < list.length - 2 * divisor; x += 2 * divisor) {\n outPlaceSort(list, x, x + divisor - 1, x + divisor, x + 2 * divisor - 1);\n\n StdDraw.clear();\n for (int z = 0; z < list.length; z++) {\n\n StdDraw.rectangle((1 + 2 * z) / ((double) list.length * 2), list[z] / ((double) largest + 1) / 2, 1 / ((double) list.length * 2), list[(int) z] / ((double) largest + 1) / 2);\n }\n Thread.sleep(50);\n\n oddIndex = x;\n enteredFor = true;\n }\n if (enteredFor == true) {\n outPlaceSort(list, oddIndex, oddIndex + 2 * divisor - 1, oddIndex + 2 * divisor, list.length - 1);\n }\n enteredFor = false;\n\n }\n\n StdDraw.clear();\n for (int z = 0; z < list.length; z++) {\n StdDraw.rectangle((1 + 2 * z) / ((double) list.length * 2), list[z] / ((double) largest + 1) / 2, 1 / ((double) list.length * 2), list[(int) z] / ((double) largest + 1) / 2);\n }\n\n return list;\n }", "title": "" }, { "docid": "0d7a92ad38265da478001ab9dbea526a", "score": "0.56151885", "text": "public void sortDown(){\n mergeSortDown(data, 0, getSize(), new int[getSize()]);\n }", "title": "" }, { "docid": "e8dbaab807b8bdc60c5940a33c4f0272", "score": "0.5610511", "text": "private void sortScheduled()\n {\n \tint i, j;\n \tCard c;\n \tlong key;\n \n \tfor (i=1; i < num_scheduled; ++i) {\n \t c = q[i];\n \t key = c.sortKeyInterval();\n \n \t for (j=i-1; j >= 0 && q[j].sortKeyInterval() > key; --j) {\n \t\tq[j + 1] = q[j];\n \t }\n \t q[j + 1] = c;\n \n \t if (i % 10 == 0 && progress != null) {\n \t\tprogress.updateOperation(10);\n \t }\n \t}\n }", "title": "" }, { "docid": "d68b73db95224630c51c1d59c34caab2", "score": "0.56104726", "text": "@Override\n\tpublic void insertionSort() {\n\n\t}", "title": "" }, { "docid": "f083cf83747f5c0baabbc72a99da3566", "score": "0.56096774", "text": "private void par_sort(Comparator<T> comp) {\n\t\tnew MergeSort<T>(comp).parallel_sort(this); //Run this within the critical section\n\t\t//executorService.shutdown();\n }", "title": "" }, { "docid": "cc2a7541f4642cb2badac13f028b9f8a", "score": "0.5609592", "text": "void optimizableAlwaysOrdered(Optimizable optimizable);", "title": "" }, { "docid": "eb9be1934bb7df4a1f593f5c69d1bc33", "score": "0.5604099", "text": "public static void OnePassMergeSort(RandomAccessFile in, DataOutputStream out, long sortedSectionSize)\n\t{ \n\t\ttry {\n\t\t\t//PriorityQueue<Pair> minHeap = new PriorityQueue<Pair>();\n\t\t\t\n\t\t\t\n\t\t\tfinal int numberSortedSections = (int) (in.length()/sortedSectionSize)+1;\n\t\t\tlong[] startPointers = new long[numberSortedSections]; // records start of each sorted section\n\t\t\tlong[] toGoBlocks = new long[numberSortedSections]; // records number of 8192 blocks still unread on Disk for section\n\t\t\tbyte[][] blocks = new byte[numberSortedSections][8192]; // stores the 8192 blocks\n\t\t\tint[] blockPointers = new int[numberSortedSections]; // records pointer location in block\n\t\t\tint[] blockSize = new int[numberSortedSections]; // record how much of the 8192 is current block - may not use entire \n\t\t\tint[] initialMins = new int[numberSortedSections]; //required for the min heap \n\t\t\t//initialise values;\n\t\t\tfor(int i =0; i < numberSortedSections; i ++)\n\t\t\t{\n\t\t\t\tstartPointers[i] = sortedSectionSize*i; \n\t\t\t\tin.seek(sortedSectionSize*i);\n\t\t\t\tint length = in.read(blocks[i]);\n\t\t\t\tif(i != numberSortedSections-1)\n\t\t\t\t\ttoGoBlocks[i] = sortedSectionSize/8192-1;\n\t\t\t\telse\n\t\t\t\t\ttoGoBlocks[i] = (in.length()-sortedSectionSize*i)/8192;\n\t\t\t\tblockSize[i] = length;\n\t\t\t\tstartPointers[i] += length;\n\t\t\t\tint val = ((blocks[i][blockPointers[i]+3] & 0xFF) | ((blocks[i][2 + blockPointers[i]] & 0xFF) << 8) |\n\t\t ((blocks[i][1 + blockPointers[i]] & 0xFF) << 16) | ((blocks[i][0 + blockPointers[i]] & 0xFF) << 24));\n\t\t\t\tinitialMins[i] = val;\n\t\t\t}\n\t\t\tMinimumHeap heap = new MinimumHeap(initialMins);\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twhile(!heap.isEmpty())\n\t\t\t{\n\t\t\t\t//select smallest value and add to output buffer\n\t\t\t\tint smallestBlock = heap.minBlock();\n\t\t\t\tint smallestBlockPointer = blockPointers[smallestBlock];\n\t\t\t\tbyte[] entireOfSmallestBlock = blocks[smallestBlock];\n\t\t\t\tint smallestVal = ((entireOfSmallestBlock[smallestBlockPointer+3] & 0xFF) | ((entireOfSmallestBlock[2 + smallestBlockPointer] & 0xFF) << 8) |\n\t\t ((entireOfSmallestBlock[1 + smallestBlockPointer] & 0xFF) << 16) | ((entireOfSmallestBlock[0 + smallestBlockPointer] & 0xFF) << 24));\n\n\t\t\t\tout.writeInt(smallestVal);\n\t\t\t\t\n\t\t\t\tblockPointers[smallestBlock] += 4;\n\t\t\t\tif(smallestBlockPointer >= blockSize[smallestBlock]-4)\n\t\t\t\t{\n\t\t\t\t\tif(toGoBlocks[smallestBlock] > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t// space left\n\t\t\t\t\t\ttoGoBlocks[smallestBlock] --; \n\t\t\t\t\t\tin.seek(startPointers[smallestBlock]);\n\t\t\t\t\t\tint length = in.read(blocks[smallestBlock]);\n\t\t\t\t\t\tblockSize[smallestBlock] = length;\n\t\t\t\t\t\tstartPointers[smallestBlock] += length;\n\t\t\t\t\t\tblockPointers[smallestBlock] = 0;\n\t\t\t\t\t\theap.replace((blocks[smallestBlock][3] & 0xFF) | ((blocks[smallestBlock][2] & 0xFF) << 8) |\n\t\t\t\t ((blocks[smallestBlock][1] & 0xFF) << 16) | ((blocks[smallestBlock][0] & 0xFF) << 24));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\theap.deleteHead();\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\tsmallestBlockPointer += 4;\n\t\t\t\t\theap.replace((blocks[smallestBlock][smallestBlockPointer+3] & 0xFF) | ((blocks[smallestBlock][2 + smallestBlockPointer] & 0xFF) << 8) |\n\t\t\t ((blocks[smallestBlock][1 + smallestBlockPointer] & 0xFF) << 16) | ((blocks[smallestBlock][0 + smallestBlockPointer] & 0xFF) << 24));\n\t\t\t\t}\n\t\t\t}\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "30e767a7e09034900a00468762af6b00", "score": "0.56007344", "text": "public ArrayList<Tuple> twoPassSort(Relation relation, MainMemory memory, String fieldName){\n twoPassHelper(relation, memory, fieldName);\n\n //phase 2: merging\n int numOfBlocks = relation.getNumOfBlocks();\n ArrayList<Tuple> res = new ArrayList<>();\n ArrayList<ArrayList<Tuple>> tuples = new ArrayList<>();\n ArrayList<Pair<Integer, Integer>> blockIndexOfSublists = new ArrayList<>();\n\n //bring in a block from each of the sorted sublists\n for(int i = 0, j = 0; i < numOfBlocks; i += memory.getMemorySize(), j++){\n //initial index must be i + 1\n blockIndexOfSublists.add(new Pair<>(i + 1, Math.min(i + memory.getMemorySize(), numOfBlocks)));\n relation.getBlock(i, j);\n tuples.add(memory.getTuples(j, 1));\n }\n\n for(int k = 0; k < relation.getNumOfTuples(); ++k){\n for(int i = 0; i < blockIndexOfSublists.size(); ++i){\n //read in the next block from a sublist if its block is exhausted\n if(tuples.get(i).isEmpty() && (blockIndexOfSublists.get(i).first < blockIndexOfSublists.get(i).second)){\n relation.getBlock(blockIndexOfSublists.get(i).first, i);\n tuples.set(i, memory.getTuples(i, 1));\n blockIndexOfSublists.get(i).first++;\n }\n }\n\n //find the smallest key among the first remaining elements of all the sublists\n ArrayList<Tuple> minTuples = new ArrayList<>();\n for(int j = 0; j < tuples.size(); ++j){\n if(!tuples.isEmpty() && !tuples.get(j).isEmpty()) minTuples.add(tuples.get(j).get(0));\n }\n Tuple minTuple = Collections.min(minTuples, new TupleComparator(fieldName));\n res.add(minTuple);\n\n //remove the minimum element\n for(int j = 0; j < tuples.size(); ++j){\n if(!tuples.get(j).isEmpty() && tuples.get(j).get(0).equals(minTuple)) tuples.get(j).remove(0);\n }\n }\n\n //for(Tuple tuple : res) System.out.println(tuple);\n clearMainMemory();\n return res;\n }", "title": "" }, { "docid": "45b1a2ce1d5814693ebbf982247e8f4f", "score": "0.55963755", "text": "public void incrementalSortGameObjects() {\n if (sortOrder == SortOrder.X) {\n incrementalSortGameObjectsOnXPosition();\n } else {\n incrementalSortGameObjectsOnYPosition();\n }\n }", "title": "" }, { "docid": "a39c47bb4f9686fd5267d96bc817e9a9", "score": "0.55929965", "text": "public void insertionsort()\n {\n //ausgeben();\n for(int i=1; i<numbers.length; i++)\n {\n int exchangeValue = numbers[i];\n int exchangeIndex = i;\n for(int j=i; j>0; j--)\n {\n if(exchangeValue<numbers[j-1])\n {\n exchangeIndex = j-1;\n numbers[j] = numbers[j-1];\n } else break;\n }\n numbers[exchangeIndex] = exchangeValue;\n //ausgeben();\n }\n\n }", "title": "" }, { "docid": "2624ab87a2965097cc588b5f140f6f03", "score": "0.5583842", "text": "private void sort() {\n statistic.remove(0);\n statistic.sort(Comparator.comparingInt(o -> -Integer.parseInt(o[o.length - 1])));\n transferToWriter();\n }", "title": "" }, { "docid": "4953e989d29b7c67319e23b61da09e66", "score": "0.55695546", "text": "@Override\r\n\tpublic void sort() {\r\n\t\t// lower point\r\n\t\tfor (int i = 0; i < points.length - 1; i++) {\r\n\t\t\t// next point or selected point\r\n\t\t\tfor (int j = i + 1; j < points.length - 1; j++) {\r\n\t\t\t\t// if point at j < i swap their positions else move to next j\r\n\t\t\t\tif (pointComparator.compare(points[j], points[i]) == -1) {\r\n\t\t\t\t\tswap(j, i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "af882b1ed5dbd607c6c57e94711691fe", "score": "0.5555284", "text": "public void sort(){\n Comparator comparator = new SpanComparator();\n Collections.sort( this.differences, comparator );\n }", "title": "" }, { "docid": "ab1ffe5c7a7b65afe194e97f21fec1c0", "score": "0.5550107", "text": "public static void sort(TapeDrive<Integer> t1) {\n\t\t//Additional tapes to use when sorting.\n\t\tTapeDrive<Integer> t2 = new TapeDrive<Integer>(TapeSize);\n\t\tTapeDrive<Integer> t3 = new TapeDrive<Integer>(TapeSize);\n\t\tTapeDrive<Integer> t4 = new TapeDrive<Integer>(TapeSize);\n\t\t\n\t\t//TODO: Write this\n\t\tint chunkSize = MainMemorySize;\n\t\tint numChunk;\n\t\tint leftover;\n\t\tint pass = (int)log(TapeSize/MainMemorySize, 2) + 1;\n\t\n\t\tinitialChunk(t1, t3, t4);\n\t\tt1.reset();\n\t\tt3.reset();\n\t\tt4.reset();\n\t\t\n\t\tfor(int i=0; i<pass - 1; i++) {\n\t\t\tnumChunk = TapeSize/(2*chunkSize);\n\t\t\tleftover = TapeSize - 2*chunkSize*numChunk;\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tfor(int j=0; j<numChunk; j++) {\n\t\t\t\t\tif(j % 2 == 0) {\n\t\t\t\t\t\tmergeSort(t3, t4, t1, chunkSize);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmergeSort(t3, t4, t2, chunkSize);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(numChunk % 2 == 0)\n\t\t\t\t\tprocess_leftover(t3, t4, t1, leftover, chunkSize);\n\t\t\t\tif(numChunk % 2 == 1)\n\t\t\t\t\tprocess_leftover(t3, t4, t2, leftover, chunkSize);\n\t\t\t}\n\t\t\tif (i % 2 == 1) {\n\t\t\t\tfor(int j=0; j<numChunk; j++) {\n\t\t\t\t\tif(j % 2 == 0) {\n\t\t\t\t\t\tmergeSort(t1, t2, t3, chunkSize);\n\t\t\t\t\t}\n\t\t\t\t\tif(j % 2 == 1) {\n\t\t\t\t\t\tmergeSort(t1, t2, t4, chunkSize);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(numChunk % 2 == 0)\n\t\t\t\t\tprocess_leftover(t1, t2, t3, leftover, chunkSize);\n\t\t\t\tif(numChunk % 2 == 1)\n\t\t\t\t\tprocess_leftover(t1, t2, t4, leftover, chunkSize);\n\t\t\t}\n\t\t\t\n\t\t\tchunkSize *= 2; \n\t\t\tt1.reset();\n\t\t\tt2.reset();\n\t\t\tt3.reset();\n\t\t\tt4.reset();\n\t\t}\n\t\t\n\t\tleftover = TapeSize - chunkSize;\n\t\tif(leftover != 0) {\n\t\t\tif(pass % 2 == 0) {\n\t\t\t\tprocess_lastpass(t1, t2, t3, chunkSize, leftover);\n\t\t\t\tt1.reset();\n\t\t\t\tt2.reset();\n\t\t\t\tt3.reset();\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<TapeSize; i++) {\n\t\t\t\t\tt1.write(t3.read());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tprocess_lastpass(t3, t4, t1, chunkSize, leftover);\n\t\t}\n\t\telse\n\t\t\tif(pass % 2 == 1) {\n\t\t\t\tfor(int i=0; i<TapeSize; i++) {\n\t\t\t\t\tt1.write(t3.read());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tt1.reset();\n\t\tt2.reset();\n\t\tt3.reset();\n\t\tt4.reset();\n\t\t\t\t\n\t}", "title": "" }, { "docid": "973f5f0ced1d9fe6a2e705fa9cb66a10", "score": "0.5548201", "text": "public static List<Task> sort_onBurst(List<Task> tasks)\n {\n for(int i=0; i<tasks.size(); i++)\n {\n for (int k=0; k<tasks.size()-i-1 ; k++)\n {\n if(tasks.get(k+1).getBurstTime()< tasks.get(k).getBurstTime())\n {// sawp task no i , i+1 \n Collections.swap(tasks, k, k+1);\n }\n \n }\n \n \n }\n return tasks ; \n }", "title": "" }, { "docid": "8a3bc3c4df13f325c0405050ee518ac5", "score": "0.554249", "text": "private static void sort(int a[]) {\n int N = a.length;\n int[] b = new int[N];\n for (int sz = 1; sz < N; sz = sz + sz) {\n for (int lo = 0; lo < N - sz; lo += sz + sz)\n merge(a, lo, lo + sz - 1, Math.min(lo + sz + sz - 1, N - 1), b);\n }\n }", "title": "" }, { "docid": "9242e489e45d33bbaa67aec1ef4ccb08", "score": "0.5539582", "text": "void rSortMatriks(){\n\t\tint maks,idxmaks;\r\n\t\tfor (int i = 0; i<this.brs; i++){\r\n\t\t\tidxmaks = this.brs-1;\r\n\t\t\tmaks = this.getFirstIdx(idxmaks);\r\n\t\t\tfor (int j = this.brs-2; j>-1+i; j--){\r\n\t\t\t\tif (maks >= this.getFirstIdx(j)){\r\n\t\t\t\t\tthis.tukarBaris(idxmaks,j);\r\n\t\t\t\t\tidxmaks = j;\r\n\t\t\t\t\tmaks = this.getFirstIdx(idxmaks);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0aa52f6f74527fbcd937148c8421c0ff", "score": "0.5532803", "text": "void sort();", "title": "" }, { "docid": "0aa52f6f74527fbcd937148c8421c0ff", "score": "0.5532803", "text": "void sort();", "title": "" }, { "docid": "9f2fc950511c6f4d38ffd48c965d2719", "score": "0.55196553", "text": "private static void blockSearch() {\n\t\tfor (int a = 0; a != 4095; a++) {\n\t\t\tif (Block.blockRegistry.getObjectById(a) != null) {\n\t\t\t\tBlock block = (Block) Block.blockRegistry.getObjectById(a);\n\t\t\t\tif (ModConfigHandler.INSTANCE.allBlocksUnbreakable) {\n\t\t\t\t\tblock.setBlockUnbreakable();\n\t\t\t\t}\n\t\t\t\tif (ModConfigHandler.INSTANCE.hardnessMultiplier > 1) {\n\t\t\t\t\tfloat f = block.getBlockHardness(null, 0, 0, 0);\n\t\t\t\t\tblock.setHardness(f * ModConfigHandler.INSTANCE.hardnessMultiplier);\n\t\t\t\t}\n\t\t\t\tif (ModConfigHandler.INSTANCE.minHardness > 0) {\n\t\t\t\t\tfloat f = block.getBlockHardness(null, 0, 0, 0);\n\t\t\t\t\tif (f < ModConfigHandler.INSTANCE.minHardness) {\n\t\t\t\t\t\tf = ModConfigHandler.INSTANCE.minHardness;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f1638307865e2932b7643f9bafeb9a89", "score": "0.5501531", "text": "protected void sortData() {\n int lo = 0;\n int up = rowCount - 1;\n int i, j;\n while (up > lo) {\n j = lo;\n for (i = lo; i < up; i++) {\n if (getMjd(i) > getMjd(i + 1)) {\n flipRows(i, i + 1);\n j = i;\n }\n }\n up = j;\n for (i = up; i > lo; i--) {\n if (getMjd(i) < getMjd(i - 1)) {\n flipRows(i, i - 1);\n j = i;\n }\n }\n lo = j;\n }\n }", "title": "" }, { "docid": "332aabfc8a9a339147fc751a8a70bf8c", "score": "0.548811", "text": "@Override\n public int compareTo(Block that) {\n return this.index.compareTo(that.index);\n }", "title": "" }, { "docid": "4e47274bf0e71258010dc962a07c58d1", "score": "0.54856145", "text": "private void sorted() {\n new Random()\n .longs(20, 0, 100)\n .sorted()\n .forEach(System.out::println);\n\n new Random()\n .longs(20, 0, 100)\n .boxed()\n .sorted(\n (l, r) -> l <= r ? 1 : -1\n )\n .forEach(System.out::println);\n\n }", "title": "" }, { "docid": "2302df5cab54a2d704756179e2c01523", "score": "0.54656535", "text": "@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tboolean b = false;\n\t\tRandom r = new Random();\n\t\tint one = 0;\n\t\tint two = 0;\n\t\tint swap;\n\t\twhile(b == false) {\n\t\t\tb = true;\n\t\t\tfor(int i = 1; i < array.length; i++) {\n\t\t\t\tif(array[i-1] > array[i]) {\t\n\t\t\t\t\tb = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(b != true) {\n\t\t\t\tone = r.nextInt(array.length);\n\t\t\t\ttwo = r.nextInt(array.length);\n\t\t\t\tswap = array[one];\n\t\t\t\tarray[one] = array[two];\n\t\t\t\tarray[two] = swap;\n\t\t\t}\n\t\t\tdisplay.updateDisplay();\n\t\t}\n\t}", "title": "" }, { "docid": "dff9ea8ceec3291931ee1676382cd0b7", "score": "0.54610854", "text": "protected void _sort(List<T> data) {\n\t\tfor (int i=0; i<data.size();i++ )\n\t\t\tfor (int x=1;x<data.size()-i;x++){\n\t\t\t\tswap(data,x);\n\t\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bfd88ac76fe3a761aa7ce23cd07f096b", "score": "0.54578453", "text": "SORT_MODE getSortMode();", "title": "" }, { "docid": "1d5a25f6e2df72d3c966eed638882930", "score": "0.5456055", "text": "public void sort() {\r\n System.out.println(\"Sorting....\"); }", "title": "" }, { "docid": "b06c7273c5ddc432ebe0c1975453c863", "score": "0.5448346", "text": "public void sort()\n/* */ {\n/* 1852 */ Object localObject2 = null;\n/* 1853 */ int i = 1;\n/* */ \n/* */ \n/* */ \n/* 1857 */ while ((localObject2 != this.head.next) && (i != 0)) {\n/* 1858 */ Object localObject1 = localEdge1 = this.head;\n/* 1859 */ localEdge2 = localEdge1.next;\n/* 1860 */ i = 0;\n/* 1861 */ while (localEdge1 != localObject2) {\n/* 1862 */ if (localEdge1.x >= localEdge2.x) {\n/* 1863 */ i = 1;\n/* 1864 */ Edge localEdge3; if (localEdge1 == this.head) {\n/* 1865 */ localEdge3 = localEdge2.next;\n/* 1866 */ localEdge2.next = localEdge1;\n/* 1867 */ localEdge1.next = localEdge3;\n/* 1868 */ this.head = localEdge2;\n/* 1869 */ localObject1 = localEdge2;\n/* */ } else {\n/* 1871 */ localEdge3 = localEdge2.next;\n/* 1872 */ localEdge2.next = localEdge1;\n/* 1873 */ localEdge1.next = localEdge3;\n/* 1874 */ ((Edge)localObject1).next = localEdge2;\n/* 1875 */ localObject1 = localEdge2;\n/* */ }\n/* */ } else {\n/* 1878 */ localObject1 = localEdge1;\n/* 1879 */ localEdge1 = localEdge1.next;\n/* */ }\n/* 1881 */ localEdge2 = localEdge1.next;\n/* 1882 */ if (localEdge2 == localObject2) { localObject2 = localEdge1;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 1887 */ Edge localEdge1 = this.head;\n/* 1888 */ Edge localEdge2 = null;\n/* 1889 */ while (localEdge1 != null) {\n/* 1890 */ localEdge1.prev = localEdge2;\n/* 1891 */ localEdge2 = localEdge1;\n/* 1892 */ localEdge1 = localEdge1.next;\n/* */ }\n/* */ }", "title": "" }, { "docid": "7f70513545495f3a623c9efbde41fc73", "score": "0.54442585", "text": "private void sort(Comparator<T> comp) {\n\n\t\tnew MergeSort<T>(comp).sort(this); //Run this within the critical section (as discussed before)\n\n\t\t//It might not allow you to use this inside critical\n\t\t\t//Create a final pointer = this then use that pointer\n }", "title": "" }, { "docid": "d0cfec4a0758dcf234fe470516b59fe1", "score": "0.5440371", "text": "public void sortUp(){\n mergeSortUp(data, 0, getSize(), new int[getSize()]);\n }", "title": "" }, { "docid": "aa62f4b55763c300149766b5051488f5", "score": "0.5430555", "text": "private void createComparatorChain()\r\n {\r\n List compratorList = new ArrayList(10);\r\n MaksedByteComparatorForTuple keyComparator = null;\r\n if(measureSortModel.getSortOrder() < 2)\r\n {\r\n for(int i = 0;i < dataProcessorInfo.getMaskedByteRangeForSorting().length - 1;i++)\r\n {\r\n if(null==dataProcessorInfo.getMaskedByteRangeForSorting()[i])\r\n {\r\n continue;\r\n }\r\n keyComparator = new MaksedByteComparatorForTuple(dataProcessorInfo.getMaskedByteRangeForSorting()[i],\r\n dataProcessorInfo.getDimensionSortOrder()[i], dataProcessorInfo.getDimensionMasks()[i]);\r\n compratorList.add(keyComparator);\r\n }\r\n }\r\n this.comparatorChain = new ComparatorChain(compratorList);\r\n \r\n MeasureComparatorTuple measureComparator = new MeasureComparatorTuple(measureSortModel.getMeasureIndex(),\r\n measureSortModel.getSortOrder());\r\n compratorList.add(measureComparator);\r\n \r\n }", "title": "" }, { "docid": "d2c76a50f56750a0e189dce0937b2aa4", "score": "0.5423768", "text": "private void sortId() {\n if(sortByID) {\n Collections.sort(results,new SortById());\n sortByID = !sortByID;\n }else {\n Collections.sort(results,new SortByIdD());\n sortByID = !sortByID;\n }\n }", "title": "" }, { "docid": "2ab4983bb7bd7c1537ab8c9684fa0c0e", "score": "0.54132164", "text": "public void test_parallelSort$Ljava_lang_ObjectLjava_util_ComparatorII() {\n // This will result in single thread sort\n TestCase.assertTrue((256 <= (Arrays.MIN_ARRAY_SORT_GRAN)));\n test_parallelSort$Ljava_lang_ObjectLjava_util_ComparatorII(256);\n // This should trigger true parallel sort\n if ((ForkJoinPool.getCommonPoolParallelism()) > 1) {\n TestCase.assertTrue(((256 * 64) > (Arrays.MIN_ARRAY_SORT_GRAN)));\n test_parallelSort$Ljava_lang_ObjectLjava_util_ComparatorII((64 * 256));\n }\n }", "title": "" }, { "docid": "b4cde6ae4742a43dba143f09149e04ba", "score": "0.5408047", "text": "@Override\n public void sort()\n {\n // only need to sort if have multiple entries\n if ( this.numberOfEntries > 1 )\n {\n insertionSort() ;\n }\n\n }", "title": "" }, { "docid": "f5c14c75ebb072d96fae3f0dcc32de0d", "score": "0.5406729", "text": "private static void selectionSort() {\n int length = 10000;\n int[] numbers = getIntArrayOfLength(length);\n printArrayWithText(\"-sorted array: \", numbers);\n\n int nonSortedLength;\n int max;\n int indexToSwapWith;\n long swaps = 0;\n long startTime = System.currentTimeMillis();\n for (int i = 0; i < length; i++) {\n nonSortedLength = length - i;\n indexToSwapWith = nonSortedLength - 1;\n max = numbers[indexToSwapWith];\n for (int j = 0; j < nonSortedLength; j++) {\n if (max < numbers[j]) {\n max = numbers[j];\n indexToSwapWith = j;\n }\n }\n\n if (indexToSwapWith == nonSortedLength - 1) {\n continue;\n }\n\n swaps++;\n numbers[indexToSwapWith] = numbers[nonSortedLength - 1];\n numbers[nonSortedLength - 1] = max;\n }\n long delta = System.currentTimeMillis() - startTime;\n\n printArrayWithText(\"+sorted array: \", numbers);\n System.out.println(\"swaps: \" + swaps);\n System.out.println(\"time, ms: \" + delta);\n }", "title": "" }, { "docid": "8408ede2750d915e5aed99b4908907ab", "score": "0.5406494", "text": "public static void selectionSort(int[] b1)\n\t{\n\t\tint a = (int)System.currentTimeMillis();\n\t\tint smallest;\n\t\tint temp;\n\t\tfor(int i=0; i<b1.length; i++){\n\t\t\tsmallest = i;\n\t\tfor(int j = i+1; j<b1.length; j++){\n\t\t\tif(b1[j]<b1[smallest])\n\t\t\t\tsmallest = j;\n\t\t}\n\t\ttemp = b1[smallest];\n\t\tb1[smallest] = b1[i];\n\t\tb1[i] = temp;\n\t\t\n\t\t}\n\t\tint b = (int)System.currentTimeMillis();\n\t\tSystem.out.printf(\"\\nTime taken for sorting using Selection sort is: %d\\n\",b-a);\n\t\t/*\n\t\tSystem.out.println(\"\\nAfter Sorting\\n\");\n\t\tfor(int element : b1)\n\t\t\tSystem.out.printf(\"%d \",element);\n\t\t*/\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9bcb802d1afc09c51a5a2df9e81d3ad5", "score": "0.5404124", "text": "@Override\n\tpublic int compareTo(Task t) {\n\t\tif (this.isBlocked() && !t.isBlocked()) \n\t\t\treturn -1;\n\t\telse if (!this.isBlocked() && t.isBlocked())\n\t\t\treturn 1;\n\t\telse if (this.isBlocked() && this.isBlocked()) {\n\t\t\tif (this.getBlockCycle() < t.getBlockCycle())\n\t\t\t\treturn 1;\n\t\t\telse if (this.getBlockCycle() > t.getBlockCycle())\n\t\t\t\treturn -1;\n\t\t\telse\n\t\t\t\treturn 0;\n\t\t} else {\n\t\t\tif (this.getIndex() < t.getIndex())\n\t\t\t\treturn -1;\n\t\t\telse\n\t\t\t\treturn 1;\n\t\t}\n\t}", "title": "" }, { "docid": "9b53bbb2833492f47b01655a5682193b", "score": "0.53859437", "text": "protected void h()\r\n/* 240: */ {\r\n/* 241:311 */ super.h();\r\n/* 242:313 */ if (this.worldInfo.u() == WorldType.DEBUG_ALL_BLOCK_STATES)\r\n/* 243: */ {\r\n/* 244:314 */ for (ChunkID localaqm1 : this.E) {\r\n/* 245:315 */ getChunk(localaqm1.x, localaqm1.z).b(false);\r\n/* 246: */ }\r\n/* 247:317 */ return;\r\n/* 248: */ }\r\n/* 249:320 */ int i = 0;\r\n/* 250:321 */ int j = 0;\r\n/* 251:322 */ for (ChunkID localaqm2 : this.E)\r\n/* 252: */ {\r\n/* 253:323 */ int k = localaqm2.x * 16;\r\n/* 254:324 */ int m = localaqm2.z * 16;\r\n/* 255: */ \r\n/* 256:326 */ this.profiler.a(\"getChunk\");\r\n/* 257:327 */ Chunk localbfh = getChunk(localaqm2.x, localaqm2.z);\r\n/* 258: */ \r\n/* 259:329 */ a(k, m, localbfh);\r\n/* 260: */ \r\n/* 261:331 */ this.profiler.c(\"tickChunk\");\r\n/* 262:332 */ localbfh.b(false);\r\n/* 263: */ \r\n/* 264:334 */ this.profiler.c(\"thunder\");\r\n/* 265: */ Object localObject1;\r\n/* 266:335 */ if ((this.rng.nextInt(100000) == 0) && (S()) && (R()))\r\n/* 267: */ {\r\n/* 268:336 */ this.m = (this.m * 3 + 1013904223);\r\n/* 269:337 */ int n = this.m >> 2;\r\n/* 270: */ \r\n/* 271:339 */ localObject1 = a(new BlockPosition(k + (n & 0xF), 0, m + (n >> 8 & 0xF)));\r\n/* 272:340 */ if (C((BlockPosition)localObject1)) {\r\n/* 273:341 */ c(new ads(this, ((BlockPosition)localObject1).getX(), ((BlockPosition)localObject1).getY(), ((BlockPosition)localObject1).getZ()));\r\n/* 274: */ }\r\n/* 275: */ }\r\n/* 276:345 */ this.profiler.c(\"iceandsnow\");\r\n/* 277:346 */ if (this.rng.nextInt(16) == 0)\r\n/* 278: */ {\r\n/* 279:347 */ this.m = (this.m * 3 + 1013904223);\r\n/* 280:348 */ int n = this.m >> 2;\r\n/* 281: */ \r\n/* 282:350 */ localObject1 = q(new BlockPosition(k + (n & 0xF), 0, m + (n >> 8 & 0xF)));\r\n/* 283:351 */ BlockPosition localdt1 = ((BlockPosition)localObject1).down();\r\n/* 284:352 */ if (w(localdt1)) {\r\n/* 285:353 */ setBlock(localdt1, BlockList.aI.instance());\r\n/* 286: */ }\r\n/* 287:356 */ if ((S()) && (f((BlockPosition)localObject1, true))) {\r\n/* 288:357 */ setBlock((BlockPosition)localObject1, BlockList.aH.instance());\r\n/* 289: */ }\r\n/* 290:359 */ if ((S()) && \r\n/* 291:360 */ (b(localdt1).e())) {\r\n/* 292:361 */ getBlock(localdt1).getType().k(this, localdt1);\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:366 */ this.profiler.c(\"tickBlocks\");\r\n/* 296:367 */ int n = getGameRules().c(\"randomTickSpeed\");\r\n/* 297:368 */ if (n > 0) {\r\n/* 298:369 */ for (ExtendedBlockStorage localObject2 : localbfh.getBlockStorageArray()) {\r\n/* 299:370 */ if ((localObject2 != null) && (localObject2.b())) {\r\n/* 300:371 */ for (int i3 = 0; i3 < n; i3++)\r\n/* 301: */ {\r\n/* 302:372 */ this.m = (this.m * 3 + 1013904223);\r\n/* 303:373 */ int i4 = this.m >> 2;\r\n/* 304:374 */ int i5 = i4 & 0xF;\r\n/* 305:375 */ int i6 = i4 >> 8 & 0xF;\r\n/* 306:376 */ int i7 = i4 >> 16 & 0xF;\r\n/* 307: */ \r\n/* 308:378 */ j++;\r\n/* 309:379 */ BlockPosition localdt2 = new BlockPosition(i5 + k, i7 + localObject2.getY(), i6 + m);\r\n/* 310:380 */ Block localbec = localObject2.a(i5, i7, i6);\r\n/* 311:381 */ BlockType localatr = localbec.getType();\r\n/* 312:382 */ if (localatr.w())\r\n/* 313: */ {\r\n/* 314:383 */ i++;\r\n/* 315:384 */ localatr.a(this, localdt2, localbec, this.rng);\r\n/* 316: */ }\r\n/* 317: */ }\r\n/* 318: */ }\r\n/* 319: */ }\r\n/* 320: */ }\r\n/* 321:390 */ this.profiler.b();\r\n/* 322: */ }\r\n/* 323: */ }", "title": "" }, { "docid": "21c77fc69ea7f5cc81d53e0145614d1b", "score": "0.5383814", "text": "public void bubble_sort();", "title": "" }, { "docid": "3af49169b43d3b76dc7a2f26be042223", "score": "0.5380702", "text": "public void badInsertionSort(){\t\n OrderedSuperArray c = new OrderedSuperArray();\n while( this.size() > 0){ \n c.add(this.remove(0));\n }\n while(c.size() > 0){\n this.add(c.remove(0));\n }\n }", "title": "" }, { "docid": "f999ac5dc2261ed09da412a138330c3d", "score": "0.5375666", "text": "public void sortStations() {\r\n for (int i = 0; i < ctaRoute.size()-1; i++) {\r\n int min = i;\r\n for (int j = i+1; j < ctaRoute.size(); j++) {\r\n if (ctaRoute.get(j).getPosOnLine().get(lineColorIndex) < \r\n ctaRoute.get(min).getPosOnLine().get(lineColorIndex)) {\r\n min = j;\r\n }\r\n }\r\n if (min != i) {\r\n ctaRoute.add(i,ctaRoute.get(min));\r\n ctaRoute.remove(min+1);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "fb98c92a6742fc3ddf2a11a12acb4a70", "score": "0.5367363", "text": "public void sort(){\n //TO DO\n }", "title": "" }, { "docid": "5993708a9bbfd518985c86d616e928a5", "score": "0.53635603", "text": "private int[] mergeSortNonThread(int[] unsorted, int arrSize){\n long startTime = System.currentTimeMillis();\n SimpleMerger s =new SimpleMerger(unsorted);\n int[] sorted = new int[arrSize];\n s.sort();\n int middle;\n int[] left, right;\n // array is sorted\n if ( unsorted.length <= 1 ) {\n sorted = unsorted;\n } else {\n //\n middle = unsorted.length / 2;\n left = new int[middle];\n right = new int[unsorted.length - middle];\n //split array on two\n System.arraycopy(unsorted, 0, left, 0, middle);\n System.arraycopy(unsorted, middle, right, 0, unsorted.length - middle);\n SimpleMerger leftSort = new SimpleMerger(left);\n SimpleMerger rightSort = new SimpleMerger(right);\n leftSort.sort();\n rightSort.sort();\n //sort and merge\n sorted = SimpleMerger.merge(leftSort.getSorted(), rightSort.getSorted());\n }\n long timeSpent = System.currentTimeMillis() - startTime;\n time.setText(String.valueOf(timeSpent+ \" miliseconds\"));\n return sorted;\n }", "title": "" }, { "docid": "e4e47520b93b2eddc2f8f1278cbcdcbc", "score": "0.5362904", "text": "public int compareTo(Block o) {\n\t\treturn o.a - this.a;\n\t}", "title": "" }, { "docid": "0ca46698ebc84fab11589012832adb7d", "score": "0.5344685", "text": "private static void insertionsort(Integer[] arr) {\n\t\tfor(int i=1;i<arr.length;i++){\r\n\t\t\tint position=i;\r\n\t\t\tfor(int j=i-1;j>=0;j--){\r\n\t\t\t\tif(arr[position] > arr[j])break;\r\n\t\t\t\tif(arr[position]<arr[j]){\r\n\t\t\t\t\tswap(arr, j, position--);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b52765dd194a749469484cb15d2c03b1", "score": "0.53444135", "text": "public void selectionSort(){\n\t\tfor(int i=0; i<arraySize-1; i++){\n\t\t\tint min =i;\n\t\t\tfor(int j=i+1; j<arraySize; j++){\n\t\t\t\tif(theArray[j]<theArray[min]){\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tswapValues(i,min);\n\t\t\tprintHorzArray(i,-1);\n\t\t}\n\t}", "title": "" }, { "docid": "bf107c23e93d1d41a8ba61c391e5f4c6", "score": "0.53434247", "text": "public void sort() {\n double[] sorts = new double[original.size()];\n for (int i = 0; i < original.size(); i++) {\n Pokedex selectPokemon = (Pokedex)original.get(i);\n sorts[i] = selectPokemon.getWeight();\n }\n doSelectionSort(sorts, 0);\n ltsPoke.updateUI();\n }", "title": "" }, { "docid": "0838446ca31252a588bf874c681515e7", "score": "0.53418845", "text": "protected abstract boolean randomSort();", "title": "" }, { "docid": "0890dab476f9419577b68678b3070485", "score": "0.533466", "text": "protected void makeBlockList() {\n\n }", "title": "" }, { "docid": "fd74b8454be3032f51d85091eabb00c2", "score": "0.5331527", "text": "public void sort() {\n VIntIntHashMap newOrder = getNewOrder();\n elements = (VIntObjectHashMap) elements.reorder(newOrder);\n\n missing = missing.reorder(newOrder);\n empty = empty.reorder(newOrder);\n }", "title": "" }, { "docid": "f74c2183ec023a7e17099e5ab30e4bcd", "score": "0.53290606", "text": "public void preOrderSort() {\r\n preOrderSort(root);\r\n\r\n }", "title": "" }, { "docid": "bcc29ecbe1a660ae4b1c0ed92cb1ef7c", "score": "0.5323434", "text": "int getSort();", "title": "" }, { "docid": "13bc5fe7f60ab35c9cc134f47846cc7d", "score": "0.5323131", "text": "public void sortRows()\n {\n int rowCount = 0; // row being sorted and compared to next row\n int nextRowCount = 0; // next row being sorted and compared to previous row\n int gridSize = this.futureGenGrid.length; // future generation grid size\n boolean wasSwapCalled = true; // tests for swaps rows\n //orders rows in descending order starting at (0,0)\n while (wasSwapCalled)\n {\n wasSwapCalled = false;\n for(int row=0; row+1<gridSize; row++)\n {\n rowCount=0;\n nextRowCount=0;\n for(int col=0; col<gridSize; col++)\n {\n if (this.futureGenGrid[row][col])\n {\n rowCount++;\n }\n if ((this.futureGenGrid[row+1][col]))\n {\n nextRowCount++;\n }\n }\n if (nextRowCount>rowCount)\n {\n this.swap(row, row+1); \n wasSwapCalled = true;\n }\n }\n }\n }", "title": "" }, { "docid": "a7ac7270bebbaaa1e75bfeb4ef729478", "score": "0.5320251", "text": "ASort getSuperSort();", "title": "" }, { "docid": "6b22e86081c52326e78a77d92e1da444", "score": "0.53183675", "text": "public void preorder() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "295e7d11a3cf1c9092f7dc8236d8422a", "score": "0.5318187", "text": "@Override\n\tpublic int[] bubbleSort() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bcd0bca2d0fcfe4000d8860d6e77e182", "score": "0.5317413", "text": "private void autoSort() {\n ArrayList<RowSorter.SortKey> keys = new ArrayList<>();\n keys.add(new RowSorter.SortKey(COLUMN_MEAN, SortOrder.DESCENDING));\n _Sorter.setSortKeys(keys);\n }", "title": "" }, { "docid": "1230cb3d6fb7d871fa2884862a8c85b1", "score": "0.5311348", "text": "public void sortCells() {\r\n\t\tint High = cellCount - 1;\r\n\t\tquickSort(0, High, cells);\r\n\t}", "title": "" }, { "docid": "42b3a1c0a7385f3d06a1052fdab65ddf", "score": "0.53020906", "text": "public abstract VisualizeList sort();", "title": "" }, { "docid": "67f7b24d74be8e8f9634499201934ba6", "score": "0.5297143", "text": "private SelectionSort() {}", "title": "" }, { "docid": "c542d0767a9bcb7e071a7689d5944007", "score": "0.5290032", "text": "private void orderPointsTLBLTRBR(Point[] points) {\n\t\tArrays.sort(points, Point.sortByIncreasingX);\n\t\tfor(int i = 0; i < 4; i+= 2){\n\t\t\t//sort top 2 and bottom 2 by y\n\t\t\tif( points[i].gety() < points[i + 1].gety()){\n\t\t\t\tPoint temp = points[i];\n\t\t\t\tpoints[i] = points[i + 1];\n\t\t\t\tpoints[i + 1] = temp;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5bf39bc104d1192f7d46e4dd37caf0d3", "score": "0.5287173", "text": "public void selectionSort()\n {\n int n = data.length;\n \n for(int i = 0; i < n-1; i++) // Descending sort\n {\n int min_idx = i;\n for(int j = i+1; j < n; j++)\n if(data[j] >= data[min_idx]) // >= over <\n min_idx = j;\n\n int temp = data[min_idx];\n data[min_idx] = data[i];\n data[i] = temp;\n }\n }", "title": "" }, { "docid": "5af45ae3dadfae9590d05a0ced8b9a56", "score": "0.528687", "text": "public void sort(){\n\t\tmakeTables();\r\n\t\tcalculateStats();\r\n\t\tmakeGirls();\r\n\t\tassignStudents();\r\n\t}", "title": "" }, { "docid": "cd44c61bca55428ed73f6f4fc1ee9569", "score": "0.52839255", "text": "public void newSort() {\n // Start at index 0 in the array\n int currentPosition = 0;\n\n // Carry on the sorting loop only while we're in the array bounds\n while (currentPosition < size) {\n // Find the minimum in the array from the current position onwards\n int min = findMinFrom(A, currentPosition);\n\n // Iterate through the array\n for (int i = currentPosition; i < size; i++) {\n // Check if the current item being iterated is the smallest item...\n // ARRAY COMPARISON: 1 comparison involving array here (this gets incremented even when the if's false)\n compNewS++;\n if (A[i] == min) {\n // If the current item being iterated is the smallest item, swap it with the current position of the outer while loop,\n // ensuring that the smallest item is at the front (in resepect to the position of the outer loop's current position) of the array\n swap(i, currentPosition);\n\n // Iterate onto the next position by incrementing\n currentPosition = currentPosition + 1;\n }\n }\n\n }\n }", "title": "" }, { "docid": "86fad82d970624bd5987f6792e019378", "score": "0.5281233", "text": "public void reSort()\n\t{\n\t\tplatformSelectPanel.reSort();\n\t}", "title": "" }, { "docid": "605a0ac22beafb8dfad9bb5b520b1a20", "score": "0.52803886", "text": "public void bubbleSort() {\n\n for (int i=0; i < size; i++) {\n Node<T> a = header.next;\n\n for(int j=0; j < size-1-i; j++){\n Node<T> b = a.next;\n\n if(a.compareTo(b)>0){\n Node<T> node = a.prev;\n a.next = b.next;\n b.next = a.next.prev = a;\n\n b.prev = node;\n a.prev = b.prev.next = b;\n } else {\n a=b;\n }\n }\n }\n }", "title": "" }, { "docid": "5404553d8b28d0ee176da83f397c887c", "score": "0.52752805", "text": "public void shellsort() {\n int h = 1;\n \n do { h = (h * 3) + 1; } while (h < n);\n comparacao++;\n \n do {\n h /= 3;\n for(int cor = 0; cor < h; cor++){\n comparacao++;\n insercaoPorCor(cor, h);\n }\n comparacao++;\n }while (h != 1);\n }", "title": "" } ]
db8bbd269864527e89d519c2b4f53679
private static final String TAG = "TAG";
[ { "docid": "4b673fa561e4f43c598b624a254cc1e3", "score": "0.0", "text": "public interface Listener {\n\t\tpublic void onPopupResult(int dialogId, int viewId, int iWhich, int itemsSize, String sWhich, String sTag); //, int tag);\n\n\t}", "title": "" } ]
[ { "docid": "367fc381c5f999c957a4deefefaa676b", "score": "0.7653315", "text": "private String getTAG () {\n return TAG;\n }", "title": "" }, { "docid": "e373675b851be8239bab649c952479f5", "score": "0.6615324", "text": "public String getName() { return TAG; }", "title": "" }, { "docid": "eccb0a1dab96283d2eb6872e8a8eb6ae", "score": "0.6479009", "text": "public String getTag() {\n return TAG;\n }", "title": "" }, { "docid": "fc16807c686e5211e5383cf44cce787e", "score": "0.62128794", "text": "public static int getID(){ \n\t\t return TAG_ID; \n\t}", "title": "" }, { "docid": "fc16807c686e5211e5383cf44cce787e", "score": "0.62128794", "text": "public static int getID(){ \n\t\t return TAG_ID; \n\t}", "title": "" }, { "docid": "fc16807c686e5211e5383cf44cce787e", "score": "0.62128794", "text": "public static int getID(){ \n\t\t return TAG_ID; \n\t}", "title": "" }, { "docid": "fc16807c686e5211e5383cf44cce787e", "score": "0.62128794", "text": "public static int getID(){ \n\t\t return TAG_ID; \n\t}", "title": "" }, { "docid": "0779ecfc5a3f5d54203d4b627efa8cd7", "score": "0.61499596", "text": "@Override // com.android.settings.dashboard.DashboardFragment\n public String getLogTag() {\n return \"OPGameMemc\";\n }", "title": "" }, { "docid": "551bf2ac11381f0e86090eb3ef374240", "score": "0.6101968", "text": "public static void d(String tag, String msg) {\n Log.d(TAG+name1, tag + \", --------\" + msg + \"!--------\");\n }", "title": "" }, { "docid": "bbfa02861af2edc14b4bdf78b33b7729", "score": "0.6075829", "text": "public static void v(String tag, String msg) {\n Log.v(TAG+name1, tag + \", --------\" + msg + \"!--------\");\n }", "title": "" }, { "docid": "317570cd54cd1c9a935c98419fa9fa8e", "score": "0.60245407", "text": "public static String xmlTag() { return XMLTAG; }", "title": "" }, { "docid": "b541d02d638926372167ac407c69cbb2", "score": "0.59825826", "text": "public String getTag(){\r\n return tag;\r\n }", "title": "" }, { "docid": "99c7ab0ccae1fd365fa5693e64db4955", "score": "0.5979758", "text": "public static void i(String tag, String msg ) {\n Log.i(TAG+name1, tag + \", --------\" + msg + \"!--------\");\n }", "title": "" }, { "docid": "cda3bdadd674ac5d2c9588bd13d85298", "score": "0.5973312", "text": "TAGSET() {}", "title": "" }, { "docid": "7174813f14d97eb6cedb43e6d83dc075", "score": "0.58447456", "text": "String getTag();", "title": "" }, { "docid": "7174813f14d97eb6cedb43e6d83dc075", "score": "0.58447456", "text": "String getTag();", "title": "" }, { "docid": "d294aa6bf5f20bed9acb3de401f20b4e", "score": "0.5828539", "text": "public String getLocalTag();", "title": "" }, { "docid": "7c01bac92a75b342834bf81b04d5de4e", "score": "0.57976246", "text": "public String getConstantName() {\r\n return (\"\" + Symbols.VARIABLE_TAG);\r\n }", "title": "" }, { "docid": "8301ffa6ad490116287f66af8a0ca3cf", "score": "0.5778992", "text": "public static final void v(String tag, String message) {\n if(TaskTimerApplication.DEBUG) android.util.Log.v(tag, message);\n }", "title": "" }, { "docid": "736ce766c1fbfec17b8c6035214ce3e7", "score": "0.57718366", "text": "public static String xmlTag()\n {\n return XMLTAG;\n }", "title": "" }, { "docid": "457e36be30a82ef3d120594bab281fc0", "score": "0.57065994", "text": "public String getTag() {\n\treturn tag;\n }", "title": "" }, { "docid": "ee033c0f5c0fa48aaab30d83c7e40423", "score": "0.56981033", "text": "String newTag();", "title": "" }, { "docid": "ce928f719ae75e516c32b723af88c637", "score": "0.5697715", "text": "public String getTag();", "title": "" }, { "docid": "93ca8260af89bf123b67b3747643b3bf", "score": "0.56893784", "text": "String tag();", "title": "" }, { "docid": "319cea10ba1d6bee1ec73c43e246eba2", "score": "0.5686919", "text": "final public String getTag() {\n return mTag;\n }", "title": "" }, { "docid": "435bd1c32eb46eebe0951bf91a5644a2", "score": "0.5679046", "text": "public static void log() {\n Log.d(\"RobotMap\", \"RobotMap ID is \" + ROBOT_ID);\n }", "title": "" }, { "docid": "23497a7e831bd5c2a273639c43632146", "score": "0.5656282", "text": "public interface Const {\n String BASE_URL = \"https://api.jeench.com/v1/\";//\"http://offers.opora.ru/Mobile/\";\n String TAG = \"Test\";\n}", "title": "" }, { "docid": "efa23bc33230a88b80d756d83d0ff6b0", "score": "0.56554055", "text": "public static final void i(String tag, String message) {\n if(TaskTimerApplication.DEBUG) android.util.Log.i(tag, message);\n }", "title": "" }, { "docid": "fa6c7a8863f3de22ead00f55a73b02a2", "score": "0.56450087", "text": "public void setTag(String tag){\r\n this.tag = tag;\r\n }", "title": "" }, { "docid": "2551dd7f2126338ebdc58c463bd4ed4e", "score": "0.5639735", "text": "public String getTag() {\r\n\t return tag;\r\n }", "title": "" }, { "docid": "d4bcd217cb26066a4296ba72371db800", "score": "0.5633602", "text": "@Override\n public void onCreate() {\n super.onCreate();\n\n Debug.init(new AndroidLogDebugOutput(true));\n\n\n }", "title": "" }, { "docid": "b5e1ea12785fab82ce78aa3c808e163b", "score": "0.56275654", "text": "public static void w(String tag, String msg) {\n Log.w(TAG+name1, tag + \", --------\" + msg + \"!--------\");\n }", "title": "" }, { "docid": "ab53ad9958e83306a04aababa0270787", "score": "0.5613289", "text": "public static final void d(String tag, String message) {\n if(TaskTimerApplication.DEBUG) android.util.Log.d(tag, message);\n }", "title": "" }, { "docid": "096b015b74c40bce1b854ce0f3d0ccc0", "score": "0.5611165", "text": "public static void e(String tag, String msg) {\n Log.e(TAG+name1, tag + \", --------\" + msg + \"!--------\");\n }", "title": "" }, { "docid": "baafe3ec9592bdc51e3bc56b487983b9", "score": "0.5604053", "text": "public String getTag() {\n return Screen.XML_TAG;\n }", "title": "" }, { "docid": "a07354254b3545a208788eab5de9b7e6", "score": "0.55890507", "text": "public String getAppTag() {\n return \"Tt\";\n }", "title": "" }, { "docid": "97ccffbf4b4a1e8a9b82212299dddbae", "score": "0.5580383", "text": "@Override\n\tpublic void debug(String tag, String message) {\n\t}", "title": "" }, { "docid": "652c4f7e4dfffced6b1203253c6827c7", "score": "0.5579962", "text": "public static void L(String tag, Object message) {\n Log.d(tag, message.toString());\n }", "title": "" }, { "docid": "0da79c9a93191dc94f643e66f3dad5ce", "score": "0.55736834", "text": "public static void showLog(String TAG, String msg) {\r\n if (ISDEBUGGING) {\r\n try {\r\n Log.d(TAG, msg);\r\n } catch (Exception e) {\r\n // TODO: handle exception\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "5ef1599c371ff5c2f2cb8ca2aa8feb4e", "score": "0.5539871", "text": "public String getClientTag(){\n return clientTag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5538442", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5538442", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5538442", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5538442", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "3f33e21cb16db7e2c0db3c9de18466ce", "score": "0.5538442", "text": "public String getTag() {\n return tag;\n }", "title": "" }, { "docid": "425f8495e62ab4f8fd79b97096270b53", "score": "0.5534881", "text": "private void logger(String string) {\n CommonUtil.logger(string, TAG, logInfoView);\n }", "title": "" }, { "docid": "0225c41fba11e962a0c979e8a4cf070b", "score": "0.55345047", "text": "public static void v(String tag, String msg) {\n if (mDebug) {\n android.util.Log.v(tag, msg);\n }\n }", "title": "" }, { "docid": "1fdbf042be4d8359a023006a3b1d37c5", "score": "0.5508795", "text": "public interface LoggingConstants {\n\n String REQUEST_ID = \"request-id\";\n String SESSION_ID = \"session-id\";\n String USERNAME = \"username\";\n}", "title": "" }, { "docid": "94dc3d5637130316889962e4dfa6e2fc", "score": "0.55075765", "text": "@Override // com.android.settings.dashboard.DashboardFragment\n public String getLogTag() {\n return \"WifiTetherSettings\";\n }", "title": "" }, { "docid": "995adcd8705956d2e7e5b064e76a2ad3", "score": "0.55030876", "text": "public static void d(@NonNull String tag, @NonNull String msg) {\n\n if (BuildConfig.DEBUG) {\n Log.d(tag, msg);\n }\n }", "title": "" }, { "docid": "4c671c29c49e0edd497f35c277914daa", "score": "0.5485521", "text": "public static void showInfoLog(String TAG, String msg) {\r\n if (ISDEBUGGING) {\r\n Log.i(TAG, msg);\r\n }\r\n\r\n }", "title": "" }, { "docid": "689d4732fff13b4de559e275ec4d4031", "score": "0.5481135", "text": "java.lang.String getTag();", "title": "" }, { "docid": "f4552ee3fcc78ecc402b208d81e85e81", "score": "0.5479564", "text": "public String getTag() {\n return this.tag;\n }", "title": "" }, { "docid": "bbd3880e1fcfc69c172795008043fa73", "score": "0.54696524", "text": "Tag() {}", "title": "" }, { "docid": "755e670fb2f6b2091fdadd839404ff31", "score": "0.5458783", "text": "public String getTag() {\n return new String(XML_TAG);\n }", "title": "" }, { "docid": "1d8cb04b410eae5b6be31c3b2152662b", "score": "0.54571545", "text": "public static void i(String tag, String msg) {\n if (mDebug) {\n android.util.Log.i(tag, msg);\n }\n }", "title": "" }, { "docid": "cea4b8230aec92444a93c72b0c668ef8", "score": "0.5453928", "text": "private void logv(String msg) {\n if (DEBUG) {\n Log.v(TAG, msg);\n }\n }", "title": "" }, { "docid": "972c1d15255b62e06d9b382d8b617f9d", "score": "0.54503345", "text": "public static String getTag() {\n return new Object() {\n public String getClassName() {\n String clazzName = this.getClass().getName();\n return clazzName.substring(clazzName.lastIndexOf('.')+1, clazzName.lastIndexOf('$'));\n }\n }.getClassName();\n }", "title": "" }, { "docid": "32a0787275a32b0b7eb15f9fb451f9ff", "score": "0.54365057", "text": "private String getTag() {\n if (tag != null) {\n return tag;\n }\n\n StackTraceElement[] stackTrace = new Throwable().getStackTrace();\n String className = null;\n for (int i = 0; i < stackTrace.length; i++) {\n className = stackTrace[i].getClassName();\n\n // Skip over this class's methods\n if (!className.equals(AndroidLogger.class.getName())) {\n break;\n }\n }\n\n // Compute the unqualified class name w/out any inner class, then truncate to the\n // maximum tag length.\n int unqualBegin = className.lastIndexOf('.') + 1;\n if (unqualBegin < 0) { // should never happen, but be safe\n unqualBegin = 0;\n }\n int unqualEnd = className.indexOf('$', unqualBegin);\n if (unqualEnd < 0) {\n unqualEnd = className.length();\n }\n if ((unqualEnd - unqualBegin) > MAX_TAG_LENGTH) {\n unqualEnd = unqualBegin + MAX_TAG_LENGTH;\n }\n return className.substring(unqualBegin, unqualEnd);\n }", "title": "" }, { "docid": "5c00e65b10b853fb26688c02bcbf0b14", "score": "0.5433011", "text": "@Override\n\tprotected String getTag() {\n\t\treturn Tag;\n\t}", "title": "" }, { "docid": "d8f8bbcb3572a898cbedd78fc9bb1d9f", "score": "0.54262877", "text": "public String getTag() {\n return XML_TAG;\n }", "title": "" }, { "docid": "157c06d5b4972afc52d3d9cd40128d9c", "score": "0.5420647", "text": "public String setTag() {\n\t\treturn this.getClass().getSimpleName();\r\n\t}", "title": "" }, { "docid": "d271cdf3fb559c210b603d1928690121", "score": "0.5419018", "text": "private MyLogger(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "df0d7974b4b44e5237aa5219f4055298", "score": "0.54164517", "text": "public void setTag(String tag) {\r\n\t this.tag = tag;\r\n }", "title": "" }, { "docid": "a03ca60a55a1e1d46195f4c50eb03047", "score": "0.53845066", "text": "public interface TestTag {\r\n\tfinal String ROOT = \"test\";\r\n\tfinal String DOMUL = \"domandaMultipla\";\r\n\tfinal String DOMAP = \"domandaAperta\";\r\n\tfinal String ESER = \"esercizio\";\r\n\tfinal String TEXT = \"testo\";\r\n\tfinal String CHOICE = \"scelta\";\r\n\tfinal String ID = \"ID_\";\r\n\tfinal String ATTID = \"id\";\r\n\tfinal String ATTRUE = \"vera\";\r\n\tfinal String ATTEX = \"nonesclusiva\";\r\n\tfinal String ATTCODE = \"codeLang\";\r\n}", "title": "" }, { "docid": "25624724ecc25c9acdf8252bb8345147", "score": "0.53781646", "text": "@Override\n public void onCreate() {\n Log.v(TAG,\"--- onCreate() in ---\");\n }", "title": "" }, { "docid": "cdbcbb563c45bbbfc4e235fb32e69da3", "score": "0.53585887", "text": "private TagCloud() {\n }", "title": "" }, { "docid": "6193948daaab9db739042e0c53d75512", "score": "0.53416485", "text": "public String getTagFrom();", "title": "" }, { "docid": "798b8efc4e4b72201bad180ccb769b30", "score": "0.53331673", "text": "public static void d(String tag, String msg) {\n if (mDebug) {\n android.util.Log.d(tag, msg);\n }\n }", "title": "" }, { "docid": "639aa281bc1e0a3f0eb2f7ab9fa5deb2", "score": "0.5326095", "text": "public static void showVerboseLog(String TAG, String msg) {\r\n if (ISDEBUGGING) {\r\n Log.v(TAG, msg);\r\n }\r\n\r\n }", "title": "" }, { "docid": "93c2be057952257454fbb305a0e5bebf", "score": "0.5323756", "text": "private void logd(String msg) {\n if (DEBUG) {\n Log.d(TAG, msg);\n }\n }", "title": "" }, { "docid": "90f2ff51668de31d91387c96fa030577", "score": "0.5322683", "text": "int log(String tag, String message);", "title": "" }, { "docid": "0a42e5918e32660a7a76e94aca669fa8", "score": "0.5319052", "text": "@Override\n public void onCreate() {\n super.onCreate();\n Log.d(TAG, \"onCreate: \");\n }", "title": "" }, { "docid": "d9d636919107f889db0d0d10722ad4fc", "score": "0.52949494", "text": "@Override // com.android.settings.dashboard.DashboardFragment\n public String getLogTag() {\n return \"BatterySaverSettings\";\n }", "title": "" }, { "docid": "27f29472574d20debd9d91552ef76fac", "score": "0.52864444", "text": "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main);\r\n\t\tinitTag();\r\n\t}", "title": "" }, { "docid": "523c10356af2a8d47ea2b765188d1f5d", "score": "0.52801144", "text": "private static void log(String str) {\n }", "title": "" }, { "docid": "444ec72f9f52148ad31e9a35be1320fe", "score": "0.5271034", "text": "public void setLocalTag(String mytag) {\n if (logger.isLoggingEnabled(32)) {\n logger.logDebug(\"set Local tag \" + mytag + \" dialog = \" + this);\n logger.logStackTrace();\n }\n this.myTag = mytag;\n }", "title": "" }, { "docid": "4de0c460c941e17fdec57a3b2d0d4ab3", "score": "0.52681935", "text": "public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "a5f2b3a53711ded8b3f41bc4acfe939d", "score": "0.5268187", "text": "@Override\n public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "a5f2b3a53711ded8b3f41bc4acfe939d", "score": "0.5268187", "text": "@Override\n public int getTag() {\n return tag;\n }", "title": "" }, { "docid": "a46bfac8c4bf7220bd6effd868edacf9", "score": "0.52663046", "text": "public static void e(@NonNull String tag, @NonNull String msg) {\n\n if (BuildConfig.DEBUG) {\n Log.e(tag, msg);\n }\n }", "title": "" }, { "docid": "46c209f74e07b46e631e01df39e99d21", "score": "0.52585244", "text": "public void onFragmentMessage(String TAG) {\n }", "title": "" }, { "docid": "b7556322ebe6908b6df44af523b8e512", "score": "0.52523583", "text": "public interface e extends ViewPager.f {\n\n /* renamed from: b reason: collision with root package name */\n public static final CharSequence f12030b = \"\";\n}", "title": "" }, { "docid": "f551d47270ab6def0406bb10077ea452", "score": "0.52515423", "text": "public void setTag(String tag) {\n this.tag = tag;\n }", "title": "" }, { "docid": "1a3eaf11f3529740cec82861d80b8809", "score": "0.5242053", "text": "public static final void wtf(String tag, String message) {\n android.util.Log.wtf(tag, message);\n }", "title": "" }, { "docid": "f3adc248fa93c3af7d51bbce51d65325", "score": "0.52389807", "text": "int getTag();", "title": "" }, { "docid": "91489cc613a53befdfe7a72004002cb8", "score": "0.5233921", "text": "static final void log(String msg) {\n Log.d(ImApp.LOG_TAG, \"<ContactListAdapter>\" + msg);\n }", "title": "" }, { "docid": "d200cfa89f459d6617be6e8fffcd38d3", "score": "0.52338415", "text": "public @Nullable String getTag() {\n return tag;\n }", "title": "" }, { "docid": "23b7a8a664ef60d1a5681e53fd5c937d", "score": "0.52245873", "text": "public String mySelf() {\n return TAG+\"!\"+id+\"!\";\n }", "title": "" }, { "docid": "f17c656d9f467e77fd25ec507d14ba87", "score": "0.5218222", "text": "public interface Const {\n\n String PACKAGE_TAG = \"cn.soloho.wechatpay\";\n\n String KEY_START_PACKAGE = PACKAGE_TAG + \".START_PACKAGE\";\n String KEY_START_ACTIVITY = PACKAGE_TAG + \".START_ACTIVITY\";\n String KEY_USE_CMD = \".IS_ROOT\";\n\n ///////////////////////////////////////////////////////////////////////////\n // System\n ///////////////////////////////////////////////////////////////////////////\n String ACTIVITY_APP_ACTIVITY = \"android.app.Activity\";\n String METHOD_ACTIVITY_ON_CREATE = \"onCreate\";\n String METHOD_ACTIVITY_ON_NEW_INTENT = \"onNewIntent\";\n\n ///////////////////////////////////////////////////////////////////////////\n // WeChat\n ///////////////////////////////////////////////////////////////////////////\n String PACKAGE_WECHAT = \"com.tencent.mm\";\n String ACTIVITY_WECHAT_PAY = PACKAGE_WECHAT + \".plugin.offline.ui.WalletOfflineEntranceUI\"; // or WalletOfflineCoinPurseUI\n\n ///////////////////////////////////////////////////////////////////////////\n // Alipay\n ///////////////////////////////////////////////////////////////////////////\n String PACKAGE_ALIPAY = \"com.eg.android.AlipayGphone\";\n String ACTIVITY_ALIPAY_PAY = \"com.alipay.mobile.onsitepay9.payer.OspTabHostActivity\";\n}", "title": "" }, { "docid": "35bc28028ce12b1f10795679d0c1d16a", "score": "0.5217503", "text": "public Tag() {\n }", "title": "" }, { "docid": "3fb2bdc9b7f090902b17cbeae19cd827", "score": "0.52160966", "text": "public void setTag(String b){\n tag = b;\n }", "title": "" }, { "docid": "d3759b2be5ea7c5eb97ed52008202826", "score": "0.5215093", "text": "private void LOGI(String msg){\n \tif(LOG_ON){\n \t\tLog.i(TAG, msg);\n \t}\n }", "title": "" }, { "docid": "e9ffa91a5c8ba832f4a000f117431ca0", "score": "0.520624", "text": "public String getTag() {\n\t\treturn this.tag;\n\t}", "title": "" }, { "docid": "fe4130db7960f47017ecca2e0e4b56d5", "score": "0.5202684", "text": "abstract public String getCTag() throws LocalStorageException;", "title": "" }, { "docid": "114b534ccd152539a61f5f471ff767ee", "score": "0.5201115", "text": "@Override\n public void setTag(Context context, String tag) {\n }", "title": "" }, { "docid": "b3db76c65a5056a191bb141a0ab48df4", "score": "0.5185223", "text": "@Override\n public String getXMLTag()\n {\n return XMLTAG;\n }", "title": "" }, { "docid": "9991e93c31303e18ecd997fb1c69da35", "score": "0.51785517", "text": "public interface Constant {\n boolean Debug = true;\n\n String BASE_URL = \"http://j.ginggong.com\";\n String WEB_SITE_NAME = \"mp3.zing.vn\";\n String CODE = \"fafd463e2131914934b73310aa34a23f\";\n}", "title": "" }, { "docid": "0afa35a4723da6e8d57721c833416b65", "score": "0.5174197", "text": "public String getTag() {\n\t\treturn new String(XML_TAG);\n\t}", "title": "" }, { "docid": "e86fec0318a1edd3fa5a37d0bb472e4f", "score": "0.51643914", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tthis.setContentView(R.layout.tag_layout);\n\t\tIntent intent = this.getIntent();\n\t\tif (intent.getAction().equals(Intent.ACTION_SEND)) {\n\t\t\tString titleString = intent.getStringExtra(Intent.EXTRA_SUBJECT);\n\t\t\tString urlString = intent.getStringExtra(Intent.EXTRA_TEXT);\n\t\t\tTextView title = (TextView) findViewById(R.id.title);\n\t\t\ttitle.setText(titleString);\n\t\t\tTextView url = (TextView) findViewById(R.id.url);\n\t\t\turl.setText(urlString);\n\t\t\t// Bundle b = intent.getExtras();\n\t\t\t// Set<String> set = b.keySet();\n\t\t\t// Iterator<String> i = set.iterator();\n\t\t\t// Log.d(TAG, \"=====\");\n\t\t\t// while (i.hasNext()) {\n\t\t\t// String key = i.next();\n\t\t\t// Object o = b.get(key);\n\t\t\t// if (o instanceof String) {\n\t\t\t// String val = (String) o;\n\t\t\t// Log.d(TAG, \"key=\" + key + \", val=\" + val);\n\t\t\t// } else\n\t\t\t// Log.d(TAG, \"key=\" + key + \", val is not a String\");\n\t\t\t// }\n\t\t}\n\t\t// SharedPreferences sp = this.getSharedPreferences(\"screen\", 0);\n\t\t// sp.getString(\"test\", \"default\");\n\t}", "title": "" }, { "docid": "92758a3f7f242f0216139db031a7efb7", "score": "0.5161168", "text": "String getXMLTag();", "title": "" } ]
b5ee81e87854b48f1405045f013ec9d5
Shows a message and the value of a Long in a message dialogue box
[ { "docid": "624288243a933bd2f9adfe4b08f9f6d0", "score": "0.69824076", "text": "public static final synchronized void show(String message, Long output){\n JOptionPane.showMessageDialog(null, message+\" \"+output.longValue(), \"Db.show (long)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" } ]
[ { "docid": "de886eb977bf1c23b083dd6ba7e0f713", "score": "0.6780036", "text": "public static final synchronized void show(String message, long output){\n JOptionPane.showMessageDialog(null, message+\" \"+output, \"Db.show (long)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "e9e22ba15568f466e83d45a113519183", "score": "0.64638597", "text": "public void toastLong(String msg){\n AlertUtils.toastLong(msg);\n }", "title": "" }, { "docid": "0d23dea40038b7bb98d67c4dcd2d1ee0", "score": "0.64292955", "text": "@Override\n public void onDialogMessage(long message) {\n elapsedTime.setText(GlobalContent.convertMillisToFormattedTime(message,0));\n }", "title": "" }, { "docid": "e58e3c58dd9a63b14bffb0f7431c2530", "score": "0.6393827", "text": "public static final synchronized void show(Long output){\n JOptionPane.showMessageDialog(null, \" \"+output.longValue(), \"Db.show (long)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "6d1026520c18929ff60070d5957907e3", "score": "0.6381339", "text": "@Override\r\n\tpublic String description() {\n\t\treturn \"Long \"+val;\r\n\t}", "title": "" }, { "docid": "f6cc63339a56c7e9ba97acced262a580", "score": "0.63800377", "text": "void toastLong(String message);", "title": "" }, { "docid": "6adf3ab73dce55e385793305afdaf985", "score": "0.6328276", "text": "public static final synchronized long readLong(){\n String line=\"\";\n String mess=\"Input type: long\";\n long d=0L;\n boolean finish = false;\n\n System.out.flush();\n\n while(!finish){\n line = JOptionPane.showInputDialog(mess);\n if(line!=null){\n try{\n d = Long.parseLong(line.trim());\n finish=true;\n }catch(NumberFormatException e){\n // Valid long not entered - dialog box recalled\n }\n }\n }\n return d;\n }", "title": "" }, { "docid": "57fa31804484e11f6ceac7297452d476", "score": "0.6259461", "text": "public static final synchronized void show(long output){\n JOptionPane.showMessageDialog(null, \" \"+output, \"Db.show (long)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "29cad67ba1d1ff93e0585e02ba874ef6", "score": "0.6047802", "text": "void formatLong(String name, long l);", "title": "" }, { "docid": "7bf4fd64c644f7128c8bd1e681f3615c", "score": "0.5924639", "text": "public static final synchronized long readLong(String mess){\n String line=\"\";\n long d=0L;\n boolean finish = false;\n String mess0 = \"\";\n if(Db.inputTypeInfo)mess0 = \"Input type: long\\n\";\n System.out.flush();\n\n while(!finish){\n line = JOptionPane.showInputDialog(mess0+mess);\n if(line!=null){\n try{\n d = Long.parseLong(line.trim());\n finish=true;\n }catch(NumberFormatException e){\n // Valid long not entered - dialog box recalled\n }\n }\n }\n return d;\n }", "title": "" }, { "docid": "55b12a4ac5415a06e59cf1151dc70f75", "score": "0.59166425", "text": "public static final synchronized void show(String message, Integer output){\n JOptionPane.showMessageDialog(null, message+\" \"+output.intValue(), \"Db.show (int)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "897bd0cb7af5f0e35ff7c2f103dd7342", "score": "0.5916079", "text": "java.lang.String getLongString();", "title": "" }, { "docid": "472fa181fcf57d68b9ad453103dac362", "score": "0.5830589", "text": "public static final synchronized long readLong(String mess, long dflt){\n String line=\"\";\n long d=0L;\n boolean finish = false;\n String mess0 = \"\";\n if(Db.inputTypeInfo)mess0 = \"Input type: long\\n\";\n mess = mess +\"\\n\";\n String dfltmess = dflt + \"\";\n\n System.out.flush();\n\n while(!finish){\n line = JOptionPane.showInputDialog(mess0+mess + \" [default value = \" + dflt + \"] \", dfltmess);\n\n if(line!=null){\n if(line.equals(\"\")){\n d=dflt;\n finish=true;\n line=null;\n }\n else{\n try{\n d = Long.parseLong(line.trim());\n finish=true;\n }catch(NumberFormatException e){\n // Valid long not entered - dialog box recalled\n }\n }\n }\n }\n return d;\n }", "title": "" }, { "docid": "ed9987195766b19d64fb7af7e7130300", "score": "0.57576096", "text": "EDataType getLong();", "title": "" }, { "docid": "0c4776b92e0d4d52c6c5e0b4125edd9a", "score": "0.57081765", "text": "public long getLongValue()\n {\n return L;\n }", "title": "" }, { "docid": "2f5a30b94acead399562e833ee89f927", "score": "0.57001144", "text": "long getLongVar3();", "title": "" }, { "docid": "63dd48951833d785103ab04749f06a02", "score": "0.5698644", "text": "public static final synchronized void show(String message, BigInteger output){\n JOptionPane.showMessageDialog(null, message+\" \"+output.toString(), \"Db.show (BigInteger)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.5696131", "text": "long getLong();", "title": "" }, { "docid": "5947eaea88c9edb2102b8b0d56758417", "score": "0.5696131", "text": "long getLong();", "title": "" }, { "docid": "fdaf8d14d3a82d62f9974338dec4b5b2", "score": "0.5685468", "text": "public void setText(long value) {\n\t\tsetText(new Long(value));\n\t}", "title": "" }, { "docid": "4ac175363920912b52ffc37f7788868f", "score": "0.5638143", "text": "public static void showCustomAlertLong(Activity context, String message) {\n LayoutInflater inflater = context.getLayoutInflater();\n\n // Call toast.xml file for toast layout\n View toastRoot = inflater.inflate(R.layout.toast, null);\n TextView txt = (TextView) toastRoot.findViewById(R.id.txtToastmessage);\n txt.setText(message);\n Toast toast = new Toast(context);\n\n // Set layout to toast\n toast.setView(toastRoot);\n toast.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL,\n 0, 0);\n toast.setDuration(Toast.LENGTH_LONG);\n toast.show();\n\n }", "title": "" }, { "docid": "789513bc4049c4986f57ed6ca8a83265", "score": "0.56198156", "text": "double getLongVar2();", "title": "" }, { "docid": "53311ecb1c8d2cdd13ee2a557a702702", "score": "0.55842847", "text": "public abstract long getLongValue();", "title": "" }, { "docid": "614c82860d118744618d73f3c89a5b83", "score": "0.5573554", "text": "private void showMessageTotal() {\n String message = \"Message total: \" + this.admin.messageTotal();\n JOptionPane.showMessageDialog(this.frame, message, \"Message Total\", JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "fa0fbe05018fd98f9da34f4e972ff320", "score": "0.55712986", "text": "public void set_long(long param){\r\n \r\n this.local_long=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "57bb1ccafe1fca705d2f255045b6a98b", "score": "0.55662656", "text": "long getLongVar4();", "title": "" }, { "docid": "f3b174031bb9c80d9a438628914a661a", "score": "0.5565962", "text": "public long getLong();", "title": "" }, { "docid": "8eec26e73a923a1524a3f87129e35730", "score": "0.5551342", "text": "public void setLong(long lVal);", "title": "" }, { "docid": "afc682e2f3897d552746102c9661f4ea", "score": "0.55190617", "text": "private void showGoodMessageTotal() {\n String message = \"Good message total: \" + this.admin.goodMessageTotal();\n JOptionPane.showMessageDialog(this.frame, message, \"Good Message Total\", JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "97f050d10d9565f839873c5207bd2f0b", "score": "0.5507014", "text": "String getLongFlag();", "title": "" }, { "docid": "80985bb0538cd4d9ff65365ff72b6298", "score": "0.5501498", "text": "public static final synchronized void show(String message, int output){\n JOptionPane.showMessageDialog(null, message+\" \"+output, \"Db.show (int)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "ca3c62781f0653a136c2266aa95cdd1a", "score": "0.54797286", "text": "@SuppressWarnings(\"unchecked\")\n \n \n public void alert(String mensagem){\n JOptionPane.showMessageDialog (null, mensagem);\n }", "title": "" }, { "docid": "bae8ffd3d7177d87547a104de52d4094", "score": "0.54784286", "text": "PlongLong1 createPlongLong1();", "title": "" }, { "docid": "5b9c62bac593bd3654ac8cf52bbc9080", "score": "0.54779065", "text": "public static final synchronized void show(String message, Short output){\n JOptionPane.showMessageDialog(null, message+\" \"+output.shortValue(), \"Db.show (short)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "f8489c3599750e2ca931c6eb2f6df627", "score": "0.5471005", "text": "long getLongVar5();", "title": "" }, { "docid": "0c40b72fcdf7babeb9c34463e0761cfd", "score": "0.541832", "text": "public static final synchronized void show(Integer output){\n JOptionPane.showMessageDialog(null, \" \"+output.intValue(), \"Db.show (int)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "9060740c41e095d5f622ead0a3cd316f", "score": "0.54176515", "text": "PlongLong createPlongLong();", "title": "" }, { "docid": "7ccdd0d2855a5bb3c38c61950e1f8791", "score": "0.54152226", "text": "public void print (long number)\r\n {\r\n print (String.valueOf (number));\r\n }", "title": "" }, { "docid": "925e466b883d24d84921249a4101c8d5", "score": "0.54140145", "text": "private LongField(long l) {\n this.value = l;\n }", "title": "" }, { "docid": "1e8c7cfecfcdcc32115d731b77222276", "score": "0.5395234", "text": "public long longValue() {\n/* 197 */ return this.value;\n/* */ }", "title": "" }, { "docid": "34cf772ee726f22c630a264e1b3aaeec", "score": "0.5392362", "text": "String getLongDescription();", "title": "" }, { "docid": "91c93314f643f0020f227bd7156b487b", "score": "0.53886455", "text": "void work(Long val){\n\t\tSystem.out.println(\"Long\");\r\n\t}", "title": "" }, { "docid": "a830d8ba375332bcf0fedf227fcfe4a4", "score": "0.53821194", "text": "private void displayFileTooBigDialog() {\n new AlertDialog.Builder(this)\n .setTitle(R.string.ringtone_error_title)\n .setMessage(getString(R.string.ringtone_error_size_too_big, MAX_SIZE_RINGTONE))\n .setPositiveButton(android.R.string.ok, null)\n .show();\n }", "title": "" }, { "docid": "5b2b8f77f5feba96e511c2db3c7670c7", "score": "0.5377285", "text": "public Long get_long() {\r\n\t\treturn (Long) data;\r\n\t}", "title": "" }, { "docid": "3434652772f39247074bdf0a0ca58649", "score": "0.5375456", "text": "SomethingLong(long value) {\n this.value = value;\n }", "title": "" }, { "docid": "9ac505d5123462950e96f47002b137a5", "score": "0.5362682", "text": "private static String getIntRangeError(long value, long from, long to) {\n String message = null;\n if (value < from || value > to) {\n StringBuilder sb = new StringBuilder(20);\n if (value < from) {\n sb.append(\"Value must be \\u2265 \");\n sb.append(Long.toString(from));\n } else {\n assert value > to;\n sb.append(\"Value must be \\u2264 \");\n sb.append(Long.toString(to));\n }\n sb.append(\" (was \").append(value).append(')');\n message = sb.toString();\n }\n return message;\n }", "title": "" }, { "docid": "a5e5ef64e5e040be282c87a759296212", "score": "0.53572845", "text": "public long getLong() {\n throw new IllegalArgumentException(\"Field is not a long field\");\n }", "title": "" }, { "docid": "104b368acfe4f934139f58a826d63d13", "score": "0.5355736", "text": "public void setReason(long value) {\n this.reason = value;\n }", "title": "" }, { "docid": "f7b07f9080f40a4433b552dfbadf7fbe", "score": "0.5339026", "text": "public long longValue() {\n\treturn this.value;\n }", "title": "" }, { "docid": "57668ece4b751d3ae6537ba39bcef548", "score": "0.5335769", "text": "public String getLongMessage() {\n return getLongMessage(\"the remote server.\"); // :-\\\n }", "title": "" }, { "docid": "ad26add6e012f086677697336a46cccb", "score": "0.53336936", "text": "private void showInvalidPidMessage() {\r\n\t\tJOptionPane.showMessageDialog(this, \"Pid inválido!\");\r\n\t}", "title": "" }, { "docid": "9fe209672da1acec0e5cd04514f27f40", "score": "0.5332631", "text": "public Expr createLong(long value)\n {\n return new LiteralLongExpr(value);\n }", "title": "" }, { "docid": "9fc4b5e5782c9beac34cfe3330a9cad3", "score": "0.5310357", "text": "public static void berechneTeilersummeDialog() {\r\n long eingabe;\r\n long teilersumme;\r\n\r\n eingabe = leseEingabeTeilersumme();\r\n\r\n teilersumme = berechneTeilersumme(eingabe);\r\n\r\n System.out.println(\"Teilersumme: \" + teilersumme);\r\n \r\n\r\n }", "title": "" }, { "docid": "4368791867282d238387177e5ff6dc8f", "score": "0.5298172", "text": "public static long askLong(String prompt) {\n System.out.print(prompt);\n return readLong();\n }", "title": "" }, { "docid": "bf3b0a563e0042fb0c312dffdc9fafe1", "score": "0.5296224", "text": "public String toStringValue(long value) {\n return formatToStringValue(currentFormat, value);\n }", "title": "" }, { "docid": "052096add19c779698b5c2db1dbb3d12", "score": "0.52961093", "text": "float getLongVar1();", "title": "" }, { "docid": "ca7a7188ec7de3c637946606d9667d61", "score": "0.52952987", "text": "public String format(long val)\r\n {\r\n return format( new Long(val) );\r\n }", "title": "" }, { "docid": "eea53627179563ed5413fedf1eecd68b", "score": "0.5291158", "text": "private int warn(String message) {\n \t\tDisplay display = Display.getCurrent();\n \t\tShell shell = new Shell(display);\n \t\tMessageBox dialog = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n \t\tdialog.setText(\"Warning\");\n \t\tdialog.setMessage(message);\n \t\treturn dialog.open();\n \t}", "title": "" }, { "docid": "3106c9d153ac6a7268a369a800ef48f1", "score": "0.52843255", "text": "public long getALong( ) throws java.rmi.RemoteException;", "title": "" }, { "docid": "3dd2be425d7e0bab2b18d4988002a9ac", "score": "0.5278546", "text": "public static final synchronized void show(String message, short output){\n JOptionPane.showMessageDialog(null, message+\" \"+output, \"Db.show (short)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "bff012d28d7515aeb0a24e0292ba70c7", "score": "0.52719796", "text": "public void setLong(long value) {\n throw new IllegalArgumentException(\"Field is not a long field\");\n }", "title": "" }, { "docid": "8c34d84cb5e74bb449ac3a6da8f3c9f8", "score": "0.5268521", "text": "public String getLong() {\r\n int zeros = countZeros(this);\r\n\r\n String val = \"\";\r\n for (int i = zeros; i < maxIndex+1; i++) {\r\n val = val + Integer.toString((this.number[i]));\r\n }\r\n return val;\r\n }", "title": "" }, { "docid": "ef959c2d30a4c9dc6613d48e9a203619", "score": "0.525953", "text": "public int displayPopUpAdd(String header) {\n\t\tint duration = -1;\n\t\tTextInputDialog dialog = new TextInputDialog(\"60\");\n\t\tButtonType buttonCancel = new ButtonType(\"Cancel\", ButtonData.CANCEL_CLOSE);\n\t\tdialog.getDialogPane().getButtonTypes().clear();\n\t\tdialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK, buttonCancel);\n\t\tdialog.setTitle(\"Confirmation\");\n\t\tdialog.setHeaderText(header);\n\t\tdialog.setContentText(\"Please enter the delivery duration (s)\");\n\t\tOptional<String> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\ttry {\n\t\t\t\tduration = Integer.parseInt(result.get());\n\t\t\t} catch (Exception e) {\n\t\t\t\tduration = displayPopUpAdd(\"Make sure you enter an integer\");\n\t\t\t}\n\t\t}\n\t\treturn duration;\n\t}", "title": "" }, { "docid": "1831e65c3a3d9d52581d109e3796cff2", "score": "0.5259284", "text": "public void addMvLong(Long value){\n ((TestBasicObjectFixedDMO) core).addMvLong(value);\n }", "title": "" }, { "docid": "4640732278fc55ee86ac549ee5cde4b3", "score": "0.5255755", "text": "private void alerta(String mensaje){\n \n JOptionPane.showMessageDialog(null, mensaje);\n \n }", "title": "" }, { "docid": "6fb1617221179373c1c88c9b620660e2", "score": "0.52321094", "text": "public Integer mostrarOpcion(String mensaje) {\n \tString [] options = { \"Automatico\", \"Manual\"};\n \treturn JOptionPane.showOptionDialog(null,\n \t\t\tmensaje,\n \t\t\t\"Tipo de Generación de numeros\",\n \t\t\tJOptionPane.YES_NO_OPTION,\n \t\t\tJOptionPane.QUESTION_MESSAGE,\n \t\t\tnull, //do not use a custom Icon\n \t\t\toptions, //the titles of buttons\n \t\t\toptions[0]); //default button title\n }", "title": "" }, { "docid": "562cdb5573dfe8a3a229e2a9d34b4406", "score": "0.5231866", "text": "public de.uni_koblenz.jgralab.greql2.schema.LongLiteral createLongLiteral();", "title": "" }, { "docid": "0164043d5e52a8327cba5db1369a3b7a", "score": "0.5230046", "text": "public static void print(long val) {\r\n System.out.print(val);\r\n }", "title": "" }, { "docid": "8c8f584e4989e205384d993edd9e85ee", "score": "0.5229995", "text": "public long checkValidValue(long paramLong) {\n/* 703 */ return range().checkValidValue(paramLong, this);\n/* */ }", "title": "" }, { "docid": "2d5950d40051a13b9a00afd71a10ae4f", "score": "0.52254224", "text": "public void println (long number)\r\n {\r\n print (number);\r\n print (\"\\n\");\r\n }", "title": "" }, { "docid": "7f3ca11cecd57b962464d826c9992dbe", "score": "0.5224786", "text": "public static final synchronized void show(String message, byte output){\n JOptionPane.showMessageDialog(null, message+\" \"+output, \"Db.show (byte)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "1515d381ea6c730a0ae95fa98d57f0f3", "score": "0.5215585", "text": "public void setALong( long aLong ) throws java.rmi.RemoteException;", "title": "" }, { "docid": "b8bd7e8e65ed8fed5ea572fd49d116e4", "score": "0.5210311", "text": "public double getLong() {\n return _long;\n }", "title": "" }, { "docid": "68932b7d8e8865b7d5726a9a54a05e85", "score": "0.5207791", "text": "@Override\r\n\tpublic long getLongValue() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "607856511ed3a283625d4d3312bb788c", "score": "0.52077824", "text": "@Override // a.o.p\n public void d(Bundle bundle, String str, Long l) {\n bundle.putLong(str, l.longValue());\n }", "title": "" }, { "docid": "52dba3d92eabd51b60c5388be3ba0c7b", "score": "0.51978135", "text": "public ServerResponse sendLong(\n final long value\n ) throws Throwable {\n APICallBackCatcher<ServerResponse> callback = new APICallBackCatcher<ServerResponse>();\n sendLongAsync(value, callback);\n if(!callback.isSuccess())\n throw callback.getError();\n return callback.getResult();\n }", "title": "" }, { "docid": "6a6d18550ef0424d23fb33f8df7a8fc0", "score": "0.51928604", "text": "int getMes();", "title": "" }, { "docid": "2255d97a3834096a4758c1f9cd5c4ab7", "score": "0.5187984", "text": "public static final synchronized void show(String message, Byte output){\n JOptionPane.showMessageDialog(null, message+\" \"+output.byteValue(), \"Db.show (byte)\", JOptionPane.INFORMATION_MESSAGE);\n }", "title": "" }, { "docid": "492c042c124e6ca7c8a4e96bc48b844c", "score": "0.51861686", "text": "private int getNumberPopup(String message, int min) {\n Integer[] maxOptions = new Integer[99 + min];\n for (int i = min; i < maxOptions.length; i++) {\n maxOptions[i] = i;\n }\n try {\n return (int) JOptionPane.showInputDialog(\n frame,\n message,\n \"Number selecter\",\n JOptionPane.PLAIN_MESSAGE,\n new ImageIcon(),\n maxOptions,\n min);\n } catch (Exception e) {\n return min;\n }\n }", "title": "" }, { "docid": "2b835026427cac9aedece8f496bdd829", "score": "0.5183308", "text": "final protected String formatLong(long lConvert){\n return sdf.format(lConvert - UA);\n }", "title": "" }, { "docid": "07315f78d1d64464faf392ce38b8554f", "score": "0.51801515", "text": "void setLong(long l, String s);", "title": "" }, { "docid": "2cf9d3d533a0d0297f535825320f3ad2", "score": "0.51671267", "text": "public void show(){\r\n\t\t JOptionPane.showMessageDialog(null,msg);\r\n\t }", "title": "" }, { "docid": "7b355b881ef105633e7cbb353059065a", "score": "0.51668566", "text": "public void showMessageDialog(String windowTitle, String briefMessage, String longMessageTitle, String longMessage, boolean wrapLines, int MessageType) {\n\t\tJTextArea textArea = new JTextArea(longMessage);\n\t\ttextArea.setEditable(false);\n\t\ttextArea.setOpaque(false);\n\t\tif (wrapLines) {\n\t\t\ttextArea.setLineWrap(true);\n\t\t\ttextArea.setWrapStyleWord(true);\n\t\t}\t\t\n\t\t\n\t\tJPanel messagePanel = new JPanel(new BorderLayout(15, 15));\n\t\tJScrollPane scrollPanel = new JScrollPane(textArea);\n\t\tscrollPanel.setBorder(BorderFactory.createTitledBorder(longMessageTitle));\n\t\tmessagePanel.add(scrollPanel, BorderLayout.CENTER);\n\t\tmessagePanel.add(new JLabel(\"<html>\" + briefMessage + \"</html>\"), BorderLayout.NORTH);\n\t\tmessagePanel.setPreferredSize(new Dimension(400, 200));\n\t\t\n\t\tJOptionPane.showMessageDialog(mainWindow, messagePanel, windowTitle, MessageType);\t\t\n\t}", "title": "" }, { "docid": "0923a4ea4267e89d9ffa50e6efa09e58", "score": "0.51586705", "text": "@Test\n public void sampleLong() throws Exception {\n MBeanSampler sampler = new MBeanSampler(0, 30000, \"TEST\") ;\n MyPublisher publisher = new MyPublisher() ;\n sampler.setPublisher(publisher);\n sampler.addMBeanAttribute(BEAN_NAME, \"Long\", GMetricType.INT32, \n \t\t\"bytes\", GMetricSlope.BOTH, \"Longer\");\n sampler.run() ;\n String value = publisher.getResult(\"Longer\");\n assertEquals( Example.LONG_VALUE, Long.valueOf(value ));\n }", "title": "" }, { "docid": "ae8202dbd5c9b2b3405f38d4e99bdcea", "score": "0.5149425", "text": "public void update(MessageContext ctx, long value);", "title": "" }, { "docid": "2497f5cda63943b97d791d05124f66ba", "score": "0.5149141", "text": "public long get_long(){\r\n return local_long;\r\n }", "title": "" }, { "docid": "dc727f61723f66376f863c75db355cc3", "score": "0.51484126", "text": "private int call_longitud() throws IOException {\n\t\tint longitud = 0;\n\t\ttry {\n\t\t\tlongitud = Integer.parseInt(view.getTxt_long().getText());\n\t\t} catch (Exception e) {\n\t\t\t// No ha introducido un numero valido\n\t\t\tview.showError(\"No se ha introducido un numero de palabras valido\");\n\t\t\treturn -1;\n\t\t}\n\t\tint palabrasEncontradas = model.leerLongitudes(view.getFichero1().getText(), longitud);\n\n\t\t// Muestra palabras encontradass\n\t\tif (palabrasEncontradas != 0) {\n\t\t\t// Se han encontrado\n\t\t\tview.getTextArea().setText(\"Se han localizado \" + palabrasEncontradas + \" palabras con más de \" + longitud\n\t\t\t\t\t+ \" caracteres en el fichero \" + view.getFichero1().getText());\n\t\t} else {\n\t\t\t// No se han encontrado palabras\n\t\t\tview.showError(\"Se han encontrado 0 palabras con \" + longitud + \" caracteres\");\n\t\t}\n\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "7d6ca5abfb95f7f7d67af9c4211642e6", "score": "0.5143255", "text": "private void validateLonglong() throws CConflictingModifierException {\n\t}", "title": "" }, { "docid": "059ef78e1e027d6363c68c01e1a54444", "score": "0.51339847", "text": "public boolean setPropertyMessageID(long aValue);", "title": "" }, { "docid": "0f4d02d82a26d380e45b1b7b366f5661", "score": "0.5133026", "text": "LongDec createLongDec();", "title": "" }, { "docid": "1333c0627e85b7d4a79b2fb361c13e33", "score": "0.512544", "text": "public int MessageBoxW(int hwnd, String text, String caption, int type);", "title": "" }, { "docid": "089a30b54525a15b42b3edca7d1d3a9e", "score": "0.51216525", "text": "public static void main(String[]args){\n byte bytevalue = 10;\n short shortvalue = 20;\n int intvalue = 30;\n long longtotal = 5000L + 10L*(bytevalue + shortvalue + intvalue);\n System.out.println(\"Longtotal \" + longtotal);\n }", "title": "" }, { "docid": "69c5662dd578dce9f9645efa07900c26", "score": "0.5119177", "text": "private long parseLongInteger()\n\t{\n\t\tint octetcount = this.data.get(this.pos++);\n\t\t\n\t\tif (octetcount > 30)\n\t\t{\n\t\t\tLog.e(TAG, \"[MMS PARSER] Short-length-octet (\" + this.data.get(this.pos - 1) + \") > 30 in Value-length at offset \" + (this.pos - 1) + \"!\");\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tlong longint = 0L;\n\t\tfor (int i=0; i<octetcount; i++)\n\t\t{\n\t\t\tlongint = longint << 8;\n\t\t\tlongint += this.data.get(this.pos++);\n\t\t}\n\t\t\n\t\treturn longint;\n\t}", "title": "" }, { "docid": "ff96d1721bde7b604a79d4cc861914a2", "score": "0.5115656", "text": "public String getLongDescription();", "title": "" }, { "docid": "7887c21eb8c09e1a8c5734c26acbd3a8", "score": "0.51050055", "text": "public long getLong(long lDefault);", "title": "" }, { "docid": "e8e0b2ba6e6e080098b2b2f3d5140287", "score": "0.5098835", "text": "private void getLongt(){\n \ttry{\n \t\tthis.longt = Double.parseDouble(this.longtInput.getText());\n \t}\n \tcatch (NullPointerException E){\n \t\tthis.console.append(\"\\nNo values entered for Latitude. Please enter a value.\\n\");\n \t}\n \tcatch (NumberFormatException E){\n \t\tthis.console.append(\"\\nInvalid Longitude value. Please enter either a positive or negative value with no degree symbol.\\n\");\n \t\tthis.console.append(\"Example: 89.1285 or -32.5632\\n\");\n \t}\n }", "title": "" }, { "docid": "41035e145c365afea0c1e484236f0023", "score": "0.50979924", "text": "public void setValue(Long value) {\n this.value = value;\n }", "title": "" }, { "docid": "58782fb649c5340ee70d03badecde33a", "score": "0.5097392", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate static final void popupMessage() {\r\n\t\t// TODO: popup message with same text\r\n\t\tSystem.exit(-1);\r\n\t}", "title": "" }, { "docid": "99dd3acb0b91ad7f113d93726f40697b", "score": "0.50913215", "text": "public org.apache.axis2.databinding.types.UnsignedLong getUnsignedLong(){\r\n return localUnsignedLong;\r\n }", "title": "" }, { "docid": "8e8eff7539add23a6ee4d204ca744a4a", "score": "0.5086243", "text": "public void setNewLong(long newLong) {\r\n this.newLong = newLong;\r\n }", "title": "" } ]
3b9c43a6072f7a5efe91fa16fb58e3c4
The cleanup annotation will check to see if the object being cleaned up is not null. We need to make the object null to exercise that branch.
[ { "docid": "31f37c38c7e7450a4b34760ca8548196", "score": "0.0", "text": "@Test\n public void summarizePeriodCoverCloseConnection() throws Exception {\n JdbcLogSummarizer summy = new JdbcLogSummarizer();\n JdbcDataSource jdbcSource = mock(JdbcDataSource.class);\n boolean exception = false;\n\n when(jdbcSource.getConnection()).thenReturn(null);\n summy.setSource(jdbcSource);\n\n try {\n summy.summarizeTime();\n }\n catch (NullPointerException e) {\n exception = true;\n //Expected exception\n }\n assertTrue(exception);\n\n }", "title": "" } ]
[ { "docid": "2bda930cf8726bb5022c169e2edaddee", "score": "0.74574643", "text": "public void cleanupIfRequired();", "title": "" }, { "docid": "2a2c2f1e55b9b05aac55482ad4f5b6be", "score": "0.7008377", "text": "public void cleanup() {\n }", "title": "" }, { "docid": "4d43213dfd6fe9b0f24943a071405ee0", "score": "0.6983176", "text": "public void cleanup() {\r\n }", "title": "" }, { "docid": "079da3aed7d2e33b5e373f79c37bed3a", "score": "0.6962545", "text": "public void cleanup() {\n\n }", "title": "" }, { "docid": "a12268f8baaf20b0757ad6454eb0307b", "score": "0.6955445", "text": "private void cleanup() {\n }", "title": "" }, { "docid": "91c6dae57661a649db02a8a562f4168b", "score": "0.691392", "text": "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "91c6dae57661a649db02a8a562f4168b", "score": "0.691392", "text": "@Override\n\tpublic void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "4d7600153402634d831e1ab19e7fcb98", "score": "0.690934", "text": "@Override\n\tpublic void cleanup() {\n\t}", "title": "" }, { "docid": "4d7600153402634d831e1ab19e7fcb98", "score": "0.690934", "text": "@Override\n\tpublic void cleanup() {\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "4b09032a91a0cb5507921eca461dee5a", "score": "0.6887509", "text": "@Override\n\tpublic void cleanup() {\n\n\t}", "title": "" }, { "docid": "f66928c91f7dcbd2cce52eaedb71eca2", "score": "0.683343", "text": "public void cleanup() {\n\t\t\n\t}", "title": "" }, { "docid": "3c251146f631dfedce7adf6fe4f96d19", "score": "0.6815611", "text": "public void doCleanUp(){\n\t\t\t}", "title": "" }, { "docid": "daab9228203656d59999b58cfad38310", "score": "0.67531383", "text": "@Override\n public void cleanup() {\n\n }", "title": "" }, { "docid": "e1a3c9245f9b06ad4995a41c1a2320fe", "score": "0.67303854", "text": "@Override\n public final void clean() {\n\n Runnable cleaner = F_CLEANER.getAndSet(this, null);\n\n if (cleaner == null) {\n return;\n }\n\n try {\n cleaner.run();\n } catch (Throwable t) {\n // We ignore all exceptions, even Errors. This is because an Error leaked from the user cleanup callback\n // would otherwise result in the cleaner thread as a whole dying, resulting in a permanent memory leak.\n // If the user cleaner fails there isn't much we can do about it anyway.\n\n // This behavior is consistent with the behavior of ordinary finalizers. The JDK 9 cleaner chooses a\n // different approach - uncaught throwables result in the VM being terminated.\n }\n\n // Remove the underlying reference to the referent. This isn't strictly necessary, but it means the GC\n // doesn't have to keep the referent alive until reference processing completes (if the reference has not\n // yet been found dead).\n clear();\n\n synchronized (owningStripe) {\n owningStripe.outstandingRefs--;\n\n next.prev = prev;\n prev.next = next;\n next = prev = this;\n }\n }", "title": "" }, { "docid": "a37d4e9f5b99dbea741b2ed0a577b097", "score": "0.66929495", "text": "protected abstract void cleanup();", "title": "" }, { "docid": "a37d4e9f5b99dbea741b2ed0a577b097", "score": "0.66929495", "text": "protected abstract void cleanup();", "title": "" }, { "docid": "f21f6e74fce7a86aa6067522525ba7db", "score": "0.66778964", "text": "public void cleanup() throws Exception;", "title": "" }, { "docid": "f21f6e74fce7a86aa6067522525ba7db", "score": "0.66778964", "text": "public void cleanup() throws Exception;", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.66616386", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.66616386", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.66616386", "text": "public void cleanup();", "title": "" }, { "docid": "476397c9cd506ad5050d45adecafea04", "score": "0.66616386", "text": "public void cleanup();", "title": "" }, { "docid": "5370861ea52425c8d8672a93d9588ab1", "score": "0.6582329", "text": "public void cleanUp(){\n // nothing yet\n }", "title": "" }, { "docid": "51a068b91d7f704067d68a609e36e95c", "score": "0.65727425", "text": "@PreDestroy\n @SuppressWarnings(\"PMD.CollapsibleIfStatements\") // Collapsing inner `if` statement is not equivalent to this.\n public void cleanUp() {\n if (temporaryFolder != null && temporaryFolder.exists()) {\n if (!temporaryFolder.delete()) {\n throw new RuntimeException(\"Temporary folder not deleted: \" + temporaryFolder.toString());\n }\n }\n }", "title": "" }, { "docid": "617911b6edafd4faf559ecd8630cfe8e", "score": "0.65589994", "text": "public interface Cleanup {\r\n\r\n /**\r\n * Cleans up temporary data in memory.\r\n * \r\n * @since 1.00\r\n */\r\n public void cleanup();\r\n \r\n /**\r\n * Do memory cleanup if required.\r\n * \r\n * @since 1.00\r\n */\r\n public void cleanupIfRequired();\r\n \r\n}", "title": "" }, { "docid": "9bb29c2d268cc3f76a58e08ccb74da65", "score": "0.65562713", "text": "default void cleanup() {\n // nothing to cleanup by default\n }", "title": "" }, { "docid": "e7180b5c0c9fda6052ea7edbfeab7387", "score": "0.64818895", "text": "public void cleanup() {\n this.tagName = null;\n this.attrsByKey = null;\n }", "title": "" }, { "docid": "ce7ad6b8959633fb3467bda0b3fb4e86", "score": "0.64313436", "text": "private void cleanUp() {\r\n\r\n }", "title": "" }, { "docid": "dbc629b511d9a686a513fa204f4951c7", "score": "0.6426116", "text": "public void cleanUp() {\n instance = null;\n }", "title": "" }, { "docid": "fe2d29d640d0ad92d28534dc8214aa4a", "score": "0.6421172", "text": "public void clean() { }", "title": "" }, { "docid": "b200a668b16dfbb03dd7a5abb84cd7bb", "score": "0.6417307", "text": "public void cleanUp() {\n }", "title": "" }, { "docid": "b31e5045301bb3afbc8f878e56182543", "score": "0.64097106", "text": "boolean cleanup();", "title": "" }, { "docid": "f8241671a7a4678754cb3eefaad07f58", "score": "0.63827735", "text": "public void cleanUp()\n {\n /* Does nothing currently. */\n }", "title": "" }, { "docid": "516820ebaa214eba587541d9fcabc2fe", "score": "0.6326708", "text": "public void cleanUp();", "title": "" }, { "docid": "516820ebaa214eba587541d9fcabc2fe", "score": "0.6326708", "text": "public void cleanUp();", "title": "" }, { "docid": "516820ebaa214eba587541d9fcabc2fe", "score": "0.6326708", "text": "public void cleanUp();", "title": "" }, { "docid": "6c27550c5a41a4f57ea52c2667213632", "score": "0.63118964", "text": "@PreDestroy\n private void cleanUp() {\n }", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "ee9864442c36abbfba1055a85c36739f", "score": "0.63083845", "text": "void cleanup();", "title": "" }, { "docid": "7591d4b13aa17c72acfc2bb0bff89164", "score": "0.62985903", "text": "@Override\r\n\tpublic void cleanUp() {\r\n\t}", "title": "" }, { "docid": "e08f3e36ed1ad43c1c6278b8cd0d0617", "score": "0.62916976", "text": "private void cleanFields()\n {\n subject = null;\n\n if(subscriber!=null) subscriber.unsubscribe();\n subscriber = null;\n\n if(resultsSubscriber!=null) resultsSubscriber.unsubscribe();\n resultsSubscriber = null;\n\n checks = null;\n\n merged = null;\n\n instance = null;\n }", "title": "" }, { "docid": "0d7cd5144c7e765baf8b6e2528041d40", "score": "0.625582", "text": "public void doCleanup() {\n // could remove this action from its list. Currently this is done by gc\n return;\n }", "title": "" }, { "docid": "a448baa325379e9e949f55ae8ed81776", "score": "0.6244196", "text": "default void cleanUp() {\n }", "title": "" }, { "docid": "c9b8585b4d05c2b94316857ad42b7c9f", "score": "0.6230305", "text": "@After\n public void cleanUp() {\n aNull = null;\n Whitebox.setInternalState(res, \"sprites\", aNull);\n }", "title": "" }, { "docid": "881cb54ab09f2d0c22a27baaf857f710", "score": "0.61868423", "text": "public interface Cleanable {\n\n\t/**\n\t * The method that performs the cleanup in a class\n\t */\n\tpublic void cleanUp();\n}", "title": "" }, { "docid": "04618b5e88dd15a7a8628bec9ba03ead", "score": "0.6180123", "text": "protected void cleaningUp() {\n\t}", "title": "" }, { "docid": "93b6c280723df4ee401cf04eae87f690", "score": "0.6173845", "text": "@Override\n\tpublic void reclaim( final T _obj ) {}", "title": "" }, { "docid": "f7ad3d5374617aa487cb591fab225529", "score": "0.61502653", "text": "public abstract void cleanUp();", "title": "" }, { "docid": "f7ad3d5374617aa487cb591fab225529", "score": "0.61502653", "text": "public abstract void cleanUp();", "title": "" }, { "docid": "85fd7da457f53ca71b6dc624688c6d80", "score": "0.61079", "text": "void cleanup() {\n\t\t\n\t\tlogDebug(\"Method cleanup() called\");\n\t\t\n\t\t// Check if cleanup already done\n\t\tif (xCleanupDone)\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tlogDebug(\"Freeing the Domino resources\");\n\t\t\t\t\t\t\t\t\t\n\t\t\tif (xNotesDatabase != null) {\n\t\t\t\txNotesDatabase.recycle();\n\t\t\t\txNotesDatabase = null;\n\t\t\t}\n\t\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlogMessage(\"Error: Cleanup processing failed: \" + e.getMessage());\n\t\t}\n\t\t\n\t\txCleanupDone = true;\n\t}", "title": "" }, { "docid": "8360eaf85f8eb9e23cd8706b72b8366d", "score": "0.609654", "text": "protected void onCleanup()\n\t{\n\t}", "title": "" }, { "docid": "39cf2c27c69b85d7668a71f952e209c4", "score": "0.6096113", "text": "@Test\n public void testCleanupDoesNotThrowException()\n {\n out.cleanup();\n \n /* verifying */\n /* nothing to do */\n }", "title": "" }, { "docid": "eb43757ec83934742c32f8b7bd52ff13", "score": "0.60852945", "text": "void postRemovalCleanup() {\n cleanup();\n cleanup();\n }", "title": "" }, { "docid": "5002e12371d3f5d290a9c11e937d14ff", "score": "0.60785395", "text": "void cleanUp();", "title": "" }, { "docid": "18efe47713bc79f72ee4ef2a3cfc0dd6", "score": "0.6078281", "text": "public void cleanup() {\n log.info(\"Cleaner: 0 messages to clean up\");\n }", "title": "" }, { "docid": "91168af4fcbb1aadc1c95f1bb70261c4", "score": "0.6025762", "text": "public void finalize() {\n if (this.mAutoCleanup) {\n cleanUp();\n }\n super.finalize();\n }", "title": "" }, { "docid": "bf08a72cd808c7ad78d214037c5ebf1d", "score": "0.6016179", "text": "public void cleanup() {\n storage.clear();\n }", "title": "" }, { "docid": "b82d24431535e8faf969821d10de1216", "score": "0.5984353", "text": "public static void cleanersAndFinalizers() {\n\n }", "title": "" }, { "docid": "2a4c8e8c26a353aa8364e5f7ec44a10a", "score": "0.5965168", "text": "PhantomCleanableRef() {\n super();\n this.action = null;\n }", "title": "" }, { "docid": "863ba9ffbf221382ada9c8781fe87853", "score": "0.5962139", "text": "public void cleanup()\r\n {\r\n page = null;\r\n state = null;\r\n stack = null;\r\n globalDirtyRegion = null;\r\n lastShape = null;\r\n \r\n // keep around the image ref and image info for use in late addObserver() call\r\n //EDIT: No observers are used so there is no need\r\n if(imageRef != null)\r\n {\r\n \tif(g != null)\r\n \t{\r\n \t\tPDFGraphics.finishGraphics(g); //This can be called because the PDFGraphics was created from the imageRef and if we are getting rid of the imageRef, we can get rid of the PDFGraphics object too.\r\n \t}\r\n\t imageRef.clear();\r\n\t imageRef = null;\r\n }\r\n }", "title": "" }, { "docid": "4b0ea6d6260ffc4818540983bd540177", "score": "0.59443533", "text": "@After\n public void clean() {\n\n this.beanMapper = null;\n this.offerDao = null;\n this.offerManagementImpl = null;\n }", "title": "" }, { "docid": "c5b71670134efcd41bb644d54b5f9088", "score": "0.5897179", "text": "@Override\n protected JsCleanup createCleanupObject() {\n JsCleanup cleanup = new JsCleanupMoz(jsRootedValue);\n if (debugFlag) {\n debugInfo.destroyInstance(jsRootedValue);\n jsRootedValue = 0;\n }\n return cleanup;\n }", "title": "" }, { "docid": "05bedd3dbcf378d250a09a86d05557b9", "score": "0.58890694", "text": "public void cleanup(OntologyBean ontologyBean) throws Exception;", "title": "" }, { "docid": "d07ac6954ff5eaa23824d5de65b28b98", "score": "0.5868369", "text": "protected void cleanup()\n {\n m_PaymentData = null;\n\n m_Sheet = null;\n m_Wrkbk = null;\n \n m_FontNorm = null;\n m_FontBold = null;\n \n m_StyleHdrLeft = null;\n m_StyleTxtC = null;\n m_StyleTxtL = null; \n m_StyleInt = null;\n m_StyleDouble = null; \n }", "title": "" }, { "docid": "18b1e746284b53a43fabb30975808812", "score": "0.5860624", "text": "@After\r\n\tpublic void cleanUp()\r\n\t{\r\n//\t\tSystem.out.println(\"nothing to clean up yet\");\r\n\t}", "title": "" }, { "docid": "ee1d3a6d4374c082be95aa55de8bfe97", "score": "0.5827849", "text": "public void cleanUp() \n\t{\n\t\tthis.shader.cleanUp();\n\t\tthis.shadowFbo.cleanUp();\n\t}", "title": "" }, { "docid": "efc0c450bbdac6478136eeca12bcb0d6", "score": "0.5824425", "text": "public void cleanUp() {\n this.accounts = null;\n this.assetModel = null;\n this.expenseModel = null;\n this.feeGroups = null;\n this.feeReceiptModel = null;\n this.fees = null;\n this.liabilityModel = null;\n this.payStructures = null;\n this.store = null;\n this.storeActivityModel = null;\n this.storeDataModel = null;\n this.storeItem = null;\n this.storeItemDataModel = null;\n this.txnJournalDetailModel = null;\n this.txnJournalModel = null;\n this.txnTypes = null;\n }", "title": "" }, { "docid": "1574c5609a5ef2730f543beede122ee0", "score": "0.58098066", "text": "@PreDestroy\n\tpublic void doMyCleanUpStuff() {\n\t\tSystem.out.println(\"\\nChallengeFortuneService: inside of doMyCleanUpStuff()\");\n\t}", "title": "" }, { "docid": "8ba777202309af9afe2feecc9e39d9b0", "score": "0.5772902", "text": "@After\n public void cleanUp() {\n }", "title": "" }, { "docid": "881ac2b3f5db6a892bf493010f6cd449", "score": "0.576777", "text": "public void cleanup() {\n\t\tif (modo.equalsIgnoreCase(EstadisticasConstants.MODO_JSON)) {\n\t\t\tnew EstadisticaDAOJSONImpl().cleanup();\n\t\t}\n\n\t\tif (modo.equalsIgnoreCase(EstadisticasConstants.MODO_MONGO)) {\n\t\t\tnew EstadisticaDAOMongoDBImpl().cleanup();\n\t\t}\n\n\t\tif (modo.equalsIgnoreCase(EstadisticasConstants.MODO_SCRIPT_SQL)) {\n\t\t\t// No desarrollado\n\t\t\t\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "daf423238147385cac71f7acbbf64d51", "score": "0.57580954", "text": "interface Clearable {\n\n /**\n * clear (null-reference) this Object's reference variables\n */\n void clear();\n}", "title": "" }, { "docid": "318ff5866813ffcb72c59e6f5f08ea66", "score": "0.57438886", "text": "public void cleanup() {\n val.removeValueListener(this);\n }", "title": "" }, { "docid": "d2b3f1e47c3b686a3eea5ab0ffb0ca08", "score": "0.57028174", "text": "void clean();", "title": "" }, { "docid": "d2b3f1e47c3b686a3eea5ab0ffb0ca08", "score": "0.57028174", "text": "void clean();", "title": "" }, { "docid": "d2b3f1e47c3b686a3eea5ab0ffb0ca08", "score": "0.57028174", "text": "void clean();", "title": "" }, { "docid": "395d3699ba7788af59b9b6b8b5775686", "score": "0.5691522", "text": "public static void clean(){\n\t\thelperUtil = null;\n\t}", "title": "" }, { "docid": "2ab0f9777325ea986780696c5006c470", "score": "0.56859374", "text": "public Optimizable cleanup(Optimizable function);", "title": "" }, { "docid": "4af7f1b0917718b5187ab2c1f8b321a5", "score": "0.5679468", "text": "@Override\r\n\tpublic void deleteObject()\r\n\t{\r\n\t\tif (isTaken)\r\n\t\t{\r\n\t\t\towner.releaseMe(this);\r\n\t\t}\r\n\t\tsuper.deleteObject();\r\n\t}", "title": "" }, { "docid": "7ed79ed517fd9574eb29dc49a3e306d7", "score": "0.56790286", "text": "public static void nullifyInstance() {\r\n instance = null;\r\n }", "title": "" }, { "docid": "99136f02ffa1c681d693a9cbe078476c", "score": "0.5656089", "text": "private void checkCleaner() {\n\t\tsynchronized(ObjectPool.class) {\n\t\t\tif(cleaner==null || (!cleaner.isAlive())) {\n\t\t\t\tcleaner=new ObjectPoolCleaner(this);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6976a09feda6f214999f80929f58d5d1", "score": "0.5654071", "text": "@After public void teardown() {\n try { delete(new File(o));\n } catch (FileNotFoundException e) {}\n }", "title": "" }, { "docid": "c028968af3b8be89064d574e992f3c4c", "score": "0.5650147", "text": "public void clean() {\n\t\thead = tail = null;\n\n\t}", "title": "" }, { "docid": "d2a3ced5d8650bb334b6390f0ab9e036", "score": "0.5634339", "text": "@Override\n public void cleanup()\n {\n if( ALSource != null )\n {\n try\n {\n // Stop playing the source:\n AL10.alSourceStop( ALSource );\n AL10.alGetError();\n }\n catch( Exception e )\n {}\n try\n {\n // Delete the source:\n AL10.alDeleteSources( ALSource );\n AL10.alGetError();\n }\n catch( Exception e )\n {}\n ALSource.clear();\n }\n ALSource = null;\n \n super.cleanup();\n }", "title": "" }, { "docid": "bc9e3b1299a6db2c7f4ec80a54931bb3", "score": "0.5633025", "text": "@After\n\tpublic void clear(){\n\t\tthis.myinstance = null;\n\t}", "title": "" }, { "docid": "a6839a24d50db36d9738e6d498e97238", "score": "0.56283814", "text": "public void cleanup() {\n cache = null;\n cacheCfg = null;\n evictMgr = null;\n qryMgr = null;\n dataStructuresMgr = null;\n cacheObjCtx = null;\n\n if (expiryPlc instanceof Closeable)\n U.closeQuiet((Closeable)expiryPlc);\n\n mgrs.clear();\n }", "title": "" }, { "docid": "528091d96175f0cadfbf284a31452493", "score": "0.5627585", "text": "public static void destoryInstance() {\n sDataUseCase = null;\n }", "title": "" }, { "docid": "1ebcacf2103436ea682c9915c709e26d", "score": "0.5627086", "text": "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "title": "" }, { "docid": "1ebcacf2103436ea682c9915c709e26d", "score": "0.5627086", "text": "public void finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }", "title": "" }, { "docid": "3cfa832a8830717f87201494170c209f", "score": "0.5604485", "text": "public void cleanup(ReduceContext context);", "title": "" }, { "docid": "1933a381395c89e35a7d3e88e696d3bf", "score": "0.55941653", "text": "@Override\n\tpublic void run() {\n\t\tcleanup();\n\t}", "title": "" } ]
0f182061766b08f2df2c2b7292537475
hides buttons we don;t want
[ { "docid": "3d0c4731fa4ba8cae95f72e542d0369d", "score": "0.0", "text": "public void formatPlayerButtons(int numOfPlayers){\n Button button3 = (Button)findViewById(R.id.button_player_3);\n Button button4 = (Button)findViewById(R.id.button_player_4);\n\n if(numOfPlayers == 2){\n button3.setVisibility(View.GONE);\n button4.setVisibility(View.GONE);\n }\n if(numOfPlayers == 3){\n button4.setVisibility(View.GONE);\n }\n }", "title": "" } ]
[ { "docid": "e6c30034f5c8dec94e35c46b7b5823be", "score": "0.8376859", "text": "public void dontDisplayButtons() {\n\t\tfor (int i = 0; i < 25; i++) {\n\t\t\tframe.buttons_set2[i].setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "6ee0ff1cdede6619bdd7f2f1ff6c8054", "score": "0.8259744", "text": "public void hideButtons()\n {\n for(int i = 0; i < BCOUNT; i++) {\n //buttonArray[i].set(\"\", buttonArray[i].getID(), true);\n buttonArray[i].set(\"\", -1, true);\n }\n }", "title": "" }, { "docid": "21f7337d6f8b10ecb5d5112c21e46908", "score": "0.7564671", "text": "@FXML\n private void hideModifyAndRemoveTurnstileButtonsAndLabel() {\n deleteTurnstileButton.visibleProperty().set(false);\n modifyTurnstileButton.visibleProperty().set(false);\n modifyTurnstileLabel.visibleProperty().set(false);\n }", "title": "" }, { "docid": "0c68d1db30eb3a4ec61450ed6230db84", "score": "0.74073106", "text": "@Override\n\tpublic void hideGUIElements() {\n\t\t\n\t}", "title": "" }, { "docid": "d9cf8bbe72e5d8d925f84a0fab0353ce", "score": "0.7389653", "text": "public void hideAllSettingsButtons() {\n if (mFlashSetupButton != null) {\n mFlashSetupButton.setVisibility(View.GONE);\n }\n\n if (mFlipCameraButton != null) {\n mFlipCameraButton.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "8075e4c00f9ef7d209c975cee0076eef", "score": "0.73670185", "text": "public void setInvisible() {\r\n\t\tthis.loginBtn.setVisible(false);\r\n\t\tthis.registerBtn.setVisible(false);\r\n\t\tthis.logoutBtn.setVisible(true);\r\n\t\tthis.personalBtn.setVisible(true);\r\n\t}", "title": "" }, { "docid": "bdcd08f2c4a461d65ce3fd804b90f48e", "score": "0.7275727", "text": "protected final void hideButton2() {\n flag = false;\n toggler.syncButtonVisibility();\n }", "title": "" }, { "docid": "ee0fe3a8a76f1df2221b27d12ec93bf5", "score": "0.72754794", "text": "protected final void hideButton1() {\n flag = true;\n toggler.syncButtonVisibility();\n }", "title": "" }, { "docid": "e729d1a5fd91bb4f866421943b9fec4a", "score": "0.7275277", "text": "public void disableButtons(){\n\t\tplayButton.setEnabled(false);\n\t\tbackButton.setEnabled(false);\n\t\tstopButton.setEnabled(false);\n\t}", "title": "" }, { "docid": "3d8f8c5fafbbea1cd2ff039fa1d7b0f0", "score": "0.7252178", "text": "@FXML\n private void hideAddTurnstileButtonAndLabel() {\n addTurnstileButton.visibleProperty().set(false);\n addTurnstileLabel.visibleProperty().set(false);\n }", "title": "" }, { "docid": "3733aba3ff95111275cd5d3a14cdc515", "score": "0.72159445", "text": "private void disableButtons(JButton quickConnectBtn, JButton serverCountryBtn, JButton serverGroupsBtn) {\n quickConnectBtn.setEnabled(false);\n serverCountryBtn.setEnabled(false);\n serverGroupsBtn.setEnabled(false);\n }", "title": "" }, { "docid": "8d708bcf69f60d3c6118c61288be6fe0", "score": "0.7207055", "text": "private int hide_button(final Button button) {\n\t\tbutton.setEnabled(false);\n\t\tbutton.setVisibility(View.INVISIBLE);\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0c03545d551062d792b5150fd86266f5", "score": "0.71659577", "text": "protected void disableButtons() {\n\t\tunitInfoButton.disable();\n\t\tmoveButton.disable();\n\t\tabilityButton.disable();\n\t\tdeselectButton.disable();\n\t}", "title": "" }, { "docid": "dca3ab8ab346d6344180e0927a01148d", "score": "0.7150023", "text": "private void disableButtons() {\r\n\t\tmyForm.replayBtn.setEnabled(false);\r\n\t\tmyForm.delGNodeBtn.setEnabled(false);\r\n\t\tmyForm.delAllGNodesBtn.setEnabled(false);\r\n\t\tmyForm.getNodePropertiesPanel().replayBtn.setEnabled(false);\r\n\t}", "title": "" }, { "docid": "d8d7b24f3d30d2f3bb239fd795418244", "score": "0.7090575", "text": "@FXML\n private void hideModifyAndRemoveSectorButtonsAndLabel() {\n modifySectorLabel.visibleProperty().set(false);\n deleteSectorButton.visibleProperty().set(false);\n modifySectorButton.visibleProperty().set(false);\n }", "title": "" }, { "docid": "3b53baf14b37730f31a50c0232357d1d", "score": "0.70854104", "text": "public void disableButtons() {\n\t\tfor (int i = 0; i < 25; i++) {\n\t\t\tframe.buttons_set2[i].setEnabled(false);\n\t\t}\n\t}", "title": "" }, { "docid": "862f4743977f974d2494432a3a512091", "score": "0.70507646", "text": "private void hide()\r\n\t{\r\n\t\t\r\n\t\tbDisplayed=false;\r\n\t}", "title": "" }, { "docid": "8f3e66fc871654e477691ee13f0c124a", "score": "0.7028375", "text": "public void disableSideButtons() {\n buttonCustomers.setDisable(true);\n buttonReports.setDisable(true);\n buttonViewSchedule.setDisable(true);\n }", "title": "" }, { "docid": "c7b2e8682d5efe8087e3231ad306cd44", "score": "0.6981573", "text": "private void button1MouseClicked(MouseEvent e) {\n this.setVisible(false);\n }", "title": "" }, { "docid": "7f9d6f7c4d68f4a1832d4e32ebf71af2", "score": "0.6979429", "text": "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n setVisible(false);\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "9e293e823e8f0865f2516e970595af4a", "score": "0.69702417", "text": "private void setButtonActions()\n {\n final InternalWindow iw = this;\n hideBtn.addActionListener(new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n isHide = true;\n iw.setInternalVisibility(false);\n }\n }); \n \n exitBtn.addActionListener(new ActionListener()\n {\n public void actionPerformed(ActionEvent e)\n {\n isExit = true;\n }\n }); \n }", "title": "" }, { "docid": "51785f93fa51b53ecd048cf1f2d2f1e4", "score": "0.6908815", "text": "private static void quitGame(){\r\n commandPanel.setVisible(false);\r\n for ( JButton b : buttons ){\r\n\t\t\t\tb.setEnabled(false);\r\n\t\t\t}\r\n }", "title": "" }, { "docid": "53404195aca67de5db53df6b8d510747", "score": "0.68888044", "text": "private void hide() {\n }", "title": "" }, { "docid": "f8ba9042df9f5f13c65ef813aaacf2c0", "score": "0.68821603", "text": "private void hideMenus() {\n\t\tplayPromptYes.setVisible(false);\n\t\tplayPromptNo.setVisible(false);\n\t\thTPMENU.setVisible(false);\n\t\tcreditsMenu.setVisible(false);\n\t\tsettingsMenu.setVisible(false);\n\t\tupButton.setVisible(false);\n\t\tdownButton.setVisible(false);\n\t\trightButton.setVisible(false);\n\t\tleftButton.setVisible(false);\n\t}", "title": "" }, { "docid": "5cbd7711783d9177fe8e7c5590919ff0", "score": "0.68774027", "text": "private static void disableButtons() {\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tbuttons[i][j].setEnabled(false);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9fd5ad152e752fdb061f8b019b207d83", "score": "0.6858426", "text": "private void disableButtons() {\r\n\r\n Button btnHit = (Button) findViewById(R.id.hit_button);\r\n btnHit.setEnabled(false);\r\n\r\n Button btnStand = (Button) findViewById(R.id.stand_button);\r\n btnStand.setEnabled(false);\r\n\r\n Button btnSurrender = (Button) findViewById(R.id.surrender_button);\r\n btnSurrender.setEnabled(false);\r\n\r\n Button btnDouble = (Button) findViewById(R.id.double_button);\r\n btnDouble.setEnabled(false);\r\n\r\n }", "title": "" }, { "docid": "df0745a0810b69a7c3d250ab49a67235", "score": "0.68425405", "text": "public void removeAbortAndAttack() {\n attackController.abortButton.setVisible(false);\n attackController.attackButton.setVisible(false);\n }", "title": "" }, { "docid": "36bf0edbf0675d352f0368e88ee9c037", "score": "0.6836369", "text": "public void setALARMButtonUNActive(){\n this.ALARMButton.setVisible(false);\n \n }", "title": "" }, { "docid": "2524f94f532402b151ee1f86bc70a23e", "score": "0.67841905", "text": "public static void hide()\n {\n mop.setVisible(false);\n }", "title": "" }, { "docid": "010416aea1f4e477925d41b7fe958c2b", "score": "0.6780655", "text": "public void buttonSimpleTemplate() {\n descriptionTextArea.setVisible(false);\n descriptionTextArea.setManaged(false);\n locationTextField.setVisible(false);\n locationTextField.setManaged(false);\n priorityBox.setVisible(false);\n priorityBox.setManaged(false);\n repeatBox.setVisible(false);\n repeatBox.setManaged(false);\n colorBox.setVisible(false);\n colorBox.setManaged(false);\n tagsBox.setVisible(false);\n tagsBox.setManaged(false);\n attachBox.setVisible(false);\n attachBox.setManaged(false);\n }", "title": "" }, { "docid": "648ab4618da5a0fcb21419794bb75957", "score": "0.6778137", "text": "private void btnsDesactivate() {\n this.mainTipoPlato.btnEliminar.setEnabled(false);\n this.mainTipoPlato.btnActualizar.setEnabled(false);\n }", "title": "" }, { "docid": "d65984bda66bde3628bd6c6db91e5132", "score": "0.6771683", "text": "@FXML\n private void hideAddSectorButtonAndLabel() {\n addSectorLabel.visibleProperty().set(false);\n addSectorButton.visibleProperty().set(false);\n }", "title": "" }, { "docid": "6fc74290239aea7b83f69daa10921d62", "score": "0.6753915", "text": "@Override\n public void onClick(View view) {\n hideAttachedButtons();\n }", "title": "" }, { "docid": "824ce1d9335a42a79d9dd7733bd06f7d", "score": "0.67405504", "text": "public void hide();", "title": "" }, { "docid": "40fb3bc0a682e81ce954d4ce6e060189", "score": "0.6737199", "text": "public void hideGUI();", "title": "" }, { "docid": "fbcc9da8226073be5372b3e72528df76", "score": "0.6723396", "text": "private void disable() {\r\n\t\tfor (int i = 0; i < OthelloApplication.buttons.size(); i++) {\r\n\t\t\tif (OthelloApplication.buttons.get(i).getStyle() == OthelloApplication.highlightToken) {\r\n\t\t\t\tOthelloApplication.buttons.get(i).setMouseTransparent(true);\r\n\t\t\t\tOthelloApplication.buttons.get(i).setStyle(OthelloApplication.emptyToken);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f8241498277195de7c0a34306f018373", "score": "0.67109936", "text": "void hide();", "title": "" }, { "docid": "96b0c8372842be15693ee4bca02b9ff2", "score": "0.67104566", "text": "public void hide() {\n hide(true);\n }", "title": "" }, { "docid": "4b36a7cfed50db54c8cfc06cfd77ffce", "score": "0.66995317", "text": "public void hide() {\r\n\t}", "title": "" }, { "docid": "a7ac176831354c0fd3a6b72d51545975", "score": "0.66683954", "text": "public void hideThoughts(){\n showingThoughts=false;\n dialog.setVisible(false);\n }", "title": "" }, { "docid": "2c59c6f251c500ae64fb9ed4677c13ce", "score": "0.665799", "text": "public void setAllNotVisible() {\r\n\t\tmEditUserEmail.setVisibility(View.INVISIBLE);\r\n\t\tmEditPassword.setVisibility(View.INVISIBLE);\r\n\t\tmErrorMessage.setVisibility(View.INVISIBLE);\r\n\t\tfindViewById(R.id.btnRegisterAccount).setVisibility(View.INVISIBLE);\r\n\t\tfindViewById(R.id.btnLogin).setVisibility(View.INVISIBLE);\r\n\t}", "title": "" }, { "docid": "facc9296b0b8e9f78c1db88242e37ea8", "score": "0.66509944", "text": "public void disableAllButtons() {\r\n\t\tfor(int row=0;row<3;row++) {\r\n\t\t\tfor(int col=0;col<3;col++) {\r\n\t\t\t\tJButton btn = theButtons[row][col];\r\n\t\t\t\tbtn.setEnabled(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "171188d5d924ed5f922a11bccb765a21", "score": "0.6644308", "text": "public void hideAnalyse(){\n\t\tthis.setVisible(false);\n\t}", "title": "" }, { "docid": "670c12b926812d13ff64f4230aac3104", "score": "0.66422385", "text": "private void hideAllFloatingButtons() {\n fabAddElement.startAnimation(rotateBackward);\n toggleFloatingButton(fabInstantTravel, fabClose, false);\n toggleFloatingButton(fabPlanTravel, fabClose, false);\n toggleFloatingButton(fabAddStory, fabClose, false);\n toggleFloatingButton(fabAddMarker, fabClose, false);\n isFabOpen = false;\n }", "title": "" }, { "docid": "dc84a71fd18885787be863735b9c4c84", "score": "0.6640964", "text": "public static void makeInvisible (JButton b) {\n b.setOpaque(false);\n b.setContentAreaFilled(false);\n b.setBorderPainted(false);\n }", "title": "" }, { "docid": "f3729a0a4d1516ce27069c8a26a90412", "score": "0.6619318", "text": "public void hide(ObservableList<Node> children) {\n if (children.contains(button))\n children.remove(button);\n }", "title": "" }, { "docid": "586c35d7478a2319d2a11c5389c3b025", "score": "0.6605164", "text": "@Override\r\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "3cc62bafb0ace8dc287495d88b3bf9a7", "score": "0.66048783", "text": "public boolean isToHide();", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.6592891", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "32ae8da7e57fea05dc856605ebb9362c", "score": "0.65924764", "text": "@Override\n\tpublic void hide() {\n\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.6575779", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "98150d419ae2ac363a960c9e84b117b0", "score": "0.6575779", "text": "@Override\n\tpublic void hide() {\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "a053896e67f5389614d1a4a3e3db57b3", "score": "0.65714675", "text": "@Override\n\tpublic void hide() {\n\t\t\n\t}", "title": "" }, { "docid": "068a7728b076e688eab92fc58b020282", "score": "0.6567187", "text": "public void enableSideButtons() {\n buttonCustomers.setDisable(false);\n buttonReports.setDisable(false);\n buttonViewSchedule.setDisable(false);\n }", "title": "" }, { "docid": "08aefa464a7b153b1ba008b3d1899198", "score": "0.65666276", "text": "private void setButtonVisibility()\r\n\t{\r\n\t\tbackgroundOn.setVisible(toggled);\r\n\t\ttextBorderOn.setVisible(toggled);\r\n\t\tbackgroundOff.setVisible(!toggled);\r\n\t\ttextBorderOff.setVisible(!toggled);\r\n\r\n\t\tif ((textLabelOn != null) && (textLabelOff != null))\r\n\t\t{\r\n\t\t\ttextLabelOn.setVisible(toggled);\r\n\t\t\ttextLabelOff.setVisible(!toggled);\r\n\t\t}\r\n\t\telse if ((imageOn != null) && (imageOff != null))\r\n\t\t{\r\n\t\t\timageOn.setVisible(toggled);\r\n\t\t\timageOff.setVisible(!toggled);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "17c1af59df7e7f60c483e26cd7d7457d", "score": "0.6558217", "text": "private void enableButtons() {\n for(Button button: buttons) {\n button.setDisable(false);\n }\n }", "title": "" }, { "docid": "3468d3ab6faeb70f0144b923518eb1a2", "score": "0.65544957", "text": "public void disableButtons() {\n\t\tswitch (recipeFrame.pnlIngredientsList.getSelectedCheckboxes(false).size()) {\n\t\t\tcase 0:\n\t\t\t\tpnlRecipeIngredient.deleteButton.setEnabled(false);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tpnlRecipeIngredient.deleteButton.setEnabled(true);\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.6552446", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.6552446", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "3192a12a899298d96de49bfbd29187bf", "score": "0.6552446", "text": "@Override\n public void hide() {\n }", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.6551553", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.6551553", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.6551553", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "faab8abc2e92c87596491a9b6e3ddc0e", "score": "0.6551553", "text": "@Override\r\n\tpublic void hide() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3f4f7de7a55116c0dc14c2cff3dcc34", "score": "0.65404814", "text": "@Override\n public void hide() {\n\n }", "title": "" }, { "docid": "e3f4f7de7a55116c0dc14c2cff3dcc34", "score": "0.65404814", "text": "@Override\n public void hide() {\n\n }", "title": "" }, { "docid": "e3f4f7de7a55116c0dc14c2cff3dcc34", "score": "0.65404814", "text": "@Override\n public void hide() {\n\n }", "title": "" }, { "docid": "8c5e388c5555c475d18985c75166627e", "score": "0.6528321", "text": "private void disableButtons() {\r\n for (int row = 0; row < buttonTableLayout.getChildCount(); ++row) {\r\n TableRow tableRow = (TableRow) buttonTableLayout.getChildAt(row);\r\n for (int i = 0; i < tableRow.getChildCount(); ++i)\r\n tableRow.getChildAt(i).setEnabled(false);\r\n } // end outer for\r\n }", "title": "" }, { "docid": "301b528ec6494fd4a5eb29653cd1fbcc", "score": "0.65241843", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}", "title": "" }, { "docid": "c7c8eae789225e18765d023695a7da5d", "score": "0.65235925", "text": "@Override\n\tpublic void hide()\n\t{\n\t}", "title": "" }, { "docid": "07a4bc4ffe4972df0c0fe0f53440f241", "score": "0.651252", "text": "public void disableBtns() {\n\t int numLetters = letters.getChildCount();\n\t for (int l = 0; l < numLetters; l++) {\n\t letters.getChildAt(l).setEnabled(false);\n\t }\n\t}", "title": "" }, { "docid": "feb78c51f571a91a4e962bfd10646277", "score": "0.6509331", "text": "private void btnCerrarMouseClicked(java.awt.event.MouseEvent evt) {\n this.setVisible(false);\n}", "title": "" } ]
d8d422c4b2b56fdfa3e7933a6f7a8a74
Finds if s is contained within our BST
[ { "docid": "530a736722a2e55049c9d88426630960", "score": "0.6430458", "text": "public boolean search(String s)\n\t{\n\t\treturn retrieveNode(s) != null;\n\t}", "title": "" } ]
[ { "docid": "b4a9b97075cc3369034e889c8b78547b", "score": "0.7615058", "text": "boolean checkSubtree(TreeNode s, TreeNode t){\n String sTree = preOrder(s, true);\n String tTree = preOrder(t, true);\n return sTree.contains(tTree);\n }", "title": "" }, { "docid": "d873687f7e2fb27c5aa4cfd18a683852", "score": "0.754232", "text": "public BST_Node containsNode(String s){ \r\n\t if (data.equals(s)) {\r\n\t\t splay(this);\r\n\t\t return this;\r\n\t }\r\n\t if (data.compareTo(s) > 0) {\r\n\t\t if (left != null) {\r\n\t\t\t return left.containsNode(s);\r\n\t\t } else {\r\n\t\t\t splay(this);\r\n\t\t\t return this;\r\n\t\t }\r\n\t }\r\n\t if (data.compareTo(s) < 0) {\r\n\t\t if (right != null) {\r\n\t\t return right.containsNode(s);\r\n\t } else {\r\n\t\t splay (this);\r\n\t\t return this;\r\n\t\t }\r\n\t }\r\n return null;\r\n }", "title": "" }, { "docid": "98bcc245ce16f20d053f3b227e1fc18e", "score": "0.7303614", "text": "public BST_Node containsNode(String s) {\n int comparison = data.compareTo(s);\n\n if(comparison == 0) {\n return this;\n }\n\n if(comparison > 0) {\n if (left==null) {\n return this;\n }\n\n return left.containsNode(s);\n }\n\n if (comparison < 0) {\n if (right==null) {\n return this;\n }\n\n return right.containsNode(s);\n }\n\n // This should never happen\n return null;\n }", "title": "" }, { "docid": "fb7474d36ffa5d14df9fc6c7d5b3a09a", "score": "0.7207153", "text": "public boolean contains(String s) {\n\t if (data == null) {\n\t\t return false;\n\t } \n\t\t \n\t if (data.compareTo(s) == 0) {\n\t\t\t return true;\n\t } else if (data.compareTo(s) > 0) {\n\t\t if (left == null) {\n\t\t\t return false;\n\t\t }\n\t\t return left.contains(s);\n\t } else {\n\t\t if (right == null) {\n\t\t\t return false;\n\t\t }\n\t\t return right.contains(s);\n\t }\n }", "title": "" }, { "docid": "697cfdd32579d7d0528fcf5cf4ca1864", "score": "0.6766278", "text": "public boolean isSubtree(TreeNode s, TreeNode t) {\n if (s == null) return false;\n if (isIdentical(s, t)) return true;\n if (isSubtree(s.left, t)) return true;\n if (isSubtree(s.right, t)) return true;\n return false;\n }", "title": "" }, { "docid": "342391d3f63956d66f352b703eb1ada3", "score": "0.66950023", "text": "public boolean search(String s) {\n // **** method code to be added in this class *****\n // now we just have a dummy that prints message and returns true.\n TreeNode currentNode = root;\n boolean answer = false;\n\n for (int i = 0; i < s.length(); i++) {\n char currentChar = s.charAt(i);\n\n if ('0' == currentChar) { // We need to go left or make a left child\n if (currentNode.getLeftChild() == null) {\n return false;\n } else {\n currentNode = currentNode.getLeftChild();\n }\n } else if ('1' == currentChar) { // we need to go right or make a right child\n if (currentNode.getRightChild() == null) {\n return false;\n } else {\n currentNode = currentNode.getRightChild();\n }\n }\n }\n return currentNode.getIsUsed();\n }", "title": "" }, { "docid": "e103b10a10f071f4cd04a4f9110abb77", "score": "0.6675076", "text": "@Override\n\tpublic boolean contains(String s) {\n\t\tNode current = top;\n\t\tfor(char c : s.toCharArray()){\n\t\t\tint index = normalize(c); //modulate\n\t\t\tNode test = current.children[index];\n\t\t\tif(test == null) //if the path stops here then it is not possible for the string to exist\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\tcurrent = test; //Go down to the last character\n\t\t}\n\t\tif(current.endpoint)\n\t\t\treturn true; //If the last node is an end point then the string actually exists\n\t\telse\n\t\t\treturn false; //The testing string is a substring of another inserted string != whole inserted string\n\t}", "title": "" }, { "docid": "394b9eb0a763c4e3119b1c52793c2bf4", "score": "0.65461713", "text": "public boolean contains(String s) throws DigitFormatException {\n\t\tnode k;\n\t\tk = root;\n\t\tchar c;\n\t\tint i;\n\t\tint iwaq=0;\n\t\tc = s.charAt(0);\n\t\twhile(iwaq<10) {\n\t\t\tif(c == Character.forDigit(iwaq,10)) {\n\t\t\t\tiwaq=11;\n\t\t\t}\n\t\t\tiwaq++;\n\t\t}\n\t\tif(iwaq-1<10) {\n\t\t\tthrow new DigitFormatException();\n\t\t}\n\t\ti = Integer.parseInt(c+\"\");\n\t\tif(k.getNext(i)==null) {\n\t\t\treturn false;\n\t\t}\n\t\twhile(s.length()>0){\n\t\t\tc = s.charAt(0);\n\t\t\tiwaq=0;\n\t\t\twhile(iwaq<10) {\n\t\t\t\tif(c == Character.forDigit(iwaq,10)) {\n\t\t\t\t\tiwaq=11;\n\t\t\t\t}\n\t\t\t\tiwaq++;\n\t\t\t}\n\t\t\tif(iwaq-1<10) {\n\t\t\t\tthrow new DigitFormatException();\n\t\t\t}\n\t\t\ti = Integer.parseInt(c+\"\");\n\t\t\tif(k.getNext(i)!=null) {\n\t\t\t\tk = k.getNext(i);\n\t\t\t}\n\t\t\telse if(k.getNext(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ts = s.substring(1);\n\t\t}\n\t\tif(k.getNext(10)!=null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a46f05e6d44304ef5f9b75705007337", "score": "0.6342914", "text": "@Override public boolean contains(Node g, Node s, Node p, Node o) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "079c68015a9b761858069c052e94f9fb", "score": "0.6335079", "text": "private boolean contains( AnyType x, BinaryNode<AnyType> t )\n {\n if( t == null )\n return false;\n \n int compareResult = x.compareTo( t.element );\n \n if( compareResult < 0 )\n return contains( x, t.left );\n else if( compareResult > 0 )\n return contains( x, t.right );\n else\n return true; // Match\n }", "title": "" }, { "docid": "fcc2821a4939f7a958e1cc1a16acf0ef", "score": "0.628914", "text": "public boolean wordSearch(String s) {\n int lenOfWord = s.length(); //Length of word\n int index = 0;\n Node node = wordTrie; //Set the current node to be root\n while (true) { //Continuously run loop\n if (index < lenOfWord && node == null) { //If the word being searched has extra characters after the word present in Trie\n return false; //Return false\n }\n if (s.charAt(index) < node.c) { //If the char at index is less than char of current node\n node = node.left; //Change the node to be the left child\n if (node == null && index != lenOfWord) { //If node becomes null & index isn't the position of last char\n return false; //Return false\n }\n } else if (s.charAt(index) > node.c) { //If the char at index is greater than char of current node\n node = node.right; //Change the node to be the right child\n if (node == null && index != lenOfWord) { //If node becomes null & index isn't the position of last char\n return false; //Return false\n }\n } else if (s.charAt(index) == node.c) { //If the char at index is equal to char of current node\n index++; //Increase index\n if (index == lenOfWord) { //If the index becomes the position of the last char of the word\n return node.isEnd; //Return true if isEnd is true, else return false\n }\n node = node.equal; //Change the node to be the equal child\n }\n }\n }", "title": "" }, { "docid": "d92dd0c815b61f3f455daac5b60ffbcd", "score": "0.62697744", "text": "public boolean contains(BinaryTreeNode<K,V> node){\n\t\tif (isEmpty())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn searchTree(root, node);\n\t}", "title": "" }, { "docid": "76fcf26cdf7348c59f86dd3bf4bcc587", "score": "0.6264914", "text": "public boolean search(String word) {\n char[] strs = word.toCharArray();\n int index = 0;\n int len = strs.length;\n PTree node = root;\n while(index<len){\n node = node.subTree.get(strs[index]);\n if(node==null){\n return false;\n }\n index++;\n }\n if(node.count>0){\n return true;\n }else return false;\n\n }", "title": "" }, { "docid": "e2ce5ef2dfce3468b80d4e28d705a23b", "score": "0.61875486", "text": "public boolean search(String word) {\n Node current = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n Node next = current.children.get(c);\n if (next == null) {\n return false;\n }\n current = next;\n }\n return true;\n }", "title": "" }, { "docid": "cded0f3a0d113c4b5ca0ade1890ef2bb", "score": "0.6164263", "text": "public boolean contains(T item) {\r\n if (root.getContents() != item) {\r\n // create binary tree from left and right then create a branched recursion\r\n // to check if each subbranch contains item.\r\n if (root.getLeft() != null) {\r\n BinaryTree<T> left = new BinaryTree<>(root.getLeft());\r\n if (left.contains(item)) return true;\r\n }\r\n if (root.getRight() != null) {\r\n BinaryTree<T> right = new BinaryTree<>(root.getRight());\r\n if (right.contains(item)) return true;\r\n }\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "6936d3f0e7fcbbe845b71bf990327fb6", "score": "0.61481166", "text": "public boolean insert(String s) {\n\n TreeNode currentNode = root;\n\n boolean neverTouched = true;\n\n for (int i = 0; i < s.length(); i++) {\n char currentChar = s.charAt(i);\n\n if ('0' == currentChar) { // We need to go left or make a left child\n if (currentNode.getLeftChild() == null) {\n currentNode.setLeftChild(new TreeNode(currentNode, null, null, false)\n );\n neverTouched = false;\n numNodes++;\n }\n currentNode = currentNode.getLeftChild();\n\n } else if ('1' == currentChar) { // we need to go right or make a right child\n if (currentNode.getRightChild() == null) {\n currentNode.setRightChild(new TreeNode(currentNode, null, null, false)\n );\n neverTouched = false;\n numNodes++;\n }\n currentNode = currentNode.getRightChild();\n }\n\n if (i == s.length() - 1 && neverTouched && currentNode.getIsUsed()) {\n return false;\n }\n }\n currentNode.setIsUsed(true);\n return true;\n }", "title": "" }, { "docid": "3e9c88746c41e6b503bd80b0c97f7eb9", "score": "0.6147024", "text": "boolean containsNode(Object node);", "title": "" }, { "docid": "93a8bab682a7630c5de4e971d9ae7688", "score": "0.6121952", "text": "public boolean search(String word)\n\t{\n\t\ttrienode current=root;\n\t\tfor(char ch:word.toCharArray())\n\t\t{\n\t\tif(current.subnode(ch)==null)\n\t\t\treturn false;\n\t\telse\n\t\t\tcurrent=current.subnode(ch);\n\t\t}\n\t\tif(current.isend==true)\n\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "12c1e86a3bbdd361b3648ec799aad594", "score": "0.608531", "text": "public boolean contains(E x) {\n if (this.root == null) {\n return false;\n } else {\n Node.SplayResult result = this.root.contains(x);\n this.root = result.getNewRoot();\n return result.getResult();\n }\n }", "title": "" }, { "docid": "e0b28a2f23c345e2905ee5f1ae90d913", "score": "0.60614306", "text": "public boolean equals(BST t) {\n Node r = t.root;\n return equals(r, root);\n }", "title": "" }, { "docid": "6593951094d1545b3ad3c730b9bdf433", "score": "0.6047059", "text": "public static boolean subTree(TreeNode r1, TreeNode r2) {\n if (r1 == null) {\n return false; // big tree empty & subtree still not found.\n } else if (r1.data == r2.data && matchTree(r1,r2)) {\n return true;\n }\n return subTree(r1.left, r2) || subTree(r1.right, r2); \n}", "title": "" }, { "docid": "d4d2912a13c1b38632a44cb2584f6739", "score": "0.60232776", "text": "public boolean search(Node<E> s , E data)\n\t{\n\t\tif(s == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tif(compare(data, s.data) == 0)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(compare(data, s.data) < 0)\n\t\t\t\t{\n\t\t\t\t\treturn search(s.left, data);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn search(s.right, data);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eb5a3a02e2ec1960e45a6c9c2d7dadc0", "score": "0.60187656", "text": "protected abstract boolean isTree(Set s);", "title": "" }, { "docid": "b108e07a2b68351df6c7055cc1eb051d", "score": "0.60128254", "text": "private boolean contains(AnyType x,BinaryNode<AnyType> t){\n\t\tif(t==null){\n\t\t\treturn false;\n\t\t}\n\t\tint compareResult=x.compareTo(t.element);\n\t\tif(compareResult<0){\n\t\t\treturn contains(x,t.left);\n\t\t}else if(compareResult>0){\n\t\t\treturn contains(x,t.right);\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "6b509c31c785eb371cc6ab97c70847c8", "score": "0.6011923", "text": "public boolean contains(T x) {\n return search(x, root)!=null;\n }", "title": "" }, { "docid": "aa32cf936a17c6a50a9293eee88a5d96", "score": "0.6011729", "text": "private boolean contains(T value) {\n if (this != null) {\n if (value.compareTo(this.value) == 0)\n return true;\n if (value.compareTo(this.value) == -1)\n return leftChild != null && leftChild.contains(value);\n else\n return rightChild != null && rightChild.contains(value);\n } else\n return false;\n }", "title": "" }, { "docid": "eaca909ba5210da0e4601f18290e1575", "score": "0.59738004", "text": "private boolean contains(BSTNode<E> node, E value) {\n if (node == null) {\n return false;\n } else {\n int compare = value.compareTo(node.data);\n if (compare == 0) {\n return true;\n } else if (compare < 0) {\n return contains(node.left, value);\n } else { // compare > 0\n return contains(node.right, value);\n }\n }\n }", "title": "" }, { "docid": "309934e3cc1d9636c069e1f29348b1b4", "score": "0.59665155", "text": "private boolean contains( AnyType x, AvlNode<AnyType> t )\n {\n while( t != null )\n\t\t{\n\t\t\tint compareResult = x.compareTo( t.element );\n\t\t\t\n if( compareResult < 0 )\n t = t.left;\n else if( compareResult > 0 )\n t = t.right;\n else\n return true; // Match\n\t\t}\n\n return false; // No match\n }", "title": "" }, { "docid": "a14e212ade836978a3b7d3db22f16baa", "score": "0.59419894", "text": "public boolean contains(T t) {\n\t\tNode<T> aux = first;\n\t\tboolean ans = false;\n\t\twhile(aux!=null) {\n\t\t\tif(aux.getData().equals(t)) {\n\t\t\t\tans = true;\n\t\t\t}aux = aux.getNext();\n\t\t}return ans;\n\t}", "title": "" }, { "docid": "e047dbd9a59dbf0c67427490de57d9e5", "score": "0.5940489", "text": "public boolean contains(E obj)\n {\n if (root == null)\n {\n return false ;\n }\n else\n {\n return (root.find(obj) != null) ;\n }\n }", "title": "" }, { "docid": "9ea49c552270dcb0b5b015e715485fd3", "score": "0.5931964", "text": "public boolean search(String word) {\n \treturn root.hasSubWord(0,word);\n }", "title": "" }, { "docid": "f592efc600a5ae88d6808396dabb55a5", "score": "0.5913932", "text": "abstract boolean sameTree(ABST<T> bst);", "title": "" }, { "docid": "133be13a57ef6c5d9a278d1491496b4f", "score": "0.5910238", "text": "static boolean insert(String s, TrieNode root){\n\t\tTrieNode curNode = root;\n\t\t\n\t\tfor(char c : s.toCharArray()){\n\t\t\t\n\t\t\tif(!curNode.childs.containsKey(c))\n\t\t\t\tcurNode.childs.put(c, new TrieNode());\n\t\t\t\n\t\t\tcurNode = curNode.childs.get(c);\n\t\t}\n\t\t\n\t\t//s already existed in trie return false\n\t\tif(curNode.isString){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tcurNode.isString = true;\n\t\t\treturn true;\n\t\t}\t\n\t}", "title": "" }, { "docid": "9aad6b76f400fc5e1a4e7d032f2b3955", "score": "0.5898771", "text": "public boolean contains(T data){\n return contains(data, this.root);\n }", "title": "" }, { "docid": "5cf3139b178849646a977df25362aab4", "score": "0.5889424", "text": "@Override\n\tpublic boolean search(E elem) {\n\t\tNode<E> current = root;\n\t\t\n\t\t// Iterate through the tree nodes\n\t\twhile ( current != null ) {\n\t\t\tif ( elem.compareTo( current.element ) < 0 ) {\n\t\t\t\tcurrent = current.left;\n\t\t\t}\n\t\t\telse if ( elem.compareTo( current.element ) > 0 ) {\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\t\t\telse { \n\t\t\t\t// elem matches current.element\n\t\t\t\treturn true; // The node was found\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false; // The node was not found\n\t}", "title": "" }, { "docid": "abe664ab8b23c37bc93e794fb079a9fe", "score": "0.58871496", "text": "public boolean search(E e)\r\n\t{\r\n\t\tTreeNode<E> current = root; // Start from the root\r\n\r\n\t\twhile(current != null)\r\n\t\t{\r\n\t\t\tif(e.compareTo(current.element) < 0)\r\n\t\t\t{\r\n\t\t\t\tcurrent = current.left;\r\n\t\t\t}\r\n\t\t\telse if(e.compareTo(current.element) > 0)\r\n\t\t\t{\r\n\t\t\t\tcurrent = current.right;\r\n\t\t\t}\r\n\t\t\telse // element matches current.element\r\n\t\t\t{\r\n\t\t\t\treturn true; // Element is found\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "969db990ec759b642c3ac46dc65d32f7", "score": "0.5848619", "text": "public boolean contains(INode node);", "title": "" }, { "docid": "cea500350c81748d35a3b61ced575c9b", "score": "0.58453876", "text": "boolean matchTree(TreeNode r1, TreeNode r2) {\n\t\tif (r2 == null && r1 == null)\n\t\t\treturn true; // nothing left in the subtree\n\t\tif (r1 == null || r2 == null)\n\t\t\treturn false; // big tree empty & subtree still not found\n\t\tif (r1.data != r2.data)\n\t\t\treturn false; // data doesn’t match\n\t\treturn (matchTree(r1.left, r2.left) && matchTree(r1.right, r2.right));\n\t}", "title": "" }, { "docid": "bcbbd98f434a56f17950a094104c36c3", "score": "0.5844308", "text": "public boolean search(String word) {\n \tTrieNode node=root;\n \tfor(int i=0;i<word.length();i++) {\n \t\tint index=word.charAt(i)-'a';\n \t\tif(node.children[index]==null)\n \t\t\treturn false;\n \t\tnode=node.children[index];\n \t}\n \treturn node!=null && node.isLeaf;\n \n }", "title": "" }, { "docid": "c0794980d9e70e043e524c48ac6855f1", "score": "0.58430636", "text": "public boolean search(String word) {\n if(word.length()==0)return true;\n int i, len = word.length();\n TrieNode root;\n if(this.Nodes.containsKey(word.charAt(0))){\n root = this.Nodes.get(word.charAt(0));\n }\n else{\n return false;\n }\n for(i=1;i<len;i++){\n if(root.successor.containsKey(word.charAt(i))){\n root = root.successor.get(word.charAt(i));\n }\n else return false;\n }\n return root.successor.containsKey('\\0');\n }", "title": "" }, { "docid": "9e62e82ecf9cc6ab3631a4a948079655", "score": "0.5842633", "text": "public boolean search(String word) {\n \treturn search(word, 0, root); \n }", "title": "" }, { "docid": "bd74ba05b3207680fa81a97e71fb6ec3", "score": "0.58254814", "text": "private boolean determineContains(T data, BSTNode<T> current) {\n if (current != null && current.getData().compareTo(data) == 0) {\n return true;\n } else if (current != null && current.getData().compareTo(data) < 0) {\n return determineContains(data, current.getRight());\n } else if (current != null && current.getData().compareTo(data) > 0) {\n return determineContains(data, current.getLeft());\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "7247cae45fd59a5844b824dde0094f3b", "score": "0.5820433", "text": "boolean subTree(TreeNode r1, TreeNode r2) {\n\t\tif (r1 == null)\n\t\t\treturn false; // big tree empty & subtree still not found.\n\t\tif (r1.data == r2.data) {\n\t\t\tif (matchTree(r1, r2))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn (subTree(r1.left, r2) || subTree(r1.right, r2));\n\t}", "title": "" }, { "docid": "79a551666e4e577edf505f4e32e26ba4", "score": "0.5818307", "text": "public Boolean isContains(Node node, String c) {\n return node.childNode.stream().anyMatch(e -> e.value.equals(c));\n }", "title": "" }, { "docid": "5e1d38273822e6a351c1fbe427990c6d", "score": "0.5818155", "text": "@Override\n public boolean matches(Status s) {\n return leftChild.matches(s) && rightChild.matches(s);\n }", "title": "" }, { "docid": "9054eddd36769e757899e8c903ec7162", "score": "0.58174723", "text": "public boolean search(String word) {\n TriesNode current = root;\n\n for (Character c : word.toCharArray()) {\n if(!current.children.containsKey(c)){\n return false;\n }\n current = current.children.get(c);\n }\n\n return current.endOfWord;\n }", "title": "" }, { "docid": "60a48f08b4d898a272a33e3ac322e627", "score": "0.5816704", "text": "public boolean search(String word) {\n return searchword(root,word);\n }", "title": "" }, { "docid": "97bad7ffc5f310e43fa82f24e4971402", "score": "0.5804641", "text": "public boolean search(String word) {\n char[] chars = word.toCharArray();\n TrieNode root = this.root;\n for (int i = 0; i < chars.length; i++) {\n if (!root.contains(chars[i])) {\n return false;\n }\n root = root.get(chars[i]);\n }\n return root.isEnd;\n }", "title": "" }, { "docid": "d01e7e67921645baf2319b000baed564", "score": "0.5782473", "text": "public final boolean contains(String s) {\n/* 137 */ if (null == s) {\n/* 138 */ return false;\n/* */ }\n/* 140 */ for (int i = 0; i < this.m_firstFree; i++) {\n/* */ \n/* 142 */ if (this.m_map[i].equals(s)) {\n/* 143 */ return true;\n/* */ }\n/* */ } \n/* 146 */ return false;\n/* */ }", "title": "" }, { "docid": "d6d02607c33c88d1a87ba3c051d4f5cf", "score": "0.5781997", "text": "private boolean contains(E element, Node<E> currentRoot) {\n if (currentRoot == null)\n return false;\n\n if (element.equals(currentRoot.data))\n return true;\n\n if (element.compareTo(currentRoot.data) < 0)\n return contains(element, currentRoot.left);\n\n return contains(element, currentRoot.right);\n\n }", "title": "" }, { "docid": "ab7391a031e0f2c84fb725f0d01ce635", "score": "0.57733274", "text": "public boolean search(String word) {\n TrieNode cur = root;\n for (int i = 0; i < word.length(); i++) {\n char ch = word.charAt(i);\n if (!cur.children.containsKey(ch)) {\n return false;\n }\n cur = cur.children.get(ch);\n }\n return cur.hasWord;\n }", "title": "" }, { "docid": "87db019cdace29eb0c106d8c5cb89d0c", "score": "0.5768439", "text": "public boolean searchRecursive(String word){\n\t\treturn searchRecursive(root, word, 0);\n\t}", "title": "" }, { "docid": "9746c2bdbd6ce0333453fb0f655a7c4c", "score": "0.5758869", "text": "private boolean contains(E value, AvlNode node) {\n while (node != null) {\n int compareResult = value.compareTo(node.value);\n\n if (compareResult < 0) {\n node = node.left;\n } else if (compareResult > 0) {\n node = node.right;\n } else {\n return true; // Match\n }\n }\n\n return false; // No match\n }", "title": "" }, { "docid": "31b6749688c457765a6e08f250d3e879", "score": "0.5750915", "text": "public boolean search(List<Character> word) {\n Node<Character> sought = root.searchDown(word);\n return sought != null && sought.terminal();\n }", "title": "" }, { "docid": "36b8b8b2a2431a6cbd3ca73145ab15e0", "score": "0.57498974", "text": "public boolean search(String word){\n\t\tTrieNode current = root;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tTrieNode node = current.children.get(word.charAt(i));\n\t\t\tif(node == null)\n\t\t\t\treturn false;\n\t\t\tcurrent = node;\n\t\t}\n\t\t\n\t\treturn current.isEndOfWord;\n\t}", "title": "" }, { "docid": "e47ca5dee3d13241138c28a8653c2773", "score": "0.5745263", "text": "@Override\n\tpublic boolean contains(E element) {\n\t\tBSTBag.BSTNode<E> curr = root;\n\t\twhile(curr != null) {\n\t\t\tif (element.compareTo(curr.element.getElement()) == 0) {\n\t\t\t\treturn true;\n\t\t\t} else if (element.compareTo(curr.element.getElement()) > 0) {\n\t\t\t\tcurr = curr.right;\n\t\t\t} else {\n\t\t\t\tcurr = curr.left;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2a844884b00ccc380393bbf196336b74", "score": "0.57420874", "text": "public boolean search(String word) {\n Node cur = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (cur.next.get(c) == null) {\n return false;\n }\n cur = cur.next.get(c);\n }\n return cur.isWord;\n }", "title": "" }, { "docid": "db1752f1f65ed152b5497e355d7ba47d", "score": "0.5741495", "text": "public boolean search(String word) {\n if (word.length() == 0)\n return isLastChar;\n if (children.containsKey(word.charAt(0)))\n return children.get(word.charAt(0)).search(word.substring(1));\n else\n return false;\n }", "title": "" }, { "docid": "642e475eab9996e5f9eeb7f754c092c6", "score": "0.5740932", "text": "public boolean contains(T el) {\n\tif (firstNode == null) { return false; }\n\telse return firstNode.contains(el);\n }", "title": "" }, { "docid": "b867978a959b20494486e047c24ef3ec", "score": "0.5740482", "text": "public boolean contains(Node startNode, Node searchNode) {\n\t\treturn contains(startNode, searchNode.data);\n\t}", "title": "" }, { "docid": "2fc5306a50580901ccaa6963ac632771", "score": "0.57344323", "text": "@Override\n\n public boolean contains(T value) {\n\n Node <T> current = first;\n boolean isFound = true;\n /*try {\n indexOf(value);\n } catch (LinkedStringException ex) {\n isFound = false;\n }*/\n\n// while (current != null) {\n// if (current.data == value) {\n// isFound = true;\n// return isFound;\n// }\n// current = current.next;\n// }\n return isFound;\n }", "title": "" }, { "docid": "1b9ffb7458e7426a1132fc4509b0b4fa", "score": "0.5725053", "text": "@Override\n\tpublic boolean contains (T element)\n\t{\n\t\tif (this.root.equals(element)) return true;\n\t\telse\n\t\t{\n\t\t\tIteratorIF <TreeIF<T>> childrenIt = children.getIterator ();\n\t\t\tboolean found = false;\n\t\t\twhile (!found && childrenIt.hasNext ())\n\t\t\t{\n\t\t\t\tTreeIF <T> aChild= childrenIt.getNext();\n\t\t\t\tfound = aChild.contains (element);\n\t\t\t}\n\t\t\treturn found;\n\t\t}\n\t}", "title": "" }, { "docid": "070be5dfdabb34c388dddedca45e97d1", "score": "0.5718237", "text": "boolean contains(Tree<V> node) {\n if (this == node) {\n return true;\n }\n for (int i = 0; i < children.size(); i++) {\n if (children.get(i).contains(node)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "5c72af5dc725d0b1fa9f6f1b26bad825", "score": "0.5714609", "text": "private boolean contains(Node node, T elem) {\r\n if (node == null) return false; //Base case: reached bottom, value not found\r\n int cmp = elem.compareTo(node.data);\r\n if (cmp < 0) return contains(node.left, elem); //Dig into the left subtree because the value we're looking for\r\n // is smaller than the current value\r\n else if (cmp > 0) return contains(node.right, elem); //Dig into the right subtree because the value we're\r\n // looking for is greater than the current value\r\n else return true; //we found the value we are looking for\r\n }", "title": "" }, { "docid": "6a8c901aec9fdb03328af7508af28beb", "score": "0.5710803", "text": "public boolean search(String word) {\n Node node = root;\n for (int i = 0; i < word.length(); i++) {\n char item = word.charAt(i);\n if (node.child[item - 'a'] == null) {\n return false;\n }\n node = node.child[item - 'a'];\n }\n if (node.isEnd) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "42ee91f7971fcc57777a8c15a6173cd5", "score": "0.5700482", "text": "public int search(String s, Node start){\n\t\t if (start == null) return(0); \n\t\t else { \n\t\t\t if (start.key.equals(s)) return(search(s,start.left) + 1 + search(s,start.right)); \n\t\t\t else {\n\t\t\t\t return(search(s,start.left) + search(s,start.right));\n\t\t\t }\n\t\t } \n\t }", "title": "" }, { "docid": "bdf6afbe862393643377cc054adbd53b", "score": "0.5692007", "text": "private boolean search(BSTNode r, int val) \n{ boolean found = false; while ((r != null) && !found) \n{ \n\tint rval = r.getData();\n\tif (val < rval) r = r.getLeft();\n\telse if (val > rval) r = r.getRight();\n\telse { found = true; break;\n\t} \n\tfound = search(r, val);\n\t} \nreturn found; }", "title": "" }, { "docid": "c831e03e32cc83c2f302af03aabeb64f", "score": "0.5690025", "text": "static boolean contains(IntTreeNode root, int value) {\r\n return root != null && (root.data == value || (value < root.data && \r\n contains(root.left, value)) || (value >= root.data && contains(root.left, value)));\r\n }", "title": "" }, { "docid": "82510c8faaae66812be5785686a0263c", "score": "0.5689686", "text": "public boolean insert(String s) {\n\t\tINSERTEDFLAG = false;\n\t\t// if the key is found the we just return false otherwise to call the recursive method.\n\t\tif (!search(s)) {\n\t\t\taux(null,root,s);\n\t\t}\n\t\treturn INSERTEDFLAG;\n\t}", "title": "" }, { "docid": "863a681c7995cf1833dec7f2ab236f5c", "score": "0.5680826", "text": "private boolean contains(Node node, T elem) {\n //Base case: reached bottom, value not found\n if (node == null) return false;\n\n int cmp = elem.compareTo(node.data);\n\n //Dig into the left subtree because the value we're\n //looking for is smaller than the current value\n if (cmp < 0) return contains(node.right, elem);\n\n //Dig into the right subtree because the value we're\n //looking for is greater than the current value\n else if (cmp > 0) return contains(node.right, elem);\n\n //We fount the value we were looking for\n else return true;\n }", "title": "" }, { "docid": "b0fa52af520b7fe73dea7b979d9911eb", "score": "0.56771076", "text": "public boolean contains(String key) {\n return contains(key, root);\n }", "title": "" }, { "docid": "81d6541d7df2e4d3aa5893383799f679", "score": "0.5674019", "text": "static boolean searchForMatch(IntTreeNode root, int value){\r\n if(root == null) {\r\n return false; \r\n }else if (value == root.data) {\r\n return true;\r\n }else if (value < root.data){\r\n return searchForMatch(root.left, value);\r\n }else{ //if value > root.data\r\n return searchForMatch(root.right, value);\r\n }\r\n }", "title": "" }, { "docid": "6a55ada663ea99db768a16bf4f474118", "score": "0.5666407", "text": "public boolean searchRecursive(String word) {\n return searchRecursive(root, word, 0);\n }", "title": "" }, { "docid": "c14acdfe3e7bf29b2df1e9a343ed5876", "score": "0.56630915", "text": "public boolean contains(String s) {\n\t\tint idx = hash(s);\n\t\tRefSortedList<HashData> list = table.get(idx);\n\t\tHashData tempData = new HashData(s);\n\t\treturn list.contains(tempData);\n\t}", "title": "" }, { "docid": "6c150b253c91daf82536b011c29412ac", "score": "0.56605494", "text": "boolean searchElementInTree (int key, Node root)\r\n\t{\r\n\t\tboolean valFound = false;\r\n\t\t\r\n\t\tif(root == null)\r\n\t\t\tvalFound = false;\r\n\r\n\t\telse if(root.val == key)\r\n\t\t valFound = true;\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(key < root.val)\r\n\t\t\t\troot = root.lchild;\r\n\t\t\telse if(key > root.val)\r\n\t\t\t\troot = root.rchild;\r\n\t\t\t\r\n\t\t\tvalFound = searchElementInTree(key, root);\r\n\t\t}\r\n\t\treturn valFound;\r\n\t}", "title": "" }, { "docid": "f09d9422110d3c1518a844fd104136a4", "score": "0.5653458", "text": "public boolean isBST(TreeNode node) {\n return isBSTUsingInOrderTravelsal(node,null);\n }", "title": "" }, { "docid": "d1ede1eb00b1780dc95390f06427a790", "score": "0.56453717", "text": "public boolean search(String word) {\n if (word.isEmpty()){\n return false;\n }\n Trie cur = this;\n for (char c : word.toCharArray()) {\n int index = c-97;\n Trie child = cur.children[index];\n if (child == null){\n return false;\n }\n cur = cur.children[index];\n }\n return cur.isEndOfWorld;\n }", "title": "" }, { "docid": "f062e552e3fde69aa04698a550f8dfc3", "score": "0.5642687", "text": "public boolean hasChild(String s)\n\t{\n\t\treturn (children.get(s) != null);\n\t}", "title": "" }, { "docid": "f7ef2828c0c8f9bed4fb457d764d0be8", "score": "0.5623554", "text": "private Node<T> findNode(T s){\n\t\tif(root.getData().compareTo(s) == 0){\n\t\t\treturn root;\n\t\t} else {\n\t\t\treturn root.find(s);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7297f68c11b9ac314161fea310dcfcda", "score": "0.56228304", "text": "public boolean contains( String s ){\r\n\t\tif(head != null){\r\n\t\t\tNode tmp = head;\r\n\t\t\tfor( int i = 0; i < this.size ; i ++ ){\r\n\t\t\t\tif( tmp.sName.equals(s)){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\ttmp = tmp.next;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "cbe57975a8484a978f93a6a912f507e5", "score": "0.5613636", "text": "public boolean contains(E value) {\n return contains(this.root, value);\n }", "title": "" }, { "docid": "0d3112bf34ee7f40843d7e172855a957", "score": "0.56103516", "text": "private static boolean validBst(TreeNode root) {\n\t\t \n\t\tQueue<NodeAndBound> queue = new LinkedList<NodeAndBound>();\n\t\t\n\t\tif(root.left!=null)\n\t\t queue.add(new NodeAndBound(Integer.MIN_VALUE, root.val,root.left) );\n\n\t\tif(root.right!=null)\n\t\t queue.add(new NodeAndBound(root.val,Integer.MAX_VALUE,root.right) );\n\t\t\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tint sz = queue.size();\n\t\t\tfor(int i=0; i<sz; i++) {\n\t\t\t\tNodeAndBound tmp = queue.poll();\n\t\t\t\tTreeNode n = tmp.node;\n\n\t\t\t\tif(tmp.lower>n.val || tmp.upper<n.val) \n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif(n.left!=null)\n\t\t\t\t\t queue.add(new NodeAndBound(tmp.lower, n.val,n.left) );\n\n\t\t\t\tif(n.right!=null)\n\t\t\t\t\tqueue.add(new NodeAndBound(n.val,tmp.upper,n.right) );\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "606cceac461573ed0fca73314c6cb731", "score": "0.5603767", "text": "public boolean search(String word) {\n return root.search(root, word);\n }", "title": "" }, { "docid": "191dbd9e24226e1d158a3c833b1d2834", "score": "0.5597043", "text": "private boolean isBST() {\n return isBST(root, null, null);\n }", "title": "" }, { "docid": "191dbd9e24226e1d158a3c833b1d2834", "score": "0.5597043", "text": "private boolean isBST() {\n return isBST(root, null, null);\n }", "title": "" }, { "docid": "191dbd9e24226e1d158a3c833b1d2834", "score": "0.5597043", "text": "private boolean isBST() {\n return isBST(root, null, null);\n }", "title": "" }, { "docid": "6e9f80c3f5a46a8d569e4df49a70d525", "score": "0.55916035", "text": "private static boolean isContain(String string, String subString) {\n\t\t\tString pattern = \"\\\\b\" + subString + \"\\\\b\";\n\t\t\tPattern p = Pattern.compile(pattern);\n\t\t\tMatcher m = p.matcher(string);\n\t\t\treturn m.find();\n\t\t}", "title": "" }, { "docid": "2d3871606b6fef86a63275dfeab256dd", "score": "0.5583431", "text": "public boolean contains(T anEntry) {\n\t\tNode<T> n = new Node<T>(anEntry);\n\t\tNode<T> current = firstNode;\n\t\tboolean found = false;\n\t\twhile (found == false && current != null) {\n\t\t\tif (current.getData().equals(n.getData())) {\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t\tcurrent = current.getNextNode();\n\t\t}\n\t\treturn found;\n\n\t}", "title": "" }, { "docid": "153e8263583bc0358c99b50ea0ea5619", "score": "0.55783916", "text": "public boolean search(String word) {\n TrieNode curr = root;\n for(int i=0; i<word.length(); i++){\n char c = word.charAt(i);\n //if the character doesnot exist -> return false\n if(curr.children[c-'a'] == null){\n return false;\n }\n else{\n //keep incrementing\n curr = curr.children[c-'a'];\n }\n }\n //return whatever value of isEnd\n return curr.isEnd;\n }", "title": "" }, { "docid": "895ad74fc7d5ad9e523211c64a5a20e5", "score": "0.55759805", "text": "public boolean contains(int data) {\n // TODO (student)\n\tif(cursor.data == data)\n\t{\n\t\tcursor = root; \n\t\treturn true;\n\t}\n\telse if(cursor.data > data)\n\t{\n\t\tcursor = cursor.left;\n\t\treturn contains(data);\n\t}\n\telse if(cursor.data < data)\n\t{\n\t\tcursor = cursor.right;\n\t\treturn contains(data);\n\t}\n\telse\n\t cursor = root;\n return false; // make sure you change this\n }", "title": "" }, { "docid": "e6f59878c82f407a2944b72a1fd25dec", "score": "0.55725425", "text": "public boolean find(T item)\n\t{\n\t\tNode<T> current = root;\n\t\twhile(current != null)\n\t\t{\n\t\t\tif(current.data == item)\n\t\t\t\treturn true;\n\t\t\t//item less than current. Goes Left\n\t\t\telse if(item.compareTo(current.data) < 0)\n\t\t\t\tcurrent = current.left;\n\t\t\telse\n\t\t\t\tcurrent = current.right;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8937560d3c2cf9737c96e3c9c7c3a07a", "score": "0.5570629", "text": "@Test\n\tpublic void containsTest(){\n\t\tTree<Integer> t=new Tree<Integer>();\n\t\t\n\t\tassertTrue(t.add(111));\n\t\tassertTrue(t.add(11));\n\t\tassertTrue(t.add(12));\n\t\tassertFalse(t.add(null));\n\t\t\n\t\tassertTrue(t.contains(12));\n\t\tassertTrue(t.contains(111));\n\t\tassertTrue(t.contains(11));\n\t\t\n\t\tassertFalse(t.contains(null));\n\t\t\n\t\tassertFalse(t.contains(123));\n\t}", "title": "" }, { "docid": "37907e16324eb454aa0db3c7e99726f7", "score": "0.5566852", "text": "public boolean contains(T elem) {\r\n return contains(root, elem);\r\n }", "title": "" }, { "docid": "cc248c70ebe7022edaabf02a9e47b8ac", "score": "0.5565663", "text": "public boolean search2(String word) {\n if (word.length() == 0) return true;\n if (root == null) return false;\n return search2(word, root, 0);\n }", "title": "" }, { "docid": "ba92f2526a8156ac837609c6ae8cc779", "score": "0.55649245", "text": "public boolean search(String word) {\n TrieNode node = root;\n\n for(int i=0; i < word.length(); i++) {\n int idx = word.charAt(i) - 'a';\n\n if(node.leaves[idx] == null || (i == word.length()-1 && node.leaves[idx].word == false) ) return false;\n\n node = node.leaves[idx];\n }\n\n return true;\n }", "title": "" }, { "docid": "c0b194a137d85d439f83440603f9c80d", "score": "0.5564815", "text": "public boolean containsNode(String l) {\n for (Map.Entry<Integer, Node> entry : nodes.entrySet()) {\n Node node = entry.getValue();\n if (node.getLabel().equals(l)) return true;\n\n }\n return false;\n }", "title": "" }, { "docid": "39d61b5a1de0275870bbfbea3156a2f4", "score": "0.55487776", "text": "public boolean search(String word) {\n if(isBlank(word)){\n return false;\n }\n TrieNode node = root;\n char [] charArr = word.toCharArray();\n for (char ch : charArr) {\n if(!node.children.containsKey(ch)){\n return false;\n }\n node = node.children.get(ch);\n }\n if(node.endCount == 0) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "cab5ea1d43f57cb0b4a57e7e28f2bdf3", "score": "0.5547825", "text": "public boolean search(String word) {\n\t\t TrieNode node = root;\n\t\t Map<Character, TrieNode> children;\n\t\t for (char c: word.toCharArray()) {\n\t\t children = node.getChildren();\n\t\t if (!children.containsKey(c)) {\n\t\t return false;\n\t\t }\n\t\t node = node.getChildren().get(c);\n\t\t }\n\t\t return node.getIsWord();\n\t\t}", "title": "" }, { "docid": "cfc561c24f9a68e5793225bf6ccab3a2", "score": "0.55464065", "text": "public boolean search(T content) {\n\t\t\tint cmp = content.compareTo(this.data);\n\t\t\tlookUps.getAndIncrement();\n\t\t\tif (cmp<0) {\n\t\t\t\treturn left!=null?left.search(content):false;\n\t\t\t} else if (cmp>0) {\n\t\t\t\treturn right!=null?right.search(content):false;\n\t\t\t} else { return true; }\n\t\t}", "title": "" }, { "docid": "0f3fbc4b013ff9e7437c8723ef92279e", "score": "0.5543847", "text": "public boolean contains(String word){\n return trie.contains(word);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "72b25ef3efb39c4c769edbc023f9ce67", "score": "0.0", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTextView title = new TextView(Dashboard.this);\n\t\t\t\ttitle.setText(\"GHMC Enforcement\");\n\t\t\t\ttitle.setBackgroundColor(Color.RED);\n\t\t\t\ttitle.setGravity(Gravity.CENTER);\n\t\t\t\ttitle.setTextColor(Color.WHITE);\n\t\t\t\ttitle.setTextSize(26);\n\t\t\t\ttitle.setTypeface(title.getTypeface(), Typeface.BOLD);\n\t\t\t\ttitle.setCompoundDrawablesWithIntrinsicBounds(\n\t\t\t\t\t\tR.drawable.ghmc_small, 0, R.drawable.traffic_small, 0);\n\t\t\t\ttitle.setPadding(20, 0, 20, 0);\n\t\t\t\ttitle.setHeight(70);\n\n\t\t\t\tString otp_message = \"\\n Are You Sure,\\nDo You Want To Exit? \\n\";\n\n\t\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\t\t\tDashboard.this, AlertDialog.THEME_HOLO_LIGHT);\n\t\t\t\talertDialogBuilder.setCustomTitle(title);\n\t\t\t\talertDialogBuilder.setIcon(R.drawable.dialog_logo);\n\t\t\t\talertDialogBuilder.setMessage(otp_message);\n\t\t\t\talertDialogBuilder.setCancelable(false);\n\t\t\t\talertDialogBuilder.setPositiveButton(\"Ok\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tIntent intent = new Intent(\n\t\t\t\t\t\t\t\t\t\tgetApplicationContext(), Login.class);\n\t\t\t\t\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK\n\t\t\t\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\talertDialogBuilder.setNegativeButton(\"Cancel\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\t\t\talertDialog.show();\n\n\t\t\t\talertDialog.getWindow().getAttributes();\n\n\t\t\t\tTextView textView = (TextView) alertDialog\n\t\t\t\t\t\t.findViewById(android.R.id.message);\n\t\t\t\ttextView.setTextSize(28);\n\t\t\t\ttextView.setTypeface(textView.getTypeface(), Typeface.BOLD);\n\t\t\t\ttextView.setGravity(Gravity.CENTER);\n\n\t\t\t\tButton btn = alertDialog\n\t\t\t\t\t\t.getButton(DialogInterface.BUTTON_POSITIVE);\n\t\t\t\tbtn.setTextSize(22);\n\t\t\t\tbtn.setTextColor(Color.WHITE);\n\t\t\t\tbtn.setTypeface(btn.getTypeface(), Typeface.BOLD);\n\t\t\t\tbtn.setBackgroundColor(Color.RED);\n\n\t\t\t\tButton btn2 = alertDialog\n\t\t\t\t\t\t.getButton(DialogInterface.BUTTON_NEGATIVE);\n\t\t\t\tbtn2.setTextSize(22);\n\t\t\t\tbtn2.setTextColor(Color.WHITE);\n\t\t\t\tbtn2.setTypeface(btn2.getTypeface(), Typeface.BOLD);\n\t\t\t\tbtn2.setBackgroundColor(Color.RED);\n\t\t\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "9e42a188c6c5625987f99628f9d1acad", "score": "0.0", "text": "@Override\r\n\tpublic int height() {\n\t\treturn 0;\r\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.6648208", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.65149313", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.64755934", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6414421", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.6357822", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.6348844", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.6326172", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.62869394", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.62742454", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.6131432", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.61139184", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6074856", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.605568", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6034386", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.6030915", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0b7a2d4389f8d1afdedab87d2ac4fb96", "score": "0.5973926", "text": "@Override\n\tprotected void generateData() {\n\t\treturn;\t\t\n\t}", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.59676504", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5958382", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.59534895", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "5289bcfa483e278c4782f4e45b7117eb", "score": "0.59168786", "text": "@Override\n\tpublic void generer() {\n\t\t\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.5916093", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.59047043", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.58847684", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.5883849", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.58717483", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.58611465", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.58465064", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.5842648", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.58340675", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "f323cb003520a5608cea47c5412447e4", "score": "0.58295655", "text": "@Override\n\t\t\t\tpublic int characteristics() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.58192337", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.5784611", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.577024", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.57600427", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.5750039", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5745665", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.57384264", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5733982", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5722489", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5718643", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5714686", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "d7c48eb628caa38ca564de355edb7e6e", "score": "0.5709367", "text": "@Override\n public int getType() {\n return 1;\n }", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.570741", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57049847", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.57008916", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.5697829", "text": "protected void defesa(){}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "75e13fc47dcc1e84b4615e5de4d4c091", "score": "0.56708115", "text": "@Override\n public String getName() {\n return null;\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669723", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.56636477", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5662892", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.56608945", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
9444f9d6c1f27a9f95732443cb85f22d
Read image file into buffer
[ { "docid": "1ca6745eb908f337d7afb5c8e84c7fb3", "score": "0.544804", "text": "public void readImage(String filename) throws IOException {\r\n //TODO\r\n File inputFilename = new File(filename);\r\n if(!inputFilename.isFile()) {\r\n throw new IOException();\r\n }\r\n else {\r\n img = ImageIO.read(inputFilename);\r\n }\r\n }", "title": "" } ]
[ { "docid": "67b4c57b1c7d661800c30dfb59d9ff11", "score": "0.6831876", "text": "private void readImageIntoBuffer(int[][][] img, BufferedImage buffer)\n\t{\n\t\tint height = img.length; // rows\n\t\tint width = img[0].length; // cols\n\t\tfor(int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor(int x = 0; x < width; x++)\n\t\t\t{\n\t\t\t\tbyte a = 0;\n\t\t\t\tbyte r = (byte) img[y][x][0];\n\t\t\t\tbyte g = (byte) img[y][x][1];\n\t\t\t\tbyte b = (byte) img[y][x][2];\n\t\t\t\tint pix = ((a << 24) + (r << 16) + (g << 8) + b);\n\t\t\t\tbuffer.setRGB(x,y,pix);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f28e792c421c1a3d0bf86c6e27d43fd2", "score": "0.66528475", "text": "public static ByteBuffer fileToByteBuffer(String fileName) {\r\n //System.out.println( \"reading icon file\" );\r\n try {\r\n InputStream is = new FileInputStream(fileName);\r\n byte[] buffer = new byte[4096];\r\n\r\n ByteBuffer bb = new ByteBuffer();\r\n\r\n while (true) {\r\n int read = is.read(buffer);\r\n if (read == -1) break;\r\n bb.append(buffer, 0, read);\r\n }\r\n\r\n //System.out.println( \"completed reading icon file\" );\r\n\r\n return bb;\r\n\r\n }\r\n catch (Exception e) {\r\n System.out.println(e);\r\n return null;\r\n }\r\n}", "title": "" }, { "docid": "13bff2613fb0716e1c41c584b745d505", "score": "0.65330064", "text": "public static int readImg(long imgHandle, byte[] readBuffer, long offset, long len) throws TskCoreException {\n\t\tgetTSKReadLock();\n\t\ttry {\n\t\t\tif(! imgHandleIsValid(imgHandle)) {\n\t\t\t\tthrow new TskCoreException(\"Image handle \" + imgHandle + \" is closed\");\n\t\t\t}\n\t\t\t//returned byte[] is the data buffer\n\t\t\treturn readImgNat(imgHandle, readBuffer, offset, len);\n\t\t} finally {\n\t\t\treleaseTSKReadLock();\n\t\t}\n\t}", "title": "" }, { "docid": "9622c7fb11a45b4e4bf0bbcbbd1b2211", "score": "0.6416027", "text": "private ByteBuffer convertImageToBuffer(final File file)\n\t{\n\t\ttry\n\t\t{\n\t\t\t//Explanation: http://hrboyceiii.blogspot.com/2007/02/bit-shifting-what-is-it-and-why.html\n\t\t\tint bpp = 4;\n\t\t\t//Convert the file into a buffered image.\n\t\t\tBufferedImage bImage = ImageIO.read(file);\t\n\t\t\t//Turn the buffered image into an RGBArray.\n\t\t\tint[] rgbArray = bImage.getRGB(0, 0, bImage.getWidth(), bImage.getHeight(), null, 0, bImage.getWidth());\n\t\t\t//Create a buffer to hold the pixel data.\n\t\t\tByteBuffer buffer = BufferUtils.createByteBuffer(bImage.getWidth()*bImage.getHeight()*bpp);\n\t\t\t//Load the buffer with the RGBArray data.\n\t\t\tfor(int y=0;y<bImage.getHeight();y++)\n\t\t\t{\n\t\t\t\tfor(int x=0;x<bImage.getWidth();x++)\n\t\t\t\t{\n\t\t\t\t\t//Get color data for the pixel at y\n\t\t\t\t\tint pixel = rgbArray[y*bImage.getWidth()+x];\n\t\t\t\t\t//Place data separately in buffer, in order of RGBA.\n\t\t\t\t\tbyte r = (byte)((pixel >> 16) & 0xFF);\t//Red\n\t\t\t\t\tbyte g = (byte)((pixel >> 8) & 0xFF);\t//Green\n\t\t\t\t\tbyte b = (byte)((pixel & 0xFF));\t\t//Blue (last)\n\t\t\t\t\tbyte a = (byte)((pixel >> 24) & 0xFF);\t//Alpha\n\t\t\t\t\tbuffer.put(r);\n\t\t\t\t\tbuffer.put(g);\n\t\t\t\t\tbuffer.put(b);\n\t\t\t\t\tbuffer.put(a);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.flip();\n\t\t\tLOGGER.log(Level.INFO, \"Successfuly buffered: \" + file.getName());\n\t\t\treturn buffer;\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tLOGGER.log(Level.SEVERE, \"Error converting: \" + file.getName());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e)\n\t\t{\n\t\t\tLOGGER.log(Level.SEVERE, \"Error converting: \" + file.getName());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0014addfb551afbb5652612b4579d866", "score": "0.63615817", "text": "public void readerBuffer(String fileName) throws IOException {\n\t\tFile f = new File(fileName);\n\t\tBufferedInputStream bis = new BufferedInputStream(\n\t\t\t\tnew FileInputStream(f));\n\t\tbyte[] b = new byte[100];\n\t\tbis.read(b);\n\t\tbis.close();\n\t}", "title": "" }, { "docid": "cf675360836060ecc681a2944b938b53", "score": "0.61563987", "text": "void readFromFile(String file) throws IOException\n {\n FileInputStream fr = new FileInputStream(file);\n ByteBuffer intBuff = ByteBuffer.allocate(4);\n fr.read(intBuff.array(), 0, 4);\n width = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n height = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n numChannels = intBuff.getInt();\n intBuff.rewind();\n fr.read(intBuff.array(), 0, 4);\n mergedChannels = intBuff.getInt();\n intBuff.rewind();\n data = new byte[3][]; // Always create 3 channels\n for (int i = 0; i < numChannels; i ++)\n {\n fr.read(intBuff.array(), 0, 4);\n int len = intBuff.getInt();\n intBuff.rewind();\n data[i] = new byte[len];\n fr.read(data[i]);\n }\n }", "title": "" }, { "docid": "3a6dc8811cdfb12eea3eef6eb1494505", "score": "0.6019879", "text": "private void readBuffer(long offset) throws FileBufferException {\n try {\n this.offset = offset;\n fc.position(offset);\n long l = length - offset;\n int numRead;\n if (l < 0) {\n throw new FileBufferException(\"Offset \" + offset + \" out of bounds for file \" + filename);\n }\n if (l < buf.length) {\n numRead = fi.read(buf, 0, (int)l);\n } else {\n numRead = fi.read(buf, 0, buf.length);\n }\n offsetEnd = offset + numRead - 1; // points to last valid position\n } catch (IOException ex) {\n throw new FileBufferException(\"IO error at offset +\" + offset + \" of file '\" + filename + \"'\");\n } catch (IllegalArgumentException ex) {\n throw new FileBufferException(\"IO error at offset +\" + offset + \" of file '\" + filename + \"'\");\n }\n }", "title": "" }, { "docid": "6f4e14d2e127ff66b6f76551ddee2394", "score": "0.6012162", "text": "@Override\n\tpublic void readImage() {\n\t\t\tSystem.out.println(\"成功读取jpg文件\");\n\t}", "title": "" }, { "docid": "ea73f961c406bd0cca966d62411355f4", "score": "0.59287125", "text": "public BufferedImage read_2 (byte[] data_b) {\n\tBufferedImage img;\n\ttry{\n\t\timg = getImageFromBytes(data_b);\n\t}catch(IOException ioe){\n\t\tSystem.out.println(ioe);\n\t\timg = null;\n\t}\n\treturn img;\n }", "title": "" }, { "docid": "ec6f95d37ba522cf7a65bbc63c3bcf18", "score": "0.5863607", "text": "public static void readFileByBufferReader() {\n \n try {\n BufferedReader br = new BufferedReader( new FileReader(\"/tmp/file_test\") );\n String line;\n while ( (line = br.readLine()) != null ) {\n out.println(line);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d4bbd6269c432aae5f30fd7fb04970df", "score": "0.5852692", "text": "public static native Pointer libvlc_picture_get_buffer(libvlc_picture_t pic, size_tByReference size);", "title": "" }, { "docid": "d6f9fb7fa0bd511f4ca319ef7aec1ead", "score": "0.5851819", "text": "public void readFile() throws IOException {\n FileInputStream fis = new FileInputStream(file);\n try {\n int fileSize = (int) file.length();\n buffer = new char[fileSize];\n\n int bytesRead = 0;\n int c = fis.read();\n\n while (c != -1) {\n buffer[bytesRead] = (char) c;\n bytesRead++;\n c = fis.read();\n }\n\n } finally {\n fis.close();\n }\n }", "title": "" }, { "docid": "56165c4cd51b1bb258eb54a69d5d4f4f", "score": "0.5809068", "text": "Pixels readPixels (String filename);", "title": "" }, { "docid": "85e3f2c298ccfb87b1a1e03cb86a6784", "score": "0.5796609", "text": "public static BufferedImage readImage(File file) {\n try {\n FileImageInputStream fis = new FileImageInputStream(new RandomAccessFile(file, \"r\"));\n DDSReader reader = new DDSReader(fis);\n return reader.read(0);\n } catch (IOException ex) {\n Logger.getLogger(DDSReader.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n } \n \n }", "title": "" }, { "docid": "73ac3be94ead8a79a918870df8bebfb8", "score": "0.5778202", "text": "void readFromBuffer(ByteBuffer data) throws IOException;", "title": "" }, { "docid": "340f7fe8d8526be8786ff543a1867b42", "score": "0.57715595", "text": "DataBuffer read(byte[] destination);", "title": "" }, { "docid": "8ab153d473b11d410f0c52a9b63bdd58", "score": "0.57585126", "text": "private static byte[] getBytes(File image) {\r\n\t\t\r\n FileInputStream fis;\r\n byte[] bytes = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tfis = new FileInputStream(image);\r\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n\t\t\tbyte[] buf = new byte[1024];\r\n for (int readNum; (readNum = fis.read(buf)) != -1;) \r\n {\r\n //Writes to this byte array output stream\r\n bos.write(buf, 0, readNum); \r\n bytes = bos.toByteArray();\r\n }\r\n fis.close();\r\n } \r\n\t\tcatch (IOException ex) {\r\n \tex.printStackTrace();\r\n }\r\n\t\treturn bytes;\r\n\t}", "title": "" }, { "docid": "728de472215a6ccd608ab65a0459ac67", "score": "0.57431734", "text": "Object getCompleteImage() throws IOException;", "title": "" }, { "docid": "65de7fdc36c12d9c25203ad12bf1bbbe", "score": "0.57358694", "text": "public abstract void readImageData(ImageBuilder imageBuilder)\n throws ImageReadException, IOException;", "title": "" }, { "docid": "d3ac6ce4a1a68d725ef1178f1218dac5", "score": "0.5707438", "text": "public void readRaw()\r\n/* 45: */ {\r\n/* 46: */ try\r\n/* 47: */ {\r\n/* 48:137 */ File f = new File(this.myPath);\r\n/* 49:138 */ DataInputStream inFile = new DataInputStream(new FileInputStream(f));\r\n/* 50:139 */ this.myDataSize = ((int)f.length());\r\n/* 51:140 */ this.myData = new byte[(int)this.myDataSize];\r\n/* 52:141 */ inFile.read(this.myData);\r\n/* 53:142 */ inFile.close();\r\n/* 54: */ }\r\n/* 55: */ catch (Exception localException) {}\r\n/* 56: */ }", "title": "" }, { "docid": "b26fc71173cb021f85d11c0d9007ec7f", "score": "0.5684731", "text": "public Bitmap read()\n throws MleRuntimeException\n {\n Bitmap image = null;\n \n // Get the data associated with the media reference.\n byte[] buffer = m_references.m_buffer;\n \n // Read Image from external reference.\n if (buffer != null)\n \t{\n // Set the reference for the converter.\n \t\tm_converter.setReference(buffer);\n \t\t\n \t\t// Invoke the converter to prepare the local file.\n \t\tString filename = m_converter.getFilename();\n\n \t\t// true return means we downloaded successfully to a\n \t\t// local file referred to by filename.\n \t\tif (m_converter.conversionComplete())\n \t\t{\n \t\t\ttry\n \t\t\t{\n \t // Attempt to load the file from the resource cache.\n \t\t\tString subclassName = m_R.getName() + \"$raw\";\n \t\t\tClass subclass = Class.forName(subclassName);\n \t int id = ResourceManager.getResourceId(subclass, filename);\n \t image = MleBitmap.blockingLoad(m_resources, id);\n \t\t\t} catch (ClassNotFoundException ex)\n \t\t\t{\n \t\t\t\tLog.e(MleTitle.DEBUG_TAG, ex.getMessage());\n \t\t\t\timage = null;\n \t\t\t}\n \t\t}\n }\n \n return image;\n }", "title": "" }, { "docid": "adcf9378209aaf90b77503a5cbabf067", "score": "0.56751794", "text": "private byte[] readFromFile(GcsFilename fileName) throws IOException {\n\t\tint fileSize = (int) gcsService.getMetadata(fileName).getLength();\n\t\tByteBuffer result = ByteBuffer.allocate(fileSize);\n\t\t GcsInputChannel readChannel = gcsService.openReadChannel(fileName, 0); \n\t\t\treadChannel.read(result);\n\t\treadChannel.close();\n\t\treturn result.array();\n\t}", "title": "" }, { "docid": "73e55fd31bc3c65c8b43988b201ec06a", "score": "0.5668279", "text": "public int read(byte[] buffer, int offset, int length) throws java.io.IOException\n { return raFile.read(buffer, offset, length); }", "title": "" }, { "docid": "60fe74be5aa5c28682430eff4531b974", "score": "0.56640726", "text": "private void readIntoBuffer(DataInputStream is, byte[] buffer) throws Exception{\n\n int result = is.read(buffer);\n if (result == -1)\n throw new IOException();\n }", "title": "" }, { "docid": "88a0ef4e0265bca409a438d63310dde0", "score": "0.5635875", "text": "private BufferedImage getImageFromFile (String fileName) {\n try {\n File file = new File(fileName);\n BufferedImage image = ImageIO.read(file);\n while (image.getWidth(null) < 0) {\n // wait for size to be known\n }\n return image;\n }\n catch (Exception e) {\n System.err.println(e);\n return null;\n }\n }", "title": "" }, { "docid": "a56960904e264298a2961ad5fd6ea0ec", "score": "0.56358033", "text": "private static ByteBuffer readFile(File file) throws IOException {\n RandomAccessFile f = new RandomAccessFile(file, \"r\");\n try {\n long length = f.length();\n return f.getChannel().map(MapMode.READ_ONLY, 0, length);\n } finally {\n f.close(); // does not affect ByteBuffer mapping\n }\n }", "title": "" }, { "docid": "eb865c857e183c55edb321e66d7c5024", "score": "0.56299347", "text": "@Override\n\tpublic void readImages() {\n\t\t\n\t}", "title": "" }, { "docid": "2f504afc85d80ade057d0f3d506865f1", "score": "0.56160486", "text": "private BufferedImage createImage(File f){\n \tBufferedImage bufferedImage;\n \ttry {\n \t\tbufferedImage = ImageIO.read(f);\n \t\treturn bufferedImage;\n \t} catch (IOException e) {\n \t\te.printStackTrace();\n \t}\n \treturn null;\n }", "title": "" }, { "docid": "7c06eb86233791943c8f54c9a9255123", "score": "0.5594815", "text": "public static BufferedImage read(File file) throws IOException, VicarException {\n\t\tInputStream is = new BufferedInputStream(new FileInputStream(file));\n\t\tBufferedImage image = read(is);\n\t\tis.close();\n\t\treturn image;\n\t}", "title": "" }, { "docid": "b57b107d5207022982a0abd68e7e1cb9", "score": "0.5573087", "text": "private void fetchData() throws IOException {\n currentReadPointer = 0;\n filePos += bytesRead;\n bytesRead = is.read(isBuf);\n }", "title": "" }, { "docid": "9d2fe2a9f4d6bdf00408fe0181254255", "score": "0.5543854", "text": "public byte[] image2byte(File file){\n byte[] data = null;\n FileImageInputStream input = null;\n try {\n \n input = new FileImageInputStream(file);\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n byte[] buf = new byte[1024];\n int numBytesRead = 0;\n while ((numBytesRead = input.read(buf)) != -1) {\n output.write(buf, 0, numBytesRead);\n }\n data = output.toByteArray();\n output.close();\n input.close();\n }\n catch (FileNotFoundException ex1) {\n ex1.printStackTrace();\n }\n catch (IOException ex1) {\n ex1.printStackTrace();\n }\n return data;\n }", "title": "" }, { "docid": "694360e649a799e3d18830ef5bb979e9", "score": "0.5541742", "text": "void loadImage() throws IOException {\n String imgfile = null;\n if (mode == 0) {\n imgfile = file2;\n } else {\n imgfile = config.imageFilename;\n }\n img = null;\n try {\n File f = new File(imgfile);\n img = ImageIO.read(f);\n height = img.getHeight();\n width = img.getWidth();\n System.out.println(height);\n System.out.println(width);\n pixels = new Pixel[height][width];\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n pixels[i][j] = wrapPixel(img.getRGB(j,i));\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "15aef436404074773966f41e4a1a845b", "score": "0.5537375", "text": "private static byte[] readStream(InputStream stream) throws IOException {\n\t\tByteArrayOutputStream buffer = new ByteArrayOutputStream();\r\n\t\tint nRead;\r\n\t\tbyte[] data = new byte[16384];\r\n\r\n\t\twhile ((nRead = stream.read(data, 0, data.length)) != -1) {\r\n\t\t\tbuffer.write(data, 0, nRead);\r\n\t\t}\r\n\r\n\t\tbuffer.flush();\r\n\t\tbyte[] temporaryImageInMemory = buffer.toByteArray();\r\n\t\tbuffer.close();\r\n\t\tstream.close();\r\n\t\treturn temporaryImageInMemory;\r\n\t}", "title": "" }, { "docid": "2428f54eab0e9c7b746daf16d5c5dabf", "score": "0.5533502", "text": "BufferedImage getImage() throws IOException;", "title": "" }, { "docid": "0cbb29ecc98b196e7b94234bd12293b5", "score": "0.5517668", "text": "protected abstract byte [] getNextBuffer() throws IOException;", "title": "" }, { "docid": "ceab640387817ac9f8f3b36aaa7f1299", "score": "0.5517555", "text": "public void readImage(){\n\t\timageName = \"tetris.png\";\n\t\ttry{\n\t\t tetrisImage = ImageIO.read(new File(imageName));\t\t\n\t\t}catch(IOException e){\n\t\t System.err.println(\"ERROR: Cannot read the image file.\" + e);\n\t\t System.exit(1);\n\t\t}\n\t }", "title": "" }, { "docid": "90c592b7321fa3a1a1dbf47425aee608", "score": "0.5495587", "text": "@Override\n public final BufferedImage obtain() {\n /* Create and return a BufferedImage from buffer. */\n if (!this.checkContext()) {\n return null;\n }\n AWTGLReadBufferUtil glReadBufferUtil = new AWTGLReadBufferUtil(gl.getGL2().getGLProfile(), false);\n return glReadBufferUtil.readPixelsToBufferedImage(gl.getGL2(), true);\n }", "title": "" }, { "docid": "ea68c070bd27c53b3a59af47ed6717a9", "score": "0.54689765", "text": "public FromFileImage getImage() {\n\treturn new FromFileImage(this.position, this.imgName);\n }", "title": "" }, { "docid": "ea68c070bd27c53b3a59af47ed6717a9", "score": "0.54689765", "text": "public FromFileImage getImage() {\n\treturn new FromFileImage(this.position, this.imgName);\n }", "title": "" }, { "docid": "dcfadd78030895af3284732d303860bc", "score": "0.54517806", "text": "File[] read();", "title": "" }, { "docid": "37073321c0a9994c8dfa9537a6729e11", "score": "0.54300624", "text": "public void readResource() {\r\n\t\ttry {\r\n\t\t\tbuf = fileObject.getCharContent(false);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5e6579c7ba2e089836fd6daa1e9e2d18", "score": "0.5410613", "text": "private static BufferedImage loadImage( String filepath ){\n\t\tBufferedImage buffImg = loadBufferedImage( filepath );\n\t\treturn buffImg;\n\t}", "title": "" }, { "docid": "b57c4418828e6d08ba91e799d4e756a1", "score": "0.54094696", "text": "byte[] read(int blockNumber, int offset, int size, byte b[]) throws IndexOutOfBoundsException, FileNotFoundException, IOException, RemoteException;", "title": "" }, { "docid": "17622eb899a55891d071084863d7b6f5", "score": "0.5402077", "text": "private void readImageRGB(int width, int height, String imgPath, BufferedImage img)\n\t{\n\t\ttry\n\t\t{\n\t\t\tint frameLength = width*height*3;\n\n\t\t\tFile file = new File(imgPath);\n\t\t\tRandomAccessFile raf = new RandomAccessFile(file, \"r\");\n\t\t\traf.seek(0);\n\n\t\t\tlong len = frameLength;\n\t\t\tbyte[] bytes = new byte[(int) len];\n\n\t\t\traf.read(bytes);\n\n\t\t\tint ind = 0;\n\t\t\tfor(int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\tfor(int x = 0; x < width; x++)\n\t\t\t\t{\n\t\t\t\t\tbyte a = 0;\n\t\t\t\t\tbyte r = bytes[ind];\n\t\t\t\t\tbyte g = bytes[ind+height*width];\n\t\t\t\t\tbyte b = bytes[ind+height*width*2]; \n\n\t\t\t\t\tint pix = 0xff000000 | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n\t\t\t\t\t// int pix = ((a << 24) + (r << 16) + (g << 8) + b);\n\t\t\t\t\timg.setRGB(x,y,pix);\n\t\t\t\t\tind++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (FileNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "f57b156cb4bfd9e3899324d304514dbc", "score": "0.5389076", "text": "public static BufferedImage read(File file)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c10ab911985590de89459b73694e4dc6", "score": "0.53718996", "text": "public synchronized Buffer read() {\n\tif (availableFramesForReading == 0)\n\t error();\n\n\tBuffer buffer = buf[head];\n\tlockedFramesForReading++;\n\tavailableFramesForReading--;\n\thead++;\n\tif (head >= size)\n\t head -= size;\n\t\n\treturn buffer;\n }", "title": "" }, { "docid": "7b456cbb269c1475baea20bea516c57c", "score": "0.53659844", "text": "private native int readInternal(int native_fd, byte[] buf, int offset, int len);", "title": "" }, { "docid": "4373cb0391276ec929d14343f96bdab8", "score": "0.5358285", "text": "public BufferedImage readBMP(String path) {\n File bmpFile = new File(path);\n BufferedImage img = null;\n try{\n img = ImageIO.read(bmpFile);\n }\n catch(IOException e) {\n System.err.println(e);\n }\n return img;\n }", "title": "" }, { "docid": "2ddc97c5342a023f8b64cc0005d0d06e", "score": "0.53496754", "text": "com.google.protobuf.ByteString getImage();", "title": "" }, { "docid": "34f32f511c57d3e1520932d83515db53", "score": "0.5336464", "text": "@Override\n\t\tpublic void pillowData(byte[] buffer) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e39fd072e1cb531711167baf5648ed4e", "score": "0.53334945", "text": "private void readBinaryFile(String file) throws IOException\n {\n FileInputStream data; // For reading the file\n ByteBuffer dataBuffer; // For reading in the correct endian\n byte[] Info=new byte[80]; // Header data\n byte[] Array_number= new byte[4]; // Holds the number of faces\n byte[] Temp_Info; // Intermediate array\n\n int Number_faces; // First info (after the header) on the file\n\n // Get file's name\n if(fromUrl)\n {\n // FileInputStream can only read local files!?\n System.out.println(\"This version doesn't support reading binary files from internet\");\n }\n else\n { // It's a local file\n data = new FileInputStream(file);\n\n // First 80 bytes aren't important\n if(80 != data.read(Info))\n { // File is incorrect\n //System.out.println(\"Format Error: 80 bytes expected\");\n throw new IncorrectFormatException();\n }\n else\n { // We must first read the number of faces -> 4 bytes int\n // It depends on the endian so..\n\n data.read(Array_number); // We get the 4 bytes\n dataBuffer = ByteBuffer.wrap(Array_number); // ByteBuffer for reading correctly the int\n dataBuffer.order(ByteOrder.nativeOrder()); // Set the right order\n Number_faces = dataBuffer.getInt();\n\n Temp_Info = new byte[50*Number_faces]; // Each face has 50 bytes of data\n\n data.read(Temp_Info); // We get the rest of the file\n\n dataBuffer = ByteBuffer.wrap(Temp_Info); // Now we have all the data in this ByteBuffer\n dataBuffer.order(ByteOrder.nativeOrder());\n\n // We can create that array directly as we know how big it's going to be\n coordArray = new Point3f[Number_faces*3]; // Each face has 3 vertex\n normArray = new Vector3f[Number_faces];\n stripCounts = new int[Number_faces];\n\n for(int i=0;i<Number_faces;i++)\n {\n stripCounts[i]=3;\n try\n {\n readFacetB(dataBuffer,i);\n // After each facet there are 2 bytes without information\n // In the last iteration we dont have to skip those bytes..\n if(i != Number_faces - 1)\n {\n dataBuffer.get();\n dataBuffer.get();\n }\n }\n catch (IOException e)\n {\n // Quitar\n System.out.println(\"Format Error: iteration number \" + i);\n throw new IncorrectFormatException();\n }\n }//End for\n }// End file reading\n }// End else\n }", "title": "" }, { "docid": "a21e5a85c36dfd881a1b9e3fee48219c", "score": "0.53204644", "text": "public byte[] read()\n {\n try\n {\n byte[] bByteContents = new byte[(int)mLength];\n mFileObj.seek(0);\n mFileObj.read(bByteContents);\n\n return bByteContents;\n }\n catch(IOException ioe)\n {\n JLogger.Log(\"Exception in read() \"+ioe.toString());\n }\n\n return null;\n }", "title": "" }, { "docid": "da768dbc897051a8e9853a33793421d8", "score": "0.53181994", "text": "public byte[] readFileAsBytes() throws NullPointerException, IOException {\n\t\tbyte[] b = null;\n\t\t// try{\n\t\tint n;\n\t\t/* all bytes are read in one time */\n\t\twhile ((n = _fis.available()) > 0) {\n\t\t\tb = new byte[n];\n\t\t\tint result = _fis.read(b);\n\t\t\tif (result == -1)\n\t\t\t\tbreak;\n\t\t}// end while\n\n\t\treturn b;\n\t}", "title": "" }, { "docid": "f1590f70b90f4e8984503060bfcf6f8d", "score": "0.5314902", "text": "public synchronized int read(FileTableEntry ftEnt, byte[] buffer)\n {\n if ((ftEnt.mode == \"w\") || (ftEnt.mode == \"a\")) return -1;\n int size = buffer.length;\n int readBuffer = 0;\n int readError = -1;\n int blockSize = 512;\n int iterationSize = 0;\n\n synchronized (ftEnt)\n {\n while ((ftEnt.seekPtr < fsize(ftEnt) && (size > 0)))\n {\n int target = ftEnt.inode.findTargetBlock(ftEnt.seekPtr);\n if (target == readError) break;\n\n byte[] data = new byte[blockSize];\n SysLib.rawread(target, data);\n\n int dataOffset = ftEnt.seekPtr % blockSize;\n int blockLeft = blockSize - dataOffset;\n int fileLeft = fsize(ftEnt) - ftEnt.seekPtr;\n\n if (blockLeft < fileLeft)\n {\n iterationSize = blockLeft;\n }\n else\n {\n iterationSize = fileLeft;\n }\n\n if (iterationSize > size) iterationSize = size;\n\n System.arraycopy(data, dataOffset, buffer, readBuffer,\n iterationSize);\n ftEnt.seekPtr += iterationSize;\n readBuffer += iterationSize;\n size -= iterationSize;\n }\n return readBuffer;\n }\n }", "title": "" }, { "docid": "5144d59cfcb0806cce18894ccef5a6ea", "score": "0.53039825", "text": "public BufferedImage readImage(String imageName) {\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\tString file = (\"resources\" + File.separator + imageName);\n\t\t\timage = ImageIO.read(new File(file));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Error in DisplayObject.java:readImage] Could not read image \" + imageName);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}", "title": "" }, { "docid": "5703549fede358d3f15213cd5db58bd8", "score": "0.5295681", "text": "ByteBuffer getBuffer();", "title": "" }, { "docid": "0e4e50cd94de082efa185220465cbba0", "score": "0.5289299", "text": "public BufferedImage readImage(String imageName) {\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\tString file = (\"resources\" + File.separator + imageName);\r\n\t\t\timage = ImageIO.read(new File(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"[Error in DisplayObject.java:readImage] Could not read image \" + imageName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn image;\r\n\t}", "title": "" }, { "docid": "f9422b6efd72452f3360be6069fedc39", "score": "0.52864486", "text": "@Override\n public int read(long position, byte[] buffer, int offset, int length)\n throws IOException {\n if (in instanceof PositionedReadable) {\n try {\n int result = ((PositionedReadable) this.in).read(position, buffer,\n offset, length);\n if (null != statistics && result > 0) {\n statistics.incrementBytesRead(result);\n }\n return result;\n } catch (IOException e) {\n Throwable innerException = NativeAzureFileSystemHelper.checkForAzureStorageException(e);\n if (innerException instanceof StorageException) {\n LOG.error(\"Encountered Storage Exception for read on Blob : {}\"\n + \" Exception details: {} Error Code : {}\",\n key, e, ((StorageException) innerException).getErrorCode());\n if (NativeAzureFileSystemHelper.isFileNotFoundException((StorageException) innerException)) {\n throw new FileNotFoundException(String.format(\"%s is not found\", key));\n }\n }\n throw e;\n }\n }\n return super.read(position, buffer, offset, length);\n }", "title": "" }, { "docid": "1a1d9a8b01de54c7d965f9f73669ee47", "score": "0.5272824", "text": "private void openImageMirerFile(String filePath) {\r\n\t\tLog.d(LOG_TAG, \"filePath: \" + filePath);\r\n\t\tFile imgFile = new File(filePath);\r\n\t\tBitmap mirerBitmap = null;\r\n\t\tif(imgFile.exists()){\r\n\t\t mirerBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\r\n\t\t Log.d(LOG_TAG, \"open image stat = \" + stat);\r\n\t\t switch (stat) {\r\n\t\t case 1:\r\n\t\t \tmirer1.setImageBitmap(mirerBitmap);\r\n\t\t \tbreak;\r\n\t\t case 2:\r\n\t\t \tmirer1.setImageBitmap(mirerBitmap);\r\n\t\t \tbreak;\r\n\t\t case 3:\r\n\t\t \tmirer2.setImageBitmap(mirerBitmap);\r\n\t\t \tbreak;\r\n\t\t case 4:\r\n\t\t \tmirer2.setImageBitmap(mirerBitmap);\r\n\t\t \tbreak;\r\n\t\t case 5:\r\n\t\t \tmirer2.setImageBitmap(mirerBitmap);\r\n\t\t \tbreak;\r\n\t\t default:\r\n\t\t \tLog.d(LOG_TAG, \"openImageMirerFile default case\");\r\n\t\t \tbreak;\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\tint bytes = mirerBitmap.getByteCount();\r\n\t\tByteBuffer buffer = ByteBuffer.allocate(bytes);\r\n\t\tmirerBitmap.copyPixelsToBuffer(buffer);\r\n\t\tbyte[] originalByteArray = buffer.array();\r\n\t\t\r\n//\t\tLog.d(LOG_TAG, \"original image bytes: \" + originalByteArray.length);\r\n\t\tbyte[] rawBytes = new byte[(originalByteArray.length) /4];\r\n\t\tint i = 0;\r\n\t\tfor (int idx = 0; idx < originalByteArray.length / 4; idx++) {\r\n\t\t\trawBytes[idx] = originalByteArray[i];\r\n\t\t\ti += 4;\r\n\t\t}\r\n\t\t\r\n\t\tint fileSize = (int) imgFile.length();\r\n\t\t\r\n\t\tLog.d(LOG_TAG, \"imgFile.length = \" + fileSize);\r\n\t\t\r\n\t\tint dimension = (int) Math.sqrt(fileSize);\r\n\t\tint[][] byteArray = new int[dimension][dimension];\r\n\t\tint idx = 0;\r\n\t\tfor (i = 0; i < dimension; i++) {\r\n\t\t\tfor (int j = 0; j < dimension; j++) {\r\n\t\t\t\tbyteArray[i][j] = 0xFF & (int)rawBytes[idx];\r\n\t\t\t\tidx++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tswitch (stat) {\r\n\t\tcase 1:\r\n\t\t\tLog.d(LOG_TAG, \"1 stat = \" + stat);\r\n\t\t\tradiometricResolutionFor6Circles(byteArray);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tLog.d(LOG_TAG, \"2 stat = \" + stat);\r\n\t\t\tradiometricResolutionFor10Circles(byteArray);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tLog.d(LOG_TAG, \"3 stat = \" + stat);\r\n\t\t\tlinearResolutionFor4Circles(byteArray);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tLog.d(LOG_TAG, \"4 stat = \" + stat);\r\n\t\t\tlinearResolutionFor6Circles(byteArray);\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tLog.d(LOG_TAG, \"5 stat = \" + stat);\r\n\t\t\tlinearResolutionFor10Circles(byteArray);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tLog.d(LOG_TAG, \"Switch stat default case.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d1a9d225f1ab8037a6db5c1229e4eb5c", "score": "0.5272375", "text": "public InputStream openInputStreamToBuffer()\n\t{\n\t\tByteArrayInputStream input = new ByteArrayInputStream(buffer.array(), 0, size);\n\t\treturn input;\n\t}", "title": "" }, { "docid": "0ad627e4a19bd346d2c19a4c9a5da5ed", "score": "0.5272019", "text": "public abstract Iterator<ByteBuffer> readAll();", "title": "" }, { "docid": "247cb4bd294a2acd7aff2774ce5570e9", "score": "0.52675563", "text": "void handleRead(ByteBuffer data);", "title": "" }, { "docid": "35edcb6d7ece6df91fb7dbbdefdaf6f9", "score": "0.5253837", "text": "private static BufferedImage loadImage(File file) throws IOException {\r\n\t\tif (!file.exists()) {\r\n\t\t\tthrow new FileNotFoundException(\"File does not exist: \" + file.getAbsolutePath());\r\n\t\t}\r\n\t\t// use a FileInputStream and make sure it gets closed to prevent unclosed file\r\n\t\t// errors on some operating systems\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tBufferedImage image = ImageIO.read(fis);\r\n\t\t\tif (image == null) {\r\n\t\t\t\tthrow new IOException(\"JDK is unable to process image file, possibly indicating file corruption: \" + file.getAbsolutePath());\r\n\t\t\t}\r\n\t\t\treturn image;\r\n\t\t} finally {\r\n\t\t\tIOUtils.closeQuietly(fis);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "93c0d965e3dcecad73e59a8d270196c9", "score": "0.52518404", "text": "private static void imageTestFromFile(String filepath) throws V4L4JException, IOException {\n\t\t// load image into a BufferedImage\n\t\tBufferedImage image = new BufferedImage(768, 576,\n\t\t\t\tBufferedImage.TYPE_3BYTE_BGR);\n\t\ttry {\n\t\t\t// use a static image for now\n\t\t\timage = ImageIO.read(new File(filepath));\n\t\t\t//ImageProcessor ip = new ImageProcessor(false);\n\t\t\t//ip.getPosition(image.getData(), new int[]{-1, -1, -1, -1, -1, -1});\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Could not open the file!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "527cb5f5a630865dca3a3364e926b2a7", "score": "0.5233825", "text": "public static BufferedImage Read(String readFile) throws Exception {\r\n File input = new File(readFile);\r\n\r\n // ImageIO.read might throw an IOException\r\n // The BufferedImage returned by ImageIO.read is gray-scale\r\n BufferedImage readImage = ImageIO.read(input);\r\n\r\n // create a newImage and copy all the pixel values from readImage into newImage\r\n BufferedImage newImage = new BufferedImage(readImage.getWidth(), \r\n readImage.getHeight(), BufferedImage.TYPE_INT_RGB); \r\n for (int x = 0; x < readImage.getWidth(); ++x) {\r\n for (int y = 0; y < readImage.getHeight(); ++y) {\r\n newImage.setRGB(x, y, readImage.getRGB(x, y));\r\n }\r\n }\r\n return newImage;\r\n }", "title": "" }, { "docid": "ee9ca3d5ab128691da732b0836cfae97", "score": "0.52122736", "text": "public BufferedImage getImage() {\n return bufImg;\n }", "title": "" }, { "docid": "68832315cc5536e40cd1894b91d2b2dd", "score": "0.52092665", "text": "public static final Image open(Path file) throws IOException {\n\t\treturn open(new BufferedInputStream(Files.newInputStream(file, OPEN_OPTIONS)));\n\t}", "title": "" }, { "docid": "93fb2911ae68f02099baf41d3a3af879", "score": "0.5208603", "text": "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public static ByteBuffer acquireRgbBufferAndClose(Image image) {\n ByteBuffer imageBuffer;\n if ((image.getPlanes()[0].getPixelStride() * image.getWidth()) != image.getPlanes()[0]\n .getRowStride()) {\n byte[] bytes = getContinuousRgbDataFromImage(image);\n imageBuffer = ByteBuffer.allocateDirect(bytes.length);\n imageBuffer.put(bytes);\n imageBuffer.rewind();\n bytes = null;\n } else {\n // continuous buffer, read directly\n imageBuffer = image.getPlanes()[0].getBuffer();\n }\n return imageBuffer;\n }", "title": "" }, { "docid": "3efa3a4e4521002b730a7bb625584d75", "score": "0.5190609", "text": "public static byte[] readFile2BytesByStream(Context context, final File file,\n final OnProgressUpdateListener listener) {\n if (!FileUtils.isFileExists(context, file)) return null;\n try {\n ByteArrayOutputStream os = null;\n InputStream is = new BufferedInputStream(new FileInputStream(file), sBufferSize);\n try {\n os = new ByteArrayOutputStream();\n byte[] b = new byte[sBufferSize];\n int len;\n if (listener == null) {\n while ((len = is.read(b, 0, sBufferSize)) != -1) {\n os.write(b, 0, len);\n }\n } else {\n double totalSize = is.available();\n int curSize = 0;\n listener.onProgressUpdate(0);\n while ((len = is.read(b, 0, sBufferSize)) != -1) {\n os.write(b, 0, len);\n curSize += len;\n listener.onProgressUpdate(curSize / totalSize);\n }\n }\n return os.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n if (os != null) {\n os.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "ba787c8b04bcfc16ee63f658198bf96b", "score": "0.51902735", "text": "private WaveletCompress.CubeletBuffer readCubeletBuffer()\n throws IOException {\n int bytesRead = in.read(readBuffer, 0, 4);\n\n // end of file, just return null\n if (bytesRead != 4) return null;\n\n // decode the length\n int encodedLength = intFromByteArray(readBuffer, 0);\n\n // length of 0xFFFFFFFF marks EOF \n if (encodedLength == -1) return null;\n \n readBufferReserve(encodedLength);\n\n // read the encoded data\n bytesRead = in.read(readBuffer, 0, encodedLength);\n if (bytesRead != encodedLength) return null;\n\n WaveletCompress.CubeletBuffer cubeletBuffer = null;\n\n // decode the metadata\n try {\n cubeletBuffer = cubeletParser.parseFrom(readBuffer, 0, encodedLength);\n } catch (InvalidProtocolBufferException e) {\n throw new IOException(\"Failed to decode metadata\");\n }\n\n return cubeletBuffer;\n }", "title": "" }, { "docid": "2bcef1daf7236b4ece3bb77cd8e85759", "score": "0.51814646", "text": "private static String readFile(File f) throws IOException {\n int bytesRead = 0;\n try(FileReader fr = new FileReader(f)) {\n synchronized(buffer) {\n while (true) {\n int n = fr.read(buffer, bytesRead, buffer.length - bytesRead);\n if( n < 0 ) return new String(buffer, 0, bytesRead);\n bytesRead += n;\n if( bytesRead >= buffer.length ) throw new IOException(\"LinuxProcFileReader readFile unexpected buffer full\");\n }\n }\n }\n }", "title": "" }, { "docid": "5152f36e31913f0a7511034abb1cce02", "score": "0.5173565", "text": "static byte[] readBytes(File file) throws IOException {\n FileInputStream inputStream = new FileInputStream(file);\n BufferedInputStream bufferedStream = new BufferedInputStream(inputStream);\n byte[] data = null;\n\n try {\n int length = bufferedStream.available();\n if (length > 0) {\n data = new byte[length];\n // read the entire data\n bufferedStream.read(data);\n }\n } finally {\n quietlyDispose(bufferedStream);\n quietlyDispose(inputStream);\n }\n return data;\n }", "title": "" }, { "docid": "94b8c1594c95c8f4b545e0420d8cc787", "score": "0.5171354", "text": "private void readFromFrameBuffer(){\n computeOutput = BufferUtils.createFloatBuffer(resolution*resolution);\n \tglReadPixels(0, 0, resolution, resolution, GL_RED, GL_FLOAT, computeOutput);\n \tcomputeOutput.rewind();\n \tcamera.setComputedBuffer(computeOutput);\n }", "title": "" }, { "docid": "e15939ae592c5b413f768f9216a6249d", "score": "0.51434976", "text": "@Test\n public void getInputStreamForSizedBufferedImage() {\n BufferedImage image =\n ImageProcessingUtils.getBufferedImageFromBase64(IMAGE_GIF_BASE64, BADGE_NUMBER);\n\n // When request an input stream for the image sized\n InputStream result = ImageProcessingUtils.getInputStreamForSizedBufferedImage(image, 300);\n\n // Then no exceptions\n Assert.assertNotNull(result);\n }", "title": "" }, { "docid": "36627ceff89bc26d99816e22e65579a1", "score": "0.5137876", "text": "InputStream readFile() throws Exception;", "title": "" }, { "docid": "050e7debd696c969d5a861a1c59c84bf", "score": "0.5127235", "text": "private void readFile(SocketChannel socketChannel) throws IOException {\n Path path = Paths.get(\"C:\\\\Users\\\\mi\\\\Desktop\\\\Client\\\\Construction3D_copy.mp4\");\n FileChannel fileChannel = FileChannel.open(path,\n EnumSet.of(StandardOpenOption.CREATE,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.WRITE)\n );\n //Allocate a ByteBuffer\n ByteBuffer buffer = ByteBuffer.allocate(4096);\n while (socketChannel.read(buffer) > 0) {\n buffer.flip();\n fileChannel.write(buffer);\n buffer.clear();\n }\n fileChannel.close();\n System.out.println(\"Receving file successfully!\");\n socketChannel.close();\n }", "title": "" }, { "docid": "68cbb67a9823fd119026b8a85a510d28", "score": "0.5123235", "text": "public void readfile() {\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"D:\\\\worksapces\\\\mat_workspace\\\\TDSERVER\\\\heap.bin\");\r\n\t\t\tFileOutputStream fos = new FileOutputStream(\"D:\\\\heap.bin\");\r\n\t\t\tbyte[] b = new byte[1024];\r\n\t\t\tint len = 0;\r\n\t\t\twhile ((len = fis.read(b)) != -1) {\r\n\t\t\t\tfos.write(b, 0, len);\r\n\t\t\t}\r\n\t\t\tfos.flush();\r\n\t\t\tfos.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cc7f0b74104b8b9d9d073ebeba2bfe33", "score": "0.51214784", "text": "private byte[] performRead() throws IOException {\n\t\tlong sz = myChunkSize;\n\t\tfhandle.seek(myBaseOffset + myChunkOffset);\n\t\tbyte[] res = new byte[(int) sz];\n\t\tlong a_sz = fhandle.read(res);\n\t\tif (a_sz != sz) {\n\t\t\tSystem.err.println(String\n\t\t\t\t\t.format(\"Warning: attempted to read %d bytes but got %d\", \n\t\t\t\t\t\t\tsz, a_sz));\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "c7b6b94fe2ada93a28b68f40a5f632c4", "score": "0.51031446", "text": "public abstract void load(ByteBuffer buffer);", "title": "" }, { "docid": "003165232b1813c1771c9d83fa1507e0", "score": "0.5095036", "text": "public byte[] read() throws IOException;", "title": "" }, { "docid": "78290ab71e2ab4cbef05a69d899b2b16", "score": "0.509073", "text": "public float[][] lireImage() {\n \n try {\n \n // Chargement de l'image\n BufferedImage zbuffer = ImageIO.read(new File(this._path));\n int width = zbuffer.getWidth();\n int height = zbuffer.getHeight();\n\n float[][] res = new float[width][height];\n for(int i=0; i<width;i++) {\n \n for(int j=0; j<height;j++) {\n \n res[i][j] = (float)(zbuffer.getRGB(i, j)&0x0000FF)/255;\n \n }\n \n }\n \n return res;\n \n } catch (IOException ex) {\n Logger.getLogger(Lecture.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return null;\n \n }", "title": "" }, { "docid": "c02ce6ac5af4544eb847eeebb5bf714a", "score": "0.50860757", "text": "private static int readAndReset(InputStream in, byte[] buffer) throws IOException {\n in.mark(buffer.length);\n try {\n return ByteStreams.read(in, buffer, 0, buffer.length);\n } finally {\n in.reset();\n }\n }", "title": "" }, { "docid": "8274b6564ff762db33c64a19a2aab348", "score": "0.50825536", "text": "public BufferedImage decodeImage(InputStream in) throws XWikiException {\n BufferedImage bufferedImage = null;\n try {\n bufferedImage = ImageIO.read(in);\n } catch (IOException e) {\n mLogger.error(\"Could not open the file! \", e);\n throw new XWikiException(XWikiException.MODULE_XWIKI_PLUGINS,\n XWikiException.ERROR_XWIKI_UNKNOWN, \"Could not decode the image file.\", e);\n }\n return bufferedImage;\n }", "title": "" }, { "docid": "012437b5bd497b4373b8d0c9d7510cc3", "score": "0.50821096", "text": "public interface ImageReader {\n /**\n * Read the pixels of an image.\n * @param filename The name of the file containing the pixels.\n * @return The pixels of the image.\n */\n Pixels readPixels (String filename);\n}", "title": "" }, { "docid": "e7c58bc20d577544e0c44cac35ab6167", "score": "0.50811297", "text": "private void loadBuffer() throws IOException {\n buf = getNextBuffer();\n curr = 0;\n }", "title": "" }, { "docid": "40fdfde96c122ed914e7ad8149d7c2ba", "score": "0.50801843", "text": "public static int readFile(long fileHandle, byte[] readBuffer, long offset, long len) throws TskCoreException {\n\t\tgetTSKReadLock();\n\t\ttry {\n\t\t\tif (!HandleCache.isValidFileHandle(fileHandle)) {\n\t\t\t\tthrow new TskCoreException(HandleCache.INVALID_FILE_HANDLE);\n\t\t\t}\n\n\t\t\treturn readFileNat(fileHandle, readBuffer, offset, TSK_FS_FILE_READ_OFFSET_TYPE_ENUM.START_OF_FILE.getValue(), len);\n\t\t} finally {\n\t\t\treleaseTSKReadLock();\n\t\t}\n\t}", "title": "" }, { "docid": "99069799b0eb5450ac830033f11cde58", "score": "0.50788814", "text": "private Bitmap loadBitmap(FileInputStream in) {\n try {\n Bitmap bitmap = BitmapFactory.decodeStream(in);\n in.close();\n return bitmap;\n }\n catch(Exception | Error e) {\n return null;\n }\n }", "title": "" }, { "docid": "b749dfc13cdd369cf36548f89addaadf", "score": "0.5074312", "text": "private static byte[] read_file_data(File res_file) throws IOException\n {\n FileInputStream file_input = new FileInputStream(res_file);\n byte[] file_data = new byte[(int) res_file.length()];\n\n try\n {\n file_input.read(file_data);\n }\n catch (IOException e)\n {\n System.out.println(\"resource file read error\\n\");\n } // close the input file even if an exception occured\n finally\n {\n if (file_input != null)\n file_input.close();\n }\n\n return file_data;\n }", "title": "" }, { "docid": "43792e9696f77a3a018fc0ead5951dde", "score": "0.5072402", "text": "private void readImage(String name, InputStream stream) {\n\t\ttry {\n\t\t\t// Read image\n\t\t\tBufferedImage img = ImageIO.read(stream);\n\n\t\t\t// Calculate name for cache\n\t\t\tString cacheName = new String();\n\t\t\tfor (char chr : removeExtension(name).toLowerCase().toCharArray()) {\n\t\t\t\tif (chr < 'a' || chr > 'z') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcacheName += chr;\n\t\t\t}\n\n\t\t\t// Save image reference in cache\n\t\t\tcache.put(cacheName, img);\n\t\t} catch (Exception ex) {\n\t\t\t// Report error\n\t\t\tCrashReporter.getInstance().reportCrash(new IOException(\"Exception while reading image from stream\", ex));\n\t\t}\n\t}", "title": "" }, { "docid": "e1538d533456cdb0545c7879c2395203", "score": "0.506322", "text": "static BufferedImage loadImage(String filename)\n {\n BufferedImage m = null;\n try\n {\n m = ImageIO.read(new File(filename));\n } \n catch(Exception e)\n {\n e.printStackTrace(System.err);\n System.exit(1);\n }\n return m;\n }", "title": "" }, { "docid": "34ca5812d95a49e8e65c1f5a253eb411", "score": "0.5047606", "text": "public void loadImage() throws IOException {\n \n logger.info(\"Exito load image!\");\n }", "title": "" }, { "docid": "5ca59b712b500a75fa7d2ca65bcc80a2", "score": "0.50404376", "text": "public BitInBuffered(RandomDataInput file, long startByteOffset, byte _bitOffset, int _bufLength)\n\t\t{\n\t\t\tthis.offset = startByteOffset;\n\t\t\tthis.bitOffset= _bitOffset;\n\t\t\tthis.parentFile = file;\n\t\t\tthis.size = _bufLength;\n\t\t\ttry{\t\t\t\t\n\t\t\t\tparentFile.seek(startByteOffset);\n\t\t\t\tinBuffer = new byte[size];\n\t\t\t\tparentFile.readFully(inBuffer);\n\t\t\t\treadByteOffset = 0;\n\t\t\t\tbyteRead = inBuffer[readByteOffset];\n\t\t\t}catch(IOException ioe){\n\t\t\t\tlogger.error(\"Input/Output exception while reading from a random access file. Stack trace follows\", ioe);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "6379f04ee3441eaf40768603e292820d", "score": "0.50370324", "text": "public void openBufferForRead() {\n if (in != null) {\n return;\n }\n try {\n in = new BufferedReader(new InputStreamReader(new FileInputStream(tr.showOpenDialog(null))));\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6ee8c77c954f8c1a8e541ae1683259d2", "score": "0.5030751", "text": "private byte[] getImage(final String path) throws GetImageException {\r\n\t\tURL url;\r\n\t\ttry {\r\n\t\t\turl = new URL(PreferencesHelper.getServerUrlbase(ctx) + path.replaceAll(\" \", \"%20\"));\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tthrow new GetImageException(\"Could not parse URL: \" + e.getMessage());\r\n\t\t}\r\n\t\tLog.d(TAG, \"Getting image with URL: \" + url.toString());\r\n\r\n\t\t//Open connection\r\n\t\tURLConnection ucon;\r\n\t\ttry {\r\n\t\t\tucon = url.openConnection();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GetImageException(\"Could not open URL-connection: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t\t//Get Image\r\n\t\tInputStream is;\r\n\t\ttry {\r\n\t\t\tis = ucon.getInputStream();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GetImageException(\"Could not get InputStream: \" + e.getMessage());\r\n\t\t}\r\n\t\t//Setup buffers\r\n\t\tBufferedInputStream bis = new BufferedInputStream(is, INPUT_BUFFER_SIZE);\r\n\t\tByteArrayBuffer baf = new ByteArrayBuffer(INPUT_BUFFER_SIZE);\r\n\r\n\t\t//Put content into bytearray\r\n\t\tint current = 0;\r\n\t\ttry {\r\n\t\t\twhile ((current = bis.read()) != -1) {\r\n\t\t\t\tbaf.append((byte) current);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GetImageException(\"Could not read from BufferedInputStream(bis): \" + e.getMessage());\r\n\t\t}\r\n\r\n\t\treturn baf.toByteArray();\r\n\t}", "title": "" }, { "docid": "f24ac697e529724b3c32bfc51b9ce555", "score": "0.5018046", "text": "@Override\n public int read(long pos, byte []buf, int offset, int length)\n throws IOException\n {\n if (buf == null) {\n throw new NullPointerException();\n }\n else if (offset < 0 || buf.length < offset + length) {\n throw new ArrayIndexOutOfBoundsException();\n }\n /*\n else if (_fileLength < pos + length) {\n throw new ArrayIndexOutOfBoundsException(\"FileLength: 0x\" + Long.toHexString(_fileLength)\n + \" pos: 0x\" + Long.toHexString(pos)\n + \" len: 0x\" + Long.toHexString(length));\n }\n */\n \n InStore is = null;\n\n try {\n if (! allocate()) {\n return -1;\n }\n \n is = _store.openRead(pos, length);\n \n if (is.read(pos, buf, offset, length)) {\n return length;\n }\n else {\n return -1;\n }\n } finally {\n free();\n \n if (is != null) {\n is.close();\n }\n }\n }", "title": "" }, { "docid": "5e4dcfe8aac3fc40256d09d8ceabfb4b", "score": "0.50139993", "text": "@Test\n\tpublic void seekableRead() throws IOException{\n\t\tPath path = Files.write(Files.createTempFile(\"asdas\", \"asdsadad\"), \"contenido uyuhu\".getBytes(), StandardOpenOption.APPEND);\n\t\ttry (SeekableByteChannel channel = Files.newByteChannel(path)) {\n\n\t\t\t//channel = Paths.get(\"Path to file\").newByteChannel(StandardOpenOption.READ);\n\t\t ByteBuffer buffer = ByteBuffer.allocate(4096);\n\n\t\t System.out.println(\"File size: \" + channel.size());\n\n\t\t while (channel.read(buffer) > 0) {\n\t\t buffer.rewind();\n\t\t \n\t\t System.out.print(new String(buffer.array(), 0, buffer.remaining()));\n\n\t\t buffer.flip();\n\n\t\t System.out.println(\"Current position : \" + channel.position());\n\t\t }\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t/*\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(1024);\n\n\t\t sbc.position(4);\n\t\t sbc.read(buffer);\n\t\t for (int i = 0; i < 5; i++) {\n\t\t System.out.print((char) buffer.get(i));\n\t\t }\n\n\t\t buffer.clear();\n\t\t sbc.position(0);\n\t\t sbc.read(buffer);\n\t\t for (int i = 0; i < 4; i++) {\n\t\t System.out.print((char) buffer.get(i));\n\t\t }\n\t\t sbc.position(0);\n\t\t buffer = ByteBuffer.allocate(1024);\n\t\t String encoding = System.getProperty(\"file.encoding\");\n\t\t int numberOfBytesRead = sbc.read(buffer);\n\t\t System.out.println(\"Number of bytes read: \" + numberOfBytesRead);\n\t\t while (numberOfBytesRead > 0) {\n\t\t buffer.rewind();\n\t\t System.out.print(\"[\" + Charset.forName(encoding).decode(buffer) + \"]\");\n\t\t buffer.flip();\n\t\t numberOfBytesRead = sbc.read(buffer);\n\t\t System.out.println(\"\\nNumber of bytes read: \" + numberOfBytesRead);\n\t\t }\n*/\n\t\t }\n\t}", "title": "" }, { "docid": "404c0e033ca08741a09a2c9658c1c7a6", "score": "0.5013096", "text": "public void read(String filename) \n\t{\n\t\tImageInputStream ldis = null;\n\t\tint bytes_read = 0;\n\n\t\tldis = AppKit.openRead(filename);\n\n if( ldis == null ) {\n System.out.println(\"BFF: Could not open \" + filename + \" to read.\");\n System.exit(0);\n }\n\n\t\t/* It should really always be this. */\n\t\tldis.setByteOrder(endian);\n\n\t\ttry {\n\t\t\treadHeader(ldis);\n\n\t\t\tldis = AppKit.openRead(filename);\n\n\t\t\tif (ldis == null) {\n\t\t\t\tSystem.out.println(\"Could not find the file.\");\n \tSystem.exit(0);\n\t\t\t}\n\n\t\t\t/* It should really always be this. */\n\t\t\tldis.setByteOrder(ByteOrder.BIG_ENDIAN);\n\t\t\n\t\t\t//\n\t\t\t// poor man's seek.\n\t\t\t//\n\t\t\tldis.skipBytes(7904);\n\n\t\t\tdata = new MCVolume((int)_IH_img_width, (int)_IH_img_height, 1, 1);\n\t\t\tdata.read(ldis, 0, 0, datatype );\n\n\t\t\tldis.close();\n\t\t} \n\t\tcatch( IOException e ) {\n\t\t\tSystem.out.println(\"Could not read the file.\");\n System.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "4b16140af1141c043ceccb3763bbdfd0", "score": "0.50031245", "text": "@Test\n public void testRandomRead() throws IOException {\n\n int startPosition = 500000;\n int length = 50000;\n\n byte[] buffer1 = new byte[length];\n SeekableStream unBufferedStream = new SeekableFileStream(BAM_FILE);\n unBufferedStream.seek(startPosition);\n int bytesRead = unBufferedStream.read(buffer1, 0, length);\n assertEquals(length, bytesRead);\n\n byte[] buffer2 = new byte[length];\n SeekableStream bufferedStream = new IGVSeekableBufferedStream(new SeekableHTTPStream(HttpUtils.createURL(BAM_URL_STRING)));\n bufferedStream.seek(startPosition);\n bytesRead = bufferedStream.read(buffer2, 0, length);\n assertEquals(length, bytesRead);\n\n assertArraysEqual(buffer1, buffer2);\n }", "title": "" }, { "docid": "f22d63d35dd6f85087f8dd2533a04103", "score": "0.5003124", "text": "@GetMapping(\n\t\t\t\t value = \"/get-image/{path}\",\n\t\t\t\t produces = MediaType.IMAGE_JPEG_VALUE\n\t\t\t\t)\n\t\t\t\tpublic @ResponseBody byte[] getImage(@PathVariable(value = \"path\")String path) throws IOException {\n\t\t\t String loc=etService.imgpath(path);\n\t\t\t Path imagePath =Paths.get(loc);\n\t\t\t\t return Files.readAllBytes(imagePath);\n\t\t\t\t}", "title": "" }, { "docid": "131d996918a9540b5e19a31848c072ac", "score": "0.49958295", "text": "public Blob getIMAGE();", "title": "" } ]